<!--#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"))="save" 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 "bank",conn,2,3
 rs.addnew
   rs("title")=Trim(Request.Form("title"))
   rs("num")=Trim(Request.Form("num"))
   rs("bak")=Trim(Request.Form("bak"))
   rs("address")=Trim(Request.Form("address"))
   rs("title")=Trim(Request.Form("title"))
   rs("name")=Trim(Request.Form("name"))
   rs.update
   rs.close
   %>
   <script language="VBScript" type="text/VBScript">
msgbox"账号新增成功"
</script>

   <%
end if
if Trim(Request.QueryString("w"))="del" then
  sql="delete from bank where id="&request("id")
  conn.execute(sql)
end if
 %>
<form name="form1" method="post" action="adm_0_1.asp?W=save">
  <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" size="30">
        汇款方式或是银行名 <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td>序 号：</td>
      <td><input name="Arrange" type="text" id="Arrange" value="0" size="5">
        账号排序号从大到小排列 <font color="#FF0000">只能为数字</font></td>
    </tr>
    <tr> 
      <td>收款人姓名：</td>
      <td><input name="name" type="text" id="name">
        <font color="#FF0000">收款人姓名 *</font></td>
    </tr>
    <tr> 
      <td>开户行/地址＋邮政：</td>
      <td><input name="address" type="text" id="address">
        开户行或是收款人地址＋邮政 <font color="#FF0000">*</font></td>
    </tr>
    <tr> 
      <td>卡　号：</td>
      <td><input name="num" type="text" id="num"> <font color="#FF0000">银行账号</font>邮政汇款可不写</td>
    </tr>
    <tr> 
      <td height="60">备注说明：</td>
      <td><textarea name="bak" cols="35" rows="3" id="bak"></textarea>
        其他说明</td>
    </tr>
    <tr bgcolor="#000066"> 
      <td>&nbsp;</td>
      <td> 
        <input type="submit" name="Submit" value="确定增加"></td>
    </tr>
  </table>
</form>

<table width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr bgcolor="#E0E0E0"> 
    <td colspan="6"><font color="#CCCCCC"> 　<font color="#000000">已有账号管理</font></font></td>
  </tr>
  <tr bgcolor="#000033"> 
    <td width="22%"> <div align="center"><font color="#FFFFFF">汇款名称</font></div></td>
    <td width="10%"> <div align="center"><font color="#FFFFFF">姓名</font></div></td>
    <td width="30%"> <div align="center"><font color="#FFFFFF">开户行</font></div></td>
    <td width="20%"> <div align="center"><font color="#FFFFFF">卡　号</font></div></td>
    <td width="10%"><div align="center"><font color="#FFFFFF">编辑</font></div></td>
    <td width="8%"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
  </tr>
  <% rs.open "select * from bank order by Arrange desc",conn,1,1
  while not rs.eof
   %>
  <tr bgcolor="#F1F7FA"> 
    <td> <div align="center"><%= rs("title") %></div></td>
    <td> <div align="center"><%= rs("name") %></div></td>
    <td> <div align="center"><%= rs("address") %></div></td>
    <td> <div align="center"><%= rs("num") %></div></td>
    <td><div align="center"><a href="adm_0_1_edit.asp?id=<%=rs("id")%>">编辑</a></div></td>
    <td> <div align="center"><a href="adm_0_1.asp?w=del&id=<%=rs("id")%>"><img src="images/4.jpg" width="16" height="16" border="0"></a></div></td>
  </tr>
  <% rs.movenext
  wend
  rs.close %>
</table>
<p align="center"><font color="#FF0000">g </font></p>
</body>
</html>
