<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/web_top.asp"-->
<SCRIPT language=JavaScript type=text/javascript>

function ifok()
{
if (confirm("请再次确认是否更换域名！"))
document.mail_modi.submit();
}
 function chk_edt()
{
if(confirm("请确认是否更改!"))
return true;
else
return false;
}
function chk_del()
{
if(confirm("如果确认，该邮箱内现有信件将全部丢失且不可恢复!"))
return true;
else
return false;
}
  </SCRIPT>
<%
chk_log_usr()
	mnme=SafeRequest("mnme")
	If mnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
	query="select * from v_emllst  where m_unme='"&session("usrname")&"'  and m_dme ='"&mnme&"'"
	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")
query="select * from memlst where u_nme='"&rs("m_unme")&"'"
rs1.open query,conn,1,1
if not rs1.eof then
u_nme=trim(rs1("u_nme"))
end if
rs1.close

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

		%>
      <script language=javascript>
		function expl()
		{
		if (identity.style.display=="none")
		identity.style.display="block";
		else
		identity.style.display="none";
		}
		
		function b_regstt_chg()
		{
		if(confirm("是否确认更改邮箱状态?"))
		return true;
		else
		return false;
		
		}
		</script>
      <table cellspacing=0 cellpadding=0 width="100%" border=0>
        <tbody> 
        <tr> 
          <td colspan=2><img height=3 
            src="/imgs/spacer.gif" width=3></td>
        </tr>
        <tr> 
          <td width=438 
          background=/imgs/bg_inside_pages_link.jpg 
          height=30><img height=11 
            src="/imgs/aword_square.gif" width=11 
            align=absMiddle> <a href="/">首 页</a> <strong>&gt;</strong> <a href="/control/">管理中心</a> 
            <b>&gt;</b> <a href="/control/eml_mng/eml_lst.asp">企业邮局管理</a></td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td colspan=2><img height=10 
            src="/imgs/shadow_inside_pages.jpg" 
        width=438></td>
        </tr>
        </tbody> 
      </table>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY> 
        <TR> 
          <TD vAlign=top width=180 bgColor=#f3f3f3> 
            <!--#include virtual="/incs/control_left.asp"-->
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
          </TD>
          <TD vAlign=top width=10 
          background=/imgs/bg_inside_pages_block.jpg><IMG 
            height=1 src="/imgs/bg_inside_pages_block.jpg" 
            width=10></TD>
          <TD vAlign=top> 
            <table cellspacing=2 cellpadding=0 width="100%" border=0>
              <tbody> 
              <tr> 
                <td  colspan=2 valign="middle"> 
                  <table class=line cellspacing=0 cellpadding=0 width="98%" 
                  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">列表<a href="index.asp"><font color="#FF0000">（查询）</font></a></font></strong></span></b></font></td>
                      <td valign=bottom noWrap align=right 
                        width="75%"><a href="eml_lst.asp?querytype=8"><font color="#000000">今天新开通</font></a> 
                        <font color="#000000">|</font> <a href="eml_lst.asp?querytype=9"><font color="#000000">本周新开通</font></a> 
                        <font color="#000000">|</font> <a href="eml_lst.asp?querytype=10"><font color="#000000">本周到期</font></a> 
                        <font color="#000000">| </font><a href="eml_lst.asp?querytype=11"><font color="#000000">本月到期</font></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 bgcolor="#5F5F5F"></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="98%" align="center">
                    <tr> 
                      <td height="34" bgcolor="#FFFFFF"> 
                        <div align="center"> 
                          <table width="85%" border="0" cellspacing="0" cellpadding="0" align="center">
                            <tr> 
                              <td> 
                                <!--#include file="eml_mnu.asp"-->
                              </td>
                            </tr>
                          </table>
                          <br>
                        </div>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <table align="center" bgcolor="#666666" border="0" cellpadding="4" cellspacing="1" width="100%">
                          <tr align="middle" bgcolor="#8b8b8b"> 
                            <td colspan="4"> 
                              <table align="center"  border="0" cellpadding="2" cellspacing="0" width="100%">
                                <tr align="middle"> 
                                  <td align="center" > 
                                    <p><b><font color="#FFFFFF">基本状态</font></b> 
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr align="middle" bgcolor="#ffffff"> 
                            <td width="25%" height="27"> 
                              <p align="left">域名： 
                            </td>
                            <td height="21" colspan="3" align=left> <b><font color=#ff0000><%= rs("m_dme")%></font>&nbsp;
                              <%
				  query="select * from emlals where ma_emldme='"&rs("m_dme")&"'"
				  rs1.open query,conn,1,1
				  if not  rs1.eof then
				  response.write trim(rs1("ma_dme"))&"&nbsp;"
				  end if
				  rs1.close
				  %>
                              </b> </td>
                          </tr>
                          <tr align="middle" bgcolor="#ffffff"> 
                            <td width="25%" height="27"> 
                              <p align="left">名称： 
                            </td>
                            <td height="21" width="25%"> 
                              <div align="left"> 
                                <%
				  query="select * from pdtlst where g_prd='"&rs("m_prd")&"'"
				  rs1.open query,conn,1,1
				  if not  rs1.eof then
				  response.write trim(rs1("g_nme"))
				  end if
				  rs1.close
				  %>
                              </div>
                            </td>
                            <td width="25%" height="21"> 
                              <p align="left">IP地址： 
                            </td>
                            <td height="21"> 
                              <div align="left"><%= rs("m_svrip")%></div>
                            </td>
                          </tr>
                          <tr> 
                            <td bgcolor="#FFFFFF"> 
                              <div align="left">状态：</div>
                            </td>
                            <td  bgcolor="#FFFFFF" > 
                              <div align="left"><%= showstatus(rs("m_regstt"),rs("m_regtpe"),rs("m_exptme"))%></div>
                            </td>
                            <td bgcolor="#FFFFFF"> 
                              <p align="left">邮局用户数： 
                            </td>
                            <td bgcolor="#FFFFFF"> 
                              <div align="left"><%= rs("m_usrcnt")%> 
                                <%if  rs("m_usradd")>0 then
							  response.write " + "&rs("m_usradd")
							  end if %>
                                &nbsp;</div>
                            </td>
                          </tr>
                          <tr> 
                            <td bgcolor="#FFFFFF" height="22"> 
                              <div align="left">邮局空间：</div>
                            </td>
                            <td bgcolor="#FFFFFF"  height="22"  > 
                              <div align="left"><%= rs("m_sze")%> 
                                <%if  rs("m_szeadd")>0 then
							  response.write " + "&rs("m_szeadd")
							  end if %>
                                M</div>
                            </td>
                            <td height="22" bgcolor="#FFFFFF">使用期限： </td>
                            <td height="22" bgcolor="#FFFFFF"><%=right(left(replace(rs("m_addtme")," ","   "),10),8)%>&nbsp;<font color="#FF0000">至</font>&nbsp;<%= right(left(replace(rs("m_exptme")," ","   "),10),8)%></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <td> 
                        <table width="100%" border="0" cellspacing="0" cellpadding="0"  id=identity>
                          <tr> 
                            <td>&nbsp;</td>
                          </tr>
                          <tr> 
                            <td> 
                              <table align="center" width="100%" bgcolor="#666666" cellpadding="4" cellspacing="1" border="0">
                                <tr align="middle" bgcolor="#8b8b8b" bordercolordark="#FFFFFF"> 
                                  <td colspan="3" height="27"> 
                                    <div align="center"><b><font color="#FFFFFF">订单信息</font></b></div>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="27" width="25%"> 
                                    <div style="display:block;">单位名称：</div>
                                  </td>
                                  <td colspan="2"><%=rs("m_copnme_cn")%></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="27"> 联系人：</td>
                                  <td colspan="2"><%=rs("m_ctt_cn")%></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="27"> 联系地址：</td>
                                  <td colspan="2"><%=rs("m_adr_cn")%></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="27"> 邮政编码：</td>
                                  <td colspan="2"><%=rs("m_cde")%></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="27"> 联系电话：</td>
                                  <td colspan="2"><%=rs("m_tel")%></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="27"> 传真：</td>
                                  <td colspan="2"><%=rs("m_fax")%></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="27"> 电子邮件：</td>
                                  <td colspan="2"><%=rs("m_eml")%></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <td height="20" valign="top" bgcolor="#FFFFFF"> <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)
regtitle=showtitle(regtpe_str,regstt_str)
gifstr=regtpe_str&regstt_str&".gif"
showstatus="<img src=/icons/"&gifstr&" title="&regtitle&" style='cursor:hand;'>"   

End Function
function showtitle(regtpe_str,regstt_str)
tpestr=""
sttstr=""
select case  regtpe_str
case  "00"
tpestr="购买方式为试用"
case  "01"
tpestr="购买方式为正式购买"
case "05"
tpestr="购买方式为赠送"
case else
tpestr="购买方式为未知"
end select
select case  regstt_str
case  "00"
sttstr="运行状态为未开通"
case  "01"
sttstr="运行状态为运行中"
case  "02"
sttstr="运行状态为暂停中"
case  "03"
sttstr="运行状态为处理中"
case  "04"
sttstr="运行状态为已完全删除"
case  "05"
sttstr="运行状态为禁用中"
case  "06"
sttstr="运行状态为待开通"
case  "17"
sttstr="运行状态为已删除邮局设置信息"
case  "18"
sttstr="运行状态为30天后过期"
case  "19"
sttstr="运行状态为7天后过期"
case  "20"
sttstr="运行状态为已过期"
case  else
sttstr="运行状态为未知"
end select
showtitle=tpestr&","&sttstr
end function
%>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              </tbody> 
            </table>
          </TD>
        </TR>
        </TBODY> 
      </TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY> 
        <TR> 
          <TD bgColor=#cccccc><IMG height=1 
            src="/imgs/spacer.gif" 
      width=1></TD>
        </TR>
        </TBODY> 
      </TABLE>
      <!--#include virtual="/incs/web_bottom.asp"-->



