index.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 187 行
PHP
187 行
<?
include_once 'inc/auth.php';
include_once 'inc/utility_all.php';
echo '
<html>
<head>
<title>新建图书 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
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");
}
';
echo '
</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">';
echo '<s';
echo 'pan class="big3"> 新建图书 </span><br>
</td>
</tr>
</table>
<div align="center">
<input type="button" value="新建图书" class="BigButton" onClick="location=\'new.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'];
}
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_open.gif" align="absmiddle">';
echo '<s';
echo 'pan class="big3"> 管理图书</span>
</td>
</tr>
</table>
<br>
<div align="center">
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="list.php" method="post" name="form1" >
<tr>
<td nowrap class="TableData">部门:</td>
<td nowrap class="TableData">
';
echo '<s';
echo 'elect name="DEPT_ID" class="BigSelect">
';
if (($POST_PRIV == '1'))
{
echo ' <option value="all">所有部门</option>
';
}
echo my_dept_tree (0, $LOGIN_DEPT_ID, 0);
echo ' </select>
</td>
</tr>
<tr>
<td nowrap class="TableData">图书类别:</td>
<td nowrap class="TableData">
';
echo '<s';
echo 'elect 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'];
echo ' <option value="';
echo $TYPE_ID2;
echo '" ';
if (($TYPE_ID2 == $TYPE_ID1))
{
echo 'selected';
}
echo '>';
echo $TYPE_NAME;
echo '</option>
';
}
echo ' </select>
</td>
</tr>
<tr>
<td nowrap class="TableData" width="120">借阅状态:</td>
<td nowrap class="TableData">
';
echo '<s';
echo 'elect 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"> ';
echo '
</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="';
echo $BOOK_NO;
echo '">
<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';
echo '>
<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">存放地点: </t';
echo 'd>
<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">
';
echo '<s';
echo 'elect 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">
';
echo ' <input type="submit" value="查询" class="BigButton" title="模糊查询" name="button">
</td>
</tr>
</form>
</table>
</div>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?