⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manage.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once 'inc/auth.php';
include_once 'inc/utility_all.php';
echo '
<html>
<head>
<title>系统日志</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function CheckForm()
{
 if(document.form1.BEGIN_DATE.value==""&&document.form1.END_DATE.value=="")
 { alert("起始时间和结束时间不能同时为空!");
	 return (false);
 }
 if(document.form1.OP_DELETE.checked)
 {
		if(!window.confirm("确定要删除吗,删除后将不可恢复!"))
			return (false);
 }
 return true;
}
function delete_log(LOG_ID)
{
 msg=\'确认要删除该系统日志么?\';
 if(window.confirm(msg))
 {
URL="delete.php?LOG_ID=" + LOG_ID;
window.location=URL;
 }
}
function delete_all()
{
 msg=\'确认要清空全部系统日志么?\';
 if(window.confirm(msg))
 {
URL="delete_all.php";
window.location=URL;
 }
}
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_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 clear_user()
{
document.form1.TO_NAME.value="";
document.form1.TO_ID.value="";
}
function LoadWindow()
{
URL="/module/user_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
</script>
</head>
<body class="bodycolor" topmargin="5">
';
$CUR_DATE = date ('Y-m-d H:i:s', time ());
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
	<td class="Big"><img src="/images/menu/system.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 系统日志查询</span>
	</td>
</tr>
</table>
<table border="0" width="400" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="search.php" name="form1" onsubmit="return CheckForm();">
	<tr>
		<td nowrap class="TableData">日志类型:</td>
		<td class="TableData">
			<select name="TYPE" class="BigSelect">
				<option value="">所有日志</option>
				';
echo code_list ('SYS_LOG', '');
echo '        </select>
		</td>
	</tr>
	<tr>
		<td nowrap class="TableData">用户:</td>
		<td class="TableData">
			<input type="hidden" name="TO_ID" value="">
			<textarea cols=23 name="TO_NAME" rows="3" class="BigStatic" wrap="yes" readonly></textarea>
			&nbsp;<input type="button" value="添 加" class="SmallButton" onClick="LoadWindow()" title="添加用户" name="button">
			&nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_user()" title="清空用户" name="button">
		</td>
	</tr>
	<tr>
		<td nowrap class="TableData">起始时间:</td>
		<td class="TableData"><input type="text" name="BEGIN_DATE" size="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="TableData">截止时间:</td>
		<td class="TableData"><input type="text" name="END_DATE" size="20" maxlength="20" class="BigInput" value="';
echo $CUR_DATE;
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="TableData">IP地址:</td>
		<td class="TableData"><input type="text" name="IP" class="BigInput" size="20"></td>
	</tr>
	<tr>
		<td nowrap class="TableData">操作类型:</td>
		<td class="TableData">
		 <input type="radio" name="OPERATION" value="0" id="OP_QUERY" checked><label for="OP_QUERY">查询</label>&nbsp;&nbsp;&nbsp;
		 <input type="radio" name="OPERATION" value="1" id="OP_DELETE"><label for="OP_DELETE">删除</label>
		</td>
	</tr>
	<tr >
		<td nowrap class="TableControl" colspan="2" align="center">
				<input type="submit" value="确定" class="BigButton" title="" name="button">
		</td>
	</tr>
	</form>
</table>
<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/system.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 清空系统日志</span>
	</td>
</tr>
</table>
<br>
<div align="center">
 <input type="button" value="清空系统日志" class="BigButton" Onclick="javascript:delete_all();">
</div>
</body>
</html>
';
?>

⌨️ 快捷键说明

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