index.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 86 行

PHP
86
字号
<?
  include_once 'inc/auth.php';
  echo '
<html>
<head>
<title>清空考勤数据</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript>
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_';
  echo '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(windo';
  echo 'w.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">';
  echo '<s';
  echo 'pan 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" s';
  echo 'ize="20" maxlength="20" class="BigInput" value="">
          <img src="/images/menu/calendar.gif" border="0" style="cursor:hand" onclick="td_calendar(\'form1.BEGIN_DATE\');">
          <img src="/images/menu/clock.gif" border="0" style="cursor:hand" onclick="td_clock(\'form1.BEGIN_DATE\');">
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent">截止时间:</td>
      <td class="TableData"';
  echo '><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(\'form1.END_DATE\');">
          <img src="/images/menu/clock.gif" border="0" style="cursor:hand" onclick="td_clock(\'form1.END_DATE\');">
      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent">删除项目:</td>
      <td class="TableData">
          <input type="checkbox" name="DUTY" id="D';
  echo 'UTY"><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" ali';
  echo 'gn="center">
          <input type="submit"  value="确定" class="BigButton" title="确定">&nbsp;&nbsp;
          <input type="button"  value="返回" class="BigButton" onClick="location=\'../\';">
      </td>
    </tr>
    </form>
  </table>
<br>
</body>
</html>';
?>

⌨️ 快捷键说明

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