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

📄 index.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once("inc/auth.php");
?>

<html>
<head>
<title>查询邮件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script>
function CheckForm()
{
   if(document.form1.BOX.selectedIndex<4)
      document.form1.BOX_ID.value="0";
   else
      document.form1.BOX_ID.value=document.form1.BOX.value;
      
   if(document.form1.BOX.selectedIndex==1||document.form1.BOX.selectedIndex==2)
      obj=document.all("TO_ID");
   else
      obj=document.all("FROM_ID");
      
   if(obj.value=="" && document.form1.READ_FLAG.value=="" && document.form1.SUBJECT.value=="" && document.form1.KEY1.value=="" && document.form1.KEY2.value=="" && document.form1.KEY3.value=="" && document.form1.ATTACHMENT_NAME.value=="" && document.form1.SEND_TIME_MIN.value=="" && document.form1.SEND_TIME_MAX.value=="")
   { alert("请指定至少一个查询条件!");
     return (false);
   }

   return true;
}
function which_box()
{
   if(document.form1.BOX.selectedIndex==1||document.form1.BOX.selectedIndex==2)
   {
   	   document.all("FROM").style.display="none";
   	   document.all("TO").style.display="";
   	   document.form1.TO_ID.focus()
   }
   else
   {
   	   document.all("FROM").style.display="";
   	   document.all("TO").style.display="none";
   	   document.form1.FROM_ID.focus()
   }
}

function td_calendar(fieldname)
{
  myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;
  mytop=document.body.scrollTop+event.clientY-event.offsetY+140;

  window.showModalDialog("/inc/calendar.php?FIELDNAME="+fieldname,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:215px;dialogTop:"+mytop+"px;dialogLeft:"+myleft+"px");
}

function td_clock(fieldname)
{
  myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;
  mytop=document.body.scrollTop+event.clientY-event.offsetY+140;

  window.showModalDialog("/inc/clock.php?FIELDNAME="+fieldname,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:120px;dialogTop:"+mytop+"px;dialogLeft:"+myleft+"px");
}
</script>
</head>

<body class="bodycolor" topmargin="5" onload="document.form1.FROM_ID.focus();">

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/menu/infofind.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3">查询邮件</span><br>
    </td>
  </tr>
</table>

<br>

<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center">
<form action="search.php" name="form1" onsubmit="return CheckForm();">
  <tr class="TableData">
      <td nowrap align="center">选择邮箱:</td>
      <td nowrap>
        <select name="BOX" class="BigSelect" onchange="which_box();">
          <option value="1">收件箱</option>
          <option value="2">发件箱</option>
          <option value="3">已发送邮件箱</option>
          <option value="4">已删除邮件箱</option>
<?
 $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"];
?>
         <option value=<?=$BOX_ID1?>><?=$BOX_NAME?></option>
<?
  }
?>
        </select>
      </td>
  </tr>
  <tr class="TableData">
      <td nowrap align="center">邮件状态:</td>
      <td nowrap>
        <select name="READ_FLAG" class="BigSelect">
          <option value="">所有</option>
          <option value="0">未读</option>
          <option value="1">已读</option>
        </select>
      </td>
  </tr>
  <tr class="TableData">
      <td nowrap align="center">日期:</td>
      <td nowrap>
        <input type="text" name="SEND_TIME_MIN" size="20" maxlength="19" class="BigInput" value="">
        <img align="absMiddle" src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.SEND_TIME_MIN');">
        <img align="absMiddle" src="/images/menu/clock.gif" border="0" style="cursor:hand" onclick="td_clock('form1.SEND_TIME_MIN');"> 至&nbsp;
        <input type="text" name="SEND_TIME_MAX" size="20" maxlength="19" class="BigInput" value="">
        <img align="absMiddle" src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.SEND_TIME_MAX');">
        <img align="absMiddle" src="/images/menu/clock.gif" border="0" style="cursor:hand" onclick="td_clock('form1.SEND_TIME_MAX');">
      </td>
  </tr>
  <tr class="TableData" id="FROM">
      <td nowrap align="center">发件人:</td>
      <td nowrap><input type="text" name="FROM_ID" class="BigInput" size="20"></td>
  </tr>
  <tr class="TableData" id="TO" style="display:none">
      <td nowrap align="center">收件人:</td>
      <td nowrap><input type="text" name="TO_ID" class="BigInput" size="20"></td>
  </tr>
  <tr class="TableData">
      <td nowrap align="center">邮件主题包含文字:</td>
      <td nowrap><input type="text" name="SUBJECT" class="BigInput" size="20"></td>
  </tr>
  <tr>
    <td nowrap class="TableData" align="center">邮件内容[关键词1]:</td>
    <td class="TableData"><input type="text" name="KEY1" class="BigInput" size="20"></td>
  </tr>
  <tr>
    <td nowrap class="TableData" align="center">邮件内容[关键词2]:</td>
    <td class="TableData"><input type="text" name="KEY2" class="BigInput" size="20"></td>
  </tr>
  <tr>
    <td nowrap class="TableData" align="center">邮件内容[关键词3]:</td>
    <td class="TableData"><input type="text" name="KEY3" class="BigInput" size="20"></td>
  </tr>
  <tr class="TableData">
      <td nowrap align="center">附件文件名包含文字:</td>
      <td nowrap><input type="text" name="ATTACHMENT_NAME" class="BigInput" size="20"></td>
  </tr>
  <tr >
      <td nowrap class="TableControl" colspan="2" align="center">
          <input type="hidden" name="BOX_ID" value="<?=$BOX_ID?>">
          <input type="submit" value="查询" class="BigButton" title="进行文件查询">&nbsp;&nbsp;
          <input type="button" value="返回" class="BigButton" onclick="location='../'">
      </td>
  </tr>
</table>
</form>

</body>
</html>

⌨️ 快捷键说明

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