<%'guidedisplay=1%>
<!--#include file="admin_start.asp" -->
<%
id=request("id")
if not MySys.check.isInteger(id) then
   MySys.Error.info = "请提交合法的栏目id！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

id=int(id)

rs.open"select * from jins_payment_list where payment_id="&id&" ",conn,1,1
if rs.eof then
   MySys.Error.info = "您请求的支付方式不存在！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If
session("FB_EM_1_SQL_uppath")="../SYSPIC"

%>
<body topmargin="30" marginwidth="10" marginheight="10">
<form name=edit_html target=admin_edit_html method=post><input type=hidden name=c value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=edit_template target=admin_edit_template method=post><input type=hidden name=c value=''><input type=hidden name=c_sql value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=payment_list action="admin_shopping_payment_edit_handle.asp?action=edit&id=<%=id%>" method=post>
<table cellpadding="3" cellspacing="4" width="90%" height="30" align=center style='border:1px solid #ebebeb' >
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(basic_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="98%" align=left>
		<font color="#ebebeb"> | </font>
		<img alt='点击弹开提示信息框' onclick="opencat(help_ads_open)" style='CURSOR: hand' src="Images/icon_info.gif" width="13" height="13" hspace="0" align="absmiddle">			
		<font color="#ebebeb"> | </font>
		支付方式属性编辑
	    </td>
	</tr>		
	<tr id="help_ads_open" style="display:  ">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
			<tr>
				<td colspan="8" width='100%' style="line-height:150% ">
				·“在线支付”和“帐户余额支付”为系统保留支付方式，如果你在删除后再次加入这两种支付方式请在支付方式名称一栏中填入“在线支付”或“帐户余额支付”<br>
				·详细说明一栏可以点击图标在新的窗口进行详细的编辑<br>
				·如果加入的支付方式不需要调用外部的支付接口请在支付方式类型一栏中选择普通否则请选择外部接口,一般情况下不要更改此选项<br>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	
	<tr id="basic_open" >
		<td colspan="10" align=left style='padding-bottom:5px'>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="25%" align=right>支付方式名称:</td>
				<td  width="75%" align=left>
				  <input name=payment_name type=text value="<%=rs("payment_name")%>" size=52>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right valign="top">支付方式描述:</td>
				<td  width="75%" align=left valign="top">
				  <textarea name="payment_description" cols="43" rows="3"><%=rs("payment_description")%></textarea>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right valign="top">支付方式类型:</td>
				<td  width="75%" align=left valign="top">
				<select name=payment_interface >
				<option value=1 <%if rs("payment_interface")=1 then response.write "selected"%> >外部接口</option>
				<option value=0 <%if rs("payment_interface")=0 then response.write "selected"%> >普通</option>
				</select>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right>支付方式开关:</td>
				<td  width="75%" align=left>
				<select name=payment_open >
				<option value=1 <%if rs("payment_open")=1 then response.write "selected"%> >打开</option>
				<option value=0 <%if rs("payment_open")=0 then response.write "selected"%> >关闭</option>
				</select>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right valign=top>支付方式权限:</td>
				<td  width="75%" align=left>
				<%MySys.EditGrade(rs("payment_customer_grade"))%>
				</td>
			</tr>
			<tr>
				<td  width="25%" align=right valign=top>详 细 说 明 :</td>
			  <td  width="75%" align=left>
                <textarea id="payment_property" name="payment_property" cols="43" rows="6"><%=rs("payment_property")%></textarea>
                <!--<a title='点击进行详细编辑！' href="javascript:edit_html.c.value=shopping_payment.payment_property.value;edit_html.action='admin_edit_html.asp?formname=shopping_payment&inputname=payment_property';newwin=window.open('admin_edit_html.asp?formname=shopping_payment&inputname=payment_property','admin_edit_html','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=600,height=400');edit_html.submit();newwin.focus();" >//-->
                <a title='点击进行详细编辑！' href="javascript:openedit_template('payment_list','payment_property','','payment_id','<%=rs("payment_id")%>','支付方式详细说明编辑 > <%=rs("payment_name")%>','yes');" >
				<img border=0 src="Images/old.gif" width="21" height="20" align="top">
				</a>
			</td>
			</tr>
		</table>
		</td>
	</tr>

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	
	<tr>
	  <td height='30' colspan="8" width='100%' align=center >
	  <input type=submit value="提交设置！" >
	   <input type=reset value="重置" > 
	   <input onclick='history.back(-1)' type=button value="返回" >	  </td>
	</tr>
</table>		
<SCRIPT language=javascript>
	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}</SCRIPT>
</form>
<%
rs.close
%>
<!--#include file="admin_end.asp" -->