Files
OMS/app/desktop/view/staff/basic_info.html
2026-01-04 19:08:31 +08:00

62 lines
2.6 KiB
HTML

<!--
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<form action="index.php?<{$env.server.QUERY_STRING}>" method="post">
<div class="division">
<table width='100%' cellspacing="0" cellpadding="0">
<tr>
<th><{t}>用户名:<{/t}></th>
<td>
<{if $opinfo.op_id}>
<{$opinfo.username}>
<{else}>
<{input type="text" name="username" value=$opinfo.username required=true}><em class="red">*</span>
<{/if}></td>
</tr>
<tr>
<th><{t}>真实姓名:<{/t}></th>
<td><{input type="text" value=$opinfo.name name="name"}></td>
</tr>
<tr>
<th><{t}>密码:<{/t}></th>
<td>
<{if $opinfo.op_id}>
<input name="change_pwd" onclick="$('pwd_box_<{$env.get.finder_id}>').setStyle('display',this.checked?'':'none')" type="checkbox" value="1" id="set_pwd-<{$env.get.finder_id}>" /><label for="set_pwd-<{$env.get.finder_id}>"><{t}>更改密码<{/t}></label><br />
<div style="display:none" id="pwd_box_<{$env.get.finder_id}>">
<{else}>
<div>
<{/if}>
<{input type="password" name="userpass"}>&nbsp;<em class="red">*</span><br />
<{input type="password" name="userpass_rt"}><span class="notice-inline"><{t}>再输入一次<{/t}></span>
</div>
</td>
</tr>
<tr>
<th><{t}>工作组:<{/t}></th>
<td>
<input value="1" <{if $opinfo.super}>checked="checked"<{/if}> id="role-<{$env.get.finder_id}>-super" type="checkbox" name="super" >&nbsp;&nbsp;&nbsp;&nbsp;<label for="role-<{$env.get.finder_id}>-super" style="color:red"><{t}>超级管理员<{/t}></label><br />
<{foreach from=$roles key=key item=item}>
<div style="float:left;width:200px"><input value=<{$item.role_id}> id="role-<{$env.get.finder_id}>-<{$key}>" <{if $rolemap[$item.role_id]}>checked="checked"<{/if}> type="checkbox" name="roles[<{$key}>][role_id]" >&nbsp;&nbsp;&nbsp;&nbsp;<label for="role-<{$env.get.finder_id}>-<{$key}>"><{$item.role_name}></label></div>
<{/foreach}></td>
</tr>
<tr>
<th>&nbsp;</th>
<td><{button class="btn-primary" type="submit" label=$___desktop="保存管理员信息"|t:'desktop'}></td>
</tr>
</table>
</div>
</form>