📄 user_list.php
字号:
<?php
ob_start( );
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "<html>\r\n<head>\r\n<title></title>\r\n</head>\r\n<base target=\"hrms\" />\r\n<body topmargin=\"0\" >\r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" cellpadding=\"3\" align=\"center\">\r\n <tr class=\"TableHeader\" onClick=\"clickMenu('1')\" style=\"cursor:hand\" title=\"点击伸缩列表\">\r\n <td nowrap align=\"center\"><b>在职人员</b></td>\r\n </tr>\r\n </table>\r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" cell";
echo "padding=\"3\" id=\"1\">\r\n <tr>\r\n <td>\r\n";
$pararr['dept_url'] = "/general/hrms/manage/blank.php";
$pararr['user_url'] = "/general/hrms/manage/hrms.php";
$pararr['priv_view'] = "0";
$pararr['view_type'] = "0";
$pararr['target_frame'] = "hrms";
$pararr['select_module'] = "0";
$par = implodestpar( $pararr );
include_once( "inc/dept_user_list/index.php" );
if ( $e == "" )
{
$e = 0;
}
$PRIV_NO_FLAG = 0;
echo " </td>\r\n </tr>\r\n </table>\r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"3\">\r\n <tr class=\"TableHeader\" onClick=\"clickMenu('0')\" style=\"cursor:hand\" title=\"点击伸缩列表\">\r\n <td nowrap align=\"center\"><b>离职人员</b></td>\r\n </tr>\r\n</table>\r\n <table border=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\" class=\"small\" cellpadding=\"3\" id=\"0\" sty";
echo "le=\"display:none\">\r\n";
$query = "SELECT * from USER,USER_PRIV where DEPT_ID=0 and USER.USER_PRIV=USER_PRIV.USER_PRIV order by PRIV_NO,USER_NAME";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$USER_COUNT;
$USER_ID = $ROW['USER_ID'];
$USER_NAME = $ROW['USER_NAME'];
$USER_PRIV = $ROW['USER_PRIV'];
$query1 = "SELECT * from USER_PRIV where USER_PRIV='{$USER_PRIV}'";
$cursor1 = exequery( $connection, $query1 );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$USER_PRIV = $ROW['PRIV_NAME'];
}
echo " <tr class=\"TableData\" align=\"center\">\r\n <td nowrap width=\"80\">";
echo $USER_PRIV;
echo "</td>\r\n <td nowrap><a href=\"hrms.php?USER_ID=";
echo $USER_ID;
echo "\" target=\"hrms\">";
echo $USER_NAME;
echo "</a></td>\r\n </tr>\r\n";
}
echo " </table>\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript language=\"JavaScript\">\r\nfunction clickMenu(ID)\r\n{\r\n\r\n targetelement=document.all(ID);\r\n if (targetelement.style.display==\"none\")\r\n targetelement.style.display='';\r\n else\r\n targetelement.style.display=\"none\";\r\n}\r\n</script>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -