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

📄 index.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once 'inc/reg_check.php';
if ($OA_REG_ON != 2)
{
	exit ();
}
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>角色管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function delete_priv(USER_PRIV)
{
 msg="确认要删除该角色么?";
 if(window.confirm(msg))
 {
URL="delete.php?USER_PRIV="+USER_PRIV;
window.location=URL;
 }
}
</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"><span class="big3"> 新建角色</span><br>
	</td>
</tr>
</table>
<div align="center">
<input type="button"  value="新建角色" class="BigButton" onClick="location=\'edit.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>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
	<td class="Big"><img src="/images/notify_open.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 管理角色</span>
	</td>
</tr>
</table>
<br>
<div align="center">
';
$query = 'SELECT * from USER_PRIV order by PRIV_NO';
$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 '
	<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3">
';
	}
	echo '    <tr class="TableData">
		<td nowrap align="center" width="60">';
	echo $PRIV_NO;
	echo '</td>
		<td nowrap align="center">';
	echo $PRIV_NAME;
	echo '</td>
		<td nowrap>&nbsp;&nbsp;
			<a href="edit.php?USER_PRIV=';
	echo $USER_PRIV;
	echo '"> 编辑角色</a>&nbsp;&nbsp;
			<a href="edit_priv.php?USER_PRIV=';
	echo $USER_PRIV;
	echo '"> 编辑权限</a>&nbsp;&nbsp;
			<a href="clone?USER_PRIV=';
	echo $USER_PRIV;
	echo '">克隆</a>&nbsp;&nbsp;
';
	if ($USER_PRIV != 1)
	{
		echo '        <a href="javascript:delete_priv(\'';
		echo $USER_PRIV;
		echo '\')"> 删除</a>
';
	}
	echo '      </td>
	</tr>
';
}
if (0 < $PRIV_COUNT)
{
	echo '    <thead class="TableHeader">
		<td nowrap align="center">角色排序号</td>
		<td nowrap align="center">角色名称</td>
		<td nowrap align="center">操作</td>
	</thead>
	</table>
';
}
else
{
	message ('', '尚未定义');
}
echo '
</div>
</body>
</html>';
?>

⌨️ 快捷键说明

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