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

📄 index.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/reg_check.php" );
if ( $OA_REG_ON != 2 )
{
	exit( );
}
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";
echo "<s";
echo "cript>\r\nfunction delete_priv(USER_PRIV)\r\n{\r\n msg=\"确认要删除该角色么?\";\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?USER_PRIV=\"+USER_PRIV;\r\n  window.location=URL;\r\n }\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\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\">";
echo "<s";
echo "pan 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='edit.php';\" title=\"新建角色\">\r\n</div>\r\n\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%\" cellspa";
echo "cing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_open.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 管理角色</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<br>\r\n<div align=\"center\">\r\n\r\n";
$query = "SELECT * from USER_PRIV order by PRIV_NO";
$connection = openconnection( );
$cursor = exequery( $connection, $query );
$PRIV_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$PRIV_COUNT;
	$USER_PRIV = $ROW['USER_PRIV'];
	$PRIV_NO = $ROW['PRIV_NO'];
	$PRIV_NAME = $ROW['PRIV_NAME'];
	if ( $PRIV_COUNT == 1 )
	{
		echo "\r\n    <table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\">\r\n\r\n";
	}
	echo "    <tr class=\"TableData\">\r\n      <td nowrap align=\"center\" width=\"60\">";
	echo $PRIV_NO;
	echo "</td>\r\n      <td nowrap align=\"center\">";
	echo $PRIV_NAME;
	echo "</td>\r\n      <td nowrap align=\"center\">\r\n        <a href=\"edit.php?USER_PRIV=";
	echo $USER_PRIV;
	echo "\"> 编辑角色</a>&nbsp;&nbsp;\r\n        <a href=\"edit_priv.php?USER_PRIV=";
	echo $USER_PRIV;
	echo "\"> 编辑权限</a>&nbsp;&nbsp;\r\n        <a href=\"javascript:delete_priv('";
	echo $USER_PRIV;
	echo "')\"> 删除</a>\r\n      </td>\r\n    </tr>\r\n";
}
if ( 0 < $PRIV_COUNT )
{
	echo "    <thead class=\"TableHeader\">\r\n      <td nowrap align=\"center\">角色排序号</td>\r\n      <td nowrap align=\"center\">角色名称</td>\r\n      <td nowrap align=\"center\">操作</td>\r\n    </thead>\r\n    </table>\r\n";
}
else
{
	message( "", "尚未定义" );
}
echo "\r\n</div>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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