<!--#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="10%">支付平台名称</td>
          <td width="10%">帐户名</td>
          <td width="20%">安全校验码</td>
          <td width="10%" >支付地址</td>
          <td width="15%" >返回地址</td>
           <td width="7%">合作号</td>
          <td width="6%">开关</td>
           <td width="3%">排序</td>
          <td width="6%">语言</td>
          <td width="17%" >操作</td>
            
        </TR>	
        
      </TABLE>
   </td></tr>

<TR BGCOLOR="#ffffff">

   <TD HEIGHT="200" VALIGN="TOP">
      <%
		 set rs=server.CreateObject("adodb.recordset")
		  rs.open "select opayid,opaysername,opayname,opaypassword,opayurl,opayrturl,opayon,opaytop,opayparter,lang from sdx_opay  order by opaytop 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_saveopay.asp?action=edit&id=<%=rs("opayid")%>">
            <td width="10%"><input class=shopinput1 name="opaysername" type="text" id="opaysername" size="10" value="<%=rs("opaysername")%>"></td> 
             <td width="10%"><input class=shopinput1 name="opayname" type="text" id="opayname" size="12" value="<%=rs("opayname")%>"></td>
            <td width="20%"><input class=shopinput1 name="opaypassword" type="password" id="opaypassword" size="20" value="<%=rs("opaypassword")%>"></td>
            <td width="10%"><input class=shopinput1 name="opayurl" type="text" id="opayurl"  size="10" value="<%=rs("opayurl")%>" readonly="readonly"></td>
            <td width="17%"><input class=shopinput1 name="opayrturl" type="text" id="opayrturl"  size="19" value="<%=rs("opayrturl")%>" readonly="readonly"></td>
            <td width="7%"><% if rs("opayid")=1 then %><input class=shopinput1 name="opayparter" type="text" id="opayparter"  size="6" value="<%=rs("opayparter")%>"><%end if%></td>
            <td width="6%"> 
               <select class=shopinput1 name="opayon" id="opayon">
                 <option value="0" <% if rs("opayon")=0 Then Response.write("Selected") %>>否</option>
                 <option value="1" <% if rs("opayon")=1 Then Response.write("Selected") %>>是</option>
               </select>
            </td>
            <td width="3%"><input class=shopinput1 name="opaytop" type="text" id="opaytop" size="4" value="<%=rs("opaytop")%>"></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="17%"><input class=shopinput1 type="submit" name="Submit" value="修 改">
              <!--  &nbsp;<a href=admin_saveopay.asp?action=del&id=<%=trim(rs("opayid"))%>><font color="#930000">删除</font></a>-->
                <a href=upopaypic.asp?id=<%=trim(rs("opayid"))%>><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_saveopay.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="10%">支付平台名称</td>
          <td width="12%">帐户名</td>
          <td width="25%">安全校验码</td>
          <td width="11%" >支付地址</td>
          <td width="15%" >返回地址</td>
          <td width="5%">合作号</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="opaysername" type="text" id="opaysername" size="10"></td>
           <td><input class=shopinput1 name="opayname" type="text" id="opayname" size="20"></td>
            <td><input class=shopinput1 name="opaypassword" type="password" id="opaypassword" size="26"></td>
            <td><input class=shopinput1 name="opayurl" type="text" id="opayurl"  size="10"></td>
           <td><input class=shopinput1 name="opayrturl" type="text" id="opayrturl"  size="20"></td>
           <td><input class=shopinput1 name="opayparter" type="text" id="opayparter"  size="5"></td>
            <td><select class=shopinput1 name="opayon" id="opayon">
                <option value="0" selected>关闭</option>
                <option value="1">开启</option>
              </select></td>
             <td><input class=shopinput1 name="opaytop" type="text" id="opaytop" 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>
 <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" BGCOLOR="#f1f1f1">
 <tr BGCOLOR="#ffffff"> 
    <td align="center" height="20"><font color="#000000">在线支付帐号申请地址</font></td>
  </tr>
  <tr BGCOLOR="#ffffff"> 
    <td style='PADDING-LEFT: 20px;PADDING-top: 20px;PADDING-bottom: 20px;' >
     ·支付宝帐号申请地址:  <a href="http://www.alipay.com" target="_blank"><font color="#930000">申请</font></a><br>
     ·贝宝帐号申请地址:    <a href="http://www.paypal.com" target="_blank"><font color="#930000">申请</font></a><br>
     ·财付通帐号申请地址:  <a href="http://union.tenpay.com/mch/?id=1201344601" target="_blank"><font color="#930000">申请</font></a><br>
     ·网银帐号申请地址:   <a href="http://www.chinabank.com.cn" target="_blank"><font color="#930000">申请</font></a><br>   
     ·快钱帐号申请地址:  <a href="http://www.99bill.com" target="_blank"><font color="#930000">申请</font></a></td>
  </tr>
  
</table>

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