{*<?php exit();?>*}
<div class="block">
	<div class="head"><span>支付方式</span></div>
	<div class="main">
		<table class="table sheet">
			<tr class="h">
				<td width="100px">名称</td>
				<td width="80px">价格</td>
				<td>描述</td>
				<td width="45px">排序</td>
				<td width="40px">置顶</td>
				<td width="40px">显示</td>
				<td width="100px">操作</td>
			</tr>
			{foreach from=$payment name=payment item=item}
			<tr>
				<td>{$item.pay_name}</td>
				<td>￥{$item.pay_price}元</td>
				<td>{$item.pay_text}</td>
				<td onClick="show_edit('index_{$item.pay_id}')">
					<span id="index_{$item.pay_id}_1">{$item.pay_index}<img src="{$S_TPL_PATH}images/pencil.gif" /></span>
					<span id="index_{$item.pay_id}_2" style="display:none;">
						<input type="text" id="index_{$item.pay_id}" value="{$item.pay_index}" style="width:30px;" onBlur="set_order('index','payment',{$item.pay_id},this.value)" />
					</span>
				</td>
				<td><input type="checkbox" {if $item.pay_top == 1}checked{/if} onClick="set_order('top','payment',{$item.pay_id},this.checked)" /></td>
				<td><input type="checkbox" {if $item.pay_show == 1}checked{/if} onClick="set_order('show','payment',{$item.pay_id},this.checked)" /></td>
				<td>
					<a onClick="jump('{url channel=$global.channel mod='payment_edit' id=$item.pay_id}')">[修改]</a>
					{if $item.pay_code != 'system' && $item.pay_code != 'chinabank'}
					<a onClick="del('payment|{$item.pay_id}')">[删除]</a>
					{/if}
				</td>
			</tr>
			{/foreach}
			<tr>
				<td colspan="7">
					<div class="bt_row">
						<input class="button" type="button" onClick="jump('{url channel=$global.channel mod='payment_add'}')" value="添加" />
					</div>
				</td>
			</tr>
		</table>
	</div>
</div>