xxb/module/user/view/edit.html.php
2023-10-23 15:51:36 +08:00

84 lines
3.7 KiB
PHP
Executable File

<?php
/**
* The edit view file of user module of XXB.
*
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
* @license ZOSL (https://zpl.pub/page/zoslv1.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package user
* @version $Id: edit.html.php 4029 2016-08-26 06:50:41Z liugang $
* @link https://xuanim.com
*/
?>
<?php include $app->getModuleRoot() . '/common/view/header.modal.html.php'; ?>
<?php include $app->getModuleRoot() . '/common/view/chosen.html.php';?>
<form method='post' id='editForm' action="<?php echo inlink('editself', "account={$user->account}");?>">
<table class='table table-form'>
<caption><?php echo $lang->user->basicInfo; ?></caption>
<tbody>
<tr>
<th class='w-80px text-right'><?php echo $lang->user->account;?></th>
<td><?php echo html::input('account', $user->account, "class='form-control disabled' disabled='disabled'");?></td>
</tr>
<tr>
<th><?php echo $lang->user->realname;?></th>
<td><?php echo html::input('realname', $user->realname, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->user->gender;?></th>
<td><?php unset($lang->user->genderList->u); echo html::radio('gender', $lang->user->genderList, $user->gender);?></td>
</tr>
<?php if($this->app->user->admin == 'super'):?>
<tr>
<th><?php echo $lang->user->dept;?></th>
<td><?php echo html::select('dept', $depts, $user->dept, "class='chosen form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->user->role;?></th>
<td><?php echo html::select('role', $lang->user->roleList, $user->role, "class='form-control'");?></td><td></td>
</tr>
<?php endif;?>
<tr>
<th><?php echo $lang->user->password;?></th>
<td><?php echo html::password('password1', '', "class='form-control' autocomplete='off'")?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->user->password2;?></th>
<td><?php echo html::password('password2', '', "class='form-control'");?></td><td></td>
</tr>
</tbody>
</table>
<table class='table table-form'>
<caption><?php echo $lang->user->contactInfo; ?></caption>
<tbody>
<tr>
<th class='w-80px'><?php echo $lang->user->email;?></th>
<td><?php echo html::input('email', $user->email, "class='form-control'");?></td>
<th><?php echo $lang->user->zipcode;?></th>
<td><?php echo html::input('zipcode', $user->zipcode, "class='form-control'");?></td>
</tr>
<tr>
<th class='w-80px'><?php echo $lang->user->mobile;?></th>
<td><?php echo html::input('mobile', $user->mobile, "class='form-control'");?></td>
<th><?php echo $lang->user->phone;?></th>
<td><?php echo html::input('phone', $user->phone, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->user->qq;?></th>
<td><?php echo html::input('qq', $user->qq, "class='form-control'");?></td>
<th><?php echo $lang->user->weixin;?></th>
<td><?php echo html::input('weixin', $user->weixin, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->user->address;?></th>
<td colspan='3'><?php echo html::input('address', $user->address, "class='form-control'");?></td>
</tr>
</tbody>
</table>
<div class='text-center' style='padding: 10px;'>
<?php echo html::submitButton();?> &nbsp;
<?php echo html::a(inlink('profile'), $lang->goback, "class='btn loadInModal'");?>
</div>
</form>
<?php include $app->getModuleRoot() . '/common/view/footer.modal.html.php'; ?>