-
Notifications
You must be signed in to change notification settings - Fork 0
/
ch_mon5.php
92 lines (83 loc) · 4.02 KB
/
ch_mon5.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
if ($_GET["month"]=='') $_GET["month"]=$today["mon"];
if ($_GET["year"]=='') $_GET["year"]=$today["year"];
//$pos=strpos ($_SERVER["REQUEST_URI"],"&type");
//if ($pos) $reqq=substr ($_SERVER["REQUEST_URI"],1,$pos);
//else $reqq=substr ($_SERVER["REQUEST_URI"],1);
if ($_GET["day"] && !$_POST["day"]) $_POST["day"]=$_GET["day"];
else if (!$_POST["day"]) $_GET["day"]=$_POST["day"]=$today["mday"];
if ($_GET["day2"] && !$_POST["day2"]) $_POST["day2"]=$_GET["day2"];
else if (!$_POST["day2"]) $_GET["day2"]=$_POST["day2"]=$today["mday"];
if ($_GET["month"] && !$_POST["month"]) $_POST["month"]=$_GET["month"];
else if (!$_POST["month"]) $_GET["month"]=$_POST["month"]=$today["mon"];
if ($_GET["month2"] && !$_POST["month2"]) $_POST["month2"]=$_GET["month2"];
else if (!$_POST["month2"]) $_GET["month2"]=$_POST["month2"]=$today["mon"];
if ($_GET["year"] && !$_POST["year"]) $_POST["year"]=$_GET["year"];
else if (!$_POST["year"]) $_GET["year"]=$_POST["year"]=$today["year"];
if ($_GET["year2"] && !$_POST["year2"]) $_POST["year2"]=$_GET["year2"];
else if (!$_POST["year2"]) $_GET["year2"]=$_POST["year2"]=$today["year"];
if ($_POST["month"]) $_GET["month"]=$_POST["month"];
if ($_POST["year"]) $_GET["year"]=$_POST["year"];
$reqq2='index.php?sel='.$_GET["sel"].'&menu='.$_GET["menu"].'&day='.$_POST["day"].'&month='.$_POST["month"].'&year='.$_POST["year"].'&day2='.$_POST["day2"].'&month2='.$_POST["month2"].'&year2='.$_POST["year2"].'&id='.$_GET["id"];
print '<form method="post" name="add" action="'.$reqq2.'">';
print '<select style="font-family:verdana; font-size:11px" id="day" name="day">';
for ($z=1;$z<=31;$z++)
{
if ($_POST["day"]==$z)
{ print '<option selected value="'; if ($z>9) print $z; else print '0'.$z; print '">'; print $z; }
else { print '<option value="'; if ($z>9) print $z; else print '0'.$z; print '">'; print $z; }
}
print '</select>';
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="day2" name="day2">';
for ($z=1;$z<=31;$z++)
{
if ($_POST["day2"]==$z)
{ print '<option selected value="'; if ($z>9) print $z; else print '0'.$z; print '">'; print $z; }
else { print '<option value="'; if ($z>9) print $z; else print '0'.$z; print '">'; print $z; }
}
print '</select>';
print '<select style="font-family:verdana; font-size:11px" id="month2" name="month2">';
for ($z=1;$z<=12;$z++)
{
print '<option value="'.$z.'" ';
if ($z==$_POST["month2"]) 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="year2" name="year2" style="font-family:verdana; font-size:11px">';
for ($z=0;$z<=5;$z++)
{
print '<option value="'.($today["year"]-$z).'" ';
if (($today["year"]-$z)==$_POST["year2"]) print 'selected';
print '>';
print $today["year"]-$z;
}
print '</select> ';
print '<input name="add" value="âûâåñòè" type="submit">';
print '</form>';
?>