Files
EasySoft-ZenTaoPMS/module/user/view/view.html.php
2012-02-21 07:22:58 +00:00

79 lines
3.2 KiB
PHP

<?php
/**
* The index view file of my module of ZenTaoPMS.
*
* @copyright Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package my
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<div class="yui-d0 yui-t3">
<div class="yui-b">
<table class='table-1'>
<caption><?php echo $lang->my->profile;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->user->account;?></th>
<td><?php echo $user->account;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->realname;?></th>
<td><?php echo $user->realname;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->nickname;?></th>
<td><?php echo $user->nickname;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->commiter;?></th>
<td><?php echo $user->commiter;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->join;?></th>
<td><?php echo $user->join;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->visits;?></th>
<td><?php echo $user->visits;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->ip;?></th>
<td><?php echo $user->ip;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->last;?></th>
<td><?php echo $user->last;?></td>
</tr>
</table>
</div>
<div class="yui-main">
<div class="yui-b">
<div id='tabbar' class='yui-d0' style='clear:right'>
<ul>
<?php
echo "<li><nobr>{$user->realname}</nobr></li>";
echo "<li id='tasktab'><nobr>" . html::a($this->createLink('user', 'view', "account=$user->account&tabID=task"), $lang->my->task) . "</nobr></li>";
//echo "<li id='todotab'><nobr>" . html::a($this->createLink('user', 'view', "account=$user->account&tabID=todo"), $lang->my->todo) . "</nobr></li>";
echo "<li id='projecttab'><nobr>". html::a($this->createLink('user', 'view', "account=$user->account&tabID=project"), $lang->my->myProject) . "</nobr></li>";
//echo "<li id='storytab'><nobr>" . html::a($this->createLink('user', 'view', "account=$user->account&tabID=story"), $lang->my->story) . "</nobr></li>";
echo "<li id='bugtab'><nobr>" . html::a($this->createLink('user', 'view', "account=$user->account&tabID=bug"), $lang->my->bug) . "</nobr></li>";
//echo "<li id='teamtab'><nobr>" . html::a($this->createLink('user', 'view', "account=$user->account&tabID=team"), $lang->my->team) . "</nobr></li>";
echo <<<EOT
<script language="Javascript">
$("#{$tabID}tab").addClass('active');
</script>
EOT;
?>
</ul>
</div>
<?php include $tabID . '.html.php';?>
</div>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>