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

📄 relay.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once("inc/auth.php");
?>

<html>
<head>
<title>回复评论</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>
<script>
function CheckForm()
{
   if(document.form1.CONTENT.value=="")
   { alert("评论的内容不能为空!");
     return (false);
   }
   
   if(document.all("AUTHOR_NAME").length >1 && document.all("AUTHOR_NAME").item(1).checked && document.form1.NICK_NAME.value=="")
   { alert("昵称不能为空!");
     return (false);
   }
   return (true);
}
</script>
<body class="bodycolor" topmargin="5">
<?
 $query = "SELECT * from NEWS where NEWS_ID=$NEWS_ID";
 $cursor= exequery($connection,$query);
 if($ROW=mysql_fetch_array($cursor))
 {
    $SUBJECT=$ROW["SUBJECT"];
    $ANONYMITY_YN=$ROW["ANONYMITY_YN"];
 }
 
 $query = "SELECT * from USER where USER_ID='$LOGIN_USER_ID'";
 $cursor= exequery($connection,$query);
 if($ROW=mysql_fetch_array($cursor))
 {
    $LOGIN_USER_NAME=$ROW["USER_NAME"];
    $LOGIN_NICK_NAME=$ROW["NICK_NAME"];
 }
?>
<form action="relay_submit.php"  method="post" name="form1" onsubmit="return CheckForm();">
  <table border="0" width="95%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
     <tr>
      <td class="TableHeader" colspan="2">
        <img src="/images/green_arrow.gif"> 回复评论:
      </td>
    </tr>
    <tr>
      <td align="center" class="TableData">内容:</td>
      <td class="TableData">
        <textarea cols="57" name="CONTENT" rows="5" class="BigInput" wrap="on"></textarea>
      </td>
    </tr>
    <tr>
      <td align="center" class="TableData">署名:</td>
      <td class="TableData">
        <input type="radio" name="AUTHOR_NAME" value="USER_ID" <? if($ANONYMITY_YN=="0")echo "checked";?>>
        <input type="text"  name="USER_NAME" size="10" maxlength="25" class="BigStatic" value="<?=$LOGIN_USER_NAME?>" readonly>
<?
        if($ANONYMITY_YN=="1")
        {
?>
        <input type="radio" name="AUTHOR_NAME" value="NICK_NAME" checked>昵称
        <input type="text" name="NICK_NAME" size="10" maxlength="25" class="BigInput" value="<?=$LOGIN_NICK_NAME?>">
<?
        }
?>
      </td>
    </tr>
    <tr align="center" class="TableControl">
      <td nowrap colspan="2">
        <input type="hidden" value="<?=$COMMENT_ID?>" name="PARENT_ID">
        <input type="hidden" value="<?=$NEWS_ID?>" name="NEWS_ID">
        <input type="hidden" value="<?=$MANAGE?>" name="MANAGE">
        <input type="submit" value="回复" class="BigButton">&nbsp;&nbsp;
        <input type="button" value="返回" class="BigButton" onclick="location='re_news.php?NEWS_ID=<?=$NEWS_ID?>&CUR_PAGE=<?=$CUR_PAGE?>'">
      </td>
    </tr>
  </table>
</form>

⌨️ 快捷键说明

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