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

📄 index.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 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\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n   if(document.form1.TYPE_NAME.value==\"\")\r\n   { alert(\"类别名称不能为空!\");\r\n     return (false);\r\n   }\r\n}\r\n\r\nfunction delete_type(TYPE_ID)\r\n{\r\n msg='确认要删除该类别吗?';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?TYPE_ID=\" + TYPE_ID;\r\n  window.location=URL;\r\n }\r\n}\r\n</script>\r\n</head>\r\n";
$connection = openconnection( );
echo "<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.TYPE_NAME.focus();\">\r\n<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\"";
echo " src=\"/images/button/addbooktype.gif\" title=\"添加图书类别\">\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\"  cellpadding=\"5\"  >\r\n     <tr>\r\n    <td nowrap class=\"TableLine2\">类别名称:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"TYPE_NAME\" class=\"BigInput\" size=\"25\" maxlength=\"100\">&nbsp;\r\n    </td>\r\n   </tr>\r\n    \r\n</table>\r\n</for";
echo "m>\r\n<br>\r\n\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n   <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" >\r\n  <tr>\r\n    <td>图书类别列表\r\n    </td>\r\n  </tr>\r\n</table>\r\n";
$connection = openconnection( );
$query = "select * from BOOK_TYPE order by TYPE_ID";
$cursor = exequery( $connection, $query );
$TYPE_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$TYPE_COUNT;
	$TYPE_ID = $ROW['TYPE_ID'];
	$TYPE_NAME = $ROW['TYPE_NAME'];
	if ( $TYPE_COUNT == 1 )
	{
		echo "\r\n    <table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n\r\n";
	}
	if ( $TYPE_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo "    <tr class=\"";
	echo $TableLine;
	echo "\">\r\n    \t<td nowrap >";
	echo $TYPE_COUNT;
	echo "</td>\r\n      <td nowrap >";
	echo $TYPE_NAME;
	echo "</td>\r\n      <td nowrap  width=\"80\">\r\n      <a href=\"edit.php?TYPE_ID=";
	echo $TYPE_ID;
	echo "\"> 编辑</a>\r\n      <a href=\"javascript:delete_type(";
	echo $TYPE_ID;
	echo ");\"> 删除</a>\r\n      </td>\r\n    </tr>\r\n";
}
if ( 0 < $TYPE_COUNT )
{
	echo "    \r\n    <thead class=\"TableHeader\">\r\n      <td nowrap >序号</td>\r\n      <td nowrap >图书类别</td>\r\n      <td nowrap >操作</td>\r\n    </thead>\r\n    </table>\r\n";
}
else
{
	message( "", "尚未定义" );
}
echo "\r\n\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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