<!--#include file="conn.asp"-->
<%
if session("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
else
if request.cookies("sundxshop")("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
end if
end if
%>
<title>收款银行帐户管理</title>

<TABLE WIDTH="98%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" class=table-zuoyou BGCOLOR="#f1f1f1">
 <TR BGCOLOR="#C6EBDE"><TD  VALIGN="TOP">
   <TABLE WIDTH="100%" BORDER="0" ALIGN="center" CELLPADDING="2" CELLSPACING="1" class=table-zuoyou>
	<TR> 
          <td  class=table-xia ALIGN="CENTER"><font color="#45A595"><b>收款银行帐户管理</b></font> </td>
            
            
            
        </TR>	
        
      </TABLE>
   </td></tr>
  <TR><TD  VALIGN="TOP">
   <TABLE WIDTH="100%" BORDER="0" ALIGN="center" CELLPADDING="2" CELLSPACING="1" class=table-zuoyou BGCOLOR="#f1f1f1">
	<TRB GCOLOR="#f1f1f1"> 
            <tr height="30" bgcolor="#FFFFFF" align="center"> 
          <td width="24%">开户行名称</td>
          <td width="10%">姓名</td>
           <td width="20%">银行帐户号码</td>
          <td width="20%" >网银地址</td>
          <td width="6%">开关</td>
           <td width="6%">排序</td>
           <td width="6%">语言</td>
          <td width="13%" >操作</td>
            
        </TR>	
        
      </TABLE>
   </td></tr>

<TR BGCOLOR="#ffffff">

   <TD HEIGHT="200" VALIGN="TOP">
      <%
		 set rs=server.CreateObject("adodb.recordset")
		  rs.open "select bankid,bankname,payname,paynumber,bankurl,bankon,banktop,lang from sdx_bank order by banktop asc",conn,1,1
		               dim follows
				if err.number<>0 then
				response.write ""
				end if
                                  
				if rs.eof And rs.bof then
       				Response.Write "<p align='center'> 对不起，目前还没有收款银行帐户管理！</p>"
  				
   				else
                              follows=0
	  		
			%>
      <%do while not rs.eof%>
      <TABLE WIDTH="100%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="1" class=table-zuoyou BGCOLOR="#f1f1f1">
	<tr height="30" bgcolor="#FFFFFF" align="center">
           <form name="form1" method="post" action="admin_savebank.asp?action=edit&id=<%=rs("bankid")%>">
            <td width="19%"><input class=shopinput1 name="bankname" type="text" id="bankname" size="30" value="<%=rs("bankname")%>"></td> 
              <td width="10%"><input class=shopinput1 name="payname" type="text" id="payname" size="10" value="<%=rs("payname")%>"></td>
            <td width="22%"><input class=shopinput1 name="paynumber" type="text" id="paynumber" size="26" value="<%=rs("paynumber")%>"></td>
           
            <td width="20%"><input class=shopinput1 name="bankurl" type="text" id="bankurl"  size="24" value="<%=rs("bankurl")%>"></td>
            <td width="6%"> 
               <select class=shopinput1 name="bankon" id="bankon">
                 <option value="0" <% if rs("bankon")=0 Then Response.write("Selected") %>>否</option>
                 <option value="1" <% if rs("bankon")=1 Then Response.write("Selected") %>>是</option>
               </select>
            </td>
            <td width="6%"><input class=shopinput1 name="banktop" type="text" id="banktop" size="4" value="<%=rs("banktop")%>"></td>
            <td width="6%"> 
               <select class=shopinput1 name="lang" id="lang">
                 <option value="0" <% if rs("lang")=0 Then Response.write("Selected") %>>中文</option>
                 <option value="1" <% if rs("lang")=1 Then Response.write("Selected") %>>英文</option>
                 <option value="2" <% if rs("lang")=2 Then Response.write("Selected") %>>其他</option>
               </select>
            </td>
            <td width="13%"><input class=shopinput1 type="submit" name="Submit" value="修 改">
                &nbsp;<a href=admin_savebank.asp?action=del&id=<%=trim(rs("bankid"))%>><font color="#930000">删除</font></a> 
              </td></form>
          </tr>
         
      </TABLE>
      
      <%rs.MoveNext
          loop
          follows=rs.RecordCount
          end if%>
     
    </TD>
  </TR>
</TABLE>

<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" BGCOLOR="#39867B">
  <tr> 
    <td align="center"><font color="#FFFFFF">收款银行帐户添加</font></td>
  </tr>
  <tr> 
    <form name="form2" method="post" action="admin_savebank.asp?action=add">
      <td height="98" bgcolor="#FFFFFF"> 
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#f1f1f1">
         
           <tr height="20" bgcolor="#FFFFFF" align="center"> 
          <td width="25%">开户行名称</td>
          <td width="10%">姓名</td>
           <td width="25%">银行帐户号码</td>
          <td width="18%" >网银地址</td>
          <td width="6%">开关</td>
           <td width="6%">排序</td>
          <td width="6%">语言</td>
          <td width="10%" >操作</td>
     
          </tr>
          
          <tr height="20" bgcolor="#FFFFFF" align="center"> 
           <td><input class=shopinput1 name="bankname" type="text" id="bankname" size="32"></td>
           <td><input class=shopinput1 name="payname" type="text" id="payname" size="10"></td>
            <td><input class=shopinput1 name="paynumber" type="text" id="paynumber" size="32"></td>
            <td><input class=shopinput1 name="bankurl" type="text" id="bankurl"  size="20"></td>
            <td><select class=shopinput1 name="bankon" id="bankon">
                <option value="0" selected>关闭</option>
                <option value="1">开启</option>
              </select></td>
             <td><input class=shopinput1 name="banktop" type="text" id="banktop" size="6" value="<%=follows+1%>"></td>
             <td>
                <select class=shopinput1 name="lang" id="lang">
                <option value="0" selected>中文</option>
                <option value="1">英文</option>
                <option value="1">其他</option>
              </select>
            </td>
            <td><input class=shopinput1 type="submit" name="Submit2" value="添 加"></td>
          </form>
          </tr>
        </table></td>
    </form>
  </tr>
</table>

<!--#include file="footer.asp"-->