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

105 lines
3.8 KiB
HTML
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.
<!--
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 method="post" action="index.php?ctl=admin/profile&act=saveSelf" class="tableform" id="x-op-my-info-form">
<input type="hidden" name="op_id" value="<{$op_id}>">
<div class="division">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th><{t}>用户名:<{/t}></th>
<td><{$data.username}></td>
</tr>
<tr>
<th><{t}>姓名:<{/t}></th>
<td><{$data.name}></td>
</tr>
<tr>
<th><{t}>编号:<{/t}></th>
<td><{$data.op_no}></td>
</tr>
<tr>
<th><{t}>部门:<{/t}></th>
<td><{$data.department}></td>
</tr>
</table></div>
<div style="padding-left:140px"><input type="checkbox" name="changepwd" value="1" id="x-ipt-change-my-pwd" onclick="$('x-div-change-my-pwd').setStyle('display',this.checked?'':'none')" /><label for="x-ipt-change-my-pwd"><{t}>同时修改密码<{/t}></label></div>
<div class="division" style="display:none" id="x-div-change-my-pwd">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr id="cur_pw">
<th><{t}>当前密码:<{/t}></th>
<td><input type="password" name="oldpass"></td>
</tr>
<tr id="new_pw">
<th><{t}>新密码:<{/t}></th>
<td><input id="x-input-my-pwd" type="password" name="userpass"></td>
</tr>
<tr id="again_pw">
<th><{t}>确认密码:<{/t}></th>
<td><input type="password" name="passowrd_again"></td>
</tr>
</table>
</div>
<div class="division">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th><{t}>您的当前时间:<{/t}></th>
<td><select name="timezone">
<{foreach item=item key=key from=$timezones}>
<{if $key == $timezone_value}>selected<{/if}> ><{$item}><option value="<{$key}>" <{if $key == $timezone_value}>selected<{/if}> ><{$item}></option>
<{/foreach}>
</select></td>
</tr>
<{if !$env.const.SAAS_MODE}>
<tr>
<th><{t}>当前服务器时间:<{/t}></th>
<td>
<{$server_tz}>&nbsp;<{help type="dialog"}>
<{t}> 系统默认服务器时间为东八区(标准时:北京时间),如果您的服务器不在国内则请按照下面《标准时区列表》修改您的服务器时间。<{/t}><br /><br><{t}>修改服务器时间方法:<{/t}>
<div style="border-left:5px solid #ccc;padding:10px;margin:10px;background:#f0f0f0">
<{t}>用记事本打开config/config.php文件找到define SERVER_TIMEZONE这一行如下面所示修改后面的数字值即可譬如8代表东八区北京时间<{/t}><br><br>define('SERVER_TIMEZONE','<b style="color:red">8</b>');
</div><br>
<{t}>《标准时区列表》:<{/t}>
<div style="height:75px;overflow-y:scroll;padding-left:10px">
<table>
<{foreach from=$tzlist item=tz key=key}>
<tr><td><{$key}></td><td><{$tz}></td></tr>
<{/foreach}>
</table>
</div>
<{/help}>
</td>
</tr>
<{/if}>
</table>
</div>
<div class="table-action">
<{button type="submit" id="x-ipt-to-save-self" label=$___desktop="提交"|t:'desktop'}>
</div>
</form>
<script>
$('x-ipt-to-save-self').addEvent('click',function(e){
if($('x-div-change-my-pwd').style.display!='none' && !$('x-input-my-pwd').value){
if(!confirm('<{t}>确定设置空密码?<{/t}>')){
new Event(e).stop();
}
}
});
</script>