2019-09-06 23:53:10 +08:00

63 lines
2.4 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
{/block}
{block name="js"}
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script src="__ADMIN__/userranks/userranks.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="l-loading" style="display: block" id="wst-loading"></div>
<form id="userRankForm" autocomplete="off">
<table class='wst-form wst-box-top'>
<tr>
<th width='150'>会员等级名称<font color='red'>*</font></th>
<td>
<input type="text" class="ipt" id="rankName" name="rankName" value="{$data['rankName']}" />
</td>
</tr>
<tr>
<th width='100'>会员等级图标:</th>
<td><div id='userranksPicker'>上传图标</div><span id='uploadMsg'></span></td>
</tr>
<tr>
<th width='100'>预览图:</th>
<td>
<div style="min-height:30px;" id="preview">
{if (isset($data['userrankImg']))}
<img src="__IMGURL__/{$data['userrankImg']}" height="25" />
{/if}
</div>
<input type="hidden" name="userrankImg" id="userrankImg" value="{$data['userrankImg']}" class="ipt" />
</td>
</tr>
<tr>
<th>积分下限(大于或等于)<font color='red'>*</font></th>
<td>
<input type="text" class="ipt" id="startScore" name="startScore" value="{$data['startScore']}" />
</td>
</tr>
<tr>
<th>积分上限(小于)<font color='red'>*</font></th>
<td>
<input type="text" class="ipt" id="endScore" name="endScore" value="{$data['endScore']}" />
</td>
</tr>
<tr>
<td colspan='2' align='center' class='wst-bottombar'>
<input type="hidden" name="id" id="rankId" class="ipt" value="{$data['rankId']+0}" />
<button type="submit" class='btn btn-primary btn-mright'><i class="fa fa-check"></i>提交</button>
<button type="button" class='btn' onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
</td>
</tr>
</table>
</form>
<script>
$(function(){editInit()});
</script>
{/block}