{include "header.inc.html"}
<div class="content_box">
	<div class="toolbar_box">
		<div class="toolbar"> <span> <strong>全站配置项</strong><br />
		<span class="english"></span> </span>
		</div>
	</div>
{if $smarty.get.act=="edit" || $smarty.get.act=="add"}
<div class="adminForm">
<form class="form" action="" method="post" id="fm-form"><input type="hidden" name="inajax" value="1" /><input type="hidden" name="act" value="{$smarty.get.act}" />
{if $smarty.get.act=="edit"}
<input type="hidden" name="id" value="{$smarty.get.id}" />
{/if}
<div class="form-line">
<label class="label">名称：</label><div class="element">{$configInfo.name}</div></div>
{serializetoform data=$configInfo.config}
<div class="form-line">
<label class="label">备注：</label><div class="element"><textarea type="text" class="text w400" name="remark">{$configInfo.remark}</textarea></div>
</div>
<div class="form-line">
<label class="label">是否启用：</label><div class="element"><input type="checkbox" name="iStatus" value="1"{if $configInfo.iStatus} checked{/if} /></div>
</div>
<div class="form-line">
<label class="label"></label><div class="element"><input type="submit" class="btn_sub" value="提交" /></div>
</div>
</form>
</div>
 {else}
 <table class="table-ca table_1" id="tInfo">
 <tr>
<th class="w60">编号</th><th class="w120">名称</th><th>备注</th><th class="w60">是否启用</th><th class="w60">操作</th>
 </tr>
{config pager="false"}
<tr>
<td>{$item.id}</td><td>{$item.name}</td><td>{$item.remark}</td><td><img class="smodtoggle" name="iStatus" sid="{$item.id}" src="{$baseUrl}static/images/{if $item.iStatus==1}yes{else}no{/if}.gif"></td><td><a href="{$adminUrl}config/act/edit/id/{$item.id}" class="modBtn">修改</a></td>
</tr>
{/config}
</table>
<div class="page">
	<div class="pagin fr">{pager allCount=$allCount url='/qkadmin/paybank/page/page' number="false"}</div>
</div>
{/if}
</div><!--.content_box-->
<script type="text/javascript">
$(function(){
	$("#fm-form").ajaxForm({ dataType:'json',success:function(json){ COL.dialog.mini({ type:(json.success?'success':'error'),content:json.message }); },error:function(){ alert('系统错误，请联系技术人员'); } })
});
</script>
{include "footer.inc.html"}