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

📄 detail.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/common.inc" );
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 = com_str4ie( $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 );
	$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<form name=\"form1\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td><img src=\"/images/menu/book.gif\" align=\"absmiddle\">图书详细信息\r\n    </td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n  <td>\r\n  <a href=\"#\" onclick=\"window.close()\"><img src=\"/images/button/shut.gif\" border=\"0\"></a>\r\n  </td>\r\n  </tr>\r\n</table>\r\n\r\n<table border";
echo "=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"3\" align=\"center\" >\r\n  \r\n   <tr>\r\n    <td nowrap class=\"TableLine1\">部门:</td>\r\n    <td nowrap class=\"TableLine1\">\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=\"TableLine2\" width=\"120\">书名:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $BOOK_NAME;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">图书类别:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $TYPE_NAME;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">作者:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $AUTHOR;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">ISBN号:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $ISBN;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">出版社:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $PUB_HOUSE;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">出版日期:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $PUB_DATE;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">存放地点:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $AREA;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">数量:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $AMT;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">价格:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $PRICE;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">内容简介:</td>\r\n    <td class=\"TableLine1\">\r\n    ";
echo $BRIEF;
echo "    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">借阅范围:</td>\r\n    <td nowrap class=\"TableLine1\">\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=\"TableLine2\" width=\"120\">借阅状态:</td>\r\n    <td nowrap class=\"TableLine1\">\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=\"TableLine2\" width=\"120\">借阅人:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $BORR_PERSON;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"120\">备注:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n    ";
echo $MEMO;
echo "&nbsp;\r\n    </td>\r\n   </tr>\r\n   \r\n  \r\n</table>\r\n</form>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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