📄 index.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
?>
<html>
<head>
<title>新建图书 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function LoadWindow2()
{
URL="/general/book/borrow_manage/borrow/bookno_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:245px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function export_csv()
{
document.form1.action="export.php";
document.form1.submit();
document.form1.action="list.php";
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建图书 </span><br>
</td>
</tr>
</table>
<div align="center">
<input type="button" value="新建图书" class="BigButton" onClick="location='new.php';" title="添加新的图书">
<input type="button" value="导入图书" class="BigButton" onClick="location='import.php';" title="导入图书">
</div>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="/images/dian1.gif" width="100%"></td>
</tr>
</table>
<?
$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"];
}
?>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_open.gif" align="absmiddle"><span class="big3"> 管理图书</span>
</td>
</tr>
</table>
<br>
<div align="center">
<table class="TableBlock" width="450" align="center" >
<form action="list.php" method="post" name="form1" >
<tr>
<td nowrap class="TableData">图书类别:</td>
<td nowrap class="TableData">
<select name="TYPE_ID" class="BigSelect">
<option value="all">所有</option>
<?
$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"];
?>
<option value="<?=$TYPE_ID2?>" <? if($TYPE_ID2==$TYPE_ID1) echo "selected";?>><?=$TYPE_NAME?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td nowrap class="TableData" width="120">借阅状态:</td>
<td nowrap class="TableData">
<select name="LEND" class="BigSelect">
<option value="" selected>请选择 </option>
<option value="0">未借出 </option>
<option value="1" >已借出 </option>
</select>
</td>
</tr>
<tr>
<td nowrap class="TableData">书名: </td>
<td nowrap class="TableData">
<input type="text" name="BOOK_NAME" class="BigInput" size="33" maxlength="100">
</td>
</tr>
<tr>
<td nowrap class="TableData">图书编号:</td>
<td class="TableData">
<input type="text" name="BOOK_NO" class="BigStatic" size="26" maxlength="100" readonly value="<?=$BOOK_NO?>">
<input type="button" value="选 择" class="SmallButton" onClick="LoadWindow2()" title="选择图书编号" name="button">
</td>
</tr>
<tr>
<td nowrap class="TableData">作者: </td>
<td nowrap class="TableData">
<input type="text" name="AUTHOR" class="BigInput" size="33" maxlength="100">
</td>
</tr>
<tr>
<td nowrap class="TableData">ISBN号: </td>
<td nowrap class="TableData">
<input type="text" name="ISBN" class="BigInput" size="33" maxlength="100">
</td>
</tr>
<tr>
<td nowrap class="TableData">出版社: </td>
<td nowrap class="TableData">
<input type="text" name="PUB_HOUSE" class="BigInput" size="33" maxlength="100">
</td>
</tr>
<tr>
<td nowrap class="TableData">存放地点: </td>
<td nowrap class="TableData">
<input type="text" name="AREA" class="BigInput" size="33" maxlength="100">
</td>
</tr>
<tr>
<td nowrap class="TableData">排序字段:</td>
<td nowrap class="TableData">
<select name="ORDER_FIELD" class="BigSelect">
<option value="DEPT_ID">部门 </option>
<option value="TYPE_ID">类别 </option>
<option value="BOOK_NAME">书名 </option>
<option value="AUTHOR">作者 </option>
<option value="PUB_HOUSE">出版社 </option>
</select>
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="查询" class="BigButton" title="模糊查询" name="button">
<input type="button" value="导出" class="BigButton" onClick="export_csv();">
</td>
</tr>
</form>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -