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

📄 blank.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/function_page_01.php" );
if ( $_REQUEST['cur_page'] == "" )
{
	$cur_page = 1;
}
else
{
	$cur_page = $_REQUEST['cur_page'];
}
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\nbody {\r\n\tmargin-left: 1px;\r\n}\r\n-->\r\n</style>\r\n";
echo "<s";
echo "cript language=\"javascript\">\r\nfunction delete_hrms(ID)\r\n{\r\n msg='确认要删除该档案记录么?';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?id=\"+ID+\"\";\r\n  window.location=URL;\r\n }\r\n}\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?FI";
echo "ELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:205px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<form action=\"search.php\"  method=\"post\" name=\"form1\" >  \r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\"  cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td><img src=\"/images/man";
echo "age/hrms.gif\" align=\"absmiddle\">员工档案</td>\r\n  </tr>\r\n<tr class=\"tablehead2\">\r\n <td>\r\n  <input type=\"image\" src=\"/images/button/search.gif\" title=\"查询\">\r\n  <a href=\"hrms.php?dept_id=";
echo $_REQUEST['DEPT_ID'];
echo "\"><img src=\"/images/button/add.gif\" alt=\"增加档案\" border=\"0\"></a>\r\n <a href=\"blank.php\"><img src=\"/images/button/return.gif\" border=\"0\" alt=\"返回\"></a>\r\n </td>\r\n </tr>\r\n\r\n</table>\r\n<br>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n  \r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"20%\">姓名: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"TRUE";
echo "_NAME\"  size=\"10\" maxlength=\"25\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\" width=\"20%\">性别: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n\t   ";
echo "<s";
echo "elect name=\"USER_SEX\" >\r\n\t\t\t<option id=\"\" value=\"\" ></option>\r\n\t\t\t<option id=\"0\" value=\"0\" >男</option>\r\n\t\t\t<option id=\"1\" value=\"1\" >女</option>\r\n\t\t</select>\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"20%\">用户名: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"USER_ACCOUNTS\"  size=\"10\" maxlength=\"25\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\" widt";
echo "h=\"20%\">出生年月: \r\n\t</td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"USER_BIR\"  size=\"10\" maxlength=\"25\">&nbsp;<img src=\"/images/menu/calendar1.gif\" border=\"0\" style=\"cursor:hand\" onClick=\"td_calendar('form1.USER_BIR');\">\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\" width=\"20%\">学历: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        ";
echo "<s";
echo "elect name=\"EDUCATION\" >\r\n\t\t\t<option id=\"\" value=\"\" ></option>\r\n\t\t\t<option id=\"1\" value=\"1\" >小学</option>\r\n\t\t\t<option id=\"2\" value=\"2\" >初中</option>\r\n\t\t\t<option id=\"3\" value=\"3\" >高中</option>\r\n\t\t\t<option id=\"4\" value=\"4\" >中专</option>\r\n\t\t\t<option id=\"5\" value=\"5\" >大专</option>\r\n\t\t\t<option id=\"6\" value=\"6\" >本科</option>\r\n\t\t\t<option id=\"7\" value=\"7\" >硕士</option>\r\n\t\t\t<option id=\"8\" value=\"8\" >博士</option>\r\n\t\t";
echo "\t<option id=\"9\" value=\"9\" >博士后</option>\r\n\t\t</select>\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\" width=\"20%\">毕业学校: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"USER_SCHOOL\"  size=\"25\" maxlength=\"50\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableLine2\">部门:</td>\r\n    <td nowrap class=\"TableLine1\">\r\n\t\t<input type=\"hidden\" name=\"DEPT_ID\"  value=\"\">\r\n\t\t<input";
echo " type=\"text\" name=\"DEPT_NAME\" >&nbsp;<input type=\"button\" class=\"smallbutton\" value=\"选 择\" onClick=\"LoadWindowDeptSingle('DEPT_ID','DEPT_NAME','form1')\" value=\"\" >\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\" width=\"20%\">岗位: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"USER_POSITON\"  size=\"10\" maxlength=\"25\">&nbsp;\r\n    </td>\r\n   </tr>\r\n \t<tr>\r\n   \t<td nowrap class=\"TableLin";
echo "e2\" width=\"20%\">籍贯: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"USER_BIRTHPALCE\"  size=\"10\" maxlength=\"25\">&nbsp;\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\" width=\"20%\">专业: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        <input type=\"text\" name=\"USER_SPECIALITY\"  size=\"25\" maxlength=\"25\">&nbsp;\r\n    </td>\r\n   </tr>\r\n    <tr>\r\n   \t<td nowrap class=\"TableLine2\" width=\"20";
echo "%\">政治面貌: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        ";
echo "<s";
echo "elect name=\"USER_POLITICS\" >\r\n\t\t\t<option id=\"\" value=\"\" ></option>\r\n\t\t\t<option id=\"1\" value=\"1\" >群众</option>\r\n\t\t\t<option id=\"2\" value=\"2\" >团员</option>\r\n\t\t\t<option id=\"3\" value=\"3\" >党员</option>\r\n\t\t</select>\r\n    </td>\r\n\t<td nowrap class=\"TableLine2\" width=\"20%\">婚姻: </td>\r\n    <td nowrap class=\"TableLine1\">\r\n        ";
echo "<s";
echo "elect name=\"USER_MARRY\" >\r\n\t\t\t<option id=\"\" value=\"\" ></option>\r\n\t\t\t<option id=\"0\" value=\"0\" >未婚</option>\r\n\t\t\t<option id=\"1\" value=\"1\" >已婚</option>\r\n\t\t\t<option id=\"2\" value=\"2\" >离异</option>\r\n\t\t</select>\r\n    </td>\r\n   </tr>\r\n</table>\r\n </form>\r\n ";
$sens = $_REQUEST['sens'] ? 0 : 1;
$sensimg = $_REQUEST['sens'] ? "arrow_up.gif" : "arrow_down.gif";
$sensimg = "/images/".$sensimg;
$sufurl = $_SERVER['PHP_SELF']."?sens=".$sens;
echo "<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n <tr class=\"TableHeader\" >\r\n     <td nowrap><b><a href=\"";
echo $sufurl;
echo "&order=NO&cur_page=";
echo $cur_page;
echo "\">编号";
if ( $_REQUEST['order'] == "NO" )
{
	echo "<img src='".$sensimg."' border='0'>";
}
echo "</a></b></td>\r\n\t <td nowrap><b><a href=\"";
echo $sufurl;
echo "&order=USER_ID&cur_page=";
echo $cur_page;
echo "\">用户名";
if ( $_REQUEST['order'] == "USER_ID" )
{
	echo "<img src='".$sensimg."' border='0'>";
}
echo "</a></b></td>\r\n     <td nowrap><b><a href=\"";
echo $sufurl;
echo "&order=TRUE_NAME&cur_page=";
echo $cur_page;
echo "\">姓名";
if ( $_REQUEST['order'] == "TRUE_NAME" )
{
	echo "<img src='".$sensimg."' border='0'>";
}
echo "</a></b></td>\r\n     <td nowrap><b><a href=\"";
echo $sufurl;
echo "&order=DEPARTMENT&cur_page=";
echo $cur_page;
echo "\">部门";
if ( $_REQUEST['order'] == "DEPARTMENT" )
{
	echo "<img src='".$sensimg."' border='0'>";
}
echo "</a></b></td>\r\n\t <td nowrap><b>操作</b></td>\r\n </tr>\r\n";
$connection = openconnection( );
if ( $_REQUEST['DEPT_ID'] != "" )
{
	$sql = "SELECT DEPT_NAME FROM DEPARTMENT WHERE DEPT_ID = '".$_REQUEST['DEPT_ID']."'";
	$cursor = exequery( $connection, $sql );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$dept_name = $ROW['DEPT_NAME'];
	}
	if ( trim( $dept_name ) != "" )
	{
		$sql = "SELECT H.ID,H.USER_ID,H.TRUE_NAME,H.NO,H.DEPARTMENT";
		$sql1 = $sql." FROM HRMS H WHERE H.DEPARTMENT = '".$dept_name."'";
		$sql = $sql1." ORDER BY H.NO";
	}
}
else
{
	$sql = "SELECT H.ID,H.USER_ID,H.TRUE_NAME,H.NO,H.DEPARTMENT";
	$sql1 = $sql." FROM HRMS H ";
	$sql = $sql1." ORDER BY H.NO";
}
$order = $_REQUEST['order'];
if ( $order )
{
	switch ( $order )
	{
	case "NO" :
		$sql1 .= " ORDER BY H.NO ";
		break;
	case "USER_ID" :
		$sql1 .= " ORDER BY H.USER_ID ";
		break;
	case "TRUE_NAME" :
		$sql1 .= " ORDER BY H.TRUE_NAME ";
		break;
	case "DEPARTMENT" :
		$sql1 .= " ORDER BY H.DEPARTMENT ";
		break;
	default :
		$sql1 .= " ORDER BY H.NO ";
		break;
	}
	$sql1 .= $_REQUEST['sens'] ? " ASC" : " DESC";
	$sql = page( $sql1, 15 );
}
else
{
	$sql = page( $sql, 15 );
}
$DEPT_COUNT = 0;
$cursor = exequery( $connection, $sql );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$id = $ROW['ID'];
	$user_id = $ROW['USER_ID'];
	$true_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 ) )
		{
			$true_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'];
		}
	}
	else
	{
		$user_accounts = "";
	}
	$no = $ROW['NO'];
	$dept_name = $ROW['DEPARTMENT'];
	if ( $DEPT_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo "<tr class=\"";
	echo $TableLine;
	echo "\">\r\n<td>";
	echo $no;
	echo "</td>\r\n<td>";
	echo $user_accounts;
	echo "</td>\r\n<td>";
	echo $true_name;
	echo "</td>\r\n<td>";
	echo $dept_name;
	echo "</td>\r\n<td><a href=\"hrms.php?OPERATION=2&id=";
	echo $id;
	echo "\">修改</a>&nbsp;&nbsp;\r\n<a href=\"javascript:delete_hrms(";
	echo $id;
	echo ")\">删除</a>&nbsp;&nbsp;<a href=\"../query/hrms.php?ID=";
	echo $id;
	echo "\" >详细</a>\r\n</td>\r\n</tr>\r\n";
}
echo "<tr>\r\n\t<td class=\"TableLine1\" nowrap align=\"right\" colspan=\"5\">";
disp( "sens=".$_REQUEST['sens']."&order=".$_REQUEST['order'] );
echo "</td>\r\n</tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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