<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp" -->
<SCRIPT language=JavaScript type=text/javascript>
function ifok()
{
if (confirm("请再次确认是否更换域名！"))
document.mail_modi.submit();
}

function chk_del()
{
if(confirm("请确认是否删除!"))
return true;
else
return false;
}
  </SCRIPT>
<%
chk_log()
chk_newpwr 1,1,1

	mnme=SafeRequest("mnme")
	If mnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
if session("sysclass")>=5 then
query="select * from v_emllst   where m_dme ='"&mnme&"'"
elseif session("sysclass")>=4 then
query="select * from v_emllst  where m_dme ='"&mnme&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
else
query="select * from v_emllst   where m_dme ='"&mnme&"' m_unme='"&session("usrname")&"'"
end if
	conn.open constr

	rs.open query,conn,1,1
    if rs.recordcount<>1 then
	rs.close
	conn.close
	call errorpage(-2,"对不起，该邮局不存在或者您无权操作！")
	response.end
	end if
	mailname=trim(rs("m_dme"))
		g_sst=rs("m_sst")
u_nme=trim(rs("m_unme"))

%>
<%
			    proid=trim(rs("m_prd"))

		%>

<table cellspacing=2 cellpadding=0 width="100%" border=0>
              <tbody> 
              <tr> 
                
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>邮局<font color="#000000">列表</font></strong></span></b><span class=enbold><font color="#000000"><a class=commonface  href="index.asp"><font color="#FF0000">（查询）</font></a></font></span></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a href="eml_lst.asp?querytype=8" class=commonface >今天新开通</a> 
            | <a href="eml_lst.asp?querytype=9" class=commonface >本周新开通</a> | 
            <a href="eml_lst.asp?querytype=10" class=commonface >本周到期</a> | <a href="eml_lst.asp?querytype=11" class=commonface >本月到期</a></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=5></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=2 class=menuline></td>
        </tr>
        </tbody> 
      </table>
      <br>
                </td>
              </tr>
              <tr> 
                <td  colspan=2 valign="middle" height="28"> 
                  
      <table   bordercolor="#5785B2" cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" align="center">
        <tr> 
                      
          <td height="34"> 
            <div align="center"> 
                          
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr> 
                              <td> 
                                <!--#include file="menu.asp"-->
                              </td>
                            </tr>
                          </table>
                          
              <br>
                        </div>
                      </td>
                    </tr>
                    <tr> 
                      
          <td valign="top"> 
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class=datalist>
              <tr align="center"> 
                <th colspan="2" class=datalistheader> <b><a name="m_dme"></a>主域名更换</b>(更换主域名将导致现有邮箱全部被删除，并且不可恢复，请慎重！) </th> 
              </tr>
                          
              <tr> 
                <td valign="bottom" width="40%" height="22" class=datalistgrida  > 
                  <p>&nbsp;邮局主域名 
                </td>
                            
                <td valign="bottom" class=datalistgrida > <b><font color=#ff0000><%=mailname%></font></b> 
                </td>
                          </tr>
                          
              <form action=eml_mng.asp method=post name=mail_modi>
                <tr> 
                  <td valign="bottom" width="25%" height="22" class=datalistgrida > 
                    <p>&nbsp;新的邮局域名 
                              </td>
                              
                  <td valign="bottom" class=datalistgrida > 
                    <input name=newmaildomain class="textarea_01" tabindex=1 size=20 maxlength="35">
                                <input name="mailname" type="hidden" value="<%=mailname%>">
                                <input name="module" type="hidden" value="eml_dme_chg">
                              </td>
                            </tr>
                            
                <tr> 
                  <td valign="bottom" width="15%" height="22" class=datalistgrida >&nbsp;邮局管理密码</td>
                              
                  <td valign="bottom" class=datalistgrida > 
                    <input name=newmailpassword class="textarea_01" tabindex=1 size=20 maxlength="20">
                                <input type=button   name="image222" class=btxx value="现在更改" onClick="javascript:ifok();">
                              </td>
                            </tr>
                          </form>
                        </table>
                      </td>
                    </tr>
					<% if g_sst=1 then %>
                    <tr> 
                      
          <td valign="top" height="50"> <br>
                        
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class=datalist>
              <tr align="center"> 
                <th colspan="2"  class=datalistheader> <b><a name="m_usr"></a>域名添加</b> 
                </th>
                          </tr>
                          
              <tr align="middle"> 
                <td width="40%" height="22" valign="bottom" class=datalistgrida > 
                  <p align="center">邮局域名
                            </td>
                            
                <td valign="bottom" class=datalistgrida > 
                  <p align="center">域名添加 
                </td>
                          </tr>
                          
              <form action="eml_mng.asp" method="post" name=form1>
                <tr> 
                              
                  <td height="22" align="center" class=datalistgrida > 
                    <input name="maildomain"   tabindex=1  style="FONT-SIZE: 9pt ;border: 1px solid #C0C0C0 ; height:16px ;width:150px;">
                              </td>
                              
                  <td class=datalistgrida   > 
                    <div align="center"> 
                      <input type=submit value="添 加" name=adfadf class=btxx>
                                  <input type=hidden value="<%=mailname%>" name=mailname >
                                  <input type=hidden value="eml_als_add" name=module>
                                </div>
                              </td>
                            </tr>
                          </form>
                        </table>
                        <br>
                        
            <table width="100%" cellspacing="0" cellpadding="0" border="0"  class=datalist>
              <tr align="middle"> 
                <th align="center" colspan="2"  class=datalistheader><b><a name="m_usr"></a>域名列表</b></th>
                          </tr>
                          
              <tr align="center"> 
                <td height="22" width=40%  class=datalistgrida >邮局域名</td>
                            
                <td class=datalistgrida >域名管理</td>
                          </tr>
                          <%
rs1.open "select * from emlals where ma_emldme='"& mnme & "' order by ma_dme desc",conn,1,1
If not(rs1.eof And rs1.bof) Then
	%>
                          <%

	Do While Not rs1.eof
	%>
              <form action=eml_mng.asp method=post>
                <tr align="center"> 
                  <td height="22" class=datalistgrida  align=left>&nbsp;&nbsp;&nbsp;<b><%=trim(rs1("ma_dme"))%></b></td>
                            
                  <td  class=datalistgrida > 
                    <input type=image src="/imgs/del.gif" width="17" height="17" title="删除域名" name="image"  onClick="javascript:return chk_del();">
                              <input type=hidden value="<%=mailname%>" name=mailname ><input type=hidden value="<%=trim(rs1("ma_dme"))%>" name=maildomain >
                              <input type=hidden value="eml_als_del" name=module>
                            </td>
                          
                          </tr></form>
                          <%
	rs1.movenext
	Loop
End If
%>
                        </table>
                        <br>
                      </td>
                    </tr>
                  <% end if %>
                    <tr> 
                      
          <td height="20" valign="top"><br>
                        <br>
                        <br>
                        <%
Function showstatus(regstt,regtpe,exptme)
if cdate(exptme)-date()<0 then
regstt=20
elseif cdate(exptme)-date()<7 and regtpe<>0 then
regstt=19
elseif cdate(exptme)-date()<30 and regtpe<>0 then
regstt=18
end if
regtpe_str=right("000"&cstr(regtpe),2)
regstt_str=right("000"&cstr(regstt),2)
gifstr=regtpe_str&regstt_str&".gif"
showstatus="<img src=/icons/"&gifstr&">"   

End Function
%>
                        <%
Function showstatus_usr(regstt,regtpe)
regtpe_str=right("000"&cstr(regtpe),2)
regstt_str=right("000"&cstr(regstt),2)
gifstr=regtpe_str&regstt_str&".gif"
showstatus_usr="<img src=/icons/"&gifstr&">"   

End Function
%>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              </tbody> 
            </table>
          
      <!--#include virtual="/incs/bottom.asp"-->
