index.php

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

PHP
193
字号
<?
include_once 'inc/auth.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.TYPE.value=="EMAIL")
		document.form1.action="email.php";
 else
		document.form1.action="sms.php";
 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");
}
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 change_type()
{
 if(document.form1.TYPE.value=="EMAIL")
		document.all("TR_SUBJECT").style.display="";
 else
		document.all("TR_SUBJECT").style.display="none";
}
function clear_user()
{
document.form1.TO_NAME.value="";
document.form1.TO_ID.value="";
}
function Load_Do()
{
 EDIT_HTML.SetHtml(document.form1.CONTENT.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");
}
function clear_user2()
{
document.form1.COPY_TO_NAME.value="";
document.form1.COPY_TO_ID.value="";
}
function LoadWindow2()
{
URL="/module/user_select?ID=2";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
//window.open(URL,"read_notify","height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=150,resizable=yes");
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">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
	<td class="Big"><img src="/images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 系统资源监控</span><br>
	</td>
</tr>
</table>
<br>
<table border="0" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form name="form1" onsubmit="return CheckForm();">
	<tr>
		<td nowrap class="TableContent">发 送 人:</td>
		<td class="TableData">
			<input type="hidden" name="TO_ID" value="">
			<textarea cols=45 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="TableContent">接 收 人:</td>
		<td class="TableData">
			<input type="hidden" name="COPY_TO_ID" value="">
			<textarea cols=45 name="COPY_TO_NAME" rows="3" class="BigStatic" wrap="yes" readonly></textarea>
			&nbsp;<input type="button" value="添 加" class="SmallButton" onClick="LoadWindow2()" title="添加接收人" name="button">
			&nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_user2()" title="清空接收人" name="button">
		</td>
	</tr>
	<tr>
		<td nowrap class="TableContent">监控内容:</td>
		<td class="TableData">
				<select name="TYPE" class="BigSelect" onchange="change_type();">
					<option value="EMAIL">内部邮件</option>
					<option value="SMS">内部短信</option>
				</select>
		</td>
	</tr>
	<tr id="TR_SUBJECT">
		<td nowrap class="TableContent">主 题:</td>
		<td class="TableData">
				<input type="text" name="SUBJECT" class="BigInput" size="40">
		</td>
	</tr>
	<tr>
		<td nowrap class="TableContent">正 文:</td>
		<td class="TableData">
				<input type="text" name="CONTENT" class="BigInput" size="40">
		</td>
	</tr>
	<tr>
		<td nowrap class="TableContent">起始时间:</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="TableContent">结束时间:</td>
		<td class="TableData"><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 class="TableControl">
		<td nowrap colspan="2" align="center">
				<input type="submit"  value="查询" class="BigButton" title="查询">
		</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/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> OA所在分区硬盘空间使用情况</span><br>
	</td>
</tr>
</table>
';
$TOTAL_SPACE = disk_total_space ('/');
$FREE_SPACE = disk_free_space ('/');
echo '<br>
<table border="0" width="500" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
	<tr>
		<td width="80" class="TableContent">已用空间:</td>
		<td class="TableData">';
echo number_format ($TOTAL_SPACE - $FREE_SPACE, 0, '.', ',');
echo ' 字节&nbsp;&nbsp;<b>';
echo number_format (($TOTAL_SPACE - $FREE_SPACE) / 1024 / 1024 / 1024, 2, '.', ',');
echo 'GB</b></td>
	</tr>
	<tr>
		<td class="TableContent">可用空间:</td>
		<td class="TableData">';
echo number_format ($FREE_SPACE, 0, '.', ',');
echo ' 字节&nbsp;&nbsp;<b>';
echo number_format ($FREE_SPACE / 1024 / 1024 / 1024, 2, '.', ',');
echo 'GB</b></td>
	</tr>
	<tr class="TableControl">
		<td nowrap>容量:</td>
		<td>';
echo number_format ($TOTAL_SPACE, 0, '.', ',');
echo ' 字节&nbsp;&nbsp;<b>';
echo number_format ($TOTAL_SPACE / 1024 / 1024 / 1024, 2, '.', ',');
echo 'GB</b></td>
	</tr>
</table>
<br>
<center>
<img src="cakeimg.php">
</center>
</body>
</html>
';
?>

⌨️ 快捷键说明

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