query.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 128 行

PHP
128
字号
<?
  include_once 'inc/auth.php';
  include_once 'inc/utility_all.php';
  echo '
<html>
<head>
<title>新闻查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript Language="JavaScript">
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';
  echo '+"px");
}
function checkForm()
{
   if(document.all("OPERATION1").checked)
      document.form1.action="search.php";
   else if(document.all("OPERATION2").checked)
      document.form1.action="search_del.php";
   return true;
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="B';
  echo 'ig"><img align="absMiddle" src="/images/menu/infofind.gif"  width="24" height="24">';
  echo '<s';
  echo 'pan class="big3"> 新闻查询</span>
    </td>
  </tr>
</table>
<table border="0" width="500" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
  <form enctype="multipart/form-data" action="search.php"  method="post" name="form1" onsubmit="return checkForm();">
    <tr>
      <td nowrap class="TableData" width="100"> 格式:</td>
      <td class="TableData">
      ';
  echo '<s';
  echo 'elect name="FORMAT" class="BigSelect">
        <option value="" selected>全部</option>
        <option value="0">普通格式</option>
        <option value="1">MHT格式</option>
      </select>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 类型:</td>
      <td class="TableData"> 
        ';
  echo '<s';
  echo 'elect name="TYPE_ID" class="BigSelect">
          <option value="" selected>全部</option>
          ';
  echo code_list ('NEWS', '');
  echo '        </select>&nbsp;
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData" width="100"> 状态:</td>
      <td class="TableData">
      ';
  echo '<s';
  echo 'elect name="PUBLISH" class="BigSelect">
        <option value="" selected>全部</option>
        <option value="0">未发布</option>
        <option value="1">已发布</option>
      </select>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData" width="100"> 标题:</td>
      <td class="TableData">
        <input type="text" name="SUBJECT" size="33" maxlength="100" class="BigInput" value="">
';
  echo '      </td>
    </tr>
    <tr>
      <td nowrap class="TableData" width="100"> 发布日期:</td>
      <td class="TableData">
        <input type="text" name="SEND_TIME_MIN" size="12" maxlength="10" class="BigInput" value="">
        <img align="absMiddle" src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar(\'form1.SEND_TIME_MIN\');"> 至&nbsp;
        <input type="text" n';
  echo 'ame="SEND_TIME_MAX" size="12" maxlength="10" class="BigInput" value="">
        <img align="absMiddle" src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar(\'form1.SEND_TIME_MAX\');">
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData" width="100"> 内容:</td>
      <td class="TableData">
        <input type="text" name="CONTENT" size="33" maxlength="200" ';
  echo 'class="BigInput" value="">
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData" width="100"> 点击次数:</td>
      <td class="TableData">
        <input type="text" name="CLICK_COUNT_MIN" size="4" maxlength="10" class="BigInput" value=""> &nbsp;至&nbsp;
        <input type="text" name="CLICK_COUNT_MAX" size="4" maxlength="10" class="BigInput" value="">
      </td>
    </tr>
    <tr>
 ';
  echo '     <td nowrap class="TableData" width="100"> 操作:</td>
      <td class="TableData">
        <input type="radio" name="OPERATION" id="OPERATION1" value="1" checked><label for="OPERATION1">查询</label>
        <input type="radio" name="OPERATION" id="OPERATION2" value="2"><label for="OPERATION2">删除</label>
      </td>
    </tr>
    <tr align="center" class="TableControl">
      <td colspan="2" nowra';
  echo 'p>
        <input type="submit" value="确定" class="BigButton">&nbsp;&nbsp;
        <input type="reset" value="重填" class="BigButton">&nbsp;&nbsp;
      </td>
    </tr>
  </table>
</form>
</body>
</html>';
?>

⌨️ 快捷键说明

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