📄 lend_items.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();
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>离职确认</title>
<script src="/inc/js/module.js"></script>
<script type="text/javascript">
function toggle()
{
if(document.form1.NOTIFY.checked==true)
document.getElementById("show").style.display="block";
else
document.getElementById("show").style.display="none";
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<form method="post" name="form1" action="lend_items.php">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/hrms.gif" HEIGHT="20"><span class="big3">领用物品明细 - <?=$USER_NAME?></span><br>
</td>
</tr>
</table>
<div style="height:120px; overflow:scroll-x">
<?
include_once("use_item.php");
?>
</div>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/hrms.gif" HEIGHT="20"><span class="big3">离职原因 </span><br>
</td>
</tr>
</table>
<table class="TableList" width="100%">
<tr class="TableData">
<td>离职原因:</td>
<td>
<input type="hidden" value="<?=$USER_ID?>" name="USER_ID">
<input type="hidden" value="1" name="LEAVE">
<input type="text" name="REASON"></td>
</tr>
<tr class="TableData">
<td>提醒:</td>
<td>
<input type="checkbox" name="NOTIFY" checked="false" onClick="toggle()">短信通知相关人员(如财务人员,办公室)
</td>
</tr>
<tr class="TableData" id="show">
<td colspan="2"><input type="hidden" name="TO_ID" value="<?=$TO_ID?>">
<textarea cols="40" name="TO_NAME" rows="2" style="overflow-y:auto;" class="SmallStatic" wrap="yes" readonly><?=$TO_NAME?></textarea>
<a href="javascript:;" class="orgAdd" onClick="SelectUser()">添加</a>
<a href="javascript:;" class="orgClear" onClick="ClearUser()">清空</a>
</td>
</tr>
<tr class="TableHeader">
<td colspan="2"><input type="submit" class="BigButton" value="离职" onClick="return confirm('确认让该员工离职吗?');"></td>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -