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

📄 new.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_all.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\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n   if(document.form1.BOOK_NAME.value==\"\")\r\n   { alert(\"书名不能为空!\");\r\n     return (false);\r\n   }\r\n}\r\n\r\nfunction delete_all()\r\n{\r\n msg='确认要删除全部图书吗?';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete_all.php\";\r\n  window.location=URL;\r\n }\r\n}\r\n\r\nfunction td_calendar(fieldname)\r\n{\r\n  myleft=document.body.scrollLeft+event.clientX-event.of";
echo "fsetX-80;\r\n  mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n  //window.open(\"/inc/calendar.php?FIELDNAME=\"+fieldname,\"td_calendar\",\"height=176,width=240,status=0,toolbar=no,menubar=no,location=no,scrollbars=no,top=\"+mytop+\",left=\"+myleft+\",resizable=yes\");\r\n  window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;di";
echo "alogWidth:280px;dialogHeight:205px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$connection = openconnection( );
$query = "select * from BOOK_TYPE";
$cursor = exequery( $connection, $query );
if ( !( $ROW = mysql_fetch_array( $cursor ) ) )
{
	echo "    <body class=\"bodycolor\" topmargin=\"5\">\r\n";
	message( "提示", "请首先定义图书类别" );
	button_back( );
	exit( );
}
echo "\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.BOOK_NAME.focus();\">\r\n\r\n";
$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 "<form action=\"add.php\"  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n  <td ><img src=\"/images/manage/asset.gif\" align=\"absmiddle\">新建图书\r\n  </td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n  <td><input type=\"image\" src=\"/images/button/submit.gif\" title=\"添加图书\">\r\n  <a href=\"index.php\"><img src=\"/images/but";
echo "ton/return.gif\" border=\"0\"></a>\r\n  </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\"  cellpadding=\"5\">\r\n  \r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">部门:</td>\r\n    <td nowrap class=\"TableLine2\">\r\n        ";
echo "<s";
echo "elect name=\"DEPT_ID\" class=\"BigSelect\">\r\n";
echo my_dept_tree( 0, $LOGIN_DEPT_ID, 0 );
echo "        </select>\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        <input type=\"text\" name=\"BOOK_NAME\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
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 "<s";
echo "elect name=\"TYPE_ID\" class=\"BigSelect\">\r\n";
$query = "SELECT * from BOOK_TYPE order by TYPE_ID";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$TYPE_ID1 = $ROW['TYPE_ID'];
	$TYPE_NAME = $ROW['TYPE_NAME'];
	echo "          <option value=\"";
	echo $TYPE_ID1;
	echo "\" ";
	if ( $TYPE_ID1 == $TYPE_ID )
	{
		echo "selected";
	}
	echo ">";
	echo $TYPE_NAME;
	echo "</option>\r\n";
}
echo "        </select>\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        <input type=\"text\" name=\"AUTHOR\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
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        <input type=\"text\" name=\"ISBN\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
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        <input type=\"text\" name=\"PUB_HOUSE\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
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        <input type=\"text\" name=\"PUB_DATE\" class=\"BigInput\" size=\"30\" maxlength=\"10\" value=\"";
echo $PUB_DATE;
echo "\">&nbsp;\r\n        <img src=\"/images/menu/calendar1.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.PUB_DATE');\">\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        <input type=\"text\" name=\"AREA\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
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        <input type=\"text\" name=\"AMT\" class=\"BigInput\" size=\"25\" maxlength=\"11\" value=\"";
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        <input type=\"text\" name=\"PRICE\" class=\"BigInput\" size=\"25\" maxlength=\"10\" value=\"";
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 nowrap class=\"TableLine1\">\r\n      <textarea cols=50 rows=10 name=\"BRIEF\"  wrap=\"PHYSIVAL\">";
echo $BRIEF;
echo "</textarea>\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 "<s";
echo "elect name=\"OPEN\" class=\"BigSelect\">\r\n          <option value=\"0\" ";
if ( $OPEN == "0" || $OPEN == "" )
{
	echo "selected";
}
echo ">本部门 </option>\r\n          <option value=\"1\" ";
if ( $OPEN == "1" )
{
	echo "selected";
}
echo ">全体 </option>\r\n       </select>\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 "<s";
echo "elect name=\"LEND\" class=\"BigSelect\">\r\n          <option value=\"0\" ";
if ( $LEND == "0" || $LEND == "" )
{
	echo "selected";
}
echo ">未借出 </option>\r\n          <option value=\"1\" ";
if ( $LEND == "1" )
{
	echo "selected";
}
echo ">已借出 </option>\r\n       </select>\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        <input type=\"text\" name=\"BORR_PERSON\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
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        <input type=\"text\" name=\"MEMO\" class=\"BigInput\" size=\"33\" maxlength=\"100\" value=\"";
echo $MEMO;
echo "\">&nbsp;\r\n    </td>\r\n   </tr>\r\n     \r\n</table>\r\n</form>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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