⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lyb.php3

📁 网络同学录程序
💻 PHP3
字号:
<?
/*大家好,我是豆腐
提供原码是我的一贯原则,但是希望大家能够尊重豆腐的工作
希望大家在使用的过程中随时和我联系 roboo@21cn.com
您可以随意修改代码,但是请保留我的注释(如果不保留,我也没办法)
如果您觉得这个程序对您有或多或少的帮助,豆腐希望能够得到您的鼓励
您的鼓励和支持,是我们工作的最大动力
    .  =======
   / \| O   O |
   \ /  \v_'/
    #   _| |_
   (#) (     )
    #\//|* *|\\
    #\/(  *  )/       //豆腐制作,都是精品
    #   =====
    #   (\ /)
    #   || ||
   .#---'| |----.
    #----' -----'
    //哲人说:用我的心换你的心,我们便拥有两颗心
*/
?>
<?
  include("conn.php3");
  include("db.php3");
  $conn=openconn();
?>
<?
 if(isset($name)){
   $count = count($name);
   $SQL="delete from " . $DataBaseOwerName . ".Class_classlyb where ";
   for($i=0;$i<$count;$i++){
      $SQL=$SQL . "id=" . $name[$i] . " ";
      if(($i+1)<$count){
        $SQL=$SQL . " or ";
      }
   }
   $stmt=opensql($conn,$SQL);
}
?>
<?
  $SQL="select * from " . $DataBaseOwerName . ".Class_ClassLYB where ClassID='" . $classid . "'";
  $stmt1=opensql($conn,$SQL);
?>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="class.css">
<title>留言板</title>
</HEAD>
<BODY>
<? if($Admin=="yes"){?>
   <form action=<? echo $PHP_SELF ?>?userid=<?echo $userid?>&classid=<?echo $classid?>&Admin=yes method="post">
<?}?>
   <? while($stmt=fecthrow($stmt1)){?>
      <? if($Admin=="yes"){?>
           <input type=checkbox name="name[]" value="<?echo getcolumn($stmt,"ID")?>">选中
      <?}?>
      <table border=1>
         <tr>
            <td>发言人</td>
            <td><? echo getcolumn($stmt,"USERID"); ?></td>
         </tr>
         <tr>
            <td>发言时间</td>
            <td><? echo getcolumn($stmt,"DATEANDTIME"); ?></td>
         </tr>
         <tr>
            <td>发言主题</td>
            <td><? echo nl2br(getcolumn($stmt,"TITLE")); ?></td>
         </tr>

         <tr>
            <td>发言内容</td>
            <td><? echo nl2br(getcolumn($stmt,"CONTENT")); ?></td>
         </tr>
      </table>
      <br>
   <?}?>
   <? if($Admin=="yes"){?>
   <input type=submit name="cmdDo" value="删除" class=buttonface>
   </form>
   <?}?>
</BODY>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -