杏林同学录(二)

成员主页:main.php

 1<html>
 2<head>
 3<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
 4<title>欢迎来到杏林同学录</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 width="241">
27<div align="right"><img alt="同学录" height="60" src="class/image/classlogo.gif" width="224"/>
28</div>
29</td>
30<td width="508"> <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">
31<param name="movie" value="class/image/2.swf"/>
32<param name="quality" value="high"/>
33<embed align="right" height="60" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" src="class/image/2.swf" type="application/x-shockwave-flash" width="478"/>
34</object></td>
35</tr>
36</table>
37<table border="0" cellpadding="0" cellspacing="0" width="755">
38<tr>
39<td class="black9" width="302"> 北京时间   
40<? echo date("Y年m月d日");?>
41</td>
42<td class="black9" width="453">   

echo "您好,",$name,"。";
echo "欢迎您第", $count,"次光临本站。";

  1</td>
  2</tr>
  3</table>
  4<table border="0" cellpadding="0" cellspacing="0" width="755">
  5<tr>
  6<td bgcolor="#FFeeFF" valign="top" width="19%">
  7<table border="0" cellpadding="0" cellspacing="0" width="100%">
  8<tr>
  9<td background="class/image/redbar.gif" height="20">
 10<div align="center" class="yellow12">同学录</div>
 11</td>
 12</tr>
 13<tr>
 14<td height="19">
 15<div align="center"><a class="purple" href="class/address.php" target="_blank" title="最新通讯信息">【班通讯录】</a></div>
 16</td>
 17</tr>
 18<tr>
 19<td height="19">
 20<div align="center" class="purple"><a class="purple" href="class/modify.php" target="_blank" title="修改个人资料">【资料修改】</a></div>
 21</td>
 22</tr>
 23<tr>
 24<td height="19">
 25<div align="center" class="purple"><a class="purple" href="class/upload/uploadphoto.php" target="_blank" title="修改个人资料">【上传照片】</a></div>
 26</td>
 27</tr>
 28<tr>
 29<td height="21">
 30<div align="center"><a class="purple" href="class/classphoto.php" target="_blank">【班级照片】</a></div>
 31</td>
 32</tr>
 33<tr>
 34<td height="19">
 35<div align="center"><a class="purple" href="class/privatephoto.php" target="_blank" title="展现个人风采">【个人照片】</a></div>
 36</td>
 37</tr>
 38<tr>
 39<td height="19">
 40<div align="center"><a class="purple" href="class/shoolphoto.php" target="_blank" title="唤起你美好回忆">【校园风光】</a></div>
 41</td>
 42</tr>
 43<tr>
 44<td height="19">
 45<div align="center"><a class="purple" href="class/privatenote.php" target="_blank" title="给单个同学留言">【私人留言】</a></div>
 46</td>
 47</tr>
 48<tr>
 49<td height="19">
 50<div align="center"><a class="purple" href="class/notebook/index.php" target="_blank" title="留下你的祝福">【班留言板】</a></div>
 51</td>
 52</tr>
 53<tr bgcolor="#FF99CC">
 54<td background="class/image/redbar.gif" bgcolor="#FF99CC" height="20">
 55<div align="center" class="yellow12">班级聊天室</div>
 56</td>
 57</tr>
 58<tr>
 59<td height="21">
 60<div align="center" class="purple"> 【进入班级聊天室】 </div>
 61</td>
 62</tr>
 63<tr>
 64<td>
 65<div align="center" class="purple">【班级聊天室帮助】</div>
 66</td>
 67</tr>
 68<tr>
 69<td background="class/image/redbar.gif" height="20">
 70<div align="center" class="yellow12">友情链接</div>
 71</td>
 72</tr>
 73<tr>
 74<td>
 75<div align="center"><a href="http://www.medguider.com" target="_blank" title="neo的个人主页"><img border="0" height="31" src="class/image/logo2.gif" width="82"/></a></div>
 76</td>
 77</tr>
 78<tr>
 79<td>
 80<div align="center"><a href="http://www.5460.net" target="_blank"><img alt="国内最好的同学录" border="0" height="33" src="class/image/a31.gif" width="81"/></a></div>
 81</td>
 82</tr>
 83<tr>
 84<td height="24">
 85<div align="center" class="purple"><a class="purple" href="http://medonline.51.net/" target="_blank">杏林医疗在线</a></div>
 86</td>
 87</tr>
 88<tr>
 89<td height="22">
 90<div align="center"><a class="purple" href="http://alumni.chinaren.com" target="_blank" title="非常有特色的同学录">ChinaRen校友录</a></div>
 91</td>
 92</tr>
 93<tr>
 94<td bgcolor="#FFCCFF" height="22">
 95<div align="center"><a class="purple" href="superadmin.php" target="_blank">班级管理</a></div>
 96</td>
 97</tr>
 98</table>
 99</td>
100<td height="308" width="61%">
101<div align="center"><img alt="这里换成班级照片" height="166" src="class/image/821036.jpg" width="400"/></div>
102<table align="center" border="1" bordercolordark="#FFFFFF" bordercolorlight="#9999FF" cellpadding="0" cellspacing="0" height="109" width="87%">
103<tr>
104<td>
105<div align="center" class="redlarge"><b>祝贺词</b> </div>
106</td>
107</tr>
108<tr>
109<td class="brown9" height="19"><img height="16" src="class/image/bz.gif" width="15"/>   
1101.欢迎使用杏林同学录。</td>
111</tr>
112<tr>
113<td class="brown9"><img height="16" src="class/image/bz.gif" width="15"/>   
1142.如果发现bug,请尽快通知我。</td>
115</tr>
116<tr>
117<td class="brown9"> <img height="16" src="class/image/bz.gif" width="15"/>   
1183.技术支持: <a class="purple" href="mailto:[email protected]">[email protected]</a></td>
119</tr>
120<tr>
121<td>
122<div align="center" class="redlarge"> 最新留言</div>
123</td>
124</tr>
125<tr>
126<td class="brown9">   

$result = mysql_query("SELECT * FROM notebook",$db);
$row=mysql_num_rows($result);
if ($row&lt;=1) {$x=$row;} else {$x=2;}
$result = mysql_query("select * from notebook ORDER BY time DESC limit 0,$x",$db);//读取最近2条留言
for ($i=0;$i&lt;=($x-1);$i++) {
$user=mysql_result($result,$i,'user');
$resulty=mysql_query("select * from user where user='$user'",$db);
$name=mysql_result($resulty,0,'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/>";
}

 1</td>
 2</tr>
 3</table>
 4</td>
 5<td bgcolor="#CFBD9B" valign="top" width="20%">
 6<table border="0" cellpadding="0" cellspacing="0" width="100%">
 7<tr>
 8<td background="class/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">   

$result = mysql_query("SELECT * FROM privatenote where touser='$userregister'",$db);
$row=mysql_num_rows($result); //悄悄话总数
$unlook=0;
if (!$row==0){
for ($i=0;$i&lt;$row;$i++){
$look=mysql_result($result,$i,'look');//计算未看过的悄悄话数目
if ($look=="0"){$unlook++;}
}
}
echo "您有".$unlook."条新悄悄话.总共有".$row."条。<a href="class/privatenote.php" target="_blank">查看悄悄话</a>";

 1</div>
 2</td>
 3</tr>
 4<tr>
 5<td bgcolor="#FFCC66" class="white12" height="20">
 6<div align="center">通讯录名单</div>
 7</td>
 8</tr>
 9<tr>
10<td bgcolor="#FFFEEFF" class="brown9" height="77">
11<?   
12$result = mysql_query("SELECT * FROM user",$db);   
13$row=mysql_num_rows($result);//查看结果有多少行,即成员人数   
14for ($i=0;$i<=($row-1);$i++){   
15$name=mysql_result($result,$i,'name');   
16echo $name,",";   
17}   
18mysql_close($db);   
19?>
20</td>
21</tr>
22<tr>
23<td>
24<table bgcolor="#CFBD9B" border="0" cellpadding="0" cellspacing="0" width="150">
25<tr>
26<td colspan="3" height="24"><img height="25" src="class/image/noticebar.gif" width="150"/></td>
27</tr>
28<tr>
29<td height="182" width="6%"> </td>
30<td background="class/image/fanhor01-1.jpg" bgcolor="#FFFFFF" class="deepblue10" width="88%"><marquee direction="up" scrollamount="1" scrolldelay="130"><font color="#FFCC66">★</font>本网站已被搜狐、新浪收录<br/>
31<font color="#FFCC66">★</font>感谢leo为我们做的新动画logo.<br/>
32<font color="#FFCC66">★</font>经过数日的努力,终于用php和mysql数据库将新版同学录做好。特点:用户可在线修改资料;上传照片;悄悄话,oicq头像。<br/>
33<font color="#FFCC66">★</font>5460中国同学录上我们班已有14人加入。<br/>
34<font color="#FFCC66">★</font> 如果您有漂亮的扫描好的个人照片,请尽快上传。<br/>
35
36</marquee></td>
37<td height="182" width="6%"> </td>
38</tr>
39<tr>
40<td colspan="3" height="4"> </td>
41</tr>
42</table> </td>
43</tr>
44</table>
45</td>
46</tr>
47</table>
48<div align="center">
49<p class="black9">您是第   

//总计数器
$fs = fopen("class/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></span></p>
4</div>
5</body>
6</html>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus