<!--#include file="conn.asp" -->
<% adm_power_page=1 %>
<!--#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">
</head>

<body leftmargin="2" topmargin="0">
<p>网站基本资料修改：</p>
<% 
 if Trim(Request.QueryString("w"))="edit" then
 if Trim(Request.Form("title"))="" or Trim(Request.Form("name"))="" or Trim(Request.Form("address"))="" then
  Response.Write("<p align=center><font color=#FF0000>修改失败带*的为必填项...</font><br><a href=javascript:history.back(1)>请返回>></a></p>")
  Response.end
  end if
  
 rs.open "select * from bank where id="&request("id"),conn,2,3
  if not rs.eof then
   rs("title")=Trim(Request.Form("title"))
   rs("num")=Trim(Request.Form("num"))
   rs("bak")=Trim(Request.Form("bak"))
   rs("Arrange")=Trim(Request.Form("Arrange"))
   rs("address")=Trim(Request.Form("address"))
   rs("title")=Trim(Request.Form("title"))
   rs("name")=Trim(Request.Form("name"))
   rs.update
   else
   Response.Write("没有找到相关记录")
   response.end
   end if
   rs.close
   %>
   <script language="VBScript" type="text/VBScript">
msgbox"账号修改成功..."
</script>

   <%
end if


rs.open "select * from bank where id="&request("id"),conn,1,1
if not rs.eof then
%>
<form name="form1" method="post" action="adm_0_1_edit.asp?W=edit">
  <table width="85%" height="196" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr bgcolor="#000066"> 
      <td height="19" colspan="2"><font color="#CCCCCC">　<font color="#FFFFFF">银行账号管理　账号新增</font></font></td>
    </tr>
    <tr> 
      <td width="23%">汇款名称：</td>
      <td><input name="title" type="text" id="title" value="<%=rs("title")%>" size="30">
        汇款方式或是银行名 <font color="#FF0000">*
        <input name="id" type="hidden" id="id" value="<%=rs("id")%>">
        </font></td>
    </tr>
    <tr>
      <td>序 号：</td>
      <td><input name="Arrange" type="text" id="Arrange" value="<%=rs("Arrange")%>" size="5">
        账号排序号从大到小排列 <font color="#FF0000">只能为数字</font></td>
    </tr>
    <tr> 
      <td>收款人姓名：</td>
      <td><input name="name" type="text" id="name" value="<%=rs("name")%>">
        <font color="#FF0000">收款人姓名 *</font></td>
    </tr>
    <tr> 
      <td>开户行/地址＋邮政：</td>
      <td><input name="address" type="text" id="address" value="<%=rs("address")%>">
        开户行或是收款人地址＋邮政 <font color="#FF0000">*</font></td>
    </tr>
    <tr> 
      <td>卡　号：</td>
      <td><input name="num" type="text" id="num" value="<%=rs("num")%>"> <font color="#FF0000">银行账号</font>邮政汇款可不写</td>
    </tr>
    <tr> 
      <td height="60">备注说明：</td>
      <td><textarea name="bak" cols="35" rows="3" id="bak"><%=rs("bak")%></textarea>
        其他说明</td>
    </tr>
    <tr bgcolor="#000066"> 
      <td>&nbsp;</td>
      <td> <input type="submit" name="Submit" value="确定修改"></td>
    </tr>
  </table>
</form>
<% else
Response.Write("您所查询的记录以经删除或是不存在")
end if 
rs.close %>
</body>
</html>
