<!--#include file="conn.asp" -->
<% adm_power_page=4 '分配本页的用户访问权限 %>
<!--#include file="admin_dn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
<% 
bh=Trim(Request.QueryString("bh"))
sql="select * from shop where bh="&bh 

 if Trim(Request.QueryString("w"))="edit" then
  rs.open sql,conn,2,3
 if rs.eof then
   Response.Write("对不起，此订单不存在或是订单出错")
   response.end
  end if
   rs("mc")=Trim(Request.Form("mc"))
   rs("jg")=Trim(Request.Form("jg"))
   rs("sl")=Trim(Request.Form("sl"))
   rs("je")=Trim(Request.Form("je"))
   rs("dat")=Trim(Request.Form("dat"))
   
   if Trim(Request.Form("sx"))="1" then
   rs("sx")=true
  else
  rs("sx")=false
  end if
  
  if Trim(Request.Form("jf"))="1" then
   rs("jf")=true
  else
  rs("jf")=false
  end if
  
   rs("msg")=Trim(Request.Form("msg"))
   rs("bak")=Trim(Request.Form("bak"))
   rs("email")=Trim(Request.Form("email"))
   rs.update
   rs.close
end if

  
 rs.open sql,conn,1,1
  if not rs.eof then
   userid=rs("userid")
   ll=rs("ll")
   mc=rs("mc")
   jg=rs("jg")
   sl=rs("sl")
   je=rs("je")
   dat=rs("dat")
   sx=rs("sx")
   jf=rs("jf")
   msg=rs("msg")
   bak=rs("bak")
   email=rs("email")
  else
   Response.Write("对不起，此订单不存在或是订单出错")
   response.end
  end if


 %>
</head>

<body leftmargin="0" topmargin="0">
<p><strong><font color="#006600">订单修改</font></strong></p>
<p><strong><font color="#006600">　　</font></strong></p>
<form name="form1" method="post" action="adm_7_bh.asp?bh=<%=bh%>&w=edit">
  <table width="83%" height="401" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bordercolorlight="" bordercolordark="ffffff"
>
    <tr> 
      <td width="28%" bgcolor="#F3F3F3">订 单 号:</td>
      <td colspan="2"><font color="#990000"><strong><%= bh %> </strong></font></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">所属用户:</td>
      <td colspan="2"><font color="#990000"><strong><%= userid %> </strong></font></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">产品类别:</td>
      <td width="17%"><font color="#990000"><strong>
        <% = ll%>
        </strong></font> </td>
      <td width="55%">&nbsp;<% if ll="host" then %>
        <strong><a href="adm_host_edit.asp?bh=<%=bh%>">-修改详细资料-</a>
<% end if %></strong></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">产品名称:</td>
      <td colspan="2"> <input name="mc" type="text" id="mc" value="<%=mc%>"></td>
    </tr>
    <tr> 
      <td height="24" bgcolor="#F3F3F3">订购数量:</td>
      <td colspan="2"><input name="sl" type="text" id="sl" value="<%=sl%>" size="5"></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">产品单价:</td>
      <td colspan="2"> <input name="jg" type="text" id="jg" value="<%=jg%>" size="5"> 
        <font color="#FF0000">* </font>只能为数字</td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">总 价 格:</td>
      <td colspan="2"> <input name="je" type="text" id="je" value="<%=je%>" size="10">
        元 <font color="#FF0000">* </font>只能为数字</td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">订购时间:</td>
      <td colspan="2"> <input name="dat" type="text" id="dat" value="<%=dat%>">
        只能为日期数据 如:2003-10-28</td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">是否生效:</td>
      <td colspan="2"> <select name="sx" id="sx">
          <% sel1=""
		  sel2=""
		   if sx then 
		   sel1="selected"
		   else
		   sel2="selected" 
		   end if%>
          <option value="1" <%= sel1 %>>是</option>
          <option value="2" <%= sel2 %>>否</option>
        </select></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">是否付款:</td>
      <td colspan="2"> <select name="jf" id="jf">
          <% sel1=""
		  sel2=""
		   if jf then 
		   sel1="selected"
		   else
		   sel2="selected" 
		   end if%>
          <option value="1" <%= sel1 %>>是</option>
          <option value="2" <%= sel2 %>>否</option>
        </select></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">管理员回复:</td>
      <td colspan="2"> <strong> 
        <textarea name="msg" cols="30" id="msg"><%=msg%></textarea>
        </strong></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">备注说明:</td>
      <td colspan="2"> <textarea name="bak" cols="30" rows="3" id="bak"><%=bak%></textarea></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">用户email地址:</td>
      <td colspan="2"> <input name="email" type="text" id="email" value="<%=email%>"></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">&nbsp;</td>
      <td colspan="2"><input type="submit" name="Submit" value="-更新-"></td>
    </tr>
  </table>
  <p><font color="#FF0000">　　注：</font>这里修改的只是用户购物车的内容。没有对产品进行修改.</p>
</form>
</body>
</html>
