程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> PHP綜合 >> 杏林同學錄(三)

杏林同學錄(三)

編輯:PHP綜合
客人主頁:class/guest.php
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>歡迎來到94級1班同學錄</TITLE>
<style type="text/css">
<!--
.deepblue10 {  font-family: "宋體"; font-size: 10pt; color: #3333FF; text-decoration: none}
A.purple:hover {  font-size: 9pt; color: #3366FF; background-color: #99FFFF; text-decoration: none}
A.purple:link {  font-size: 10pt; text-decoration: none}
a:hover {  text-decoration: none}
a:visited {  text-decoration: none}
A.purple {  font-size: 10pt; color: #CC00FF; text-decoration: none}
.white12 {  font-size: 12pt; color: #FFFFFF; text-decoration: none}
.purple {  color: #CC00FF; text-decoration: none; font-size: 10pt}
.brown9 {  font-size: 10pt; color: #6600CC; text-decoration: none}
.black9 {  font-size: 9pt; text-decoration: none}
.yellow12 {  font-size: 12px; color: #9900CC; text-decoration: none; font-weight: normal}
.redlarge {  font-size: 18px; font-weight: bolder; color: #FF00CC}
.grey9 {  font-size: 9pt; color: #CCCCCC}
-->
</style>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<table width="755" border="1" height="65" cellpadding="0" cellspacing="0" bordercolorlight="#FF33CC" bordercolordark="#FFFFFF">
  <tr>  
    <td>  
      <div align="right"><img src="image/classlogo.gif" width="224" height="60" alt="同學錄"></div>
    </td>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="478" height="60" align="right">
        <param name=movie value="image/2.swf">
        <param name=quality value=high>
        <embed src="image/2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="478" height="60" align="right">
        </embed>  
      </object></td>
  </tr>
</table>
<table width="755" border="0" cellspacing="0" cellpadding="0">
  <tr>  
    <td class="black9" width="302"> 北京時間  
      <? echo date("Y年m月d日");?>
    </td>
    <td class="black9" width="453">您好,客人!您目前只能浏覽班級照片和校園風光。請到"訪客留言"留下您的祝福。</td>
  </tr>
</table>
<table width="755" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="19%" bgcolor="#FFeeFF" valign="top">  
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>  
          <td height="20" background="image/redbar.gif">  
            <div align="center" class="yellow12" >同學錄</div>
          </td>
        </tr>
        <tr>  
          <td height="19" >  
            <div align="center" class="purple">【班通訊錄】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple" >【資料修改】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"  class="purple">【上傳照片】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" ><a href="classphoto.php" title="畢業照" class="purple" target="_blank" >【班級照片】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【個人照片】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"><a href="shoolphoto.php" title="喚起你美好回憶" class="purple" target="_blank" >【校園風光】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【私人留言】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【<a href="notebookg/index.php" class="purple">訪客留言</a>】</div>
          </td>
        </tr>
        <tr bgcolor="#FF99CC">  
          <td height="20" bgcolor="#FF99CC" background="image/redbar.gif" >  
            <div align="center" class="yellow12">【班級聊天室】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【進入班級聊天室】</div>
          </td>
        </tr>
        <tr>  
          <td >  
            <div align="center" class="purple">【班級聊天室幫助】</div>
          </td>
        </tr>
        <tr>  
          <td height="20" background="image/redbar.gif">  
            <div align="center" class="yellow12" >友情鏈接</div>
          </td>
        </tr>
        <tr>  
          <td>  
            <div align="center"><a href="http://www.medguider.com" title="neo的個人主頁" target="_blank"><img src="image/logo2.gif" width="82" height="31" border=0></a></div>
          </td>
        </tr>
        <tr>  
          <td>  
            <div align="center"><a href="http://www.5460.net" target="_blank"><img src="image/a31.gif" width="81" height="33" border="0" alt="國內最好的同學錄"></a></div>
          </td>
        </tr>
        <tr>
          <td height="24">  
            <div align="center" class="purple"><a href="http://medonline.51.net/" class="purple"  target="_blank">杏林醫療在線</a></div>
          </td>
        </tr>
        <tr>  
          <td height="22">  
            <div align="center" ><a href="http://www.oso.com.cn" class="purple">奧索網</a></div>
          </td>
        </tr>
        <tr>  
          <td height="22">  
            <div align="center"><a href="http://m9401.alumni.chinaren.com" title="非常有特色的同學錄" class="purple" target="_blank" >ChinaRen校友錄</a></div>
          </td>
        </tr>
        <tr bgcolor="#FFCCCC">  
          <td height="22" bgcolor="#FFCCCC">  
            <div align="center" class="purple"><a href="mailto:[email protected]" class="purple">與我聯系</a></div>
          </td>
        </tr>
      </table>
    </td>
    <td width="61%" height="308">  
      <div align="center"><img src="image/821036.jpg" width="400" height="166"></div>
      <table width="87%" border="1" cellspacing="0" cellpadding="0" align="center" height="109" bordercolorlight="#9999FF" bordercolordark="#FFFFFF">
        <tr>  
          <td>  
            <div align="center" class="redlarge"><b>祝賀詞</b></div>
          </td>
        </tr>
        <tr>  
          <td class="brown9" height="21"><img src="image/bz.gif" width="15" height="16">  
            1.歡迎使用杏林同學錄。</td>
        </tr>
        <tr>  
          <td class="brown9"><img src="image/bz.gif" width="15" height="16"> 2.如果發現bug,請盡快通知我。</td>
        </tr>
        <tr>  
          <td class="brown9"> <img src="image/bz.gif" width="15" height="16">  
            3.技術支持: <a href="mailto:[email protected]" class="purple">[email protected]</a>  
          </td>
        </tr>
        <tr>  
          <td>  
            <div align="center" class="redlarge"> 最新訪客留言</div>
          </td>
        </tr>
        <tr>  
          <td class="brown9">  
            <?php
  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);
          ?>
          </td>
        </tr>
      </table>
    </td>
    <td valign="top" width="20%">  
      <table border="0" cellspacing="0" cellpadding="0" width="150">
        <tr>  
          <td background="image/yellowbar3.gif" class="white12" height="19">  
            <div align="center">悄悄話</div>
          </td>
        </tr>
        <tr>  
          <td bgcolor="#FFFEEFF">  
            <div align="center" class="brown9" > 對不起,您不是本班同學</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">對不起,您不是本班同學</td>
        </tr>
        <tr>  
          <td>  

            <table border="0" cellspacing="0" cellpadding="0" bgcolor="#CFBD9B" width="150">
              <tr>  
                <td height="24" colspan="3"><img src="image/noticebar.gif" width="150" height="25"></td>
                </tr>
                <tr>  

                <td height="182" width="6%"> </td>

                <td width="88%" bgcolor="#FFFFFF" background="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("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>";
?>
    位來訪者!<br>
    主頁制作: <a href="http://www.medguider.com" class="black9">醫學導航網</a><br>
    <span class="grey9">本頁使用了flash,如果不能正常浏覽,請安裝<a href="http://medonline.51.net/plugsin/InstallAXFlash.exe">flash插件</a>  
    </span></p>
</div>
</BODY>
</HTML> 
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved