客人主页:class/guest.php
1<html>
2<head>
3<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
4<title>欢迎来到94级1班同学录</title>
5<style type="text/css">
6<!--
7.deepblue10 { font-family: "宋体"; font-size: 10pt; color: #3333FF; text-decoration: none}
8A.purple:hover { font-size: 9pt; color: #3366FF; background-color: #99FFFF; text-decoration: none}
9A.purple:link { font-size: 10pt; text-decoration: none}
10a:hover { text-decoration: none}
11a:visited { text-decoration: none}
12A.purple { font-size: 10pt; color: #CC00FF; text-decoration: none}
13.white12 { font-size: 12pt; color: #FFFFFF; text-decoration: none}
14.purple { color: #CC00FF; text-decoration: none; font-size: 10pt}
15.brown9 { font-size: 10pt; color: #6600CC; text-decoration: none}
16.black9 { font-size: 9pt; text-decoration: none}
17.yellow12 { font-size: 12px; color: #9900CC; text-decoration: none; font-weight: normal}
18.redlarge { font-size: 18px; font-weight: bolder; color: #FF00CC}
19.grey9 { font-size: 9pt; color: #CCCCCC}
20\-->
21</style>
22</head>
23<body bgcolor="#FFFFFF">
24<table border="1" bordercolordark="#FFFFFF" bordercolorlight="#FF33CC" cellpadding="0" cellspacing="0" height="65" width="755">
25<tr>
26<td>
27<div align="right"><img alt="同学录" height="60" src="image/classlogo.gif" width="224"/></div>
28</td>
29<td><object align="right" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" height="60" width="478">
30<param name="movie" value="image/2.swf"/>
31<param name="quality" value="high"/>
32<embed align="right" height="60" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" src="image/2.swf" type="application/x-shockwave-flash" width="478"/>
33</object></td>
34</tr>
35</table>
36<table border="0" cellpadding="0" cellspacing="0" width="755">
37<tr>
38<td class="black9" width="302"> 北京时间
39<? echo date("Y年m月d日");?>
40</td>
41<td class="black9" width="453">您好,客人!您目前只能浏览班级照片和校园风光。请到"访客留言"留下您的祝福。</td>
42</tr>
43</table>
44<table border="0" cellpadding="0" cellspacing="0" width="755">
45<tr>
46<td bgcolor="#FFeeFF" valign="top" width="19%">
47<table border="0" cellpadding="0" cellspacing="0" width="100%">
48<tr>
49<td background="image/redbar.gif" height="20">
50<div align="center" class="yellow12">同学录</div>
51</td>
52</tr>
53<tr>
54<td height="19">
55<div align="center" class="purple">【班通讯录】</div>
56</td>
57</tr>
58<tr>
59<td height="19">
60<div align="center" class="purple">【资料修改】</div>
61</td>
62</tr>
63<tr>
64<td height="19">
65<div align="center" class="purple">【上传照片】</div>
66</td>
67</tr>
68<tr>
69<td height="19">
70<div align="center"><a class="purple" href="classphoto.php" target="_blank" title="毕业照">【班级照片】</a></div>
71</td>
72</tr>
73<tr>
74<td height="19">
75<div align="center" class="purple">【个人照片】</div>
76</td>
77</tr>
78<tr>
79<td height="19">
80<div align="center"><a class="purple" href="shoolphoto.php" target="_blank" title="唤起你美好回忆">【校园风光】</a></div>
81</td>
82</tr>
83<tr>
84<td height="19">
85<div align="center" class="purple">【私人留言】</div>
86</td>
87</tr>
88<tr>
89<td height="19">
90<div align="center" class="purple">【<a class="purple" href="notebookg/index.php">访客留言</a>】</div>
91</td>
92</tr>
93<tr bgcolor="#FF99CC">
94<td background="image/redbar.gif" bgcolor="#FF99CC" height="20">
95<div align="center" class="yellow12">【班级聊天室】</div>
96</td>
97</tr>
98<tr>
99<td height="19">
100<div align="center" class="purple">【进入班级聊天室】</div>
101</td>
102</tr>
103<tr>
104<td>
105<div align="center" class="purple">【班级聊天室帮助】</div>
106</td>
107</tr>
108<tr>
109<td background="image/redbar.gif" height="20">
110<div align="center" class="yellow12">友情链接</div>
111</td>
112</tr>
113<tr>
114<td>
115<div align="center"><a href="http://www.medguider.com" target="_blank" title="neo的个人主页"><img border="0" height="31" src="image/logo2.gif" width="82"/></a></div>
116</td>
117</tr>
118<tr>
119<td>
120<div align="center"><a href="http://www.5460.net" target="_blank"><img alt="国内最好的同学录" border="0" height="33" src="image/a31.gif" width="81"/></a></div>
121</td>
122</tr>
123<tr>
124<td height="24">
125<div align="center" class="purple"><a class="purple" href="http://medonline.51.net/" target="_blank">杏林医疗在线</a></div>
126</td>
127</tr>
128<tr>
129<td height="22">
130<div align="center"><a class="purple" href="http://www.oso.com.cn">奥索网</a></div>
131</td>
132</tr>
133<tr>
134<td height="22">
135<div align="center"><a class="purple" href="http://m9401.alumni.chinaren.com" target="_blank" title="非常有特色的同学录">ChinaRen校友录</a></div>
136</td>
137</tr>
138<tr bgcolor="#FFCCCC">
139<td bgcolor="#FFCCCC" height="22">
140<div align="center" class="purple"><a class="purple" href="mailto:[email protected]">与我联系</a></div>
141</td>
142</tr>
143</table>
144</td>
145<td height="308" width="61%">
146<div align="center"><img height="166" src="image/821036.jpg" width="400"/></div>
147<table align="center" border="1" bordercolordark="#FFFFFF" bordercolorlight="#9999FF" cellpadding="0" cellspacing="0" height="109" width="87%">
148<tr>
149<td>
150<div align="center" class="redlarge"><b>祝贺词</b></div>
151</td>
152</tr>
153<tr>
154<td class="brown9" height="21"><img height="16" src="image/bz.gif" width="15"/>
1551.欢迎使用杏林同学录。</td>
156</tr>
157<tr>
158<td class="brown9"><img height="16" src="image/bz.gif" width="15"/> 2.如果发现bug,请尽快通知我。</td>
159</tr>
160<tr>
161<td class="brown9"> <img height="16" src="image/bz.gif" width="15"/>
1623.技术支持: <a class="purple" href="mailto:[email protected]">[email protected]</a>
163</td>
164</tr>
165<tr>
166<td>
167<div align="center" class="redlarge"> 最新访客留言</div>
168</td>
169</tr>
170<tr>
171<td class="brown9">
include "config.php";
$result = mysql_query("SELECT * FROM notebookg",$db);
$row=mysql_num_rows($result);//查看结果有多少行
if ($row<=1) {$x=$row;} else {$x=2;}
$result = mysql_query("select * from notebookg ORDER BY time DESC limit 0,$x",$db);//读取最近2条留言
for ($i=0;$i<=($x-1);$i++) {
$name=mysql_result($result,$i,'name');
$time=mysql_result($result,$i,'time');
$title=mysql_result($result,$i,'title');
$nnote=mysql_result($result,$i,'nnote');
echo "◆留言人:$name 时间 $time <br/>主题:$title<br/>内容:$nnote<br/>";
}
mysql_close($db);
1</td>
2</tr>
3</table>
4</td>
5<td valign="top" width="20%">
6<table border="0" cellpadding="0" cellspacing="0" width="150">
7<tr>
8<td background="image/yellowbar3.gif" class="white12" height="19">
9<div align="center">悄悄话</div>
10</td>
11</tr>
12<tr>
13<td bgcolor="#FFFEEFF">
14<div align="center" class="brown9"> 对不起,您不是本班同学</div>
15</td>
16</tr>
17<tr>
18<td bgcolor="#FFCC66" class="white12" height="20">
19<div align="center">最新加入</div>
20</td>
21</tr>
22<tr>
23<td bgcolor="#FFFEEFF" class="brown9" height="77">对不起,您不是本班同学</td>
24</tr>
25<tr>
26<td>
27<table bgcolor="#CFBD9B" border="0" cellpadding="0" cellspacing="0" width="150">
28<tr>
29<td colspan="3" height="24"><img height="25" src="image/noticebar.gif" width="150"/></td>
30</tr>
31<tr>
32<td height="182" width="6%"> </td>
33<td background="image/fanhor01-1.jpg" bgcolor="#FFFFFF" class="deepblue10" width="88%"><marquee direction="up" scrollamount="1" scrolldelay="130"><font color="#FFCC66">★</font>本网站已被搜狐、新浪收录<br/>
34<font color="#FFCC66">★</font>感谢leo为我们做的新动画logo.<br/>
35<font color="#FFCC66">★</font>经过数日的努力,终于用php和mysql数据库将新版同学录做好。特点:用户可在线修改资料;上传照片;悄悄话,oicq头像。<br/>
36<font color="#FFCC66">★</font>5460中国同学录上我们班已有14人加入。<br/>
37<font color="#FFCC66">★</font> 如果您有漂亮的扫描好的个人照片,请尽快上传。<br/>
38
39</marquee></td>
40<td height="182" width="6%"> </td>
41</tr>
42<tr>
43<td colspan="3" height="4"> </td>
44</tr>
45</table> </td>
46</tr>
47</table>
48</td>
49</tr>
50</table>
51<div align="center">
52<p class="black9">您是第
$fs = fopen("counter.txt","r+");
$hit = fgets($fs,10);
$hit+=1;
rewind($fs);
fwrite($fs,$hit,10);
$hit = number_format($hit);
fclose($fs);
echo "<font color="#33FF00">$hit</font>";
1位来访者!<br/>
2主页制作: <a class="black9" href="http://www.medguider.com">医学导航网</a><br/>
3<span class="grey9">本页使用了flash,如果不能正常浏览,请安装<a href="http://medonline.51.net/plugsin/InstallAXFlash.exe">flash插件</a>
4</span></p>
5</div>
6</body>
7</html>