📄 dept.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
var CUR_ID="1";
function clickMenu(ID)
{
targetelement=document.all(CUR_ID);
if(ID==CUR_ID)
{
if (targetelement.style.display=="none")
targetelement.style.display='';
else
targetelement.style.display="none";
}
else
{
targetelement.style.display="none";
targetelement=document.all(ID);
targetelement.style.display="";
}
CUR_ID=ID;
}
</script>
</head>
<body class="bodycolor" topmargin="1" leftmargin="0">
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" onclick="clickMenu('1')" style="cursor:hand" title="点击伸缩列表">
<td nowrap align="center"><b>按部门选择</b></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" cellpadding="3" id="1">
<tr class="TableControl">
<td>
<?
$PARA_URL="user.php";
$PARA_TARGET="user";
$PARA_ID="ID";
$PARA_VALUE=$ID;
$PRIV_NO_FLAG=0;
include_once("inc/dept_list/index.php");
?>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" onclick="clickMenu('0')" style="cursor:hand" title="点击伸缩列表">
<td nowrap align="center"><b>按角色选择</b></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" id="0" style="display:none">
<?
//============================ 显示部门信息 =======================================
$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_NAME=$ROW["PRIV_NAME"];
?>
<tr class="TableControl">
<td align="center" onclick="javascript:parent.user.location='user.php?ID=<?=$ID?>&USER_PRIV=<?=$USER_PRIV?>&POST_PRIV=<?=$POST_PRIV?>&POST_DEPT=<?=$POST_DEPT?>&MANAGE_FLAG=<?=$MANAGE_FLAG?>';" style="cursor:hand"><?=$PRIV_NAME?></td>
</tr>
<?
}
if($PRIV_COUNT==0)
Message("","没有定义角色");
?>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" onclick="clickMenu('2')" style="cursor:hand" title="点击伸缩列表">
<td nowrap align="center"><b>自定义组</b></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" id="2" style="display:none">
<?
//============================ 显示部门信息 =======================================
$query = "SELECT * from USER_GROUP where USER_ID='$LOGIN_USER_ID' order by ORDER_NO ";
$cursor= exequery($connection,$query);
$GROUP_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$GROUP_COUNT++;
$GROUP_ID =$ROW["GROUP_ID"];
$GROUP_NAME=$ROW["GROUP_NAME"];
?>
<tr class="TableControl">
<td align="center" onclick="javascript:parent.user.location='user_define.php?ID=<?=$ID?>&GROUP_ID=<?=$GROUP_ID?>';" style="cursor:hand"><?=$GROUP_NAME?></td>
</tr>
<?
}
if($GROUP_COUNT==0)
Message("","没有自定义组");
?>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" style="cursor:hand" onclick="javascript:parent.user.location='user_online.php?ID=<?=$ID?>';">
<td nowrap align="center"><b>在线人员</b></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader" style="cursor:hand" onclick="javascript:parent.user.location='query.php?ID=<?=$ID?>';">
<td nowrap align="center"><b>人员查询</b></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -