您现在的位置: 军旅同心-旅游自驾-军旅文学 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 正文
杏林同学录(二)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005-9-10 14:36:03
>        </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%">&nbsp;</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%">&nbsp;</td>
                </tr>
                <tr>  
                   
                <td colspan="3" height="4">&nbsp;</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

上一页  [1] [2] [3] [4] 下一页


更多
免责声明:作品版权归所属媒体与作者所有!!本站刊载此文不代表同意其说法或描述,仅为提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站立即删除。有异议请联系我们。
文章录入:烟灰缸    责任编辑:烟灰缸 
  • 上一篇文章:
  • 下一篇文章:
  • 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 网站地图 | 版权申明 | 网站公告 | 管理登录 |