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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
|
<?php require_once('../webadmin/configure.php'); ?> <!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>彩虹工程</title> <link href="../css/style_t.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="../js/csshorizontalmenu.js"></script> <script type="text/javascript" language="javascript"> <!-- function FP_swapImg() {//v1.0 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length; n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm; elm.$src=elm.src; elm.src=args[n+1]; } } }
function FP_preloadImgs() {//v1.0 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array(); for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; } }
function FP_getObjectByID(id,o) {//v1.0 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id); else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el; if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c) for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; } f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements; for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } } return null; }
function FP_swapImgRestore() {//v1.0 var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) { var elm=doc.$imgSwaps[i]; if(elm) { elm.src=elm.$src; elm.$src=null; } } doc.$imgSwaps=null; } } // --> </script> <? $sql = "SELECT * FROM slide1 ORDER BY slide1id DESC"; $result = mysql_query($sql);
if (mysql_num_rows($result)> 0) { $x =0; while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { //echo "sql img = ".$row["slide1image"]; $php_array[$x] = "../webadmin/slide1/".$row["slide1image"]; $x++; } }
?> <script language="JavaScript1.1"> // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // NS4-6,IE4-6 // Fade effect only in IE; degrades gracefully
// ======================================= // set the following variables // =======================================
// Set slideShowSpeed (milliseconds) var slideShowSpeed = 5000
// Duration of crossfade (seconds) var crossFadeDuration = 3
// Specify the image files //var Pic = new Array() // don't touch this // to add more images, just continue // the pattern, adding to the array below
var Pic = new Array <? for ($i=0; $i<count($php_array);$i++) { echo 'Pic['.$i.']=["'.$php_array[$i].'"];'; } ?>
// ======================================= // do not edit anything below this line // =======================================
var t var j = 0 var p = Pic.length
var preLoad = new Array() for (i = 0; i < p; i++){ preLoad[i] = new Image() preLoad[i].src = Pic[i] }
function runSlideShow(){ if (document.all){ document.images.SlideShow.style.filter="blendTrans(duration=2)" document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)" document.images.SlideShow.filters.blendTrans.Apply() } document.images.SlideShow.src = preLoad[j].src if (document.all){ document.images.SlideShow.filters.blendTrans.Play() } j = j + 1 if (j > (p-1)) j=0 t = setTimeout('runSlideShow()', slideShowSpeed) } </script> </head> <body onload="runSlideShow(); FP_preloadImgs('../images/tab-Eng-mo.gif','../images/tab-TC-mo.gif','../images/tab-SC-mo.gif','../images/btn-go-over.gif')"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="head2"> <tr> <td><!-- Header --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td rowspan="2" class="logo"><a href="index.php" target="_self"><img src="../images/title-logo.gif" width="470" height="151" alt="logo" border="0" /></a></td> <td class="tab"><a href="../en/index.php" target="_self"><img src="../images/tab-Eng-live.gif" id="img1" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,'img1','../images/tab-Eng-mo.gif');" border="0" alt="English" /></a><a href="../tc/index.php" target="_self"><img src="../images/tab-TC.gif" id="img2" onMouseOver="FP_swapImg(1,1,'img2','../images/tab-TC-mo.gif');" onMouseOut="FP_swapImgRestore()" border="0" alt="Traditional Chinese" /></a><a href="../sc/index.php" target="_self"><img src="../images/tab-SC.gif" id="img3" onmouseover="FP_swapImg(1,1,'img3','../images/tab-SC-mo.gif');" onmouseout="FP_swapImgRestore()" border="0" alt="Simplifed Chinese" /></a></td> <td rowspan="2" valign="top"><img src="../images/topright.gif" alt="space" /></td> </tr> <tr> <td class="date" valign="middle"><script type="text/javascript" src="../js/displaydate.js"></script></td> </tr> </table> </td><!-- End Header --> </tr> <tr> <td align="left" valign="top"><!-- Menu --> <div class="horizontalcssmenu"> <ul id="cssmenu1"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="../images/nav-headHK.gif" width="191" height="40" /></td> <td background="../images/nav-bg.jpg"> <li><a>Region</a> <ul> <li><a href="index.php">Hong Kong</a></li> <li><a href="http://www.therainbows.org">USA</a></li> </ul> </li> </td> <td background="../images/nav-bg.jpg"> <li><a>News</a> <ul> <li><a href="news.php">Current News</a></li> <li><a href="archive.php">News Archive</a></li> </ul> </li></td> <td background="../images/nav-bg.jpg"> <li><a>Sharing Love</a> <ul> <li><a href="ttm.php">Testimonials</a></li> <li><a href="fback.php">Feedback</a></li> </ul> </li></td> <td background="../images/nav-bg.jpg"> <li><a>Media Gallery</a> <ul> <li><a href="gallery.php">Photo Albums</a></li> <li><a href="review.php">Review</a></li> </ul> </li></td> <td background="../images/nav-bg.jpg"> <li><a>Who We Are</a> <ul> <? $sql = "SELECT * "; $sql .= "FROM categories "; $sql .= "WHERE parentid = '0' "; $sql .= "order by sortby ASC, catid DESC "; //echo $sql; $result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { echo "<li><a href='about.php?pid=". $row{'catid'} ."&catid=". $row{'catid'} ."'>". $row{'catnameen'} ."</a></li>"; } ?> </ul> </li></td> <td background="../images/nav-bg.jpg"> <li><a>Sponsorship Programme</a> <ul> <li><a href="de.php">Introduction</a></li> <li><a href="video.php">Voice of Parents</a></li> <li><a href="letter.php">Thank you letters</a></li> <li><a href="action.php">Your Response</a></li> </ul> </li></td> <td><img src="../images/nav-end.gif" width="40" height="40" /></td> </tr> </table> </ul> </div> </td><!-- End Menu --> </tr> <tr> <td><!-- Slideshow 1 --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="leftShadow"><img alt="" src="../images/shim.gif" width="40" height="1" /></td> <td id="VU" ><img src="../images/shim.gif" name='SlideShow' width="672" height="255" align="center"></td> <td class="notepad"> <? $sql = "SELECT * FROM intro2 "; $result = mysql_query($sql); $row = mysql_fetch_array($result,MYSQL_ASSOC); ?> <? echo $row{'intro2descen'}; ?></td> </tr> </table> </td><!-- End Slideshow 1 --> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td rowspan="2" class="leftShadow"> </td> <td class="index"> <table style="width: 100%" cellspacing="5" cellpadding="0"> <tr align="center"> <td colspan="3" class="index"> <? $sql = "SELECT * "; $sql .= "FROM intro "; $result = mysql_query($sql); $row = mysql_fetch_array($result,MYSQL_ASSOC); ?> <h1><? echo $row{'introtitleen'}; ?></h1> <? echo $row{'introdescen'}; ?> </td> </tr> <tr> <td class="index" colspan="3"> <h1>感恩回顧相片</h1> <div id="thanksgiving"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this rotator.</div> <script type="text/javascript" src="../slideshow/swfobject.js"></script> <script type="text/javascript"> var s1 = new SWFObject("../slideshow/imagerotator.swf","rotator","450","300","7"); s1.addParam("allowfullscreen","true"); s1.addVariable("file","../slideshow/index.xml"); s1.addVariable("width","450"); s1.addVariable("height","300"); s1.write("thanksgiving"); </script>
</td> </tr> </table> </td> <td rowspan="2" class="rightShadow"> </td> </tr> <tr> <td class="siteInfo"> <a href="sitemap.php" target="_self">Site Map</a> | <a href="policy.php" target="_self">Copyright Policy</a> | <a href="contact.php" target="_self">Contact Info</a> | <a href="links.php" target="_self">Links</a> </td> </tr> </table>
</td> </tr> <tr> <td class="footer">Copyright © 2010 Rainbow Missions. All rights reserved. | Sponsored by One Solution Limited. <br /><a href="http://www.onesolution.com.hk" target="_blank"><img src="../images/webicon137w23h.jpg" width="137" height="23" border="0" /></a> </td> </tr> </table>
</body>
</html>
|