<%@ Language=VBScript %>
<!--#include virtual="/inc-freehost-function/FreeHostFunction.asp"-->
<!--#include virtual="/inc-freehost-function/FreeHostFunctionMain.asp"-->
<%
If session("admau")="" Then
	ef=True
	ec="授权非法，有可能是超时造成的。"
ElseIf RegExpTest("[^A-Za-z0-9]",Request.QueryString ("username")) Then
	ef=True
	ec="用户名中有非法字符！"
ElseIf not IsNumeric(Request.QueryString ("id"))  Then
	ef=True
	ec="ID应该是数字！"
elseIf session("cancheckmoney")="" 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")	
	Sql="Select * from FreeHost.FreeHost_Order where username='"&Request.QueryString ("username")&"'"
if Request.QueryString ("id") <>"" then Sql="Select * from FreeHost.FreeHost_Order where id='"&Request.QueryString ("id")&"'"
if Instr(1,sql, ";", 1)>0 or Instr(1,sql, "--", 1)>0 then
Response.Write "非法字符！"
Response.End
end if
	dsph.Open Sql,conn,1,3
if dsph.Eof then
	ef=True
	ec="不存在的订单！"
end if
end if

if not ef then
if Request.QueryString ("changestatus")="彻底删除" then
dsph.delete
dsph.update
dsph.close
Response.Redirect "admorder.asp"
end if

if Request.QueryString ("changestatus")="已完成" then
dsph("status")="已完成"
dsph.update
end if

if Request.QueryString ("changestatus")="已取消" then
dsph("status")="已取消"
dsph.update
end if

if Request.QueryString ("changestatus")="未处理" then
dsph("status")="未处理"
dsph.update
end if

if Request.QueryString ("coreinfo")<>"" then
dsph("coreinfo")=Request.QueryString ("coreinfo")
dsph.update
end if

end if

if not ef then
	Set ds = Server.CreateObject("ADODB.Recordset")	
		Sql="Select * from FreeHost.FreeHost_USER where username='"&dsph ("username")&"'"
if Instr(1,sql, ";", 1)>0 or Instr(1,sql, "--", 1)>0 then
Response.Write "非法字符！"
Response.End
end if
		ds.Open Sql,conn,1,1

%>
<!--#include virtual="/inc-freehost-function/htmlwrite.asp"--><%=htmlwrite("html8")%>
<%=htmlwrite("html9")%>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 background="img/midtop4.gif">
  <TBODY>
    <TR>
      <TD width=53 align="left" background="img/midtop1.gif"><strong> 　 </strong><font color="#FFFFFF">─<strong>&gt;</strong></font> </TD>
      <TD width="83"><table height="59"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="7" background="img/midtop.gif">&nbsp;</td>
            <td width="60" align="center" valign="middle" background="img/r3.jpg" id="tableTop1" style="Cursor:hand" ><a href="admorder.asp"><font color="#FFFFFF">订单管理</font></a></td>
            <td width="5" background="img/midtop2.gif">&nbsp;</td>
          </tr>
      </table></TD>
      <TD width="83">&nbsp;</TD>
      <TD width="83">&nbsp;</TD>
      <TD width="83" align="left">&nbsp;</TD>
      <TD align="left">&nbsp;</TD>
      <TD width=23 align="right"><IMG height=59 
                  src="img/rtop4.jpg" 
                  width=19></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width=19 background="img/midlef.gif" id=rightid>&nbsp;</TD>
      <TD height="300" align="center" vAlign=top bgcolor="#FFFFFF">
<%if not ds.eof then%>	  
	  <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#C8DAFF" id="t1">
  <tr height="24">
    <td width="13%" align="right" bgcolor="#ECF2FF"> 用户名：</td>
    <td width="87%" align="left" bgcolor="#FAFAFA">　<a href="searchuser.asp?username=<%=ds("username")%>" target="_blank"><%=ds("username")%></a> 　 <a href="javascript:document.formTop.action='/user/changeuser.asp';document.formTop.username.value='<%=ds("username")%>';document.formTop.submit();"><font color="#000000">切换成此用户角色>>>(用户区点注销会自动退回管理区)</font></a>　 <a href="#"  onClick="t1.style.display='none';"><font color="#6595D6">X</font></a></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 金额：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("usermoney")%> </td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 电子邮件：</td>
    <td align="left" bgcolor="#FAFAFA">　<a href=mailto:<%=ds("email")%>><font color="#000000"><%=ds("email")%></font></a> 　<a href="emailone.asp?email=<%=ds("email")%>&title=<%=ds("username")%>用户您好" target="_blank">发邮件给这个用户&gt;&gt;&gt;</a></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> QQ：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("qq")%> 　<a href="tencent://message/?uin=<%=ds("qq")%>&Site=<%=Request.ServerVariables("SERVER_NAME")%>&Menu=yes" title="发送即时消息给用户"" target="_blank">发送即时消息给用户&gt;&gt;</a></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right">代理名：</td>
    <td align="left" bgcolor="#FAFAFA">　<%if ds("agent1")<>"n" then%>
      <a href="searchagent.asp?username=<%=ds("agent1")%>" target="_blank"><font color="blue"><%=ds("agent1")%></font></a>
      <%end if%></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"><div align="right">中文名：</div></td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("truename")%> </td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 联系地址：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("address")%> 　邮编：<%=ds("postid")%> </td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 电话：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("tel")%> 　传真：<%=ds("fax")%> </td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 手机：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("mobi")%>　 <a href="smsone.asp?SendNum=<%=ds("mobi")%>&Content=<%=ds("username")%>用户您好" target="_blank">发短信给这个手机&gt;&gt;&gt;</a></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 备注：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("coreinfo")%></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 身份证号码：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("perid")%></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 注册ip：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("regip")%> </td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 注册时间：</td>
    <td align="left" bgcolor="#FAFAFA">　<%=ds("regtime")%> </td>
  </tr>
</table>
<%else%>
     
<%end if%><form action="/user/register-sub.asp" method="post" name="form1" target="_blank">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#C8DAFF" id="t2">
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"><div align="right">编号：</div></td>
    <td align="left" bgcolor="#FAFAFA">　<%=dsph("truename")%></td>
    <td align="left" bgcolor="#FAFAFA">　订单状态：<font color="#FF0000"><%=dsph("status")%></font></td>
  </tr>
  <tr height="24">
    <td width="13%" height="41" align="right" bgcolor="#ECF2FF"> 产品类型：</td>
    <td width="37%" align="left" bgcolor="#FAFAFA">　<%Hosttype=dsph("Hosttype")&dsph("Emailtype")&dsph("SQLtype")&dsph("Othertype")&dsph("idctype")&dsph("VPStype")%><font color="#ff6600"><%=Hosttype%></font> 
    </td>
    <td width="50%" align="left" bgcolor="#FAFAFA"><%Randomize
id=Int((900000 - 0 + 1) * Rnd + 0)%>　用户名：
      <input name="username" type="text" id="username" value="<%=id%>" size="14" maxlength="14">
      <input name="coun" type="hidden" id="coun" value="中国" size="6">	<%Randomize
id2=Int((500000 - 0 + 1) * Rnd + 0)%>
      <br>
      　密　码：
      <input name="password" type="text" value="<%=id2%>" size="14" maxlength="50">
      <input type="submit" name="Submit" value="生成新用户"></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 发生网址：</td>
    <td align="left" bgcolor="#FAFAFA">　<a href=http://<%=dsph("site")%>><font color="#000000">http://<%=dsph("site")%></font></a>
	
</td>
    <td align="left" bgcolor="#FAFAFA">　<a href="moneyall.asp?username=<%=id%>&usermoney=<%=dsph("usermoney")*dsph("year")%>&op=add&forwhat=处理<%=dsph("id")%>号订单" target="_blank">给这个用户增加金额&gt;&gt;&gt;</a>　<%if dsph("Hosttype")<>"" then%><a href="admhost2.asp?username=<%=id%>&year=<%=dsph("year")%>&id=<%=dsph("realid")%>&usermoney=<%=dsph("usermoney")*dsph("year")%>&ftpname=<%=dsph("ftpname")%>&Ftppassword=<%=dsph("Ftppassword")%>&hostname=<%=dsph("hostname")%>&ICP_SN=<%=dsph("ICP_SN")%>&ServerlistID=<%=dsph("ServerlistID")%>" target="_blank">直接开通主机产品&gt;&gt;&gt;</a><%end if%></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 电子邮件：</td>
    <td align="left" bgcolor="#FAFAFA">　<input name="email" type="text" id="email" value="<%=dsph("email")%>">
      <input name="prv" type="hidden" id="prv" value="<%=dsph("prv")%>" size="6">
      <input name="city" type="hidden" id="prv" value="<%=dsph("prv")%>" size="6"></td>
    <td align="left" bgcolor="#FAFAFA">　<a href="emailone.asp?email=<%=dsph("email")%>&username=<%=id%>&password=<%=id2%>&title=<%=dsph("id")%>号订单处理完成通知&type=订单" target="_blank">发邮件给这个用户&gt;&gt;&gt;</a> </td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> QQ：</td>
    <td align="left" bgcolor="#FAFAFA">　<input name="qq" type="text" id="qq" value="<%=dsph("qq")%>" size="12">
　<a href="tencent://message/?uin=<%=dsph("qq")%>&Site=<%=Request.ServerVariables("SERVER_NAME")%>&Menu=yes" title="发送即时消息给用户"" target="_blank">发送即时消息给用户&gt;&gt;</a>　</td>
    <td align="left" bgcolor="#FAFAFA">　更新订单的状态为：<a href="handorder1.asp?changestatus=未处理&id=<%=Request.QueryString ("id")%>">未处理</a>　<a href="handorder1.asp?changestatus=已完成&id=<%=Request.QueryString ("id")%>">已完成</a>　<a href="handorder1.asp?changestatus=已取消&id=<%=Request.QueryString ("id")%>">已取消</a>　<a href="handorder1.asp?changestatus=彻底删除&id=<%=Request.QueryString ("id")%>" onClick="if(!confirm('请确认是否要删除?')){return false;}">彻底删除</a></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right">代理名：</td>
    <td align="left" bgcolor="#FAFAFA">　<%if dsph("agent1")<>"n" then%>
      <a href="searchagent.asp?username=<%=dsph("agent1")%>" target="_blank"><font color="blue"><%=dsph("agent1")%></font></a>
      <%end if%><input name="agent1" type="text" id="agent1" value="<%=dsph("agent1")%>" size="14"></td>
    <td align="left" bgcolor="#FAFAFA">　</td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"><div align="right">中文名：</div></td>
    <td colspan="2" align="left" bgcolor="#FAFAFA">　<input name="truename" type="text" id="truename" value="<%=dsph("truename")%>" size="6"></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 联系地址：</td>
    <td colspan="2" align="left" bgcolor="#FAFAFA">　<input name="address" type="text" id="address" value="<%=dsph("address")%>" size="40" maxlength="50">
       　邮编：      
       <input name="postid" type="text" id="postid" value="<%=dsph("postid")%>" size="10" maxlength="10"></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 电话：</td>
    <td colspan="2" align="left" bgcolor="#FAFAFA">　<input name="tel" type="text" id="tel" value="<%=dsph("tel")%>" size="20" maxlength="50">
　<a href="smsone.asp?SendNum=<%=dsph("tel")%>&Content=" target="_blank">发短信给这个手机&gt;&gt;&gt;</a>      传真：      
      <input name="fax" type="text" id="fax" value="<%=dsph("fax")%>" size="20" maxlength="50"></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 用户信息：</td>
    <td colspan="2" align="left" bgcolor="#FAFAFA">　<%=dsph("userremindinfo")%></td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 注册ip：</td>
    <td colspan="2" align="left" bgcolor="#FAFAFA">　<%=dsph("regip")%> </td>
  </tr>
  <tr height="24">
    <td bgcolor="#ECF2FF" align="right"> 注册时间：</td>
    <td colspan="2" align="left" bgcolor="#FAFAFA">　<%=dsph("starttime")%> </td>
  </tr>
</table>
</form> 
<form action="handorder1.asp" method="get" name="form1">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#C8DAFF">
  <tr height="24">
    <td width="13%" align="right" bgcolor="#ECF2FF"> 内部信息：</td>
    <td colspan="2" align="left" bgcolor="#FAFAFA">　
      <input name="coreinfo" type="text" id="coreinfo" value="<%=dsph("coreinfo")%>" size="30" maxlength="100">
      <input type="submit" name="Submit" value="提交">
      <input name="id" type="hidden" value="<%=dsph("id")%>"></td>
  </tr>
</table>
</form> 


      </TD>
      <TD width=18 background="img/midri.gif">&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
    <TR>
      <TD width=30><IMG height=19 
                  src="img/rb1.jpg" 
                  width=30></TD>
      <TD 
                background=img/rb2.jpg>&nbsp;</TD>
      <TD width=30><IMG height=19 
                  src="img/rb3.jpg" 
                  width=30></TD>
    </TR>
  </TBODY>
</TABLE>
<%=htmlwrite("html10")%>
<%end if
if ef then
Response.Redirect "e.asp?e="&ec
end if%>
