> </tr>
</table>
</td>
<td valign="top" width="20%" bgcolor="#CFBD9B">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td background="class/image/yellowbar3.gif" class="white12" height="19">
<div align="center">悄悄话</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFEEFF">
<div align="center" class="brown9" >
<?php
$result = mysql_query("SELECT * FROM privatenote where touser='$userregister'",$db);
$row=mysql_num_rows($result); //悄悄话总数
$unlook=0;
if (!$row==0){
for ($i=0;$i<$row;$i++){
$look=mysql_result($result,$i,'look');//计算未看过的悄悄话数目
if ($look=="0"){$unlook++;}
}
}
echo "您有".$unlook."条新悄悄话.总共有".$row."条。<a href='class/privatenote.php' target='_blank'>查看悄悄话</a>";
?>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFCC66" class="white12" height="20">
<div align="center">通讯录名单</div>
</td>
</tr>
<tr>
<td class="brown9" height="77" bgcolor="#FFFEEFF">
<?
$result = mysql_query("SELECT * FROM user",$db);
$row=mysql_num_rows($result);//查看结果有多少行,即成员人数
for ($i=0;$i<=($row-1);$i++){
$name=mysql_result($result,$i,'name');
echo $name,",";
}
mysql_close($db);
?>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CFBD9B" width="150">
<tr>
<td height="24" colspan="3"><img src="class/image/noticebar.gif" width="150" height="25"></td>
</tr>
<tr>
<td height="182" width="6%"> </td>
<td width="88%" bgcolor="#FFFFFF" background="class/image/fanhor01-1.jpg" class="deepblue10"><marquee direction=up scrollamount=1 scrolldelay=130 ><font color="#FFCC66">★</font>本网站已被搜狐、新浪收录<br>
<font color="#FFCC66">★</font>感谢leo为我们做的新动画logo.<br>
<font color="#FFCC66">★</font>经过数日的努力,终于用php和mysql数据库将新版同学录做好。特点:用户可在线修改资料;上传照片;悄悄话,oicq头像。<br>
<font color="#FFCC66">★</font>5460中国同学录上我们班已有14人加入。<br>
<font color="#FFCC66">★</font> 如果您有漂亮的扫描好的个人照片,请尽快上传。<br>
</marqee>
</td>
<td height="182" width="6%"> </td>
</tr>
<tr>
<td colspan="3" height="4"> </td>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center">
<p class="black9">您是第
<?php
//总计数器
$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>";
?>
&n
</table>
</td>
<td valign="top" width="20%" bgcolor="#CFBD9B">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td background="class/image/yellowbar3.gif" class="white12" height="19">
<div align="center">悄悄话</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFEEFF">
<div align="center" class="brown9" >
<?php
$result = mysql_query("SELECT * FROM privatenote where touser='$userregister'",$db);
$row=mysql_num_rows($result); //悄悄话总数
$unlook=0;
if (!$row==0){
for ($i=0;$i<$row;$i++){
$look=mysql_result($result,$i,'look');//计算未看过的悄悄话数目
if ($look=="0"){$unlook++;}
}
}
echo "您有".$unlook."条新悄悄话.总共有".$row."条。<a href='class/privatenote.php' target='_blank'>查看悄悄话</a>";
?>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFCC66" class="white12" height="20">
<div align="center">通讯录名单</div>
</td>
</tr>
<tr>
<td class="brown9" height="77" bgcolor="#FFFEEFF">
<?
$result = mysql_query("SELECT * FROM user",$db);
$row=mysql_num_rows($result);//查看结果有多少行,即成员人数
for ($i=0;$i<=($row-1);$i++){
$name=mysql_result($result,$i,'name');
echo $name,",";
}
mysql_close($db);
?>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CFBD9B" width="150">
<tr>
<td height="24" colspan="3"><img src="class/image/noticebar.gif" width="150" height="25"></td>
</tr>
<tr>
<td height="182" width="6%"> </td>
<td width="88%" bgcolor="#FFFFFF" background="class/image/fanhor01-1.jpg" class="deepblue10"><marquee direction=up scrollamount=1 scrolldelay=130 ><font color="#FFCC66">★</font>本网站已被搜狐、新浪收录<br>
<font color="#FFCC66">★</font>感谢leo为我们做的新动画logo.<br>
<font color="#FFCC66">★</font>经过数日的努力,终于用php和mysql数据库将新版同学录做好。特点:用户可在线修改资料;上传照片;悄悄话,oicq头像。<br>
<font color="#FFCC66">★</font>5460中国同学录上我们班已有14人加入。<br>
<font color="#FFCC66">★</font> 如果您有漂亮的扫描好的个人照片,请尽快上传。<br>
</marqee>
</td>
<td height="182" width="6%"> </td>
</tr>
<tr>
<td colspan="3" height="4"> </td>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center">
<p class="black9">您是第
<?php
//总计数器
$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>";
?>
&n