index.php

来自「极限网络智能办公系统 - Office Automation 2008 官方10」· PHP 代码 · 共 357 行 · 第 1/2 页

PHP
357
字号
	if ( $EMAIL_REPLY_CONTENT == 1 )
	{
		$CONTENT = $HEAD.$CONTENT.$TAIL;
	}
	else
	{
		$CONTENT = "";
	}
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/new_email.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> ";
if ( $EMAIL_ID == "" )
{
	echo "写邮件";
}
else
{
	echo "编辑邮件";
}
echo "</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n  <table border=\"0\" width=\"95%\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n<form enctype=\"multipart/form-data\" action=\"submit.php\"  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n    <tr>\r\n      <td nowrap class=\"TableData\">收件人:</td>\r\n      <td class=\"TableData\">\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        &nbsp;<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"添加收件人\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user()\" title=\"清空收件人\" name=\"button\">\r\n        <div style=\"height:20px;padding:5px 0px 2px 0px;\"><a href=\"javascript:;\" onclick=\"show_tr('tr_cc',this);\">添加抄送</a> - <a href=\"javascript:;\" onclick=\"show_tr('tr_bcc',this);\">添加密送</a> ";
if ( find_id( $USER_FUNC_ID_STR, "2" ) )
{
	echo "- <a href=\"javascript:;\" onclick=\"show_tr('tr_webmail',this);\">添加外部收件人</a>";
}
echo "</div>\r\n      </td>\r\n    </tr>\r\n    <tr id=\"tr_cc\" style=\"display:";
if ( $COPY_TO_ID == "" )
{
	echo "none";
}
else
{
	echo "";
}
echo ";\">\r\n      <td nowrap class=\"TableData\">抄送:</td>\r\n      <td class=\"TableData\">\r\n        <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        &nbsp;<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow2()\" title=\"添加收件人\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user2()\" title=\"清空收件人\" name=\"button\">\r\n      </td>\r\n    </tr>\r\n    <tr id=\"tr_bcc\" style=\"display:";
if ( $SECRET_TO_ID == "" )
{
	echo "none";
}
else
{
	echo "";
}
echo ";\">\r\n      <td nowrap class=\"TableData\">暗送:</td>\r\n      <td class=\"TableData\">\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        &nbsp;<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow1()\" title=\"添加收件人\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user1()\" title=\"清空收件人\" name=\"button\">\r\n      </td>\r\n    </tr>\r\n    <tr id=\"tr_webmail\" style=\"display:";
if ( $TO_ID_ADDR == "" )
{
	echo "none";
}
else
{
	echo "";
}
echo ";\">\r\n      <td nowrap class=\"TableData\">外部收件人:</td>\r\n      <td class=\"TableData\">\r\n        <textarea cols=45 name=\"TO_ID_ADDR\" rows=\"3\" class=\"BigInput\" wrap=\"yes\">";
echo $TO_ID_ADDR;
echo "</textarea>\r\n        &nbsp;<input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow3()\" title=\"添加收件人\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user3()\" title=\"清空收件人\" name=\"button\">\r\n      </td>\r\n    </tr>\r\n     <tr style=\"display:";
if ( !find_id( $USER_FUNC_ID_STR, "2" ) )
{
	echo "none";
}
echo ";\">\r\n      <td nowrap class=\"TableData\">Internet邮箱:</td>\r\n      <td class=\"TableData\">\r\n        <select name=\"FROM_WEBMAIL\" class=\"BigSelect\">\r\n";
$query = "SELECT * from WEBMAIL where USER_ID='".$LOGIN_USER_ID."' and EMAIL_PASS!=''";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$EMAIL = $ROW['EMAIL'];
	echo "          <option value=\"";
	echo $EMAIL;
	echo "\" ";
	if ( $FROM_WEBMAIL == $EMAIL )
	{
		echo "selected";
	}
	echo ">";
	echo $EMAIL;
	echo "</option>\r\n";
}
echo " \r\n        </select>\r\n         请到“<a href='/general/webmail/'>Internet邮件</a>”模块建立邮箱并设置密码      \r\n      </td>\r\n    </tr>\r\n   <tr>\r\n      <td nowrap class=\"TableData\"> 邮件主题:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"text\" name=\"SUBJECT\" size=\"53\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $SUBJECT;
echo "\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td valign=\"top\" nowrap class=\"TableData\">邮件内容:</td>\r\n      <td class=\"TableData\">\r\n";
if ( stristr( $HTTP_USER_AGENT, "Firefox" ) || stristr( $HTTP_USER_AGENT, "Opera" ) )
{
	echo "<textarea style=\"width:100%;height:200px\" name=\"CONTENT\">";
	echo $CONTENT;
	echo "</textarea>\r\n";
}
else
{
	echo "        <iframe name=\"EDIT_HTML\" width=\"100%\" height=260 src=\"/module/editor\" viewastext type=\"text/x-scriptlet\"></iframe>\r\n        <input type=\"hidden\" name=\"CONTENT\"  value=\"";
	echo $CONTENT;
	echo "\">\r\n";
}
echo "      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">附件:</td>\r\n      <td class=\"TableData\">\r\n";
if ( $FW != 1 )
{
	$EDIT_TMP = 1;
}
else
{
	$EDIT_TMP = 0;
}
if ( $ATTACHMENT_ID == "" )
{
	echo "无";
}
else
{
	echo attach_link( $ATTACHMENT_ID, $ATTACHMENT_NAME, 1, 1, 1, $EDIT_TMP, $EDIT_TMP, 0, 1, 0, "" );
}
echo "      </td>\r\n    </tr>\r\n    <tr height=\"25\">\r\n      <td nowrap class=\"TableData\">附件选择:</td>\r\n      <td class=\"TableData\">\r\n         <div id=\"SelFileDiv\" class=\"TextColor2\"></div>\r\n         <a href=\"javascript:sel_attach('SelFileDiv','ATTACH_DIR','ATTACH_NAME','DISK_ID');\">从文件柜和网络硬盘选择附件</a>&nbsp;&nbsp;\r\n         <input type=\"hidden\" value=\"\" name=\"ATTACH_NAME\">\r\n         <input type=\"hidden\" value=\"\" name=\"ATTACH_DIR\">\r\n         <input type=\"hidden\" value=\"\" name=\"DISK_ID\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">附件上传:</td>\r\n      <td class=\"TableData\">\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 "\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">提醒:</td>\r\n      <td class=\"TableData\">\r\n";
echo sms_remind( 2, $SMS_REMIND );
echo "      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">已读回执:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"radio\" name=\"REPLY\" id=\"REPLY1\" value=\"0\" ";
if ( $REPLY == "0" || $REPLY == "" )
{
	echo "checked";
}
echo "><label for=\"REPLY1\">否</label>\r\n        <input type=\"radio\" name=\"REPLY\" id=\"REPLY2\" value=\"1\" ";
if ( $REPLY == "1" )
{
	echo "checked";
}
echo "><label for=\"REPLY2\">是</label>\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">重要程度:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"radio\" name=\"IMPORTANT\" id=\"IMPORTANT1\" value=\"0\" ";
if ( $IMPORTANT == "0" || $IMPORTANT == "" )
{
	echo "checked";
}
echo "><label for=\"IMPORTANT1\">一般</label>\r\n        <input type=\"radio\" name=\"IMPORTANT\" id=\"IMPORTANT2\" value=\"1\" ";
if ( $IMPORTANT == "1" )
{
	echo "checked";
}
echo "><label for=\"IMPORTANT2\">重要</label>\r\n        <input type=\"radio\" name=\"IMPORTANT\" id=\"IMPORTANT3\" value=\"2\" ";
if ( $IMPORTANT == "2" )
{
	echo "checked";
}
echo "><label for=\"IMPORTANT3\">非常重要</label>\r\n      </td>\r\n    </tr>\r\n    <tr align=\"center\" class=\"TableControl\">\r\n      <td colspan=\"2\" nowrap>\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=\"BODY_ID\" value=\"";
echo $BODY_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=\"OP1\" value=\"0\">\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\r\n        <input type=\"submit\" value=\"立即发送\" class=\"BigButton\" title=\"立即发送此邮件\">&nbsp;&nbsp;\r\n        <input type=\"button\" value=\"保存到发件箱\" class=\"BigButton\" onclick=\"save();\" title=\"先将此邮件保存到发件箱,以后再发送\">&nbsp;&nbsp;\r\n        <input type=\"button\"  value=\"重填\" class=\"BigButton\" onclick=\"location='index.php'\" title=\"清空所输入的内容,重新撰写\">&nbsp;&nbsp;\r\n";
if ( $EMAIL_ID != "" )
{
	if ( $REPLAY != "" || $FW != "" )
	{
		echo "       <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='../inbox/read_email/index.php?EMAIL_ID=";
		echo $EMAIL_ID;
		echo "&BOX_ID=";
		echo $BOX_ID;
		echo "'\">\r\n";
	}
	else
	{
		echo "       <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='../outbox/?BOX_ID=0'\">\r\n";
	}
}
echo "      </td>\r\n    </tr>\r\n  </table>\r\n</form>\r\n<div id=\"msgArea\" style=\"width:280px;height:150px;border: 1px solid #000000;text-align:center;display:none;\" class=\"TableContent\">\r\n<br><img src=\"/images/loading.gif\" align=\"absMiddle\"> <h3>正在发送,请稍候……</h3>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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