📄 index.php
字号:
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>清空考勤数据</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<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");
}
function CheckForm()
{
if(window.confirm("删除后数据将不可恢复,确定要删除吗?"))
return true;
return false;
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/attendance.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 清空考勤数据</span><br>
</td>
</tr>
</table>
<br>
<table border="0" width="500" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="delete.php" method="post" name="form1" onsubmit="return CheckForm();">
<tr>
<td nowrap class="TableContent">起始时间:</td>
<td class="TableData"><input type="text" name="BEGIN_DATE" size="20" maxlength="20" class="BigInput" value="">
<img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar(\'form2.BEGIN_DATE\');">
<img src="/images/menu/clock.gif" border="0" style="cursor:hand" onclick="td_clock(\'form2.BEGIN_DATE\');">
</td>
</tr>
<tr>
<td nowrap class="TableContent">截止时间:</td>
<td class="TableData"><input type="text" name="END_DATE" size="20" maxlength="20" class="BigInput" value="';
echo date ('Y-m-d H:i:s', time ());
echo '">
<img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar(\'form2.END_DATE\');">
<img src="/images/menu/clock.gif" border="0" style="cursor:hand" onclick="td_clock(\'form2.END_DATE\');">
</td>
</tr>
<tr>
<td nowrap class="TableContent">删除项目:</td>
<td class="TableData">
<input type="checkbox" name="DUTY" id="DUTY"><label for="DUTY">上下班登记</label>
<input type="checkbox" name="OUT" id="OUT"><label for="OUT">外出登记</label>
<input type="checkbox" name="EVECTION" id="EVECTION"><label for="EVECTION">请假登记</label>
<input type="checkbox" name="LEAVE" id="LEAVE"><label for="LEAVE">出差登记</label>
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="确定" class="BigButton" title="确定">
<input type="button" value="返回" class="BigButton" onClick="location=\'../\';">
</td>
</tr>
</form>
</table>
<br>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -