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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
<?php require("configure.php"); $catid = (int)$_GET['catid']; $pid = (int)$_GET['pid'];
?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SK Dragon Boat</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <link rel="stylesheet" type="text/css" href="css/ddlevelsmenu-base.css" /> <link rel="stylesheet" type="text/css" href="css/ddlevelsmenu-topbar.css" /> <script type="text/javascript" src="css/ddlevelsmenu.js"></script> <script> <!-- /* Live Date Script- © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com */
var dayarray=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat") var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
function getthedate(){ var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var hours=mydate.getHours() var minutes=mydate.getMinutes() var seconds=mydate.getSeconds() var dn="AM" if (hours>=12) dn="PM" if (hours>12){ hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds //change font size here //var cdate="<small><font color='C1272D' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn+"</b></font></small>" var cdate="<small><font color='C1272D' face='Arial'><b>"+hours+":"+minutes+":"+seconds+" "+dn+" "+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" </b></font></small>" if (document.all) document.all.clock.innerHTML=cdate else if (document.getElementById) document.getElementById("clock").innerHTML=cdate else document.write(cdate) } if (!document.all&&!document.getElementById) getthedate() function goforit(){ if (document.all||document.getElementById) setInterval("getthedate()",1000) }
function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> </head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" onLoad="goforit()"> <table width="1000" border="0" cellpadding="0" cellspacing="0"> <tr> <td><table width="1000" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="250" align="left" valign="top" background="images/logobg.jpg"><img src="images/logo.jpg" width="250" height="633" /></td> <td width="750" align="left" valign="top"><table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="105" colspan="2" align="left" valign="top" background="images/menubg.jpg"><table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="50" align="right" valign="middle" class="langtxt">請選擇語言 <select name="menu1" onchange="MM_jumpMenu('parent',this,0)"> <option value="tc">繁體中文</option> <option value="en">English</option> </select> </td> </tr> <tr> <td align="right" valign="top"> <div id="ddtopmenubar" class="mattblackmenu"> <ul> <? load(0, 0); function load($p, $space) { $sql = "SELECT * "; $sql .= "FROM categories "; //$sql .= "ON template.templateid = categories.templateid "; $sql .= "where parentid = $p "; $sql .= "order by sortby desc "; // echo $sql; $result1 = mysql_query($sql); $n=1; $count = mysql_num_rows($result1); while ($row = mysql_fetch_array($result1,MYSQL_ASSOC)) { if ($space <> 0 && $n == 1) echo "<ul id='". $row{'parentid'} ."' class='ddsubmenustyle'>"; if($row{'link'} == '') { $str = "<li><a href='template1.php?pid=".$row{'catid'}."&catid=". $row{'catid'} ."'"; } else { $str = "<li><a href='". $row{'link'} ."'"; } $sql2 = " select * from categories where parentid = ".$row{'catid'}; $res2 = mysql_query($sql2); if (mysql_num_rows($res2) > 0) $str .= "rel='". $row{'catid'} ."' "; $str .= ">". $row{'catname'} . "</a>"; echo $str; $n++; load($row{'catid'}, $space+1); echo "</li>"; if ($space <> 0 && $count < $n) echo "</ul>"; } } ?> </ul> </div> <script type="text/javascript"> ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar") </script> </td> </tr> </table></td> </tr> <tr> <td width="35" align="left" valign="top"><img src="images/titlespace.jpg" width="35" height="70" /></td> <td width="715" align="left" valign="top"><table width="715" border="0" cellpadding="0" cellspacing="0"> <? $sql = "SELECT * "; $sql .= "FROM categories "; $sql .= "where categories.catid = '". $catid ."' "; $result = mysql_query($sql); $row = mysql_fetch_array($result,MYSQL_ASSOC) ?> <tr> <td height="80" align="left" class="titletxt"><? echo $row{'catname'} ?></td> <td align="right"><span id="clock"></span><br> <a href="http://www.hko.gov.hk/wxinfo/currwx/fndc.htm" target="_blank"><img src="images/weatherlogo.jpg" width="119" height="31" border="0" /></a></td> </tr> <tr> <td colspan="2" class="txt"> <table width="700" border="0"> <? $sql = "SELECT * "; $sql .= "FROM news "; $sql .= "ORDER BY newsdate desc ";
$result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { ?> <tr> <td height="25" class="subtitletxt"><? echo $row{'newsdate'} ?></td> </tr> <tr> <td height="25" class="subtitletxt"><a name="<? echo $row{'newsid'} ?>" id="<? echo $row{'newsid'} ?>"></a><b><? echo $row{'newstitle'} ?></b></td> </tr> <tr> <td class="newstxt"><? echo $row{'newsdesc'} ?></td> </tr> <tr> <td height="30"><hr></td> </tr> <? } ?> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><img src="images/footer.jpg" width="1000" height="148" /></td> </tr> <tr> <td height="48" align="left" valign="top" background="images/footertxt.jpg" class="footertxt" style="background-repeat:no-repeat"><div align="center">© 2009 Copyright SK Dragon Boat. All Rights Reserved<br /> Powered by <a href="http://www.onesolution.com.hk" target="_blank">One Solution Limited</a>. </div></td> </tr> </table> </body> </html>
|