forked from leonardoxc/leonardoxc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMENU_dates.php
71 lines (68 loc) · 2.29 KB
/
MENU_dates.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
<?php
/************************************************************************/
/* Leonardo: Gliding XC Server */
/* ============================================ */
/* */
/* Copyright (c) 2004-5 by Andreadakis Manolis */
/* http://sourceforge.net/projects/leonardoserver */
/* http://leonardo.thenet.gr */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
?>
<div id="supernote-note-selDate" class="snp-triggeroffset notedefault" style="width:300px">
<a name="selDate"></a>
<table width=100% cellpadding="2" cellspacing="0">
<tr>
<td colspan=3 height=25 class="main_text" bgcolor="#40798C"><div class="style1" align="center"><strong><?=_SELECT_DATE?></strong></div></td>
</tr>
<tr>
<td class="tableBox" valign="top">
<strong>Recent</strong>
</td>
<td class="tableBox" valign="top">
<strong><?=_YEAR?></strong>
</td>
<td class="tableBox" valign="top">
<strong><?=_MONTH?></strong>
</td>
</tr>
<tr>
<td class="tableBox sp" valign="top">
<?
$month_num=date("m");
$year_num=date("Y");
for ($i=0;$i<8;$i++) {
echo "<a href='?name=".($module_name.$query_str)."&year=".$year_num."&month=".
$month_num."'>".($monthList[$month_num-1]." ".$year_num)."</a><br>";
$month_num--;
if ($month_num==0) {
$year_num--;
$month_num=12;
}
$month_num=sprintf("%02s",$month_num);
}
?>
</td>
<td class="tableBox sp" valign="top">
<?
echo "<a href='?name=$module_name&year=0&month=0'>"._ALL_YEARS."</a><br>";
for($i=date("Y");$i>=1998;$i--)
echo "<a href='?name=$module_name&year=$i&month=0'>$i</a><br>";
?>
</td>
<td class="tableBox sp" valign="top">
<?
$i=1;
foreach ($monthList as $monthName) {
$k=sprintf("%02s",$i);
echo "<a href='?name=$module_name&month=$k'>$monthName</a><br>";
$i++;
}
?>
</td>
</tr>
</TABLE>
</div>