<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">