<!--#include virtual="/manager/config/config.asp" -->
<!--#include virtual="/config/uercheck.asp" -->
<%
conn.open constr
''''''''''''''''''''''sort''''''''''''''''''''''''''
sorttype=trim(requesta("sorttype"))
sorts=trim(requesta("sorts"))
if sorttype="" then sorttype="desc"
if sorttype="asc" then 
	seesortstr="<img src=""/images/up_sort.png"" border=0 alt=""升序"">"
else
	seesortstr="<img src=""/images/down_sort.png"" border=0 alt=""倒序"">"
end if

sortsql=""
if sorts="" then sorts="regdate"
	sortsql=" "& sorts &" " & sorttype
'''''''''''''''''''''''''''''''''''''''''''''''''''
sqlArray=Array("strdomain,域名,str","regdate,注册时间,date","rexpiredate,到期时间,date","years,购买年限,int","u_name,用户名,str")
newsql=searchEnd(searchItem,condition,searchValue,othercode)
sqlstring="SELECT * FROM domainlist where userid=" &  session("u_sysid") & " " & newsql & " order by "& sortsql
rs.open sqlstring,conn,1,1
    setsize=20
	cur=1
	othercode=othercode & "&sorts="& sorts & "&sorttype="& sorttype
	pagenumlist=GetPageClass(rs,setsize,othercode,pageCounts,linecounts)

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="../css/Admin_Style.css" rel=stylesheet>
<script language="javascript">
function dosort(v){
 	if(v!=''){
		var sorttype="<%=request("sorttype")%>";
		if (sorttype=="") sorttype="desc";
		if (sorttype=="desc")
			sorttype="asc";
		else if(sorttype=="asc") 
			sorttype="desc";
			
     	document.form1.action="<%=request("script_name")%>?pageNo=<%=Requesta("pageNo")%>&sorttype="+ sorttype +"&sorts="+ v ;
		document.form1.submit();
		
		
	  }

}
</script>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
<body leftmargin='2' topmargin='0' marginwidth='0' marginheight='0'>
<table width='100%' border='0' align='center' cellpadding='2' cellspacing='1'>
  <tr class='topbg'>
    <td height='30' align="center" ><strong>域 名 管 理</strong></td>
  </tr>
</table>
<table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
  <tr class='tdbg'>
    <td height='30' ><!--#include file="../share/AgentPrice.asp"--></td>
  </tr>
</table>
<br>
<table   bordercolor="#FFFFFF" cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" height="218">
  <tr>
    <td height="175" width="99%" valign="top"><table width="100%" border="0" cellpadding="3" cellspacing="1" bordercolordark="#ffffff" class="border">
        <form name="form1" action="<%=request("script_name")%>" method="post">
          <tr class='title'>
            <td width="233" align="center" nowrap ><a href="javascript:dosort('strDomain')" class="STYLE1"><strong>域名/管理</strong><%=seesortstr%></a></td>
            <td width="94" align="center" nowrap > <a href="javascript:dosort('regdate')" class="STYLE1"><strong>注册日期</strong><%=seesortstr%></a></td>
            <td width="81" align="center" nowrap > <a href="javascript:dosort('rexpiredate')" class="STYLE1"><strong>到期日期</strong><%=seesortstr%></a></td>
            <td width="40" align="center" nowrap ><span class="STYLE1"><strong>状态</strong></span></td>
            <td align="center" nowrap > <a href="javascript:dosort('isreglocal')" class="STYLE1"><strong>业务种类</strong><%=seesortstr%></a></td>
            <td width="84" align="center" nowrap > <a href="javascript:dosort('isreglocal')" class="STYLE1"><strong>类别</strong><%=seesortstr%></a></td>
            <td width="100" align="center" nowrap ><span class="STYLE1"><strong>操作</strong></span></td>
          </tr>
          <%
	Do While Not rs.eof And cur<=setsize
		tdcolor="#ffffff"
		if cur mod 2 =0 then tdcolor="#EAF5FC"
	%>
          <tr  bgcolor="<%=tdcolor%>">
            <td align="left" nowrap><a href="manage.asp?p_id=<%=rs("d_id")%>"><%=domainlook(rs("strDomain"))%></a> </td>
            <td align="center" nowrap><%= FormatDateTime(rs("regdate"),2) %> </td>
            <td align="center" nowrap ><%=FormatDateTime(rs("rexpiredate"),2)%></td>
            <td align="center" nowrap><%=showdomainstatus(rs("regdate"),rs("years"))%></td>
            <td width="75" height="22" align="center" nowrap><%
								If rs("isreglocal") Then
									Response.Write "DNS管理"
								else
									Response.Write "本站注册"
								End If
								%>            </td>
            <td align="center" nowrap><%
								If rs("isreglocal") then
									Response.write "DNS管理"
								else
									Response.write "<font color=red>域名</font>"
								End If
						%>            </td>
            <td align="left" nowrap>
     		 
            <a href="manage.asp?p_id=<%=rs("d_id")%>"><font color="#FF0000">管理</font></a>&nbsp; 
            <a href="renewDomain.asp?DomainID=<%=Rs("d_id")%>">续费</a>
            <%If not rs("isreglocal") then %>
            	<%
				mydomaintype=GetDomainType(rs("strDomain"))
				if mydomaintype="domcn" then
					cerhref="cercn.asp?DomainID="& rs("d_id")
				else
					cerhref="cer.asp?DomainID="& rs("d_id")
				end if
				%>
				<a href="/manager/domainmanager/cer/<%=cerhref%>" target="_blank">证书</a>&nbsp;
            <%end if%>            </td>
          </tr>
          <%
		cur=cur+1
		rs.movenext
		
	Loop
	rs.close
	conn.close
	%>
          <tr bgcolor="#FFFFFF">
            <td colspan ="9" align="center" class="tdbg"><%=pagenumlist%> </td>
          </tr>
          <tr>
            <td colspan="9" class="tdbg"><%=searchlist%></td>
          </tr>
        </form>
    </table></td>
  </tr>
</table>
<!--#include virtual="/config/bottom_superadmin.asp" -->
