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

📄 index.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 新建图书 </span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<div align=\"center\">\r\n<input type=\"button\"  value=\"新建图书\" class=\"BigButton\" onClick=\"location='new.php';\" title=\"添加新的图书\">\r\n</div>\r\n\r\n<br>\r\n\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n   <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\r\n";
$connection = openconnection( );
$query = "SELECT * from USER where USER_ID='{$LOGIN_USER_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$POST_PRIV = $ROW['POST_PRIV'];
	$POST_DEPT = $ROW['POST_DEPT'];
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_open.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 管理图书</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<div align=\"center\">\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n  <form action=\"list.php\"  method=\"post\" name=\"form2\" >  \r\n   <tr>\r\n    <td nowrap class=\"TableData\">部门:</td>\r\n    <td nowrap class=\"TableData\">\r\n        ";
echo "<s";
echo "elect name=\"DEPT_ID\" class=\"BigSelect\">\r\n";
if ( $POST_PRIV == "1" )
{
	echo "          <option value=\"all\">所有部门</option>\r\n";
}
echo my_dept_tree( 0, $LOGIN_DEPT_ID, 0 );
echo "        </select>\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">图书类别:</td>\r\n    <td nowrap class=\"TableData\">\r\n        ";
echo "<s";
echo "elect name=\"TYPE_ID\" class=\"BigSelect\">\r\n        <option value=\"all\">所有</option>\r\n";
$query = "SELECT * from BOOK_TYPE order by TYPE_ID";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$TYPE_ID2 = $ROW['TYPE_ID'];
	$TYPE_NAME = $ROW['TYPE_NAME'];
	echo "          <option value=\"";
	echo $TYPE_ID2;
	echo "\" ";
	if ( $TYPE_ID2 == $TYPE_ID1 )
	{
		echo "selected";
	}
	echo ">";
	echo $TYPE_NAME;
	echo "</option>\r\n";
}
echo "        </select>\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">书名: </td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"BOOK_NAME\" class=\"BigInput\" size=\"33\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">作者: </td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"AUTHOR\" class=\"BigInput\" size=\"33\" maxlength";
echo "=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">ISBN号: </td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"ISBN\" class=\"BigInput\" size=\"33\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">出版社: </td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"PUB_HOUSE\" class=\"BigInput\" size=\"33\" maxlength=";
echo "\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">存放地点: </td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"AREA\" class=\"BigInput\" size=\"33\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">排序字段:</td>\r\n    <td nowrap class=\"TableData\">\r\n        ";
echo "<s";
echo "elect name=\"ORDER_FIELD\" class=\"BigSelect\">\r\n          <option value=\"DEPT_ID\">部门 </option>\r\n          <option value=\"TYPE_ID\">类别 </option>\r\n          <option value=\"BOOK_NAME\">书名 </option>\r\n          <option value=\"AUTHOR\">作者 </option>\r\n          <option value=\"PUB_HOUSE\">出版社 </option>\r\n        </select>\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap  class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n";
echo "        <input type=\"submit\" value=\"查询\" class=\"BigButton\" title=\"模糊查询\" name=\"button\">\r\n    </td>\r\n   </tr>\r\n  </form>\r\n</table>\r\n\r\n</div>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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