📄 query.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/conn.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.ATTACHMENT_NAME.value==\"\"&&document.form1.key.value==\"\")\r\n { alert(\"请指定至少一个查询条件!\");\r\n return (false);\r\n }\r\n\r\n return true;\r\n}\r\n\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.ATTACHMENT_NAME.focus();\">\r\n";
$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'];
}
echo "<form action=\"search.php\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr class=\"tablehead1\">\r\n <td><img src=\"/images/menu/netdisk.gif\" align=\"absmiddle\">";
echo $DISK_NAME;
echo "/";
echo $rep;
echo " - 文件检索\r\n </td>\r\n </tr>\r\n <tr class=\"tablehead2\">\r\n <td>\r\n <input type=\"image\" src=\"/images/button/search.gif\" title=\"进行文件查询\">\r\n <a href=\"netdisk.php?DISK_ID=";
echo $DISK_ID;
echo "&rep=";
echo $rep;
echo "\"><img src=\"/images/button/return.gif\" border=\"0\"></a>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\" >\r\n\r\n <tr class=\"TableLine2\">\r\n <td nowrap width=\"20%\">文件名包含文字:</td>\r\n <td nowrap><input type=\"text\" name=\"ATTACHMENT_NAME\" class=\"BigInput\" size=\"20\"></td>\r\n </tr>\r\n <tr class=\"TableLine1\">\r\n <td nowrap >文件内容包含文";
echo "字:</td>\r\n <td nowrap><input type=\"text\" name=\"key\" class=\"BigInput\" size=\"20\">\r\n </td>\r\n </tr>\r\n \r\n <input type=\"hidden\" name=\"DISK_ID\" value=\"";
echo $DISK_ID;
echo "\">\r\n <input type=\"hidden\" name=\"REP\" value=\"";
echo $rep;
echo "\">\r\n \r\n \r\n</table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -