📄 index.php
字号:
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>工作日志设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
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">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/diary.gif" align="absmiddle" height="20" width="22"><span class="big3"> 工作日志设置</span>
</td>
</tr>
</table>
<br>
<br>
';
$query = 'SELECT * from SYS_PARA where PARA_NAME=\'LOCK_TIME\'';
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$PARA_VALUE = $ROW['PARA_VALUE'];
}
if ($PARA_VALUE != '')
{
$W_START = substr ($PARA_VALUE, 0, strpos ($PARA_VALUE, ','));
$W_END = substr ($PARA_VALUE, strpos ($PARA_VALUE, ',') + 1);
}
echo '<table border="0" cellspacing="1" width="350" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="insert.php" method="post" name="form1">
<tr>
<td class="Tableheader"colspan="2" align="center">设置锁定时间范围</td>
</tr>
<tr>
<td nowrap class="TableData">开始时间:</td>
<td class="TableData">
<input type="text" name="W_START" size="9" maxlength="19" class="BigInput" value="';
echo $W_START;
echo '">
<img src="/images/menu/calendar.gif" border="0" align="absMiddle" style="cursor:hand" onclick="td_calendar(\'form1.W_START\');">
</td>
</tr>
<tr>
<td nowrap class="TableData">结束时间:</td>
<td class="TableData">
<input type="text" name="W_END" size="9" maxlength="19" class="BigInput" value="';
echo $W_END;
echo '">
<img src="/images/menu/calendar.gif" border="0" align="absMiddle" style="cursor:hand" onclick="td_calendar(\'form1.W_END\');">
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="确定" class="BigButton" title="保存锁定" name="button">
<input type="reset" value="取消" class="BigButton" title="添加网址" name="button">
</td>
</tr>
</form>
</table>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -