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

📄 person_roll.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/utility_field.php" );
include_once( "inc/utility_org.php" );
include_once( "inc/ip2add.php" );
$PRIV_NO_FLAG = 0;
$MODULE_ID = "2";
include_once( "inc/my_priv.php" );
if ( !is_user_priv( $USER_ID, $MY_PRIV ) )
{
	message( "禁止", "您无权查看该用户信息" );
	exit( );
}
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</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<br>\r\n";
$query = "SELECT * from SYS_PARA where PARA_NAME='HRMS_OPEN_FIELDS'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$HRMS_OPEN_FIELDS = $ROW['PARA_VALUE'];
}
$OPEN_ARRAY = explode( "|", $HRMS_OPEN_FIELDS );
$FIELD_ARRAY = explode( ",", $OPEN_ARRAY[0] );
$NAME_ARRAY = explode( ",", $OPEN_ARRAY[1] );
if ( join( "", $FIELD_ARRAY ) == "" || join( "", $NAME_ARRAY ) == "" )
{
	message( "", "无公开的档案信息" );
}
else
{
	echo " <table class=\"TableBlock\" width=\"100%\" align=\"center\">\r\n";
	$query = "SELECT * from HRMS where USER_ID='".$USER_ID."'";
	$cursor = exequery( $connection, $query );
	$ROW = mysql_fetch_array( $cursor );
	$DEF_FIELD_ARRAY = get_field_text( "HRMS", $USER_ID );
	echo "    <tr>\r\n      <td nowrap class=\"TableHeader\" colspan=\"3\"><img src=\"/images/menu/roll_manage.gif\"><b>&nbsp;个人档案信息</b></td>\r\n    </tr>\r\n";
	$I = 0;
	for ( ;	$I < count( $FIELD_ARRAY );	++$I	)
	{
		if ( !( $FIELD_ARRAY[$I] == "" ) )
		{
			if ( $NAME_ARRAY[$I] == "" )
			{
				break;
			}
		}
		else
		{
			continue;
		}
		$MESSAGE = hrms_field_value( $FIELD_ARRAY[$I], $ROW[$FIELD_ARRAY[$I]] );
		if ( substr( $FIELD_ARRAY[$I], 0, 7 ) == "USERDEF" )
		{
			$MESSAGE = $DEF_FIELD_ARRAY[$FIELD_ARRAY[$I]]['HTML'];
		}
		echo "    <tr>\r\n      <td nowrap class=\"TableData\" width=\"10%\"> ";
		echo $NAME_ARRAY[$I];
		echo ":</td>\r\n      <td class=\"TableData\" colspan=2>";
		echo $MESSAGE;
		echo "</td>\r\n    </tr>\r\n";
	}
	echo "</table>\r\n";
}
echo "<br>\r\n<div align=\"center\">\r\n";
if ( $WINDOW )
{
	echo "        <input type=\"button\" value=\"关闭\" class=\"BigButton\" onClick=\"parent.window.close();\">\r\n";
}
else
{
	echo "        <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"history.back();\">\r\n";
}
echo "</div>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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