{include file="page_header.htm"}
{insert_scripts files="../js/utils.js"}
<style>
{literal}
.alipay_get_pidkey_box {
    background-color: #FFFFFF;
    border: 3px solid #CCCCCC;
    display: none;
    left: 132px;
    padding: 1px;
    position: absolute;
    top: 22px;
    min-width: 180px;
}
.alipay_get_pidkey_box .close_acp_info {
    position: absolute;
    right: 5px;
    top: 5px;
}
.alipay_get_pidkey_box h2 {
    background-color: #FFFCF7;
    border: 1px solid #FFF1D9;
    color: #000000;
    font-size: 12px;
    line-height: 28px;
    margin: 0;
    padding: 0 0 0 10px;
    text-align: left;
}
.alipay_get_pidkey_box table td {
    padding: 2px;
}
.alipay_get_pidkey_box table td a {
    padding: 2px 5px;
}

{/literal}
</style>
<form enctype="multipart/form-data" name="theForm" action="payment.php" method="post" onsubmit="return validate()">
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="table_form1" >	
	
	{foreach from=$pay.pay_config item=config key=key}
	<tr>
	<td class="label">{$config.label}:</td>
	<td>
	{if $config.type == "text"}
	<input name="cfg_value[]" type="{$config.type}" class="FormSmall" value="{$config.value}" size="40" />
	<span class="required">&nbsp;</span>	  
	{if $config.name eq "alipay_partner"}
	<a href="javascript:void(0)" style="font-weight:bold; color:#F00;"  onclick="show();return false;">获取Pid、Key</a>
	{/if}
	{elseif $config.type == "textarea"}
	<textarea name="cfg_value[]" cols="80" rows="5">{$config.value}</textarea>
	{elseif $config.type == "select"}
	<select name="cfg_value[]" >{html_options options=$config.range selected=$config.value}</select>
	{/if}
	<input name="cfg_name[]" type="hidden" value="{$config.name}" />
	<input name="cfg_type[]" type="hidden" value="{$config.type}" />
	<input name="cfg_lang[]" type="hidden" value="{$config.lang}" />
	{if $config.desc}
	<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="notice{$config.name}">{$config.desc}</span>
	{/if}	
	</td>
	</tr>
	{/foreach}
	<tr>
	<td style="border:none;"></td>
	<td style="border:none;">
		<input name="pay_fee" type="hidden" value="0" />
		<input type="hidden"  name="pay_id"       value="{$pay.pay_id}" />
		<input type="hidden"  name="pay_code"     value="{$pay.pay_code}" />
		<input type="hidden"  name="is_cod"       value="{$pay.is_cod}" />
		<input type="hidden"  name="is_online"    value="{$pay.is_online}" />	
		<input type="hidden" name="act" value="update" />
		<input type="submit" value="提交" class="bginput" />
		<input type="reset" value="重置" class="bginput" />
	</td>
	</tr> 
</table>
</form>

<div id="alipay_get_pidkey_box" class="alipay_get_pidkey_box" style="display:none;left: 453.5px; top: 170px;">
    <h2>选择接口类型：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h2>
    <a href="javascript:void(0);" class="close_acp_info" onclick="close_t();return false;"><img alt="close" src="images/close.gif" border="0"></a>
    <table width="" cellspacing="0" cellpadding="0">
        <tbody>
        <tr><td align="left" height="26"><a target="_blank" href="https://b.alipay.com/order/pidKey.htm?pid=2088101540396621&product=dualpay">标准双接口</a></td></tr>
        <tr><td align="left" height="26"><a target="_blank" href="https://b.alipay.com/order/pidKey.htm?pid=2088101540396621&product=fastpay">即时到帐交易接</a></td></tr>
        <tr><td align="left" height="26"><a target="_blank" href="https://b.alipay.com/order/pidKey.htm?pid=2088101540396621&product=escrow">担保交易接口</a></td></tr>
  </tbody></table>
</div>

<script type="text/javascript">
{literal}
function show(){
   $('#alipay_get_pidkey_box').show();
}

function close_t(){
   $('#alipay_get_pidkey_box').hide();
}

function validate(){
	return true;
}

{/literal}
</script>
{insert_scripts files="validator.js"}
{include file="page_footer.htm"}