<%@ Language=VBScript %> <% If session("agentusername")="" Then ef=True ec="授权非法,有可能是超时造成的。" end if if not ef then Set conn=Server.CreateObject("ADODB.Connection") conn.Open Application("FreeHostDBlink") Set dsph = Server.CreateObject("ADODB.Recordset") if Request.QueryString ("op") ="all" then Sql="Select * from FreeHost.FreeHost_Product_Email where (agent1='"&session("agentusername")&"' or agent2='"&session("agentusername")&"') order by id desc" if Request.QueryString ("op") ="pause" then Sql="Select * from FreeHost.FreeHost_Product_Email where endtime<'"&now&"' and status<>'暂停' and (agent1='"&session("agentusername")&"' or agent2='"&session("agentusername")&"') order by endtime desc" if Request.QueryString ("op") ="del" then Sql="Select * from FreeHost.FreeHost_Product_Email where endtime<'"&dateadd("d",-30,now)&"' and (agent1='"&session("agentusername")&"' or agent2='"&session("agentusername")&"') order by endtime desc" dsph.PageSize = 25 dsph.Open Sql,conn,1,3 if dsph.Eof then ef=True ec="此类虚拟主机不存在!" end if end if if not ef then ask=Split(Request.ServerVariables("QUERY_STRING"), chr(38)&"pn") pn=1 if Request.QueryString ("pn")<>"" then pn=Request.QueryString ("pn") If dsph.RecordCount <> 0 Then dsph.AbsolutePage = CLng(pn) if clng(pn)<=10 then begini=1 if dsph.PageCount<=10 then endini=dsph.PageCount else endini=10 end if end if %> <%session("FreeHostCom").FreeHost_WR("html5")%> 邮箱管理 <%session("FreeHostCom").FreeHost_WR("html6")%> <%if clng(pn)<=10 then%>最新 <%for i=begini to endini if clng(pn)=i then%>[<%=i%>]<%else%>[<%=i%>]<%end if%> <%next%> <%else%> 最新[1]--[10]  现在是第[<%=pn%>]页  共<%=dsph.PageCount%>页 <%end if%><%If Clng(pn)>1 Then%>上一页<%End If%>|<%If Clng(pn)下一页<%End If%> <%while not dsph.Eof%>
<%=dsph("id")%> 产品类型:<%=dsph("Emailtype")%> 用户名:<%=dsph("username")%> <%if dsph("endtime")>NOW then%> <%if dsph("istest")="y" then%> 目前处于试用期! <%else%> <%=dsph("status")%> <%end if%> <%else%> 已过期! <%if dsph("status")="暂停" then%>
并且已暂停! <%end if%> <%end if%>
&id=<%=dsph("id")%>" target="_blank">管理 <%if Request.QueryString ("op") ="del" then%>

&id=<%=dsph("id")%>">删除

<%end if%>
开通时间:<%=dsph("starttime")%> 到期时间:<%=dsph("endtime")%>
<% Set connA=Server.CreateObject("ADODB.Connection") connA.Open Application("FreeHostDBlink") Set dsserver = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_ServerEmaillist where id='"&dsph ("ServerlistID")&"'" dsserver.Open Sql,connA,1,1 if dsserver.Eof then%> 此虚拟主机的服务器在数据库中不存在! <%else if Request.QueryString ("op") ="pause" then op=1 Set dspdallemail = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_Product_ALLEmail where username='"&dsph ("username")&"' and PdEID='"&dsph ("id")&"' order by emailname" dspdallemail.Open Sql,connA,1,3 while not dspdallemail.eof Response.Write PauseEmail(dsph ("ServerlistID"),dspdallemail("emailname"),op) dspdallemail("status")="暂停" dspdallemail.movenext wend dspdallemail.close dsph("status")="暂停" dsph.update end if if Request.QueryString ("op") ="del" then Set dspdallemail = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_Product_ALLEmail where username='"&dsph ("username")&"' and PdEID='"&dsph ("id")&"' order by emailname" dspdallemail.Open Sql,connA,1,3 if not dspdallemail.Eof then email=trim(dspdallemail("emailname")) emailarry=split(email,"@") name1=emailarry(0) olddomain=lcase(trim(emailarry(1))) ret=DelAdmEmail(dsph ("ServerlistID"),olddomain) end if while not dspdallemail.eof Response.Write ret dspdallemail.delete dspdallemail.movenext wend dspdallemail.close Set conn3=Server.CreateObject("ADODB.Connection") conn3.Open Application("FreeHostDBlink") FreeHost_clientlog conn3,dsph ("username"),session("agentusername"),"超级管理员操作","邮箱产品",dsph ("id"),"删除","","",ret dsph.delete dsph.update end if %> <%end if%>
<% dsph.movenext wend dsph.close set dsph=nothing %> <%session("FreeHostCom").FreeHost_WR("html7")%> <%end if if ef then Response.Redirect "e.asp?e="&ec end if%>