📄 index.php
字号:
{
echo " <a href=\"../inbox/read_email/index.php?EMAIL_ID=";
echo $EMAIL_ID;
echo "&BOX_ID=";
echo $BOX_ID;
echo "\"><img src=\"/images/button/return.gif\" border=\"0\"></a>\r\n";
}
else
{
echo " <a href=\"../outbox/?BOX_ID=0\"><img src=\"/images/button/return.gif\" border=\"0\"></a>\r\n";
}
echo " </td></tr>\r\n</table>\r\n\r\n<hr width=\"100%\" height=\"1\" align=\"left\" color=\"#ffffff\">\r\n <table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" class=\"small\">\r\n\r\n <tr>\r\n <td nowrap class=\"TableLine2\">收件人:</td>\r\n <td class=\"TableLine1\">\r\n <input type=\"hidden\" name=\"TO_ID\" value=\"";
echo $TO_ID;
echo "\">\r\n <textarea cols=45 name=\"TO_NAME\" rows=\"3\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $TO_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindowUser('TO_ID','TO_NAME','form1')\" title=\"添加收件人\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user()\" title=\"清空收件人\" name=\"button\"> </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\">抄送:</td>\r\n <td class=\"TableLine1\">\r\n ";
echo " <input type=\"hidden\" name=\"COPY_TO_ID\" value=\"";
echo $COPY_TO_ID;
echo "\">\r\n <textarea cols=45 name=\"COPY_TO_NAME\" rows=\"1\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $COPY_TO_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindowUser('COPY_TO_ID','COPY_TO_NAME','form1')\" title=\"添加收件人\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user2()\" title=\"清空收件人\" name=\"button\"> </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\">暗送:</td>\r\n <td class=\"Tabl";
echo "eLine1\">\r\n <input type=\"hidden\" name=\"SECRET_TO_ID\" value=\"";
echo $SECRET_TO_ID;
echo "\">\r\n <textarea cols=45 name=\"SECRET_TO_NAME\" rows=\"1\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $SECRET_TO_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindowUser('SECRET_TO_ID','SECRET_TO_NAME','form1')\" title=\"添加收件人\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user1()\" title=\"清空收件人\" name=\"button\"> </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\"> 邮件主题:</td>\r\n <td cl";
echo "ass=\"TableLine1\">\r\n <input type=\"text\" name=\"SUBJECT\" size=\"53\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $SUBJECT;
echo "\"> </td>\r\n </tr>\r\n\t<tr>\r\n <td nowrap class=\"TableLine2\">附件:</td>\r\n <td class=\"TableLine1\">\r\n";
if ( $ATTACHMENT_NAME == "" )
{
echo "无";
}
else
{
$ATTACHMENT_ID_ARRAY = explode( ",", $ATTACHMENT_ID );
$ATTACHMENT_NAME_ARRAY = explode( "*", $ATTACHMENT_NAME );
$ARRAY_COUNT = sizeof( $ATTACHMENT_ID_ARRAY );
$I = 0;
for ( ; $I < $ARRAY_COUNT; ++$I )
{
if ( $ATTACHMENT_ID_ARRAY[$I] == "" )
{
}
else
{
$ATTACH_SIZE = attach_size( $ATTACHMENT_ID_ARRAY[$I], $ATTACHMENT_NAME_ARRAY[$I] );
$ATTACH_SIZE = number_format( $ATTACH_SIZE, 0, ".", "," );
echo " <img src=\"/images/email_atta.gif\"><a href=\"/inc/attach.php?ATTACHMENT_ID=";
echo $ATTACHMENT_ID_ARRAY[$I] * 3 + 2;
echo "&ATTACHMENT_NAME=";
echo urlencode( $ATTACHMENT_NAME_ARRAY[$I] );
echo "\">";
echo $ATTACHMENT_NAME_ARRAY[$I];
echo "</a>\r\n\r\n";
if ( stristr( $ATTACHMENT_NAME_ARRAY[$I], ".doc" ) || stristr( $ATTACHMENT_NAME_ARRAY[$I], ".ppt" ) || stristr( $ATTACHMENT_NAME_ARRAY[$I], ".xls" ) )
{
echo "\t <input type=\"button\" onClick=\"window.open('/iWebOffice/DocumentEdit.php?RecordID=";
echo $EMAIL_ID;
echo "&EditType=0&UserName=";
echo $_SESSION['LOGIN_USER_ID'];
echo ";&ATTACHMENT_ID=";
echo $ATTACHMENT_ID_ARRAY[$I] * 3 + 2;
echo "&ATTACHMENT_NAME=";
echo urlencode( $ATTACHMENT_NAME_ARRAY[$I] );
echo "',null,'menubar=0,toolbar=0,status=1,scrollbars=1,resizable=1');\" value=\"阅读\" class=\"SmallButton\"> \r\n\t <input type=\"button\" value=\"编辑\" class=\"SmallButton\" onClick=\"window.open('/iWebOffice/DocumentEdit.php?RecordID=";
echo $EMAIL_ID;
echo "&EditType=2&UserName=";
echo $_SESSION['LOGIN_USER_ID'];
echo ";&ATTACHMENT_ID=";
echo $ATTACHMENT_ID_ARRAY[$I] * 3 + 2;
echo "&ATTACHMENT_NAME=";
echo urlencode( $ATTACHMENT_NAME_ARRAY[$I] );
echo "',null,'menubar=0,toolbar=0,status=1,scrollbars=1,resizable=1');\"> \r\n";
}
echo "\t <input type=\"button\" value=\"删除\" class=\"SmallButton\" onClick=\"delete_attach('";
echo $ATTACHMENT_ID_ARRAY[$I];
echo "','";
echo $ATTACHMENT_NAME_ARRAY[$I];
echo "');\">\r\n (";
echo $ATTACH_SIZE;
echo "字节)<br>\r\n";
}
}
}
echo " </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\">附件上传:</td>\r\n <td class=\"TableLine1\">\r\n <input type=\"file\" name=\"ATTACHMENT\" size=\"30\" class=\"BigInput\" title=\"选择附件文件\">\r\n <input type=\"button\" value=\"添加附件\" class=\"BigButton\" onClick=\"upload_attach();\" title=\"添加附件\">\r\n <input type=\"hidden\" name=\"ATTACHMENT_ID_OLD\" value=\"";
echo $ATTACHMENT_ID;
echo "\">\r\n <input type=\"hidden\" name=\"ATTACHMENT_NAME_OLD\" value=\"";
echo $ATTACHMENT_NAME;
echo "\"> </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\">提醒:</td>\r\n <td class=\"TableLine1\"><input type=\"checkbox\" name=\"SMS_REMIND\" ";
if ( $SMS_REMIND == "1" || $SMS_REMIND == "" )
{
echo "checked";
}
echo ">\r\n 使用短信息提醒收件人 </td>\r\n </tr>\r\n\t";
if ( ifsendmbsms( ) )
{
echo " <tr id=\"mbremind\">\r\n <td nowrap class=\"TableLine2\">手机短信提醒:</td>\r\n <td class=\"TableLine1\"><input type=\"checkbox\" name=\"MOBILE_SMS_REMIND\" onClick=\"ShowMbSmsContent();\" value=\"1\">\r\n 发送手机短信提醒收件人 </td>\r\n </tr>\r\n <tr id=\"mbcontent\">\r\n <td nowrap class=\"TableLine2\">手机短信内容:</td>\r\n <td class=\"TableLine1\"><textarea cols=30 name=\"mobilect\" rows=3 class=\"BigInp";
echo "ut\" wrap=\"on\" onpaste=\"return checkStrLength();\" onKeyUp=\"return checkStrLength();\">\r\n </textarea>\r\n <input type=\"button\" name=\"签名\" value=\"签名\" class=\"SmallButton\" onClick=\"getUserName();\"></td>\r\n </tr>\r\n\t";
}
echo " <tr>\r\n <td class=\"TableLine2\" colspan='2'>\r\n\t \t<textarea id=\"fckeditor1\" name=\"fckeditor1\" >";
echo $CONTENT;
echo "</textarea>\r\n\t </td>\r\n </tr>\r\n \r\n <input type=\"hidden\" name=\"ATTACHMENT_NAME\">\r\n <input type=\"hidden\" name=\"EMAIL_ID\" value=\"";
echo $EMAIL_ID;
echo "\">\r\n <input type=\"hidden\" name=\"SEND_FLAG\" value=\"\">\r\n <input type=\"hidden\" name=\"OP\" value=\"\">\r\n <input type=\"hidden\" name=\"REPLAY\" value=\"";
echo $REPLAY;
echo "\">\r\n <input type=\"hidden\" name=\"FW\" value=\"";
echo $FW;
echo "\">\r\n <input type=\"hidden\" name=\"BOX_ID\" value=\"";
echo $BOX_ID;
echo "\">\r\n </table>\r\n ";
echo "<s";
echo "cript type=\"text/javascript\">\r\n\tcreatepicdiv();\r\n\tvar oFCKeditor = new FCKeditor('fckeditor1');\r\n\toFCKeditor.BasePath = \"/fck/\" ;\r\n\toFCKeditor.Width = '100%' ;\r\n\toFCKeditor.Height = '400' ;\r\n\toFCKeditor.ToolbarSet = 'Eoffice' ;\r\n\toFCKeditor.ReplaceTextarea() ;\r\n</script>\r\n</form>\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript>\r\nvar strmax=60;\r\nvar smstype = \"接收邮件\";\r\nfunction ShowMbSmsContent(){\r\n cc = document.getElementById('MOBILE_SMS_REMIND');\r\n ck = document.getElementById('mbcontent');\r\n if (cc.checked == true){\r\n ck.style.display = '';\r\n\t\tgetMbc();\r\n\t}\r\n\telse{\r\n\t ck.style.display = 'none';\r\n\t}\r\n}\r\n";
if ( ifsendmbsms( ) )
{
echo "document.getElementById('mbcontent').style.display = 'none';\r\n";
}
echo "\r\n\r\nfunction checkStrLength()\r\n{ \r\n mbc = document.getElementById('mobilect');\r\n\tif (mbc.value.length > strmax){\r\n\t mbc.value = mbc.value.substr(0,strmax);\r\n\t}\r\n \r\n}\r\n\r\nfunction getMbc(){\r\n suj = document.getElementById('SUBJECT');\r\n\tmbc = document.getElementById('mobilect');\r\n mbc.value = \"";
echo $_SESSION['LOGIN_USER_ID'];
echo "\"+\":\"+smstype+\"-\"+suj.value\r\n\tif (mbc.value.length > strmax){\r\n\t mbc.value = mbc.value.substr(0,strmax);\r\n\t}\r\n}\r\n\r\nfunction getUserName()\r\n{\r\n mbc = document.getElementById('mobilect');\r\n mbc.value+=\" ";
echo $_SESSION['LOGIN_USER_NAME'];
echo "\";\r\n checkStrLength();\r\n mbc.focus();\r\n}\r\n\r\n</script>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -