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

📄 detail.php

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

include_once( "inc/auth.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</head>\r\n\r\n";
$connection = openconnection( );
$query = "SELECT * from BOOK_INFO where BOOK_ID={$BOOK_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$BOOK_NAME = $ROW['BOOK_NAME'];
	$TYPE_ID = $ROW['TYPE_ID'];
	$AUTHOR = $ROW['AUTHOR'];
	$ISBN = $ROW['ISBN'];
	$PUB_HOUSE = $ROW['PUB_HOUSE'];
	$PUB_DATE = $ROW['PUB_DATE'];
	$AREA = $ROW['AREA'];
	$AMT = $ROW['AMT'];
	$PRICE = $ROW['PRICE'];
	$BRIEF = $ROW['BRIEF'];
	$OPEN = $ROW['OPEN'];
	$LEND = $ROW['LEND'];
	$BORR_PERSON = $ROW['BORR_PERSON'];
	$MEMO = $ROW['MEMO'];
	$DEPT = $ROW['DEPT'];
	$BOOK_NAME = str_replace( "<", "&lt", $BOOK_NAME );
	$BOOK_NAME = str_replace( ">", "&gt", $BOOK_NAME );
	$BOOK_NAME = stripslashes( $BOOK_NAME );
	$AUTHOR = str_replace( "<", "&lt", $AUTHOR );
	$AUTHOR = str_replace( ">", "&gt", $AUTHOR );
	$AUTHOR = stripslashes( $AUTHOR );
	$ISBN = str_replace( "<", "&lt", $ISBN );
	$ISBN = str_replace( ">", "&gt", $ISBN );
	$ISBN = stripslashes( $ISBN );
	$PUB_HOUSE = str_replace( "<", "&lt", $PUB_HOUSE );
	$PUB_HOUSE = str_replace( ">", "&gt", $PUB_HOUSE );
	$PUB_HOUSE = stripslashes( $PUB_HOUSE );
	$PUB_DATE = str_replace( "<", "&lt", $PUB_DATE );
	$PUB_DATE = str_replace( ">", "&gt", $PUB_DATE );
	$PUB_DATE = stripslashes( $PUB_DATE );
	$AREA = str_replace( "<", "&lt", $AREA );
	$AREA = str_replace( ">", "&gt", $AREA );
	$AREA = stripslashes( $AREA );
	$AMT = str_replace( "<", "&lt", $AMT );
	$AMT = str_replace( ">", "&gt", $AMT );
	$AMT = stripslashes( $AMT );
	$PRICE = str_replace( "<", "&lt", $PRICE );
	$PRICE = str_replace( ">", "&gt", $PRICE );
	$PRICE = stripslashes( $PRICE );
	$BRIEF = str_replace( "<", "&lt", $BRIEF );
	$BRIEF = str_replace( ">", "&gt", $BRIEF );
	$BRIEF = stripslashes( $BRIEF );
	$BRIEF = str_replace( "  ", "&nbsp;&nbsp;", $BRIEF );
	$BRIEF = str_replace( "\n", "<br>", $BRIEF );
	$BORR_PERSON = str_replace( "<", "&lt", $BORR_PERSON );
	$BORR_PERSON = str_replace( ">", "&gt", $BORR_PERSON );
	$BORR_PERSON = stripslashes( $BORR_PERSON );
	$MEMO = str_replace( "<", "&lt", $MEMO );
	$MEMO = str_replace( ">", "&gt", $MEMO );
	$MEMO = stripslashes( $MEMO );
}
$query = "SELECT TYPE_NAME from BOOK_INFO A,BOOK_TYPE B where A.TYPE_ID=B.TYPE_ID and A.BOOK_ID={$BOOK_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$TYPE_NAME = $ROW['TYPE_NAME'];
}
echo "\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/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 图书详细信息</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n  <form name=\"form1\">\r\n   <tr>\r\n    <td nowrap class=\"TableData\">部门:</td>\r\n    <td nowrap class=\"TableData\">\r\n";
$query = "SELECT B.DEPT_NAME from BOOK_INFO A,DEPARTMENT B where A.DEPT=B.DEPT_ID and A.DEPT='{$DEPT}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$DEPT_NAME = $ROW[0];
}
echo "      ";
echo $DEPT_NAME;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">书名:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $BOOK_NAME;
echo "&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 $TYPE_NAME;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">作者:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $AUTHOR;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">ISBN号:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $ISBN;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">出版社:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $PUB_HOUSE;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">出版日期:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $PUB_DATE;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">存放地点:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $AREA;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">数量:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $AMT;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">价格:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $PRICE;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">内容简介:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $BRIEF;
echo "    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">借阅范围:</td>\r\n    <td nowrap class=\"TableData\">\r\n";
if ( $OPEN == "1" )
{
	echo "      全体\r\n";
}
else
{
	echo "  本部门\r\n";
}
echo "    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">借阅状态:</td>\r\n    <td nowrap class=\"TableData\">\r\n";
if ( $LEND == "1" )
{
	echo "已借出\r\n";
}
else
{
	echo "未借出\r\n";
}
echo "    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">借阅人:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $BORR_PERSON;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\" width=\"120\">备注:</td>\r\n    <td nowrap class=\"TableData\">\r\n    ";
echo $MEMO;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr align=\"center\" class=\"TableControl\">\r\n     <td colspan=\"2\">\r\n       <input type=\"button\" value=\"关闭\" class=\"BigButton\" onClick=\"javascript:window.close();\">\r\n     </td>\r\n   </tr>\r\n  </form>\r\n</table>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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