📄 re_show.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/document_function.php" );
$SORT_ID = $_REQUEST['SORT_ID'];
$CONTENT_ID = $_REQUEST['DOCUMENT_ID'];
$RE_CONTENT = $_REQUEST['RE_CONTENT'];
$USER_NAME = $_SESSION['LOGIN_USER_NAME'];
$USER_ID = $_SESSION['LOGIN_USER_ID'];
if ( $RE_CONTENT != "" )
{
$RE_CONTENT = iconv( "UTF-8", "gb2312", $RE_CONTENT );
$sql = "\r\n\t\t\tINSERT INTO file_revert (SORT_ID,USER_ID,CONTENT_ID,RE_TIME, RE_NAME, RE_CONTENT) VALUES('".$SORT_ID."','".$USER_ID."','".$CONTENT_ID."',NOW(), '".$USER_NAME."', '".$RE_CONTENT."')\r\n\t\t\t";
exequery( $connection, $sql );
}
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr class=\"tablehead1\">\r\n \t<td colspan=\"2\" cellspacing=\"0\">\r\n\t<td>\r\n\t<IMG SRC=\"/images/document/saylist.gif\" BORDER=\"0\" ALT=\"回复信息\"> ";
echo "<s";
echo "pan style=\"font-weight:bold\">回复信息</span>\r\n\t</td>\r\n\t<td align=\"right\">\r\n\t <img src=\"/images/index_i/closetab.gif\" onclick=\"hideDiv('revertdiv')\" style=\"cursor:hand\">\r\n\t</td>\r\n\t</td>\r\n </tr>\r\n</table>\r\n<table border=\"1px\" cellspacing=\"1\" width=\"100%\" cellpadding=\"1\" bordercolor=\"#FFFFFF\">\r\n\t <tr >\r\n\t ";
if ( opinionpurview( "RE", $SORT_ID ) )
{
$input_button = "<input type=\"submit\" onclick=\"reValidate({$CONTENT_ID},{$SORT_ID},'re_content_div');\" value=\"提交\" class=\"SmallButton\" title=\"提交\" name=\"submit\">";
echo "\t <td>\r\n\t\t";
echo "<s";
echo "pan class=\"linkdivOp\" onclick=\"revertThis()\">[回复]</span>\r\n\t\t</td>\r\n\t </tr>\r\n\t ";
}
echo "\t <tr id=\"reverttr\" style=\"display:'none'\">\r\n\t\t<td colspan=\"2\">\r\n\t\t<table>\r\n\t\t<tr>\r\n\t\t<td>\r\n\t\t<textarea id='re_content_div' name=\"re_content_div\" cols=\"40\" rows=\"5\" class=\"BigStatic\" onfocus=\"hideTagRed('hideimg_1','')\" onblur=\"hideTagRed('hideimg_1','re_content_div')\"></textarea> <IMG SRC=\"/images/littlegif/murumpyo.gif\" BORDER=\"0\" id='hideimg_1'> \r\n\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t<td class=\"TableLin";
echo "e1\" colspan='2'>";
echo $input_button;
echo "</td>\r\n\t\t<td>\r\n\t\t</tr>\r\n\t\t</table>\r\n\t\t</td>\r\n\t </tr>\r\n";
$sql = "\r\n\t\t\tSELECT max(OPERATION_DATE) as MAXTIME FROM sys_op_log WHERE SEQ_ID = '".$CONTENT_ID."' and USER_ID = '".$LOGIN_USER_ID."' and OPERATION_TYPE = 3\r\n\t\t\t\tand TABLE_NAME ='file_content'\r\n\t\t\t";
$res = exequery( $connection, $sql );
$ROW1 = mysql_fetch_array( $res );
$LOG_TIME = $ROW1['MAXTIME'];
if ( $LOG_TIME == "" )
{
$sql = "\r\n\t\t\t\tSELECT min(OPERATION_DATE) as MINTIME FROM sys_op_log \r\n\t\t\t\t\tWHERE TABLE_NAME ='file_content'\r\n\t\t\t\t\t";
$res = exequery( $connection, $sql );
$ROW1 = mysql_fetch_array( $res );
$LOG_TIME = $ROW1['MINTIME'];
}
$re_query = "\r\n\t\tselect * from file_revert where CONTENT_ID='".$CONTENT_ID."' \r\n\t\torder by RE_TIME desc\r\n\t\t";
$re_cursor = exequery( $connection, $re_query );
$count = 0;
while ( $re_row = mysql_fetch_array( $re_cursor ) )
{
++$count;
$re_time = $re_row['RE_TIME'];
$re_name = $re_row['RE_NAME'];
$re_content = $re_row['RE_CONTENT'];
if ( $LOG_TIME < $re_time )
{
$re_content .= "<IMG SRC=\"/images/newred.gif\" BORDER=\"0\">";
}
echo "\t <tr >\r\n\t\t<td class=\"tdstyle\"> ";
echo "<s";
echo "trong>";
echo $re_name;
echo "</strong> ";
echo $re_time;
echo "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"tdstyle\"> ";
echo $re_content;
echo "</td>\r\n\t</tr>\r\n\t";
}
if ( $count == 0 )
{
echo " 现在还没有回复!";
}
savesysoplog( $CONTENT_ID, "3", "file_content", "" );
echo "<table>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -