-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecm_all_menu.php
73 lines (70 loc) · 5.44 KB
/
ecm_all_menu.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
<td align="left" valign="top" width="130">
<table border="0" cellpadding="0" cellspacing="0" width="130">
<tbody><tr>
<td bgcolor="#1881b6" nowrap="nowrap" height="20" valign="middle" width="11"><img src="files/icons_featured_co.gif" height="17" hspace="1" vspace="1" width="20"></td>
<td class="BlockHeaderLeftRight" height="20" width="108"> <span id="IndicesLbl">Äàòà íà÷àëà</span></td>
<td class="vdots" width="1"></td></tr>
<?php
$today=getdate();
if ($_GET["year"]=='') $ye=$today["year"];
else $ye=$_GET["year"];
if ($_GET["styear"]=='') $styear=$today["year"];
else $styear=$_GET["styear"];
if ($_GET["enyear"]=='') $enyear=$today["year"];
else $enyear=$_GET["enyear"];
if ($_GET["start"]=='') $mn=$today["mon"];
else $mn=$_GET["start"];
if ($_GET["day"]=='') $day=$today["mday"];
else $day=$_GET["day"];
//echo $styear;
for ($pm=1; $pm<=12; $pm++)
{
$date=sprintf ("%d%02d%02d000000",$ye-1,$pm,1);
$month=$pm; include ("time.inc");
if ($pm==$mn && $styear==($today["year"]-1)) print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td bgcolor="#dedede"> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$pm.'&end='.$_GET["end"].'&date='.$date.'&styear='.($ye-1).'&enyear='.$_GET["enyear"].'">'.$month.', '.($ye-1).'</a></td><td class="vdots"></td></tr>';
else print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$pm.'&end='.$_GET["end"].'&date='.$date.'&styear='.($ye-1).'&enyear='.$_GET["enyear"].'">'.$month.', '.($ye-1).'</a></td><td class="vdots"></td></tr>';
}
for ($pm=1; $pm<=12; $pm++)
{
$date=sprintf ("%d%02d%02d000000",$ye,$pm,1);
$month=$pm; include ("time.inc");
if ($pm==$mn && $styear==$today["year"]) print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td bgcolor="#dedede"> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$pm.'&end='.$_GET["end"].'&date='.$date.'&styear='.($ye).'&enyear='.$_GET["enyear"].'">'.$month.', '.$ye.'</a></td><td class="vdots"></td></tr>';
else print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$pm.'&end='.$_GET["end"].'&date='.$date.'&styear='.($ye).'&enyear='.$_GET["enyear"].'">'.$month.', '.$ye.'</a></td><td class="vdots"></td></tr>';
}
?>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="130">
<tbody><tr>
<td bgcolor="#1881b6" nowrap="nowrap" height="20" valign="middle" width="11"><img src="files/icons_featured_co.gif" height="17" hspace="1" vspace="1" width="20"></td>
<td class="BlockHeaderLeftRight" height="20" width="108"> <span id="IndicesLbl">Äàòà êîíöà</span></td>
<td class="vdots" width="1"></td></tr>
<?php
$today=getdate();
if ($_GET["year"]=='') $ye=$today["year"];
else $ye=$_GET["year"];
if ($_GET["styear"]=='') $styear=$today["year"];
else $styear=$_GET["styear"];
if ($_GET["enyear"]=='') $enyear=$today["year"];
else $enyear=$_GET["enyear"];
if ($_GET["end"]=='') $mn=$today["mon"];
else $mn=$_GET["end"];
if ($_GET["day"]=='') $day=$today["mday"];
else $day=$_GET["day"];
for ($pm=1; $pm<=12; $pm++)
{
$date=sprintf ("%d%02d%02d000000",$ye-1,$pm,1);
$month=$pm; include ("time.inc");
if ($pm==$mn && $styear==($today["year"]-1)) print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td bgcolor="#dedede"> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$_GET["start"].'&end='.$pm.'&date='.$date.'&styear='.$_GET["styear"].'&enyear='.($ye-1).'">'.$month.', '.($ye-1).'</a></td><td class="vdots"></td></tr>';
else print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$_GET["start"].'&end='.$pm.'&date='.$date.'&styear='.$_GET["styear"].'&enyear='.($ye-1).'">'.$month.', '.($ye-1).'</a></td><td class="vdots"></td></tr>';
}
for ($pm=1; $pm<=12; $pm++)
{
$date=sprintf ("%d%02d%02d000000",$ye,$pm,1);
$date2=sprintf ("%d%02d%02d000000",2010,$pm,1);
$month=$pm; include ("time.inc");
if ($pm==$mn) print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td bgcolor="#dedede"> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$_GET["start"].'&end='.$pm.'&styear='.$_GET["styear"].'&enyear='.($ye).'">'.$month.', '.$ye.'</a></td><td class="vdots"></td></tr>';
else print '<tr><td align="center" style="font-family: Verdana; font-size: xx-small; color: #006995"><img alt="" src="files/SideArrow.gif" hspace="3"></td><td> <a class="clickablebluetext" href="index.php?sel=ecm_all&start='.$_GET["start"].'&end='.$pm.'&styear='.$_GET["styear"].'&enyear='.($ye).'">'.$month.', '.$ye.'</a></td><td class="vdots"></td></tr>';
}
?>
</table></td>