📄 showmisp.asp
字号:
<!--#include file="passinc.asp" -->
<%
if isadmin() = false then
response.redirect "noadmin.asp"
end if
%>
<%
dim ei
set ei = server.createobject("easymail.IspManager")
'-----------------------------------------
ei.Load
allnum = ei.count
%>
<HTML>
<HEAD>
<title>Corp.Email</title>
<LINK href="images\hwem.css" rel=stylesheet>
</HEAD>
<SCRIPT LANGUAGE=javascript>
<!--
function del() {
if (ischeck() == true)
{
f1.mode.value = "del";
f1.submit();
}
}
function add() {
if (f1.uname.value != "" && f1.userver.value != "" && f1.uport.value != "" && f1.uusername.value != "" && f1.upassword.value != "")
{
f1.mode.value = "add";
f1.submit();
}
else
alert("Incomplete input.");
}
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><br>
<FORM ACTION="savemisp.asp" METHOD="POST" NAME="f1">
<input type="hidden" name="mode">
<table width="95%" border="0" align="center" cellspacing="0" bgcolor="#EFF7FF">
<tr bgcolor="#dbeaf5">
<td colspan="7" 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>Create Multiple ISP Reception</b></font></div>
</td>
</tr>
<tr bgcolor="#dbeaf5">
<td width="22%" height="25" style="border-left:1px #8CA5B5 solid; border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Name</div>
</td>
<td width="25%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Server Address</div>
</td>
<td width="8%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Port</div>
</td>
<td width="30%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">User Name</div>
</td>
<td width="15%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Password</div>
</td>
</tr>
<tr>
<td align="center" height="25">
<input type="text" name="uname" size="15" maxlength="64" class="textbox">
</td>
<td align="center">
<input type="text" name="userver" size="20" maxlength="64" class="textbox">
</td>
<td align="center">
<input type="text" name="uport" size="5" maxlength="5" value="110" class="textbox">
</td>
<td align="center">
<input type="text" name="uusername" size="22" maxlength="64" class="textbox">
</td>
<td align="center">
<input type="password" name="upassword" size="10" maxlength="64" class="textbox">
</td>
</tr>
<tr>
<td colspan="7" align="right"><br>
<input type="button" value="Create" onClick="javascript:add()" name="button" class="Bsbttn">
<input type="button" value="Cancel" onclick="javascript:location.href='right.asp?<%=getGRSN() %>';" class="Bsbttn">
</td>
</tr>
</table>
<br><br>
<table width="95%" border="0" align="center" cellspacing="0" bgcolor="#EFF7FF">
<tr bgcolor="#dbeaf5">
<td colspan="7" 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>Multiple ISP Reception Configuration</b></font></div>
</td>
</tr>
<tr bgcolor="#dbeaf5">
<td width="5%" height="25" style="border-left:1px #8CA5B5 solid; border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center"> </div>
</td>
<td width="19%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Name</div>
</td>
<td width="38%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Server Address</div>
</td>
<td width="10%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">Port</div>
</td>
<td width="30%" style="border-bottom:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
<div align="center">User Name</div>
</td>
</tr>
<%
i = 0
do while i < allnum
ei.Get i, iname, isev, iport, iusername
response.write "<tr><td align='center' height='25' style='border-bottom:1px #8CA5B5 solid;'><input type='checkbox' name='check" & i & "'>"
response.write "</td><td align='center' style='border-bottom:1px #8CA5B5 solid;'>" & server.htmlencode(iname)
response.write " </td><td align='center' style='border-bottom:1px #8CA5B5 solid;'>" & server.htmlencode(isev)
response.write " </td><td align='center' style='border-bottom:1px #8CA5B5 solid;'>" & iport
response.write " </td><td align='center' style='border-bottom:1px #8CA5B5 solid;'>" & server.htmlencode(iusername)
response.write " </td></tr>"
iname = NULL
isev = NULL
iport = NULL
iusername = NULL
i = i + 1
loop
%>
<tr>
<td colspan="7" align="right"><br>
<input type="button" value="Delete" onclick="javascript:del()" class="Bsbttn">
<input type="button" value="Return" onclick="javascript:location.href='right.asp?<%=getGRSN() %>';" class="Bsbttn">
</td>
</tr>
</table>
</FORM>
<br>
<div style="position: absolute; left: 35; top: 10;">
<table><tr bgcolor="#dbeaf5"><td nowrap style="border-top:1px #8CA5B5 solid; border-left:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid; border-bottom:1px #8CA5B5 solid;">
<a href="showsysinfo.asp?<%=getGRSN() %>#showmisp" style="text-transform: none; text-decoration: none;"><font class="s" color="#104A7B"><b>Configure</b></font> <img src="images\ugo.gif" border="0" align="absbottom"></a>
</td></tr></table>
</div>
</BODY>
</HTML>
<%
set ei = nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -