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

📄 lend_items.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_field.php" );
include_once( "inc/utility_sms1.php" );
$query = "select DEPT_ID,USER_NAME from USER where USER_ID='".$USER_ID."'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$DEPT_ID = $ROW['DEPT_ID'];
	$USER_NAME = $ROW['USER_NAME'];
}
if ( $LEAVE == "1" )
{
	$query = "update USER set DEPT_ID=0,NOT_LOGIN='1',NOT_VIEW_USER='1',NOT_VIEW_TABLE='1' where USER_ID='".$USER_ID."'";
	exequery( $connection, $query );
	$query = "update HRMS set DEPT_ID=".$DEPT_ID.",REASON='{$REASON}' where USER_ID='{$USER_ID}'";
	exequery( $connection, $query );
	if ( $NOTIFY == "on" )
	{
		$SMS_CONTENT = "员工 ".$USER_NAME." 已办理离职手续!";
		if ( $TO_ID != "" )
		{
			send_sms( "", $LOGIN_USER_ID, $TO_ID, 35, $SMS_CONTENT, "ipanel/user/user_info.php?USER_ID=".USER_ID );
		}
	}
	message( "", "用户 ".$USER_NAME." 离职已办理完毕!" );
	exit( );
}
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n<title>离职确认</title>\r\n<script src=\"/inc/js/module.js\"></script>\r\n<script type=\"text/javascript\">\r\nfunction toggle()\r\n{\r\n  if(document.form1.NOTIFY.checked==true)\r\n    document.getElementById(\"show\").style.display=\"block\";\r\n  else\r\n    document.getElementById(\"show\").style.display=\"none\";\r\n    \r\n}\r\n</script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<form method=\"post\" name=\"form1\" action=\"lend_items.php\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/hrms.gif\" HEIGHT=\"20\"><span class=\"big3\">领用物品明细 &nbsp;-&nbsp;";
echo $USER_NAME;
echo "</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<div style=\"height:120px; overflow:scroll-x\">\r\n";
include_once( "use_item.php" );
echo "</div>\r\n\r\n<br>\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/hrms.gif\" HEIGHT=\"20\"><span class=\"big3\">离职原因 </span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<table class=\"TableList\" width=\"100%\">\r\n<tr class=\"TableData\">\r\n\t<td>离职原因:</td>\r\n\t<td>\r\n\t<input type=\"hidden\" value=\"";
echo $USER_ID;
echo "\" name=\"USER_ID\">\r\n\t<input type=\"hidden\" value=\"1\" name=\"LEAVE\">\r\n\t<input type=\"text\" name=\"REASON\"></td>\r\n</tr>\r\n<tr class=\"TableData\">\r\n\t<td>提醒:</td>\r\n\t<td>\r\n\t<input type=\"checkbox\" name=\"NOTIFY\" checked=\"false\" onClick=\"toggle()\">短信通知相关人员(如财务人员,办公室)\r\n\t</td>\r\n</tr>\r\n<tr class=\"TableData\" id=\"show\">\r\n\t<td colspan=\"2\"><input type=\"hidden\" name=\"TO_ID\" value=\"";
echo $TO_ID;
echo "\">\r\n        <textarea cols=\"40\" name=\"TO_NAME\" rows=\"2\" style=\"overflow-y:auto;\" class=\"SmallStatic\" wrap=\"yes\" readonly>";
echo $TO_NAME;
echo "</textarea>\r\n\t\t<a href=\"javascript:;\" class=\"orgAdd\" onClick=\"SelectUser()\">添加</a>\r\n        <a href=\"javascript:;\" class=\"orgClear\" onClick=\"ClearUser()\">清空</a>\r\n\t</td>\r\n</tr>\r\n<tr class=\"TableHeader\">\r\n\t<td colspan=\"2\"><input type=\"submit\" class=\"BigButton\" value=\"离职\" onClick=\"return confirm('确认让该员工离职吗?');\"></td>\r\n</table>\r\n</form>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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