index.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 62 行

PHP
62
字号
<?
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');">
&nbsp;
截止日期:<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');">
&nbsp;
<input type="submit" value="查询" class="BigButton" title="上下班记录查询">
</form>
</div>

</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?