📄 query.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/conn.php");
?>
<html>
<head>
<title>文件检索 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
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();">
<?
$connection=OpenConnection();
$query = "select * from NETDISK where DISK_ID=$DISK_ID";
$cursor=exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
$DISK_NAME=$ROW["DISK_NAME"];
?>
<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><span class="Big1"> <?=$DISK_NAME?>/<?=$rep?> - 文件检索</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="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")
{
?>
<tr class="TableData">
<td nowrap align="center">检索Word文档内容:</td>
<td nowrap><input type="checkbox" name="SEARCH_DOC" id="SEARCH_DOC"> <label for="SEARCH_DOC">可能会导致搜索速度很慢!</label></td>
</tr>
<?
}
?>
<tr >
<td nowrap class="TableControl" colspan="2" align="center">
<input type="hidden" name="DISK_ID" value="<?=$DISK_ID?>">
<input type="hidden" name="REP" value="<?=$rep?>">
<input type="submit" value="查询" class="BigButton" title="进行文件查询">
<input type="button" value="返回" class="BigButton" onclick="location='netdisk.php?DISK_ID=<?=$DISK_ID?>&rep=<?=$rep?>'">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -