📄 logs.asp
字号:
<!--#include file="passinc.asp" -->
<%
if isadmin() = false then
response.redirect "noadmin.asp"
end if
%>
<%
dim ei
set ei = server.createobject("easymail.logs")
'-----------------------------------------
ei.load
allnum = ei.LogCount
%>
<HTML>
<HEAD>
<title>Corp.Email</title>
<LINK href="images\hwem.css" rel=stylesheet>
</HEAD>
<SCRIPT LANGUAGE=javascript>
<!--
function removeall() {
f1.mode.value = "removeall";
f1.submit();
}
function logdel() {
if (ischeck() == true)
f1.submit();
}
function ischeck() {
var i = 0;
var theObj;
for(; i<<%=allnum %>; i++)
{
theObj = eval("f1.check" + i);
if (theObj != null)
if (theObj.checked == true)
return true;
}
return false;
}
//-->
</SCRIPT>
<BODY>
<br>
<FORM ACTION="dellog.asp" METHOD="POST" NAME="f1">
<input type="hidden" name="mode">
<table width="90%" border="0" align="center" cellspacing="0" bgcolor="#EFF7FF">
<tr>
<td colspan="7" align="right" bgcolor="#ffffff"><br>
<input type="button" value="Delete" onclick="javascript:logdel()" class="Bsbttn">
<input type="button" value="Delete All" onclick="javascript:removeall()" class="Bsbttn">
<input type="button" value="Cancel" onclick="javascript:location.href='right.asp?<%=getGRSN() %>';" class="Bsbttn">
<br>
</td>
</tr>
<tr bgcolor="#dbeaf5">
<td colspan="6" height="28" style="border-bottom:1px #8CA5B5 solid; border-top:1px #8CA5B5 solid; border-left:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center"><font class="s" color="#104A7B"><b>Log File(s) (<%=ei.LogCount %>)</b></font></div>
</td>
</tr>
<tr bgcolor="#dbeaf5">
<td width="5%" height="25" style="border-bottom:1px #8CA5B5 solid; border-left:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center"> </div>
</td>
<td width="58%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Name</div>
</td>
<td colspan="4" width="37%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Size (Kb)</div>
</td>
</tr>
<%
i = allnum - 1
do while i >= 0
ei.getLogInfo i, name, size
response.write "<tr><td align='center' height='25' style='border-bottom:1px #8CA5B5 solid;'><input type='checkbox' name='check" & i & "' value='" & name & "'>"
response.write "</td><td align='center' style='border-bottom:1px #8CA5B5 solid;'><a href='showlog.asp?" & getGRSN() & "&index="& i & "'>" & name
response.write "</a></td><td align='center' style='border-bottom:1px #8CA5B5 solid;'>" & int(size/1000)
response.write "K</td></tr>"
name = NULL
size = NULL
i = i - 1
loop
%>
<tr>
<td colspan="7" align="right" bgcolor="#ffffff"><br>
<input type="button" value="Delete" onclick="javascript:logdel()" class="Bsbttn">
<input type="button" value="Delete All" onclick="javascript:removeall()" class="Bsbttn">
<input type="button" value="Cancel" onclick="javascript:location.href='right.asp?<%=getGRSN() %>';" class="Bsbttn">
</td>
</tr>
</table>
</FORM>
<br>
</BODY>
</HTML>
<%
set ei = nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -