{include "header.inc.html"}
<div class="content_box">
	<div class="toolbar_box">
		<div class="toolbar"> <span> <strong>{$lang.admin.variable.name}</strong><br />
		<span class="english">{$lang.admin.variable.name_en}</span> </span> </div>
	</div>
 {if $smarty.get.act=="edit" || $smarty.get.act=="add"}
<div class="variableForm">
<form class="form" action="" method="post">
<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"><input type="text" class="text w200" name="name" value="{$variableInfo.name}" /></div>
</div>
<div class="form-line">
<label class="label">变量值：</label><div class="element"><textarea class="textarea" name="value" style="width:500px;">{$variableInfo.value}</textarea></div>
</div>
<div class="form-line">
<label class="label">备注：</label><div class="element"><textarea class="textarea" name="remark" style="width:500px;">{$variableInfo.remark}</textarea></div>
</div>
<div class="form-line">
<label class="label"></label><div class="element"><input class="btn_sub" type="submit" value="{$lang.form.submit}"></div>
</div>
</form>
</div>
 {else}
 <table class="table-ca table_1" id="tInfo">
 <tr>
<th class="w60">编号</th><th class="w100">变量名</th><th class="">变量值</th><th class="w200">备注</th><th class="w100">添加时间</th><th class="w100">操作</th>
 </tr>
{variable limit=15}
<tr>
<td>{$item.id}</td><td>{$item.name}</td><td>{$item.value|escape:"html"}</td><td>{$item.remark}</td><td>{$item.posttime|date_format:"Y-m-d"}</td><td><a href="{$adminUrl}variable/act/edit/id/{$item.id}">修改</a> <a href="{$adminUrl}variable/act/del/id/{$item.id}" class="delLink">删除</a></td>
</tr>
{/variable}
</table>
<div class="page">
	<div class="pagin fr">{pager allCount=$allCount url='/qkadmin/variable/page/page' number="false"}</div>
</div>
{/if}
</div><!--content_box-->
{include "footer.inc.html"}