<?php
session_start();
if(!session_is_registered("superlogin"))//檢查是否注冊
{
echo "<a href='../../superadmin.php'>請重新進(jìn)行管理員登陸<BR>";
exit " /> 18videosex性欧美黑色,国产女高清在线看免费观看,内射人妻无码色AV麻豆去百度搜

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

杏林同學(xué)錄(九)

班級成員留言簿管理: class/notebook/delnote.php
<?php
session_start();
if(!session_is_registered("superlogin"))//檢查是否注冊
{
echo "<a href='../../superadmin.php'>請重新進(jìn)行管理員登陸<BR>";
exit;
}
include ("../config.php");
if($del==1){       //判斷是否要刪除
mysql_query("delete from notebook where time='$time'",$db); //以留言時(shí)間為刪除標(biāo)志
echo "刪除成功!";
}
?>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>刪除留言</TITLE>
<style type="text/css">
<!--
.blue9 {  font-size: 9pt; color: #0099FF; text-decoration: none}
.black9 {  font-size: 9pt; text-decoration: none}
.purple10 {  font-size: 10pt; color: #9900FF; text-decoration: none}
.white12 {  font-size: 12pt; color: #FFFFFF; text-decoration: none}
a:visited {  color: #FFFFFF}
a:link {  color: #FFFFFF}
-->
</style>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?php
$result = mysql_query("SELECT * FROM notebook",$db);
$row=mysql_num_rows($result);//查看結(jié)果有多少行
$max=$row; //帖子總數(shù)
//設(shè)每頁顯示10篇,$p總頁數(shù),$page第幾頁,$low 從第幾行開始讀,$x 讀取幾行
if (!$page){$page=1;}
$p=ceil($max/10);
$low=10*($page-1);
if($page==$p&&($max%10)<>0){$x=($max%10);} else {$x=10;}//如果是最后一頁,且不是10的整倍數(shù),讀取$max除以10的余數(shù),否則取10
if($max==0){$x=0;}//如果沒有帖子,$x取0
$result = mysql_query("select * from notebook ORDER BY time DESC limit $low,$x",$db);
?>
<table width="98%" border="0" cellspacing="0" cellpadding="0" height="61">
  <tr>  
    <td height="62" width="34%"><img src="../image/classlogo.gif" width="224" height="60" border="0"></td>
    <td height="62" width="66%">  
      <div align="center"><img src="../image/note.gif" width="410" height="60"><img src="../image/y1.gif" width="60" height="60"></div>
    </td>
  </tr>
</table>
<table width="95%" border="1" cellspacing="0" cellpadding="0" height="253" bordercolordark="#FFFFFF" bordercolorlight="#003399" align="center">
  <tr>  
    <td height="250">
      <table width="95%" border="0" cellspacing="0" cellpadding="0" height="32" bgcolor="#3366FF">
        <tr>  
          <td width="28%" class="white12"><a href="../guest.php" class="white12">首頁</a>  
            > <a href="index.php" class="white12">留言簿</a></td>
          <td width="56%" class="white12">  
            <?php
          echo "帖子總數(shù):  ",$max,"   第";
          for ($n=1;$n<=$p;$n++){
          echo "<a href=index.php?page=$n>$n</a> ";
          }
          echo "頁";
          ?>
          </td>
          <td width="16%"><a href="index.php" class="white12">查看留言</a></td>
        </tr>
      </table>  
<?php
   for ($i=0;$i<=($x-1);$i++) {
   $user=mysql_result($result,$i,'user');
   $time=mysql_result($result,$i,'time');
   $ip=mysql_result($result,$i,'ip');
   $title=mysql_result($result,$i,'title');
   $nnote=mysql_result($result,$i,'nnote');
   $yresult = mysql_query("SELECT * FROM user where user='$user'",$db);//讀取成員數(shù)據(jù)庫
   $name=mysql_result($yresult,0,'name');
   $signature=mysql_result($yresult,0,'signature');//讀取個(gè)人簽名
   $email=mysql_result($yresult,0,'email');
   $face=mysql_result($yresult,0,'face');
   $face='../image/face/icon'.$face;
  echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height=107' bordercolor='#FFFFFF'> <tr bgcolor='#eeeeee'>";  
echo "<td width='10%' height='33' bgcolor='#eeeeee' class='blue9'> <img src='$face.gif' width='32' height='32'></td>";
echo        "<td width='16%' height='33' bgcolor='#eeeeee' class='blue9'>留言人:$name</td>";
echo        "<td width='41%' height='33' bgcolor='#eeeeee' class='blue9'>發(fā)表于:$time</td>";
echo        "<td width='12%' height='33' bgcolor='#eeeeee' class='blue9'><a href='mailto:$email'><img src='../image/email.gif' width='16' height='16' border=0></a></td>";
echo        "<td width='21%' height='33' class='blue9'><img src='../image/ip.gif' width='13' height='15'>  $ip <a href='$php_SELF?del=1&time=$time'><img src='../image/del.gif' width='16' height='16' border=0></a></td>  </tr> <tr>";  
echo        "<td colspan='5' class='purple10' height='33'>標(biāo)題:$title</td> </tr>";
echo        "<tr bgcolor='#ffffff'><td colspan='5' class='black9' height='37'>留言內(nèi)容:$nnote</td></tr></table>";
}
mysql_close($db);
?>     
    </td>
</tr>
</table>
</BODY>
</HTML>
客人留言簿管理: class/notebookg/delnote.php
<?php
session_start();
if(!session_is_registered("superlogin"))//檢查是否注冊
{
echo "<a href='../../superadmin.php'>請重新進(jìn)行管理員登陸<BR>";
exit;
}
include ("../config.php");
if($del==1){       //判斷是否要刪除
mysql_query("delete from notebookg where time='$time'",$db); //以留言時(shí)間為刪除標(biāo)志
echo "刪除成功!";
}
?>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>刪除留言</TITLE>
<style type="text/css">
<!--
.blue9 {  font-size: 9pt; color: #0099FF; text-decoration: none}
.black9 {  font-size: 9pt; text-decoration: none}
.purple10 {  font-size: 10pt; color: #9900FF; text-decoration: none}
.white12 {  font-size: 12pt; color: #FFFFFF; text-decoration: none}
a:visited {  color: #FFFFFF}
a:link {  color: #FFFFFF}
-->
</style>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?php
$result = mysql_query("SELECT * FROM notebookg ",$db);
$row=mysql_num_rows($result);//查看結(jié)果有多少行
$max=$row; //帖子總數(shù)
//設(shè)每頁顯示10篇,$p總頁數(shù),$page第幾頁,$low 從第幾行開始讀,$x 讀取幾行
if (!$page){$page=1;}
$p=ceil($max/10);
$low=10*($page-1);
if($page==$p&&($max%10)<>0){$x=($max%10);} else {$x=10;}//如果是最后一頁,且不是10的整倍數(shù),讀取$max除以10的余數(shù),否則取10
if($max==0){$x=0;}//如果沒有帖子,$x取0
$result = mysql_query("select * from notebookg ORDER BY time DESC limit $low,$x",$db);
?>
<table width="98%" border="0" cellspacing="0" cellpadding="0" height="61">
  <tr>  
    <td height="62" width="34%"><img src="../image/classlogo.gif" width="224" height="60" border="0"></td>
    <td height="62" width="66%">  
      <div align="center"><img src="../image/note.gif" width="410" height="60"><img src="../image/y1.gif" width="60" height="60"></div>
    </td>
  </tr>
</table>
<table width="95%" border="1" cellspacing="0" cellpadding="0" height="253" bordercolordark="#FFFFFF" bordercolorlight="#003399" align="center">
  <tr>  
    <td height="250">
      <table width="95%" border="0" cellspacing="0" cellpadding="0" height="32" bgcolor="#3366FF">
        <tr>  
          <td width="28%" class="white12"><a href="../guest.php" class="white12">首頁</a>  
            > <a href="index.php" class="white12">留言簿</a></td>
          <td width="56%" class="white12">  
            <?php
          echo "帖子總數(shù):  ",$max,"   第";
          for ($n=1;$n<=$p;$n++){
          echo "<a href=index.php?page=$n>$n</a> ";
          }
          echo "頁";
          ?>
          </td>
          <td width="16%"><a href="index.php" class="white12">查看留言</a></td>
        </tr>
      </table>  
<?php
   for ($i=0;$i<=($x-1);$i++) {
   $email=mysql_result($result,$i,'email');
   $face=mysql_result($result,$i,'face');
   $face='../image/face/icon'.$face;
   $name=mysql_result($result,$i,'name');
   $time=mysql_result($result,$i,'time');
   $ip=mysql_result($result,$i,'ip');
   $title=mysql_result($result,$i,'title');
   $nnote=mysql_result($result,$i,'nnote');
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height=107' bordercolor='#FFFFFF'> <tr bgcolor='#eeeeee'>";  
echo "<td width='10%' height='33' bgcolor='#eeeeee' class='blue9'> <img src='$face.gif' width='32' height='32'></td>";
echo        "<td width='16%' height='33' bgcolor='#eeeeee' class='blue9'>留言人:$name</td>";
echo        "<td width='41%' height='33' bgcolor='#eeeeee' class='blue9'>發(fā)表于:$time</td>";
echo        "<td width='12%' height='33' bgcolor='#eeeeee' class='blue9'><a href='mailto:$email'><img src='../image/email.gif' width='16' height='16' border=0></a></td>";
echo        "<td width='21%' height='33' class='blue9'><img src='../image/ip.gif' width='13' height='15'>  $ip <a href='$php_SELF?del=1&time=$time'><img src='../image/del.gif' width='16' height='16' border=0></a></td>  </tr> <tr>";  
echo        "<td colspan='5' class='purple10' height='33'>標(biāo)題:$title</td> </tr>";
echo        "<tr bgcolor='#ffffff'><td colspan='5' class='black9' height='37'>留言內(nèi)容:$nnote</td></tr></table>";
}
mysql_close($db);
?>     
    </td>
</tr>
</table>
</BODY>
</HTML> 

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

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

主站蜘蛛池模板: 欧美性爱 先锋影音 | 御姐被吸奶| 第九色区av天堂 | 成人国产免费 | 超碰国产视频免费播放 | 精品无码国产自产在线观看水浒传 | 亚洲精品国产精麻豆久久99 | 午夜插插插| 100国产精品人妻无码 | 国产午夜a理论毛片在线影院 | 99re这里只有精品视频 | 色欲AV亚洲午夜精品无码 | 麻豆一二三四区乱码 | 抽插H浊水H嫩B父皇 虫族bl文全肉高h | 国产婷婷综合在线视频中文 | 狠狠躁日日躁人人爽 | 超碰超碰视频在线观看 | 久久久精品久久久久久 | 久久精品免费看网站 | 国产露脸A片国语露对白 | 亚洲精品国产国语 | 婬香婬色天天视频 | 日本特黄网站 | 日本高清免费观看 | 人妻插B视频一区二区三区 人妻 中文无码 中出 | 把腿张开JI巴CAO死你H教室 | 亚洲AV久久婷婷蜜臀无码不卡 | 伊人色综合久久大香 | 国产白丝精品爽爽久久久久久蜜臀 | 一本道久久综合久久88 | 亚洲国产精品一区二区动图 | 极品少妇高潮啪啪无码吴梦 | 伦理片午夜在线视频 | 三级黄网站 | 精品三级久久久久电影网1 精品日韩视频 | 中文字幕偷乱免费视频在线 | 无罩看奶禁18 | 扒开腿狂躁女人GIF动态图 | 午夜精品久久久久久久爽牛战 | 久久精品热在线观看30 | 绑着男军人的扒开内裤 |