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

📄 index.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.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\r\n";
echo "<s";
echo "cript>\r\nfunction CheckForm()\r\n{\r\n   if(document.form1.BOX.selectedIndex<3)\r\n      document.form1.BOX_ID.value=\"0\";\r\n   else\r\n      document.form1.BOX_ID.value=document.form1.BOX.value;\r\n      \r\n   if(document.form1.BOX.selectedIndex==1||document.form1.BOX.selectedIndex==2)\r\n      obj=document.all(\"TO_ID\");\r\n   else\r\n      obj=document.all(\"FROM_ID\");\r\n      \r\n   if(obj.value==\"\" && document.form1.S";
echo "UBJECT.value==\"\" && document.form1.KEY1.value==\"\" && document.form1.KEY2.value==\"\" && document.form1.KEY3.value==\"\" && document.form1.ATTACHMENT_NAME.value==\"\")\r\n   { alert(\"请指定至少一个查询条件!\");\r\n     return (false);\r\n   }\r\n\r\n   return true;\r\n}\r\nfunction which_box()\r\n{\r\n   if(document.form1.BOX.selectedIndex==1||document.form1.BOX.selectedIndex==2)\r\n   {\r\n   \t   document.all(\"FROM\").style.d";
echo "isplay=\"none\";\r\n   \t   document.all(\"TO\").style.display=\"\";\r\n   \t   document.form1.TO_ID.focus()\r\n   }\r\n   else\r\n   {\r\n   \t   document.all(\"FROM\").style.display=\"\";\r\n   \t   document.all(\"TO\").style.display=\"none\";\r\n   \t   document.form1.FROM_ID.focus()\r\n   }\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.FROM_ID.focus();\">\r\n\r\n<table border=\"0\" width=\"100%\" cells";
echo "pacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/infofind.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\">查询邮件</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<hr width=\"95%\" height=\"1\" align=\"left\" class=\"big1\">\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n<form action=\"search.php\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n  <tr class=\"TableData\">\r\n      <td nowrap align=\"center\">选择邮箱:</td>\r\n      <td nowrap>\r\n        ";
echo "<s";
echo "elect name=\"BOX\" class=\"BigSelect\" onchange=\"which_box();\">\r\n          <option value=\"1\">收件箱</option>\r\n          <option value=\"2\">发件箱</option>\r\n          <option value=\"3\">已发送邮件箱</option>\r\n";
$query = "SELECT * from EMAIL_BOX where USER_ID='{$LOGIN_USER_ID}' order by BOX_NO";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$BOX_ID1 = $ROW['BOX_ID'];
	$BOX_NAME = $ROW['BOX_NAME'];
	echo "         <option value=";
	echo $BOX_ID1;
	echo ">";
	echo $BOX_NAME;
	echo "</option>\r\n";
}
echo "        </select>\r\n      </td>\r\n  </tr>\r\n  <tr class=\"TableData\" id=\"FROM\">\r\n      <td nowrap align=\"center\">发件人:</td>\r\n      <td nowrap><input type=\"text\" name=\"FROM_ID\" class=\"BigInput\" size=\"20\"></td>\r\n  </tr>\r\n  <tr class=\"TableData\" id=\"TO\" style=\"display:none\">\r\n      <td nowrap align=\"center\">收件人:</td>\r\n      <td nowrap><input type=\"text\" name=\"TO_ID\" class=\"BigInput\" size=\"20\"></td>\r\n  </tr>\r\n  <tr ";
echo "class=\"TableData\">\r\n      <td nowrap align=\"center\">邮件主题包含文字:</td>\r\n      <td nowrap><input type=\"text\" name=\"SUBJECT\" class=\"BigInput\" size=\"20\"></td>\r\n  </tr>\r\n  <tr>\r\n    <td nowrap class=\"TableData\" align=\"center\">邮件内容[关键词1]:</td>\r\n    <td class=\"TableData\"><input type=\"text\" name=\"KEY1\" class=\"BigInput\" size=\"20\"></td>\r\n  </tr>\r\n  <tr>\r\n    <td nowrap class=\"TableData\" align=\"center\">邮件内";
echo "容[关键词2]:</td>\r\n    <td class=\"TableData\"><input type=\"text\" name=\"KEY2\" class=\"BigInput\" size=\"20\"></td>\r\n  </tr>\r\n  <tr>\r\n    <td nowrap class=\"TableData\" align=\"center\">邮件内容[关键词3]:</td>\r\n    <td class=\"TableData\"><input type=\"text\" name=\"KEY3\" class=\"BigInput\" size=\"20\"></td>\r\n  </tr>\r\n  <tr class=\"TableData\">\r\n      <td nowrap align=\"center\">附件文件名包含文字:</td>\r\n      <td nowrap><input type=\"";
echo "text\" name=\"ATTACHMENT_NAME\" class=\"BigInput\" size=\"20\"></td>\r\n  </tr>\r\n  <tr >\r\n      <td nowrap class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n          <input type=\"hidden\" name=\"BOX_ID\" value=\"";
echo $BOX_ID;
echo "\">\r\n          <input type=\"submit\" value=\"查询\" class=\"BigButton\" title=\"进行文件查询\">&nbsp;&nbsp;\r\n          <input type=\"button\" value=\"返回\" class=\"BigButton\" onclick=\"location='../'\">\r\n      </td>\r\n  </tr>\r\n</table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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