<!--#include file="conn.asp" -->
<!--#include file="inc/usdl.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=page_title%>用户管理中心.</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="3" topmargin="0">

<!--#include file="head.asp" -->
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="763" height="19" valign="bottom"><font color="#990000">　→ </font>你当前位置：<a href="default.asp">首 
      页 </a>&gt;&gt;管理中心</td>
  </tr>
  <tr>
    <td height="1" background="images/2.jpg"></td>
  </tr>
</table>
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="175" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><div align="center"><img src="pic/manager.gif" width="174" height="70" border="1"></div></td>
        </tr>
        <tr> 
          <td height="17" bgcolor="#EEEEEE"> <div align="center">欢迎: <font color="#FF0000"><strong><%= session("us") %></strong></font> 光临</div></td> 
        </tr>
        <tr> 
          <% us=session("us")
			sql="select * from user where userid='"&us&"'"
			rs.open sql,conn,1,1
			
			 %>
          <td><p><font color="#FF0000">您的账面存款：</font></p>
            <p>&nbsp;</p>
            <p align="center"><font color="#FF0000">￥ <%= rs("je") %></font></p> 
            <p align="center">&nbsp;</p>
            <p>客户等级: <font color="#FF0000"><%= rs("dl")  %>  
              <% rs.close 
			  if Trim(Request.QueryString("w"))="save" then
			 if Trim(Request.Form("body"))="" then
			 ms="对不起！！你的问题提交失败，请输入您的问题．．．．"
			 else
			 ms="您的问题已经提交，我们会尽快回答您的问题..谢谢您的支持．．"
			 sql="insert into msm (userid,mail,body,class,url) values ('"&session("us")&"','"&Trim(Request.Form("email"))&"','"&Trim(Request.Form("body"))&"','"&Trim(Request.Form("select"))&"','"&Trim(Request.Form("url"))&"')"
			 conn.execute(sql)
			 end if
			 end if
			   %>
              </font></p></td>
        </tr>
        <tr> 
          <td height="1" background="images/2.jpg"> </td>
        </tr>
      </table>
      <div align="center"> 
        <!--#include file="user_inc.asp" -->
      </div></td>
    <td width="1" background="images/1.jpg"> </td>
    <td width="587" valign="top"> <table width="573" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="573">
            <p align="center"><a href="user.asp"><img src="images/mameger.gif" width="437" height="43"></a></p>
          </td>
        </tr>
        <tr> 
          <td height="189"> <form name="form2" method="post" action="user4.asp?w=save">
              <p>&nbsp;</p>
              
              <table width="95%" height="239" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bordercolorlight="" bordercolordark="ffffff"
>
                <tr> 
                  <td height="18" bgcolor="#008080"><div align="center"><font color="#FFFFFF"><strong>提交您的问题</strong></font></div></td>
                  <td height="18" bgcolor="#F0F0F0">(带 <font color="#FF0000">*</font>  
                    的为必提项)</td> 
                </tr>
                <tr> 
                  <td width="18%" height="32">你的email:</td>
                  <td width="82%"><input name="email" type="text" id="email" value="<%=session("us_email")%>" size="19">
                    　<font color="#FF0000">*</font> <font color="#FF0000">以便我们回复发送到您的邮箱里</font></td> 
                </tr>
                <tr> 
                  <td height="28">问题类别:</td>
                  <td><select name="select">
                      <option value="空间租用类" selected>空间租用类</option>
                      <option value="域名服务类">域名服务类</option>
                      <option value="企业邮局类">企业邮局类</option>
                      <option value="网站推广类">网站推广类</option>
                      <option value="主机租用|托管">主机租用|托管</option>
                      <option value="集统集成类">集统集成类</option>
                      <option value="其它类别">其它类别</option>
                    </select></td>
                </tr>
                <tr> 
                  <td height="29">相关域名:</td>
                  <td><input name="url" type="text" id="url">
                    (如果有的话)</td> 
                </tr>
                <tr> 
                  <td height="99">您的问题:</td>
                  <td><textarea name="body" cols="30" rows="5" id="body"></textarea> 
                    <font color="#FF0000">＊</font></td> 
                </tr>
                <tr> 
                  <td height="24">&nbsp;</td>
                  <td><p> 
                      <input type="submit" name="Submit2" value="－确定提交－">
                    </p></td>
                </tr>
              </table>
            </form></td>
        </tr>
      </table>
      <p align="center"><font color="#FF0000"><%= ms %></font></p>
      <table width="556" height="56" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bordercolorlight="" bordercolordark="ffffff"
>
        <tr bgcolor="#F5F5F5"> 
          <td width="42" height="18"><div align="center">序号</div></td>
          <td width="234"> <div align="center">问 题</div></td>
          <td width="91"> <div align="center">问题状态</div></td>
          <td width="86"><div align="center">提交时间</div></td>
          <td width="91"><div align="center">答复时间</div></td>
        </tr>
		<% 
		pp=20
		sql="select * from msm where userid='"&session("us")&"'order by id desc"
		  c=c*pagecount 
 rs.open sql,conn,1,1 

if not rs.eof then
  count=rs.recordcount
    if count=empty then
      count=0
    end if
    if count/pp>(count\pp) then
        totalpage=(count\pp)+1
  else
   totalpage=(count\pp)
    end if
end if 
 pagecount=cint(request.querystring("topage"))                              
 if pagecount<=0 then pagecount=1
 if pagecount>totalpage then pagecount=totalpage
 
 
 
if not rs.eof then
  rs.movefirst
 rs.move (pagecount-1)*pp
 i=0
 while not rs.eof and i<pp
 i=I+1
  c=c+1		
		 %>
        <tr> 
          <td height="18"><div align="center"><font color="#FF0000"><%= c %></font></div></td>
          <td><div align="center"><a href="user4_1.asp?id=<%=rs("id")%>"><%= mid(rs("body"),1,10)%></a></div></td>
          <td><div align="center">
              <% if not rs("flyes") then
		  Response.Write("正在处理")
		  else
		  Response.Write("<font color='#FF0000'>已经处理</font>")
		  end if %>
            </div></td>
          <td><div align="center"><%= rs("dat") %>&nbsp;</div></td>
          <td><div align="center"><% if rs("fldat")="" then
		  Response.Write("/")
		  else
		  Response.Write(rs("fldat"))
		  end if %>&nbsp;</div></td>
        </tr>
		<% rs.movenext
		wend
        end if
		rs.close %>
        <tr> 
          <td height="18" colspan="2">一共有:<%= count %> 条　一共:<%= totalpage %> 页 当前为: <%= pagecount %> 页</td> 
          <td colspan="3"><div align="center">
              <% 
	  if totalpage>1 then
	     if totalpage-pagecount>0 then
	  %>
              <a href="user_10.asp?topage=<%=pagecount+1%>">下一页</a> 
              <%  
	   
	  end if
	  if pagecount<>1 and totalpage-pagecount>0 then 
	   response.write "<font color=#FFFFFF>/</font>"
	   end if
	   
	   if pagecount<>"1" then %>
              <a href="user_10.asp?topage=<%=pagecount-1%>">上一页</a>　  
              <% 
	  end if
	  end if
	  %>
              &nbsp; </div></td> 
        </tr>
      </table>
      <p align="center">&nbsp;</p>
      <p align="center">&nbsp;</p></td>
  </tr>
</table>
<%
call CloseDatabase '关闭数据库链接
%>
<!--#include file="top.asp" -->

</body>
</html>





























