📄 fw.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>转发对话框</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<script Language=\"JavaScript\">\r\nfunction clear_user()\r\n{\r\n document.form1.TO_NAME.value=\"\";\r\n document.form1.TO_ID.value=\"\";\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n URL=\"/module/user_select\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction CheckForm()\r\n{\r\n if (document.form1.TO_ID.value==\"\")\r\n {\r\n \t alert(\"请选择接收人!\");\r\n return (false);\r\n }\r\n\r\n return (true);\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n";
$query = "SELECT * from FILE_CONTENT where find_in_set(CONTENT_ID,'".$CONTENT_ID."')";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$SORT_ID = $ROW['SORT_ID'];
$USER_ID = $ROW['USER_ID'];
if ( $SORT_ID == 0 && $USER_ID != $LOGIN_USER_ID )
{
exit( );
}
$query = "SELECT USER_ID from FILE_SORT where SORT_ID=".$SORT_ID;
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$USER_ID = $ROW['USER_ID'];
if ( !( $USER_ID != $LOGIN_USER_ID ) )
{
continue;
}
exit( );
}
if ( !( $SORT_ID != "0" ) )
{
continue;
}
exit( );
}
if ( mysql_num_rows( $cursor ) == 0 )
{
exit( );
}
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/arrow_right.gif\" width=\"17\" height=\"17\"><span class=\"big3\"> 文件转发</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n<br>\r\n<form enctype=\"multipart/form-data\" action=\"fw_submit.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n<table align=\"center\" border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <tr>\r\n <td nowrap class=\"TableContent\" width=\"50\">转发给:</td>\r\n <td class=\"TableData\" colspan=\"3\">\r\n \t<input type=\"hidden\" name=\"TO_ID\" value=\"\">\r\n <textarea name=\"TO_NAME\" class=\"BigStatic\" cols=\"30\" rows=\"8\" class=\"BigStatic\" wrap=\"yes\" readonly></textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"添加人员\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user()\" title=\"清空人员\" name=\"button\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\">提醒:</td>\r\n <td class=\"TableData\" colspan=\"3\">\r\n";
echo sms_remind( 20 );
echo " </td>\r\n </tr>\r\n</table>\r\n<br>\r\n<center>\r\n<input type=\"hidden\" name=\"CONTENT_ID1\" value=\"";
echo $CONTENT_ID;
echo "\">\r\n<input type=\"submit\" value=\"转发\" class=\"BigButton\" title=\"转发文件\"> \r\n<input type=\"button\" value=\"关闭\" class=\"BigButton\" onClick=\"window.close();\" title=\"关闭窗口\">\r\n</center>\r\n</form>\r\n</body>\r\n\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -