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

📄 changetz.php

📁 论坛管理系统php+mysql
💻 PHP
字号:
<?php session_start();include "../conn.php";if ($page=="") {$page=1;}?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>论坛管理</title>
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.style1 {font-size: 13px;
	font-family: "宋体";
	font-weight: normal;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EFF3FF;
}
-->
</style></head>
<script language="javascript" src="../script/zc_check.js" type="text/javascript"></script>
<body>

<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><?php include("../gly/head.php");?></td>
  </tr>
  <tr>
    <td background="../image/index4.gif"><img src="../image/555.gif" width="776" height="29"></td>
  </tr>
</table>

<table width="776" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="180" height="200" align="center" valign="top">
	<table width="175" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="5" align="center">&nbsp;</td>
      </tr>
      <tr>
        <td height="30" align="center"><a href="bzgl.php?tz=<?php echo urlencode(帖子管理);?>">帖子管理</a></td>
      </tr>
      <tr>
        <td height="30" align="center"><a href="bzgl.php?tz=<?php echo urlencode(回复帖子管理);?>">回复帖子管理</a></td>
      </tr>
      
      <tr>
        <td height="30" align="center"><a href="bz.php?tz=<?php echo urlencode(关键字);?>">危险内容管理</a></td>
      </tr>
    </table></td>
    <td width="596" align="center" valign="top">
	<?php
  $id=$_GET[id]; 
  $quer="select * from hw_tzxx where id='$id'";
  $sql=mysql_query($quer);
  $myrow=mysql_fetch_array($sql);
?>
<table width="590" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td height="20" bgcolor="#FFFFFF"><div align="center" class="style1">更改帖子信息</div></td>
  </tr>
  <tr>
    <td  bgcolor="#666666"><table width="590" border="0" cellpadding="0" cellspacing="1">
        <script language="javascript">
	function chkinput(form)
	{
	  if(form.mingcheng.value=="")
	   {
	     alert("请输入帖子名称!");
		 form.mingcheng.select();
		 return(false);
	   }
	  
	
	
	  if(form.banzhu.value=="")
	   {
	     alert("请输入作者!");
		 form.huiyuanjia.select();
		 return(false);
	   }
	 return(true);
	}
    </script>
        <form name="form1"  enctype="multipart/form-data" method="post" action="savetz.php?id=<?php echo $myrow[id];?>" onSubmit="return chkinput(this)">
          <tr>
            <td height="30" bgcolor="#FFFFFF"><div align="center">主题:</div></td>
            <td height="30" bgcolor="#FFFFFF"><div align="left">
               <input type="text" name="zhuti" size="25" class="inputcss" value="<?php echo $myrow[zhuti];?>"> </div></td>
          </tr>
		  <tr>
            <td height="30" bgcolor="#FFFFFF"><div align="center">作者:</div></td>
            <td height="30" bgcolor="#FFFFFF"><div align="left">
               <input type="text" name="banzhu" size="25" readonly="yes" class="inputcss" value="<?php echo $myrow[username];?>"> * 此项不能进行修改</div></td>
          </tr>
		            
		  <tr>
            <td height="25" bgcolor="#FFFFFF"><div align="center">是否锁定:</div></td>
            <td height="25" bgcolor="#FFFFFF"><div align="left">
                <select name="sd" class="inputcss">
                  <option value="是" <?php if(trim($myrow[sd])=="是"){echo "selected";}?>>是</option>
                  <option value="否" <?php if(trim($myrow[sd])=="否"){echo "selected";}?>>否</option>
                  
                  
                </select>&nbsp;*&nbsp;被锁定的版块普通用户无权浏览
            </div></td>
          </tr>
		  <tr>
            <td height="25" bgcolor="#FFFFFF"><div align="center">是否冻结:</div></td>
            <td height="25" bgcolor="#FFFFFF"><div align="left">
                <select name="dj" class="inputcss">
                  <option value="是" <?php if(trim($myrow[dj])=="是"){echo "selected";}?>>是</option>
                  <option value="否" <?php if(trim($myrow[dj])=="否"){echo "selected";}?>>否</option>
                  
                  
                </select>&nbsp;*&nbsp;被冻结的版块不允许回复
            </div></td>
          </tr>
		  <tr>
            <td height="25" bgcolor="#FFFFFF"><div align="center">是否屏蔽:</div></td>
            <td height="25" bgcolor="#FFFFFF"><div align="left">
                <select name="pb" class="inputcss">
                  <option value="是" <?php if(trim($myrow[pb])=="是"){echo "selected";}?>>是</option>
                  <option value="否" <?php if(trim($myrow[pb])=="否"){echo "selected";}?>>否</option>
                  
                  
                </select>&nbsp;*&nbsp;被屏蔽的版块不再前台显示
            </div></td>
          </tr>
		  <tr>
		  <td bgcolor="ffffff" align="center" valign="middle">内容:</td>
		  <td><textarea name="neirong" cols="72" rows="30"><?php echo $myrow[neirong];?></textarea>
		  
          <tr>
            <td height="30"  colspan="2" bgcolor="#FFFFFF"><div align="center">
              <input type="submit" class="buttoncss" value="更改">
			  
              &nbsp;&nbsp;
                <input type="reset" value="取消更改" class="buttoncss">
            
			</form>
			
			</div>
			
			</td>
          </tr>
        
		
    </table></td>
  </tr>
</table>
	</td>
  </tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><?php include("../gly/under.php");?></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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