* finish task#1203.

* code for task#1323.
This commit is contained in:
chencongzhi520@gmail.com
2013-04-15 02:13:22 +00:00
parent 63ef3df46b
commit 862c73cf1e
6 changed files with 69 additions and 34 deletions
+20 -9
View File
@@ -14,7 +14,15 @@
<?php include '../../common/view/tablesorter.html.php';?>
<?php include './featurebar.html.php';?>
<table align='center' class='table-4'>
<caption><?php echo $lang->user->profile;?></caption>
<caption>
<div class='f-left'> <?php echo $lang->user->profile;?></div>
<div class='f-right'>
<?php
echo html::a($this->createLink('user', 'editGroup', "account={$this->app->user->account}"), $lang->user->editGroup);
echo html::a($this->createLink('user', 'edit', "userID=$user->id&from=company"), $lang->user->editProfile);
?>
</div>
</caption>
<tr>
<th class='rowhead'><?php echo $lang->user->dept;?></th>
<td>
@@ -42,6 +50,17 @@
<th class='rowhead'><?php echo $lang->user->realname;?></th>
<td><?php echo $user->realname;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->group;?></th>
<td>
<?php
foreach($groups as $group)
{
echo $group->name . ' ';
}
?>
</td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->role;?></th>
<td><?php echo $lang->user->roleList[$user->role];?></td>
@@ -112,13 +131,5 @@
<th class='rowhead'><?php echo $lang->user->zipcode;?></th>
<td><?php echo $user->zipcode;?></td>
</tr>
<tr>
<td colspan='2' class='a-center'>
<?php
echo html::a($this->createLink('user', 'edit', "userID=$user->id&from=company"), $lang->user->editProfile);
echo html::a($this->createLink('user', 'logout'), $lang->logout);
?>
</td>
</tr>
</table>
<?php include '../../common/view/footer.html.php';?>