📄 index.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<script>\r\nfunction delete_group(GROUP_ID)\r\n{\r\n msg='确认要删除该用户组么?';\r\n if(window.confirm(msg))\r\n {\r\n URL=\"delete.php?GROUP_ID=\" + GROUP_ID;\r\n window.location=URL;\r\n }\r\n}\r\n</script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\"><span class=\"big3\"> 新建公共用户组</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<div align=\"center\">\r\n<input type=\"button\" value=\"新建公共用户组\" class=\"BigButton\" onClick=\"location='new.php';\" title=\"创建新的公共用户组\">\r\n</div>\r\n\r\n<br>\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/notify_open.gif\" align=\"absmiddle\"><span class=\"big3\"> 管理公共用户组</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n";
$query = "SELECT * from USER_GROUP where USER_ID='' order by ORDER_NO";
$cursor = exequery( $connection, $query );
if ( mysql_num_rows( $cursor ) == 0 )
{
message( "", "无定义的用户组" );
exit( );
}
echo "<table class=\"TableBlock\" align=\"center\">\r\n <tr class=\"TableHeader\">\r\n <td nowrap align=\"center\" width=\"200\">用户组名称</td>\r\n <td nowrap align=\"center\" width=\"60\">排序号</td>\r\n <td nowrap align=\"center\" width=\"120\">操作</td>\r\n </tr>\r\n";
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$GROUP_ID = $ROW['GROUP_ID'];
$GROUP_NAME = $ROW['GROUP_NAME'];
$ORDER_NO = $ROW['ORDER_NO'];
echo " <tr class=\"TableData\">\r\n <td nowrap align=\"center\">";
echo $GROUP_NAME;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $ORDER_NO;
echo "</td>\r\n <td nowrap align=\"center\">\r\n <a href=\"edit.php?GROUP_ID=";
echo $GROUP_ID;
echo "\"> 编辑</a>\r\n <a href=\"javascript:delete_group(";
echo $GROUP_ID;
echo ");\"> 删除</a>\r\n <a href=\"set_user.php?GROUP_ID=";
echo $GROUP_ID;
echo "\"> 设置用户</a>\r\n </td>\r\n </tr>\r\n";
}
echo "</table>\r\n<br>\r\n<div align=\"center\">\r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" title=\"返回\" name=\"button2\" OnClick=\"location='../dept_new.php'\">\r\n</div>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -