📄 detail.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( "<", "<", $BOOK_NAME );
$BOOK_NAME = str_replace( ">", ">", $BOOK_NAME );
$BOOK_NAME = stripslashes( $BOOK_NAME );
$AUTHOR = str_replace( "<", "<", $AUTHOR );
$AUTHOR = str_replace( ">", ">", $AUTHOR );
$AUTHOR = stripslashes( $AUTHOR );
$ISBN = str_replace( "<", "<", $ISBN );
$ISBN = str_replace( ">", ">", $ISBN );
$ISBN = stripslashes( $ISBN );
$PUB_HOUSE = str_replace( "<", "<", $PUB_HOUSE );
$PUB_HOUSE = str_replace( ">", ">", $PUB_HOUSE );
$PUB_HOUSE = stripslashes( $PUB_HOUSE );
$PUB_DATE = str_replace( "<", "<", $PUB_DATE );
$PUB_DATE = str_replace( ">", ">", $PUB_DATE );
$PUB_DATE = stripslashes( $PUB_DATE );
$AREA = str_replace( "<", "<", $AREA );
$AREA = str_replace( ">", ">", $AREA );
$AREA = stripslashes( $AREA );
$AMT = str_replace( "<", "<", $AMT );
$AMT = str_replace( ">", ">", $AMT );
$AMT = stripslashes( $AMT );
$PRICE = str_replace( "<", "<", $PRICE );
$PRICE = str_replace( ">", ">", $PRICE );
$PRICE = stripslashes( $PRICE );
$BRIEF = str_replace( "<", "<", $BRIEF );
$BRIEF = str_replace( ">", ">", $BRIEF );
$BRIEF = stripslashes( $BRIEF );
$BRIEF = str_replace( " ", " ", $BRIEF );
$BRIEF = str_replace( "\n", "<br>", $BRIEF );
$BORR_PERSON = str_replace( "<", "<", $BORR_PERSON );
$BORR_PERSON = str_replace( ">", ">", $BORR_PERSON );
$BORR_PERSON = stripslashes( $BORR_PERSON );
$MEMO = str_replace( "<", "<", $MEMO );
$MEMO = str_replace( ">", ">", $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 " \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 " \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 " \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 " \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 " \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 " \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 " \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 " \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 " \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 " \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 " \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 " \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 + -