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

📄 hftj.php

📁 论坛管理系统php+mysql
💻 PHP
字号:
<?php session_start(); include("conn.php");?>
<?php 
if  ($username==""&&$password==""){
echo "<script>alert('很抱歉,登录后才能进行回复!!');history.back();;</script>";

}else{
?>
<?php 
    $id=$_GET[recid];
    $tz="select * from hw_tzxx where id='$id'";
	$result=mysql_query($tz);
	echo mysql_error();
	$myrow=mysql_fetch_array($result);
	$zq="select * from hw_zqxx where zq='$myrow[zq]'";
	$result1=mysql_query($zq);
	echo mysql_error();
	$myrow1=mysql_fetch_array($result1);
	if($myrow1[dj]=='是')
	{
echo "<script>alert('很抱歉,此帖子不允许回复!!');history.back();;</script>";

}
  else if($myrow[dj]=='是')
  {
echo "<script>alert('很抱歉,此帖子不允许回复!!');history.back();;</script>";

}
else{
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>华宇论坛</title>
<style type="text/css">
<!--
.style1 {
	font-size: 14px;
	font-family: "宋体";
}
.style2 {
	font-size: 13px;
	font-family: "宋体";
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EFF3FF;
}
.style3 {font-size: 13px;
	font-family: "宋体";
	font-weight: normal;
}
-->
</style>
</head>
<script language="javascript" src="script/zc_check.js" type="text/javascript"></script>
<body>
<div align="center"><?  include"head.php";?></div>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0" background="image/555.gif">
  <tr>
    <td width="15">&nbsp;</td>
    <td width="760" height="30"><span class="style1">&nbsp;&nbsp;== 回复主题信息 == </span></td>
  </tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="776">
	<table width="776"  border="0" align="center" cellpadding="0" cellspacing="0">
	<?php   $id=$_GET[recid];
             $query="select * from hw_tzxx where id='$id'";
             $result=mysql_query($query); 
             $row=mysql_fetch_array($result);
			 echo $row[zq];
    ?>
        <tr>
          <td width="5" height="418" align="center" valign="top" background="image/zc1.gif">&nbsp;</td>
          <td width="230" align="center" valign="top">
		  <table width="88%"  border="0" cellpadding="0" cellspacing="0">
		  
			  <?php $query="select * from hw_user where  username='$username'";
			         $result=mysql_query($query);
					 $user1=mysql_fetch_array($result); 
					 $ip=getenv(remote_addr);
			  ?>
              <tr>
                <td height="30" align="center" valign="middle" class="style2"><span class="style2">==回复人信息==</span></td>
              </tr>
              <tr>
                <td height="24" align="center" valign="middle" class="style2"><?php echo $user1[username];?></td>
              </tr>
              <tr>
                <td height="65" align="center" valign="middle"><img src="<?php echo $user1[tx];?>" width="60" height="60"></td>
              </tr>
              <tr>
                <td height="22" align="center" valign="middle" class="style2">我是:<?php echo $user1[sex];?>生</td>
              </tr>
              <tr>
                <td height="20" align="center" valign="middle" class="style2"><?php echo $user1[email];?></td>
              </tr>
              <tr>
                <td height="20" align="center" valign="middle" class="style2"><?php echo $user1[qq];?></td>
              </tr>
              <tr>
                <td height="20" align="center" valign="middle" class="style2">IP:<?php echo $ip;?></td>
              </tr>
          </table></td>
          <td width="10" background="image/zc2.gif">&nbsp;</td>
          <td width="522" align="center" valign="top"><table width="88%%" height="52"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="style2">主题:<?php echo $zhuti;?></td>
            </tr>
          </table>
            <table width="88%"  border="0" cellpadding="0" cellspacing="0">
			 <form name="myform" method="post" action="fbzt_ok.php" enctype="multipart/form-data" onSubmit="javascript:return hftj_check();">
              <tr>
                <td width="18%" height="35" align="center" class="style2">回复主题:</td>
                <td><input name="hfzt" type="text" id="hfzt" size="50" maxlength="100">
				
				</td>
              </tr>
              <tr>
                <td height="235" align="center" class="style2">回复内容:</td>
                <td align="left" valign="top" class="style2"><textarea name="hfnr" cols="48" rows="15" wrap="PHYSICAL" id="hfnr"></textarea>
                
                  <input name="user" type="hidden" id="user" value="<?php echo $username;?>">
                  <input name="pass" type="hidden" id="pass" value="<?php echo $password;?>">
				  <input name="ljid" type="hidden" id="ljid" value="<?php echo $row[id];?>">
				  <input name="zq" type="hidden" id="zq" value="<?php echo $row[zq];?>">  
				  <input name="zt" type="hidden" id="zt" value="<?php echo $zhuti;?>">               </td>
              </tr>
              <tr>
                <td height="35" align="center" class="style2">字节:</td>
                <td class="style2"><span class="style3">字数不要超过400个</span></td>
              </tr>
              <tr>
                <td height="35" align="center">&nbsp;</td>
                <td class="style2"><input name="hftj" type="submit" id="hftj" value="回复提交">
                <input type="reset" name="Submit2" value="信息重置"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
		      </form>
          </table>          </td>
          <td width="9" align="center" valign="top" background="image/zc3.gif">&nbsp;</td>
        </tr>
        <tr>
          <td height="5" colspan="5"><img src="image/zc5.gif" width="776" height="10"></td>
        </tr>
    </table></td>
  </tr>
</table>
<div align="center"><?php include"under.php"?></div>
</body>
</html>
<?php }
}?>

⌨️ 快捷键说明

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