<?
session_start(); // 開始session
session_register("userregister");
$userregister=$username;
include "class/config.php";
$result = mysql_query("SELECT * FROM user where user='$ " /> 青草视频在线观看视频,国产1024在线永久免费观看,五月天激情丁香

一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

杏林同學錄(二)

成員主頁:main.php
<?
session_start(); // 開始session
session_register("userregister");
$userregister=$username;
include "class/config.php";
$result = mysql_query("SELECT * FROM user where user='$username'",$db);
if (mysql_num_rows($result)==0){  //若返回列的數(shù)目為0,說明無此資料
echo "無此用戶!";
exit;}
$userpsw=strtoupper(trim($userpsw));
$password=trim(mysql_result($result,0,'psw'));
$password=strtoupper($password);//取得密碼,轉(zhuǎn)換成大寫
$userpsw=strtoupper($userpsw);
if (!($userpsw==$password)){
echo "密碼錯誤!";
mysql_close($db);
exit;
}
$name=mysql_result($result,0,"name");
$count=mysql_result($result,0,"count")+1;//成員計數(shù)器加1
mysql_query("UPDATE user SET count=$count where user='$username'",$db);
?>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>歡迎來到杏林同學錄</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 width="241">  
      <div align="right"><img src="class/image/classlogo.gif" width="224" height="60" alt="同學錄">  
      </div>
    </td>
    <td width="508"> <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="class/image/2.swf">
        <param name=quality value=high>
        <embed src="class/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">  
      <?php
              echo "您好,",$name,"。";
              echo "歡迎您第", $count,"次光臨本站。";
      ?>
    </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="class/image/redbar.gif">  
            <div align="center" class="yellow12" >同學錄</div>
          </td>
        </tr>
        <tr>  
          <td height="19" >  
            <div align="center"><a href="class/address.php" title="最新通訊信息" class="purple" target="_blank">【班通訊錄】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple" ><a href="class/modify.php" title="修改個人資料" class="purple" target="_blank">【資料修改】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"  class="purple"><a href="class/upload/uploadphoto.php" title="修改個人資料" class="purple" target="_blank">【上傳照片】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="21">  
            <div align="center"><a href="class/classphoto.php"  class="purple" target="_blank" >【班級照片】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"><a href="class/privatephoto.php" title="展現(xiàn)個人風采" class="purple" target="_blank" >【個人照片】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"><a href="class/shoolphoto.php" title="喚起你美好回憶" class="purple" target="_blank" >【校園風光】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"><a href="class/privatenote.php" title="給單個同學留言" class="purple" target="_blank">【私人留言】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"><a href="class/notebook/index.php" title="留下你的祝福" class="purple" target="_blank" >【班留言板】</a></div>
          </td>
        </tr>
        <tr bgcolor="#FF99CC">  
          <td height="20" bgcolor="#FF99CC" background="class/image/redbar.gif" >  
            <div align="center" class="yellow12">班級聊天室</div>
          </td>
        </tr>
        <tr>  
          <td height="21">  
            <div align="center" class="purple"> 【進入班級聊天室】 </div>
          </td>
        </tr>
        <tr>  
          <td >  
            <div align="center" class="purple">【班級聊天室?guī)椭?lt;/div>
          </td>
        </tr>
        <tr>  
          <td height="20" background="class/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="class/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="class/image/a31.gif" width="81" height="33" border="0" alt="國內(nèi)最好的同學錄"></a></div>
          </td>
        </tr>
        <tr>  
          <td height="24">  
            <div align="center" class="purple"><a href="http://medonline.51.NET/" class="purple"  target="_blank">杏林醫(yī)療在線</a></div>
          </td>
        </tr>
        <tr>  
          <td height="22">  
            <div align="center" ><a href="http://alumni.chinaren.com" title="非常有特色的同學錄" class="purple" target="_blank" >ChinaRen校友錄</a></div>
          </td>
        </tr>
        <tr>  
          <td height="22" bgcolor="#FFCCFF">  
            <div align="center"><a href="superadmin.php" class="purple" target="_blank">班級管理</a></div>
          </td>
        </tr>
      </table>
    </td>
    <td width="61%" height="308">  
      <div align="center"><img src="class/image/821036.jpg" width="400" height="166" alt="這里換成班級照片"></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="19"><img src="class/image/bz.gif" width="15" height="16">  
            1.歡迎使用杏林同學錄。</td>
        </tr>
        <tr>  
          <td class="brown9"><img src="class/image/bz.gif" width="15" height="16">  
            2.如果發(fā)現(xiàn)bug,請盡快通知我。</td>
        </tr>
        <tr>  
          <td class="brown9"> <img src="class/image/bz.gif" width="15" height="16">  
            3.技術(shù)支持: <a href="mailto:webmaster@medguider.51.NET" class="purple">webmaster@medguider.51.NET</a></td>
        </tr>
        <tr>  
          <td>  
            <div align="center" class="redlarge"> 最新留言</div>
          </td>
        </tr>
        <tr>  
          <td class="brown9">  
            <?php
   $result = mysql_query("SELECT * FROM notebook",$db);
   $row=mysql_num_rows($result);
   if ($row<=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<=($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>內(nèi)容:$nnote<BR>";
    }
          ?>
          </td>
        </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);        //悄悄話總數(shù)
            $unlook=0;   
              if (!$row==0){
              for ($i=0;$i<$row;$i++){
               $look=mysql_result($result,$i,'look');//計算未看過的悄悄話數(shù)目
               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);//查看結(jié)果有多少行,即成員人數(shù)
            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>本網(wǎng)站已被搜狐、新浪收錄<br>
                  <font color="#FFCC66">★</font>感謝leo為我們做的新動畫logo.<br>
                  <font color="#FFCC66">★</font>經(jīng)過數(shù)日的努力,終于用php和mysql數(shù)據(jù)庫將新版同學錄做好。特點:用戶可在線修改資料;上傳照片;悄悄話,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
//總計數(shù)器
$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>";
?>
    位來訪者!<br>
    主頁制作:<a href="http://www.medguider.com" class="black9">醫(yī)學導航網(wǎng)</a><br>
    <span class="grey9">本頁使用了flash,如果不能正常瀏覽,請安裝<a href="http://medonline.51.NET/plugsin/InstallAXFlash.exe">flash插件</a></span></p>
</div>
</BODY>
</HTML>

php技術(shù)杏林同學錄(二),轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 黄色在线视频观看 | 五月激情综合婷婷 | 朝鲜美女免费一级毛片 | 夜夜夜夜夜夜夜猛噜噜噜噜噜噜 | 国产亚洲综合精品一区二区三区 | 2021国产成人午夜精品 | xf在线a精品一区二区视频网站 | 成人丝袜激情一区二区 | 成人亚洲视频在线观看 | 97夜夜澡人人爽人人喊一欧美 | 亚洲专区一路线二 | 日韩欧美一区二区三区中文精品 | 日本不卡一区二区三区四区 | 亚洲免费一级片 | 开心激情五月婷婷 | 久久久精品影院 | 国产一区在线mmai | 激情综合久久 | 中文字幕一区二区视频 | 在线网站黄色 | 亚洲精品私拍国产福利在线 | 国产午夜精品一区二区 | 国产日韩欧美综合色视频在线 | 91全国探花精品正在播放 | 色免费在线观看 | 国产亚洲欧洲国产综合一区 | 国产成人精品高清免费 | 久久精品国产999久久久 | 国产精品欧美一区二区三区不卡 | 五月婷婷丁香六月 | 国产精品视频李雅 | 男啪女色黄无遮挡免费视频 | 99国产精品高清一区二区二区 | 国产福利在线观看 极品美女 | 国产高清乱理论片在线看 | 7色影院 | 久草视频中文在线 | 国产在线综合一区二区三区 | 国产拳头交一区二区 | 国产在线观看99 | 女的毛片毛片毛毛片毛毛毛毛片 |