{
if (!$('#filter_popup form input').length) {
$.get('query.php',
- window.location.search.substr(1),
+ window.location.search.substr(1)+'&ajax=1',
function(data) {
var text = '<style type="text/css">';
text += '#fc { z-index: 10; }';
<select id=category name=category>
<option>
<?
- foreach ($accounting->distinctCategories($_GET['blzkto']) as $row)
+ foreach ($accounting->distinctCategories($_GET['blzkto']) as $row) {
+ if (!empty($_GET['ajax'])) $row->category = utf8_encode($row->category);
printf ("<option value=\"%s\">%s", $row->category, $row->category);
+ }
?></select>
<br class="none">
<select id=from_to name=from_to>
<option>
<?
- foreach ($accounting->distinctFromTo($_GET['blzkto']) as $row)
+ foreach ($accounting->distinctFromTo($_GET['blzkto']) as $row) {
+ if (!empty($_GET['ajax'])) $row->from_to = utf8_encode($row->from_to);
printf ("<option value=\"%s\">%s", $row->from_to, $row->from_to);
+ }
?></select>
<br class="none">