📄 modimaildomain.asp
字号:
<% ModuleCode="M0510" %>
<!--#include file="../../Include/Reference.asp"-->
<%
Call PrintPageHead
PostID=Request.QueryString("ID")
%>
<!--#include file="../../Include/connect.asp"-->
<%
strSQL="Select * from v_MailList Where PostID='" & PostID & "'"
if Session("ISADMIN")<>"YES" then
strSQL = strSQL & " and UserID=" & Session("UserID")
end if
Set Rs= Server.CreateObject("ADODB.Recordset")
Rs.open strSQL,Cn,1,1
If Rs.Eof Then
Response.Write "<br><br><P align='center' class='titletext'>对不起, 找不到此邮局或者您没有权限!</p>"
else
%>
<!--#include file="MailMenu.asp"-->
<!------------------------------------------------------------------------------------->
<script language="javascript">
<!--
function shopcheck()
{
if (document.form1.domain.value=="")
{
alert ("必须输入域名!");
document.form1.domain.focus();
return false;
}
ii=0;
bString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.";
while (ii<document.form1.domain.value.length)
{
if (bString.indexOf(document.form1.domain.value.substring(ii,ii+1))==-1)
{
alert("域名必须是 a-z A-Z 0-9 之间的字母和数字组合。");
document.form1.domain.focus();
return false;
}
ii=ii+1;
}
if ( document.form1.domain.value.length < 6)
{
alert("输入域名少于6位");
document.form1.domain.focus();
return false;
}
if (document.form1.domain.value != document.form1.domain2.value)
{
alert ("域名和确认不一样!");
document.form1.domain.focus();
return false;
}
if (document.form1.password.value=="")
{
alert ("必须输入密码!");
document.form1.password.focus();
return false;
}
ii=0;
bString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
while (ii<document.form1.password.value.length)
{
if (bString.indexOf(document.form1.password.value.substring(ii,ii+1))==-1)
{
alert("密码必须是 a-z A-Z 0-9 之间的字母和数字组合。");
document.form1.password.focus();
return false;
}
ii=ii+1;
}
if ( document.form1.password.value.length < 6)
{
alert("输入密码少于6位");
document.form1.password.focus();
return false;
}
if (document.form1.password.value != document.form1.password2.value)
{
alert ("密码和确认不一样!");
document.form1.password.focus();
return false;
}
return true;
}
-->
</script>
<form name="form1" action="ModiMailDomainDo.asp" method="post" onSubmit="return shopcheck()">
<table width="60%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="<%=Opt_Table_BGColor%>">
<tr bgcolor="<%=Opt_TR_BGColor%>">
<td colspan=2 align=center>
请输入新的域名及密码--<font color=red>mail.<%=Rs("BPostDN")%></font>
</td>
</tr>
<tr bgcolor="<%=Opt_TD_BGColor2%>">
<td align=right bgcolor="<%=Opt_TR_BGColor%>">新的域名:</td>
<td>
mail.<input type=text name=domain value="" class="input">
</td>
</tr>
<tr bgcolor="<%=Opt_TD_BGColor2%>">
<td align=right bgcolor="<%=Opt_TR_BGColor%>">确认新域名:</td>
<td>mail.<input type=text name=domain2 value="" class="input"></td>
</tr>
<tr bgcolor="<%=Opt_TD_BGColor2%>">
<td align=right bgcolor="<%=Opt_TR_BGColor%>">新密码:</td>
<td><input type=password name=password value="" class="input"></td>
</tr>
<tr bgcolor="<%=Opt_TD_BGColor2%>">
<td align=right bgcolor="<%=Opt_TR_BGColor%>">确认新密码:</td>
<td><input type=password name=password2 value="" class="input"></td>
</tr>
<tr>
<td colspan=2 bgcolor="<%=Opt_TD_BGColor2%>" align=center>
<input name="ID" type="hidden" value="<%=PostID%>">
<input name="submit1" type=submit value="确定" class="button">
<input type=button onclick="javascript:history.go(-1)" value="返回" name=button1 class="button">
</td>
</tr>
</table>
</form>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
</td>
<font color=#FF0000>注:在修改邮局域名的过程中将会删除用户邮箱里的所有邮件,请将邮件备份到本地并保存好具体用户的名称.</font>
</td>
</tr>
</table>
<%
end if
Rs.Close
Set Rs=Nothing
Cn.Close
Set Cn=Nothing
Call PrintPageBottom
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -