📄 back.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_sms1.php");
?>
<script>
function td_calendar(fieldname)
{
myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;
mytop=document.body.scrollTop+event.clientY-event.offsetY+140;
window.showModalDialog("/inc/calendar.php?FIELDNAME="+fieldname,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:215px;dialogTop:"+mytop+"px;dialogLeft:"+myleft+"px");
}
function td_clock(fieldname)
{
myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;
mytop=document.body.scrollTop+event.clientY-event.offsetY+140;
window.showModalDialog("/inc/clock.php?FIELDNAME="+fieldname,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:120px;dialogTop:"+mytop+"px;dialogLeft:"+myleft+"px");
}
</script>
<html>
<head>
<title>销假</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<?
$CUR_DATE=date("Y-m-d H:i:s",time());
if($OP=="1")
{
$query="update ATTEND_LEAVE set STATUS='2',LEAVE_DATE2='$LEAVE_DATE2' where LEAVE_ID=$LEAVE_ID";
exequery($connection,$query);
//---------- 短信提醒 ----------
$SMS_CONTENT="您的销假申请已被批准,已销假!";
send_sms("",$LOGIN_USER_ID,$USER_ID,6,$SMS_CONTENT);
if($MOBILE_FLAG=="1")
{
$SMS_CONTENT="您的销假申请已被批准,已销假!";
send_mobile_sms_user("",$LOGIN_USER_ID,$USER_ID,$SMS_CONTENT,6);
}
?>
<script>
window.opener.location.reload();
window.close();
</script>
<?
}
?>
<br>
<br>
<form action="back.php" method="post" name="form1" class="big1">
<div align="center">
<b>销假日期 <input type="text" name="LEAVE_DATE2" size="20" maxlength="22" class="BigStatic" readonly value="<?=$CUR_DATE?>">
<img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.LEAVE_DATE2');">
<img src="/images/menu/clock.gif" border="0" style="cursor:hand" onclick="td_clock('form1.LEAVE_DATE2');">
<input type="submit" value="确定" class="BigButton">
<input type="hidden" name="LEAVE_ID" value="<?=$LEAVE_ID?>">
<input type="hidden" name="USER_ID" value="<?=$USER_ID?>">
<input type="hidden" name="MOBILE_FLAG" value="<?=$MOBILE_FLAG?>">
<input type="hidden" name="OP" value="1">
</b>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -