-
Notifications
You must be signed in to change notification settings - Fork 0
/
ch_mon.php
23 lines (23 loc) · 1.32 KB
/
ch_mon.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
if ($_GET["month"]=='') $_GET["month"]=$today["mon"];
if ($_GET["year"]=='') $_GET["year"]=$today["year"];
print '<select style="font-family:verdana; font-size:11px" id="month" name="month" onchange="location.href=document.getElementById(\'month\').options[document.getElementById(\'month\').selectedIndex].value;">';
for ($z=1;$z<=12;$z++)
{
print '<option value="index.php?sel=object&menu='.$_GET["menu"].'&id='.$_GET["id"].'&year='.$_GET["year"].'&month='.$z.'" ';
if ($z==$_GET["month"]) print 'selected '; print '>';
if ($z==1) print 'ßíâàðü'; if ($z==2) print 'Ôåâðàëü';
if ($z==3) print 'Ìàðò'; if ($z==4) print 'Àïðåëü';
if ($z==5) print 'Ìàé'; if ($z==6) print 'Èþíü';
if ($z==7) print 'Èþëü'; if ($z==8) print 'Àâãóñò';
if ($z==9) print 'Ñåíòÿáðü'; if ($z==10) print 'Îêòÿáðü';
if ($z==11) print 'Íîÿáðü'; if ($z==12) print 'Äåêàáðü';
}
print '</select><select id="year" name="year" style="font-family:verdana; font-size:11px" onchange="location.href=document.getElementById(\'year\').options[document.getElementById(\'year\').selectedIndex].value;">';
for ($z=0;$z<=5;$z++)
{
print '<option value="index.php?sel=object&menu='.$_GET["menu"].'&id='.$_GET["id"].'&month='.$_GET["month"].'&year='.($today["year"]-$z).'" >';
print $today["year"]-$z;
}
print '</select>';
?>