<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp"-->
<%
chk_log()
chk_newpwr 4,11,4
conn.open constr
%>
<script>
function delit(payid)
{
if(confirm("是否确认删除？"))
location.href="pay_mng.asp?module=paydel&paytype=0&payid="+payid;
}

</script>
<table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody> 
  <tr> 
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>付款帐号设置</strong></span></b></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a href="index.asp" class=commonface>系统参数设置</a> 
            <font color="#000000">|</font> <a href="pay_idx.asp" class=commonface>付款帐号设置</a> 
            <font color="#000000">|</font> <a href="onl_idx.asp" class=commonface>在线支付接口</a> 
          </td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=5></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=2 class=menuline></td>
        </tr>
        </tbody> 
      </table>
    </td>
  </tr>
  <tr> 
    <%
	  query="select  * from paymde where paytype=1"
	  '''''paytype为1则是邮政，2则是银行，3则是网上银行
	  rs.open query,conn,1,1
	  if rs.recordcount=1 then
	  posttype="payupdate"
	  bankname=trim(rs("bankname"))
	  banknumber=trim(rs("banknumber"))
	  bankowner=trim(Rs("bankowner"))
	  content=trim(rs("content"))
	  payid=rs("payid")
	  else
	  posttype="payadd"
	  end if
	  rs.close
	  %>
    <td  colspan=2 valign="top" > 
      <table width="70%" border="0" cellspacing="0" cellpadding="10" class=datalist align="center">
        <tr> 
          <td ><b>邮政汇款</b></td>
        </tr>
        <tr> 
          <td class=datagroup > 
            <table border=0 cellpadding=0 
                        cellspacing=0 width="100%" bordercolordark="#FFFFFF" align="center"   >
              <tbody> 
              <form action=pay_mng.asp method=post >
                <tr> 
                  <td width="20%">邮政地址</td>
                  <td> 
                    <input size=32 type="text" name="bankname" value="<%=bankname%>">
                    如：北京市XX路XXX号 
                    <input size=32 type=hidden name=module value="<%=posttype%>">
                    <input size=32 type=hidden name=paytype value=1>
                  </td>
                </tr>
                <tr> 
                  <td width="20%">邮政编码</td>
                  <td> 
                    <input size=32 type="text" name="banknumber" value="<%=banknumber%>">
                    如：361000</td>
                </tr>
                <tr> 
                  <td width="20%">收款人名称</td>
                  <td> 
                    <input size=32 type="text" name="bankowner" value="<%=bankowner%>">
                    如：XXX网络公司 </td>
                </tr>
                <tr> 
                  <td colspan="2" align="center" height="25"> 
                    <input size=32 type="submit" name="Submit2" value="<% if posttype="payupdate" then
			  response.write "更 改"
			  else
			  response.write "添 加"
			  end if %>" class=btxx>
                    <input size=32 type="reset" name="Submit3" value="放 弃" class=btxx>
                    <% if posttype="payupdate" then %>
                    <input size=32 type="reset" name="button" value="删 除" class=btxx  onclick="javascript:delit('<%=payid%>');">
                    <% end if %>
                  </td>
                </tr>
              </form>
              </tbody> 
            </table>
            
          </td>
        </tr>
        <%
	  query="select  * from paymde where paytype=2    order by payorder"
	  '''''paytype为1则是邮政，2则是银行，3则是网上银行
	  rs.open query,conn,1,1
while not rs.eof	  %><tr><td><b><%=trim(rs("bank"))%></b></td></tr><tr><td class=datagroup>
            <table border=0 cellpadding=0 
                        cellspacing=0 width="100%" bordercolordark="#FFFFFF" align="center"   >
              <tbody> 
              <form action=pay_mng.asp method=post >
                <tr> 
                  <td width="20%">银行名称</td>
                  <td colspan="3"> 
                    <input size=32 type="text" name="bank" value="<%=trim(rs("bank"))%>" >
                    <input size=32 type=hidden name=module value="payupdate">
                    <input size=32 type=hidden name=paytype value="2">
                    <input size=32 type=hidden name=payid value="<%=rs("payid")%>">
                  </td>
                </tr>
                <tr> 
                  <td>银行具体名称 </td>
                  <td colspan="3"> 
                    <input size=32 type="text" name="bankname" value="<%=trim(rs("bankname"))%>" >
                  </td>
                </tr>
                <tr> 
                  <td>银行帐号 </td>
                  <td colspan="3"> 
                    <input size=32 type="text" name="banknumber" value="<%=trim(rs("banknumber"))%>" >
                  </td>
                </tr>
                <tr> 
                  <td>收款人名称 </td> 
                  <td colspan="3"> 
                    <input size=32 type="text" name="bankowner" value="<%=trim(rs("bankowner"))%>" >
                  </td>
                </tr>
                <tr> 
                  <td>排列顺序</td>
                  <td colspan="3"> 
                    <input size=32 type="text" name="payorder" value="<%=trim(rs("payorder"))%>" >
                  </td>
                </tr>
                <tr> 
                  <td colspan="4" height="25" align="center"> 
                    <input size=32 type="submit" name="Submit23" value="更 改" class=btxx>
                    <input size=32 type="reset" name="Submit33" value="放 弃" class=btxx>
                    <input size=32 type="reset" name="button" value="删 除" class=btxx onclick="javascript:delit('<%=rs("payid")%>');">
                  </td>
                </tr>
              </form>
              </tbody> 
            </table></td></tr>
            <% rs.movenext
		  wend
		  rs.close
		  %>

        <tr> 
          <td ></td>
        </tr>
        <tr> 
          <td  class=datagroup ></td>
        </tr>
        <tr> 
          <td ><b>添加银行帐号</b></td>
        </tr>
        <tr> 
          <td  class=datagroup > 
            <table border=0 cellpadding=0 
                        cellspacing=0 width="100%" bordercolordark="#FFFFFF" align="center"   >
              <tbody> 
              <form action=pay_mng.asp method=post >
                <tr> 
                  <td width="20%">银行名称</td> 
                  <td> 
                    <input size=32 type="text" name="bank" value="">
                    如：建设银行</td>
                </tr>
                <tr> 
                  <td width="20%">银行具体名称</td>
                  <td> 
                    <input size=32 type="text" name="bankname"  value="">
                    如：建设银行XX分行XX支行</td>
                </tr>
                <tr> 
                  <td width="20%">银行帐号</td>
                  <td> 
                    <input size=32 type="text" name="banknumber" value="" >
                    如：4367 4200 2222...</td>
                </tr>
                <tr> 
                  <td width="20%">收款人名称</td>
                  <td> 
                    <input size=32 type="text" name="bankowner"  value="" >
                    如：XXX网络公司、张三</td>
                </tr>
                <tr> 
                  <td width="20%">排列顺序</td>
                  <td> 
                    <input  type="text" name="payorder" size="3"  value="">
                    出现在网页上的顺序</td>
                </tr>
                <tr> 
                  <td colspan="2" height="25" align="center"> 
                    <input size=32 type=hidden name=module value="payadd">
                    <input size=32 type=hidden name=paytype value="2">
                    <input size=32 type="submit" name="Submit232" value="添 加" class=btxx>
                    <input size=32 type="reset" name="Submit332" value="放 弃" class=btxx>
                  </td>
                </tr>
              </form>
              </tbody> 
            </table>
          </td>
        </tr>
      </table>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->

