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

📄 query.php

📁 通达OA2007SE源代码 非常好的
💻 PHP
字号:
<?
  include_once 'inc/auth.php';
  echo '
<html>
<head>
<title>文件检索 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript>
function CheckForm()
{
   if(document.form1.ATTACHMENT_NAME.value==""&&document.form1.key.value=="")
   { alert("请指定至少一个查询条件!");
     return (false);
   }
   return true;
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.ATTACHMENT_NAME.focus();">
';
  $query = ((''.'select * from NETDISK where DISK_ID=').$DISK_ID);
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $DISK_NAME = $ROW['DISK_NAME'];
  }
  echo '<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"><b>';
  echo '<s';
  echo 'pan class="Big1"> ';
  echo $DISK_NAME;
  echo '/';
  echo $rep;
  echo ' - 文件检索</span></b><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><input type="text" name="ATTACHMENT_NAME" class="BigInput" size="';
  echo '20"></td>
  </tr>
  <tr class="TableData">
      <td nowrap align="center">文件内容包含文字:</td>
      <td nowrap><input type="text" name="key" class="BigInput" size="20"><br>
      默认只检查文本文件
      </td>
  </tr>
';
  if ((strtolower (substr (PHP_OS, 0, 3)) == 'win'))
  {
    echo '  <tr class="TableData">
      <td nowrap align="center">检索Word文档内容:</td>
      <td nowrap><input type="checkbox" name="SEARCH_DOC" id="SEARCH_DOC">&nbsp;&nbsp;<label for="SEARCH_DOC">可能会导致搜索速度很慢!</label></td>
  </tr>
';
  }
  echo '  <tr >
      <td nowrap class="TableControl" colspan="2" align="center">
          <input type="hidden" name="DISK_ID" value="';
  echo $DISK_ID;
  echo '">
          <input type="hidden" name="REP" value="';
  echo $rep;
  echo '">
          <input type="submit" value="查询" class="BigButton" title="进行文件查询">&nbsp;&nbsp;
          <input type="button" value="返回" class="BigButton" onclick="location=\'netdisk.php?DISK_ID=';
  echo $DISK_ID;
  echo '&rep=';
  echo $rep;
  echo '\'">
      </td>
  </tr>
</table>
</form>
</body>
</html>';
?>

⌨️ 快捷键说明

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