skycaiji/SkycaijiApp/admin/view/user/edit.html

58 lines
2.3 KiB
PHP

{extend name="common:main" /}
{block name="cssjs"}
{/block}
{block name="content"}
<div class="box box-default">
<div class="box-body">
<form id="form_user" method="post" ajax-submit="true" role="form" action="{:url('Admin/User/edit')}">
{:html_usertoken()}
<input type="hidden" name="uid" value="{$userData['uid']}" />
<div class="form-group">
<label>{$Think.lang.user_username}</label>
<input type="text" class="form-control" disabled="disabled" value="{$userData['username']}">
</div>
<div class="form-group">
<label>{$Think.lang.user_groupid}</label>
{if condition="$isOwner"}
<input type="text" class="form-control" disabled="disabled" value="{$userData['group']['name']}">
{else /}
<select name="groupid" class="form-control">
{foreach name="subGroupList" item="group"}
<option value="{$group['id']}">{$group['name']}</option>
{/foreach}
</select>
{/if}
</div>
<div class="form-group">
<label>{$Think.lang.user_email}</label>
<input type="text" name="email" class="form-control" value="{$userData['email']}">
<p class="help-block">{$Think.lang.user_email_tips}</p>
</div>
<div class="form-group">
<label>{$Think.lang.user_password}</label>
<input type="password" name="password" class="form-control" value="">
<p class="help-block">{$Think.lang.user_newpwd_tips}</p>
</div>
<div class="form-group">
<label>{$Think.lang.user_repassword}</label>
<input type="password" name="repassword" class="form-control" value="">
</div>
{if condition="$GLOBALS['config']['site']['verifycode']"}
<div class="form-group">
<label>{$Think.lang.verifycode}</label>
<div class="input-group">
<input type="text" name="verifycode" class="form-control" />
<div class="input-group-btn"><img src="{:url('Admin/Index/verify')}" class="verify-img" onclick="refreshVerify(this)" /></div>
</div>
</div>
{/if}
<div class="form-group">
<button type="submit" class="btn btn-primary btn-block">{$Think.lang.save}</button>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$('#form_user [name="groupid"]').val("{$userData['groupid']|intval}");
</script>
{/block}