-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathch_mon2.php
46 lines (42 loc) · 1.88 KB
/
ch_mon2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
if ($_GET["month"]=='') $_GET["month"]=$today["mon"];
if ($_GET["year"]=='') $_GET["year"]=$today["year"];
if ($_GET["month"] && !$_POST["month"]) $_POST["month"]=$_GET["month"];
else if (!$_POST["month"]) $_GET["month"]=$_POST["month"]=$today["mon"];
if ($_GET["year"] && !$_POST["year"]) $_POST["year"]=$_GET["year"];
else if (!$_POST["year"]) $_GET["year"]=$_POST["year"]=$today["year"];
if ($_POST["month"]) $_GET["month"]=$_POST["month"];
if ($_POST["year"]) $_GET["year"]=$_POST["year"];
$reqq2='index.php?sel=eco&id=1&month='.$_POST["month"].'&year='.$_POST["year"].'&qnt='.$_POST["qnt"];
print '<form method="post" name="add" action="'.$reqq2.'">';
print '<select style="font-family:verdana; font-size:11px" id="month" name="month">';
for ($z=1;$z<=12;$z++)
{
print '<option value="'.$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">';
for ($z=0;$z<=5;$z++)
{
print '<option value="'.($today["year"]-$z).'" ';
if (($today["year"]-$z)==$_POST["year"]) print 'selected';
print '>';
print $today["year"]-$z;
}
print '</select> ';
print '<select style="font-family:verdana; font-size:11px" id="qnt" name="qnt">';
for ($z=1;$z<=12;$z++)
{
print '<option value="'.$z.'" ';
if ($z==$_POST["qnt"]) print 'selected '; print '>'.$z;
}
print '</select> ';
print '<input name="add" value="âûâåñòè" type="submit" style="font-family:tahoma; font-size: 12px">';
print '</form>';
?>