

<form method="post" action="" name="form1" id="form1" onsubmit="checkform1()">

<div class="blank20"></div>
<div id="tagscontent" class="right_box">

<table border="0" cellspacing="0" cellpadding="0" name="table1" id="table1" width="100%">
<thead>

<tr class="th">
<th colspan="3">编辑支付方式
</th>
</tr>
</thead>

<tbody>

<tr>
<td width="19%" align="right">支付方式</td>
<td width="1%">&nbsp;</td>
<td width="70%">
<input type="text" name="pay_name" id="pay_name" value="{$data[pay]['pay_name']}" class="input" /></td>
</tr>


<tr>
<td width="19%" align="right">支付方式描述</td>
<td width="1%">&nbsp;</td>
<td width="70%">
{form::textarea('pay_desc',$data[pay]['pay_desc'],'class="textarea"')}
</td>
</tr>

{loop $data[pay][pay_config] $pay_config}

<tr>
<td width="19%" align="right">{$pay_config.label}</td>
<td width="1%">&nbsp;</td>
<td width="70%">
      <?php if ($pay_config[type] == "text") {?> 
      <input name="cfg_value[]" type="{$pay_config.type}" value="{$pay_config.value}" class="input" />
      <?php }elseif ($pay_config[type] == "textarea") {?> 
      <textarea name="cfg_value[]" class="textarea">{$pay_config.value}</textarea>
      <?php }elseif ($pay_config[type] == "select") {?>            
      {form::select('cfg_value[]', $pay_config[value], $pay_config[range])}
      <?php } ?>  
     <input name="cfg_name[]" type="hidden" value="{$pay_config.name}" class="input" />
      <input name="cfg_type[]" type="hidden" value="{$pay_config.type}" class="input" />
      <input name="cfg_lang[]" type="hidden" value="{$pay_config.lang}" class="input" />
	</td>
</tr>

{/loop}



<tr>
<td width="19%" align="right">支付费率</td>
<td width="1%">&nbsp;</td>
<td width="70%">
<input name="pay_fee" id="pay_fee" value="{$data[pay]['pay_fee']}" class="input_c"  />&nbsp;%
</td>
</tr>


</tbody>
</table>
</div>
<input type="hidden"  name="pay_id"       value="{$data[pay][pay_id]}" />
      <input type="hidden"  name="pay_code"     value="{$data[pay][pay_code]}" />
      <input type="hidden"  name="is_cod"       value="{$data[pay][is_cod]}" />
      <input type="hidden"  name="is_online"    value="{$data[pay][is_online]}" />


<div class="blank20"></div>
<input type="submit" name="submit" value=" 提交 " class="btn_a" />

</form>