📄 index.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.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 CheckForm2()
{
if(document.form2.SOME_DATE.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">
<?
$CUR_DATE=date("Y-m-d",time());
?>
<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>
<div align="center" class="big1">
<form action="some_day" name="form2" onsubmit="return CheckForm2();">
<b>查询日期:</b>
<input type="text" name="SOME_DATE" class="BigInput" size="10" maxlength="10" value="<?=$CUR_DATE?>">
<img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar('form2.SOME_DATE');">
<input type="submit" value="考勤查询" class="BigButton" title="考勤查询">
</form>
</div>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="/images/dian1.gif" width="100%"></td>
</tr>
</table>
<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());
?>
<div align="center" class="big1">
<form action="search.php" name="form1" onsubmit="return CheckForm1();">
<b>
部门:<select name="DEPARTMENT" class="BigSelect">
<option value="ALL_DEPT">所有部门</option>
<?
echo my_dept_tree(0,$DEPT_ID,0);
?>
</select>
排班类型:<select name="DUTY_TYPE" class="BigSelect">
<option value="ALL_TYPE">所有类型</option>
<?
$query = "SELECT * from ATTEND_CONFIG order by DUTY_TYPE";
$cursor= exequery($connection,$query);
while($ROW=mysql_fetch_array($cursor))
{
$DUTY_TYPE=$ROW["DUTY_TYPE"];
$DUTY_NAME=$ROW["DUTY_NAME"];
?>
<option value="<?=$DUTY_TYPE?>"><?=$DUTY_NAME?></option>
<?
}
?>
</select><br><br>
起始日期:
<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');"><br>
</b>
<br><br>
<input type="submit" value="考勤统计" class="BigButton" title="考勤统计">
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -