📄 index.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>上下班记录查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function CheckForm1()
{
if(document.form1.DATE1.value=="")
{ alert("起始日期不能为空!");
return (false);
}
if(document.form1.DATE2.value=="")
{ alert("截止日期不能为空!");
return (false);
}
return (true);
}
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");
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.DATE1.focus();">
<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>
<?
$CUR_DATE_FIRST=date("Y-m-01",time());
$CUR_DATE=date("Y-m-d",time());
?>
<div align="center" class="big1">
<form action="search.php" name="form1" onsubmit="return CheckForm1();">
<b>
起始日期:<input type="text" name="DATE1" class="BigInput" size="10" maxlength="10" value="<?=$CUR_DATE_FIRST?>">
<img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.DATE1');">
截止日期:<input type="text" name="DATE2" class="BigInput" size="10" maxlength="10" value="<?=$CUR_DATE?>">
<img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form1.DATE2');">
<input type="submit" value="查询" class="BigButton" title="上下班记录查询">
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -