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

📄 hrms.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.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 language=\"javascript\" src=\"/inc/common.js\" ></script>\r\n";
echo "<s";
echo "tyle type=\"text/css\">\r\n<!--\r\n.inputborder {\r\n\tborder: 0px solid;\r\n\tbackground-color:#FFFFFF\r\n}\r\n-->\r\n</style>\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction td_calendar(fieldname)\r\n{\r\n  myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n  mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n  window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:205px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"";
echo "px\");\r\n}\r\n\r\n\r\nfunction LoadWindow(field_id,id,desc)\r\n{\r\n  URL=\"/ikernel/select?FIELD_ID=\"+field_id+\"&ID=\"+id+\"&DESC=\"+desc;\r\n  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n  window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:300px;dialogHeight:250px;dialogTop:\"+loc_y+\"px";
echo ";dialogLeft:\"+loc_x+\"px\");\r\n}\r\nfunction LoadWindow1()\r\n{\r\n  URL=\"/module/user_select\";\r\n  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n  window.open(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:265px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}      \r\n</script>\r\n</";
echo "head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onLoad=\"document.form1.CARD_NO.focus();\">\r\n<form enctype=\"multipart/form-data\" action=\"submit.php\"  method=\"post\" name=\"form1\">\r\n\r\n";
$query = "select * from USER where USER_ID='".$_REQUEST['USER_ID']."'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$USER_NAME = $ROW['USER_NAME'];
	$DEPT_ID1 = $ROW['DEPT_ID'];
	$USER_ACCOUNTS = $ROW['USER_ACCOUNTS'];
}
if ( $_REQUEST['id'] != "" )
{
	$query = "select * from HRMS where ID = '".$_REQUEST['id']."'";
}
else if ( $_REQUEST['USER_ID'] != "" )
{
	$query = "select * from HRMS where USER_ID = '".$_REQUEST['USER_ID']."'";
}
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$id = $ROW['ID'];
	$CARD_NO = $ROW['CARD_NO'];
	$MARRY = $ROW['MARRY'];
	$USER_ID = $ROW['USER_ID'];
	$TRUE_NAME = $ROW['TRUE_NAME'];
	$WORK_DATE = $ROW['WORK_DATE'];
	$WORK_DATE = strtok( $WORK_DATE, " " );
	$JOIN_DATE = $ROW['JOIN_DATE'];
	$JOIN_DATE = strtok( $JOIN_DATE, " " );
	$EDUCATION = $ROW['EDUCATION'];
	$POLITICS = $ROW['POLITICS'];
	$REWARD = $ROW['REWARD'];
	$CERTIFICATE = $ROW['CERTIFICATE'];
	$TRAIN = $ROW['TRAIN'];
	$RESUME = $ROW['RESUME'];
	$PHOTO = $ROW['PHOTO'];
	$NO = $ROW['NO'];
	$NATION = $ROW['NATION'];
	$NATIVE_PLACE = $ROW['NATIVE_PLACE'];
	$SPECIALITY = $ROW['SPECIALITY'];
	$SCHOOL = $ROW['SCHOOL'];
	$DEPARTMENT = $ROW['DEPARTMENT'];
	$POST = $ROW['POST'];
	$HOME_ADDR = $ROW['HOME_ADDR'];
	$HOME_TEL = $ROW['HOME_TEL'];
	$CORP_TEL = $ROW['CORP_TEl'];
	$CORP_FAX = $ROW['CORP_FAX'];
	$EMAIL = $ROW['EMAIL'];
	$EDU = $ROW['EDU'];
	$WORK = $ROW['WORK'];
	$SOCIATY = $ROW['SOCIATY'];
	$OPERATION = 2;
	$STATUS = "已建档";
	$BIRTHDAY = $ROW['BIRTHDAY'];
	$BIRTHDAY = strtok( $BIRTHDAY, " " );
	$OTHERS = $ROW['OTHERS'];
	$ATTACHMENT_ID = $ROW['ATTACHMENT_ID'];
	$ATTACHMENT_NAME = $ROW['ATTACHMENT_NAME'];
	if ( $USER_NAME == "" )
	{
		$USER_NAME = $ROW['TRUE_NAME'];
	}
	if ( $USER_ID != "" && $TRUE_NAME == "" )
	{
		$query = "SELECT USER_NAME FROM USER WHERE USER_ID = '".$USER_ID."'";
		$cursor1 = exequery( $connection, $query );
		if ( $result = mysql_fetch_array( $cursor1 ) )
		{
			$USER_NAME = $result['USER_NAME'];
		}
	}
	if ( $USER_ID != "" )
	{
		$query = "SELECT USER_ACCOUNTS FROM USER WHERE USER_ID = '".$USER_ID."'";
		$cursor1 = exequery( $connection, $query );
		if ( $result = mysql_fetch_array( $cursor1 ) )
		{
			$USER_ACCOUNTS = $result['USER_ACCOUNTS'];
		}
	}
	$sql = "SELECT DEPT_ID FROM DEPARTMENT WHERE DEPT_NAME = '".$DEPARTMENT."'";
	$CURSOR = exequery( $connection, $sql );
	if ( $ROW = mysql_fetch_array( $CURSOR ) )
	{
		$DEPT_ID = $ROW['DEPT_ID'];
	}
}
else
{
	$OPERATION = 1;
	$STATUS = "未建档";
}
if ( $DEPT_ID == "" )
{
	if ( $DEPT_ID1 == "" )
	{
		$DEPT_ID = $_REQUEST['dept_id'];
	}
	else
	{
		$DEPT_ID = $DEPT_ID1;
	}
}
if ( $DEPT_ID != "" && $DEPT_ID != "all" )
{
	$sql = "SELECT DEPT_NAME FROM DEPARTMENT WHERE DEPT_ID = ".$DEPT_ID."";
	$cursor = exequery( $connection, $sql );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$DEPARTMENT = $ROW['DEPT_NAME'];
	}
}
if ( $USER_ID )
{
	$query2 = "select SEX from user where USER_ID='".$USER_ID."'";
	$cursor2 = exequery( $connection, $query2 );
	if ( $row2 = mysql_fetch_row( $cursor2 ) )
	{
		$sex = $row2[0];
	}
}
else
{
	$query2 = "select SEX from hrms where ID='".$id."'";
	$cursor2 = exequery( $connection, $query2 );
	if ( $row2 = mysql_fetch_row( $cursor2 ) )
	{
		$sex = $row2[0];
	}
}
echo "<input type=\"hidden\" name=\"id\" value=\"";
echo $_REQUEST['ID'];
echo "\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\"  cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td ><img src=\"/images/menu/hrms.gif\" align=\"absmiddle\">员工档案      </td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n    <td><a href=\"#\" onClick=\"CheckForm();\"><img src=\"/images/button/save.gif\" width=\"105\" height=\"20\" border=\"0\"></a>\r\n\t  <a href=\"#\" onClick=\"location='blank.php'\"><img src=\"../../../images/button/r";
echo "eturn.gif\" width=\"105\" height=\"20\" border=\"0\"></a></td>\r\n  </tr>\r\n</table>\r\n<div align=\"center\">\r\n\r\n <table width=\"100%\" border=\"0\" align=\"left\" cellpadding=\"2\" cellspacing=\"1\" class=\"small\">\r\n    <tr>\r\n      <td nowrap class=\"tablehead2\" colspan=\"3\"><b>&nbsp;基本信息</b></td>\r\n    </tr>\r\n\t<tr>\r\n      <td nowrap class=\"TableLine2\" width=\"20%\"> 编号:</td>\r\n      <td width=\"55%\" class=\"TableLine1\">\r\n        <input ";
echo "type=\"text\" name=\"NO\" size=\"10\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $NO;
echo "\"></td>\r\n      <td rowspan=\"8\"  class=\"TableLine1\" style=\"width:144px;height:200px;\"><a href=\"#\" onClick=\"location='blank.php'\">";
echo "<s";
echo "pan class=\"TableLine1\" style=\"width:144px;height:200px;\">\r\n        ";
if ( $PHOTO == "" )
{
	echo "<center>暂无照片</center>";
}
else
{
	echo "<img src='/attachment/hrms_pic/{$PHOTO}' width='144' height='200'>";
}
echo "      </span></a></td>\r\n   \t<tr>\r\n      <td nowrap class=\"TableLine2\"> 姓名:</td>\r\n      <td class=\"TableLine1\">\r\n        <input type=\"text\" name=\"TRUE_NAME\" size=\"20\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $USER_NAME;
echo "\" >      </td>\r\n      </tr>\r\n\t\t<tr>\r\n      <td nowrap class=\"TableLine2\"> 用户名:</td>\r\n      <td class=\"TableLine1\">\r\n\t  <input type=\"hidden\" name=\"USER_ID\" size=\"20\" maxlength=\"100\"  value=\"";
echo $USER_ID;
echo "\" class=\"inputborder\" readonly>\r\n        <input type=\"text\" name=\"USER_ACCOUNTS\" size=\"20\" maxlength=\"100\"  value=\"";
echo $USER_ACCOUNTS;
echo "\" class=\"inputborder\" readonly>      </td>\r\n      </tr>\r\n\t\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\">性别:</td>\r\n\t\t  <td class=\"TableLine1\">\r\n\t\t  ";
echo "<s";
echo "elect name=\"sex\" class=\"BigSelect\">\r\n\t\t  \t<option value=\"2\" ";
if ( $sex == 2 )
{
	echo "selected";
}
echo "></option>\r\n\t\t\t<option value=\"0\" ";
if ( $sex == 0 )
{
	echo "selected";
}
echo ">男</option>\r\n\t\t\t<option value=\"1\" ";
if ( $sex == 1 )
{
	echo "selected";
}
echo ">女</option>\r\n\t\t  </select></td>\r\n      </tr>\r\n\t\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\">部门:</td>\r\n\t      <td class=\"TableLine1\"><input type=\"text\" name=\"DEPARTMENT\" size=\"15\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $DEPARTMENT;
echo "\" readonly>\r\n            <input type=button value='选 择' class=\"SmallButton\" style=height:22px onClick=\"LoadWindowDeptSingle('dept_id','DEPARTMENT','form1')\" title=\"选择\" name=\"button\">\r\n            <input type=\"hidden\" name=\"dept_id\" value=\"";
echo $DEPT_ID;
echo "\"></td>\r\n      </tr>\r\n\t\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\">民族:</td>\r\n\t\t  <td class=\"TableLine1\"><input type=\"text\" name=\"NATION\" size=\"8\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $NATION;
echo "\"></td>\r\n      </tr>\r\n\t\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\">身份证号码:</td>\r\n\t\t  <td class=\"TableLine1\"><input type=\"text\" name=\"CARD_NO\" size=\"20\" maxlength=\"25\" class=\"BigInput\" value=\"";
echo $CARD_NO;
echo "\"></td>\r\n      </tr>\r\n\t\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\">籍贯:</td>\r\n\t\t  <td class=\"TableLine1\"><input type=\"text\" name=\"NATIVE_PLACE\" size=\"40\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $NATIVE_PLACE;
echo "\"></td>\r\n      </tr>\r\n\t\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\">出生年月:</td>\r\n\t\t  <td colspan=\"2\" class=\"TableLine1\"><input type=\"text\" name=\"BIRTHDAY\" size=\"10\" maxlength=\"10\" class=\"BigInput\" value=\"";
echo $BIRTHDAY;
echo "\">\r\n            <img src=\"/images/menu/calendar1.gif\" border=\"0\" style=\"cursor:hand\" onClick=\"td_calendar('form1.BIRTHDAY');\"></td>\r\n      </tr>\r\n\t\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\">婚姻状况:</td>\r\n\t\t  <td colspan=\"2\" class=\"TableLine1\">";
echo "<s";
echo "elect name=\"MARRY\" class=\"BigSelect\">\r\n            <option value=\"\" ";
if ( $MARRY == "" )
{
	echo "selected";
}
echo "></option>\r\n            <option value=\"0\" ";
if ( $MARRY == "0" )
{
	echo "selected";
}
echo ">未婚</option>\r\n            <option value=\"1\" ";
if ( $MARRY == "1" )
{
	echo "selected";
}
echo ">已婚</option>\r\n            <option value=\"2\" ";
if ( $MARRY == "2" )

⌨️ 快捷键说明

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