97 lines
3.8 KiB
PHP
97 lines
3.8 KiB
PHP
<?php
|
|
/**
|
|
* The index view file of my module of ZenTaoMS.
|
|
*
|
|
* ZenTaoMS is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* ZenTaoMS is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* @copyright Copyright 2009-2010 Chunsheng Wang
|
|
* @author Chunsheng Wang <wwccss@263.net>
|
|
* @package my
|
|
* @version $Id$
|
|
* @link http://www.zentao.cn
|
|
*/
|
|
?>
|
|
<?php include '../../common/header.html.php';?>
|
|
<?php include '../../common/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 $app->user->account;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->user->realname;?></th>
|
|
<td><?php echo $app->user->realname;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->user->nickname;?></th>
|
|
<td><?php echo $app->user->nickname;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->user->join;?></th>
|
|
<td><?php echo $app->user->join;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->user->visits;?></th>
|
|
<td><?php echo $app->user->visits;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->user->ip;?></th>
|
|
<td><?php echo $app->user->ip;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->user->last;?></th>
|
|
<td><?php echo $app->user->last;?></td>
|
|
</tr>
|
|
</table>
|
|
<div class='a-right'>
|
|
<?php
|
|
echo html::a($this->createLink('my', 'editprofile'), $lang->user->editProfile);
|
|
//echo html::a($this->createLink('user', 'editpassword'), $lang->user->editPassword);
|
|
echo html::a($this->createLink('user', 'logout'), $lang->logout);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="yui-main">
|
|
<div class="yui-b">
|
|
<div id='tabbar' class='yui-d0' style='clear:right'>
|
|
<ul>
|
|
<?php
|
|
echo "<li><nobr>{$app->user->realname}</nobr></li>";
|
|
echo "<li id='todotab'><nobr>" . html::a($this->createLink('my', 'index', "tabID=todo"), $lang->my->todo) . "</nobr></li>";
|
|
echo "<li id='tasktab'><nobr>" . html::a($this->createLink('my', 'index', "tabID=task"), $lang->my->task) . "</nobr></li>";
|
|
echo "<li id='projecttab'><nobr>". html::a($this->createLink('my', 'index', "tabID=project"), $lang->my->project) . "</nobr></li>";
|
|
//echo "<li id='storytab'><nobr>" . html::a($this->createLink('my', 'index', "tabID=story"), $lang->my->story) . "</nobr></li>";
|
|
echo "<li id='bugtab'><nobr>" . html::a($this->createLink('my', 'index', "tabID=bug"), $lang->my->bug) . "</nobr></li>";
|
|
//echo "<li id='teamtab'><nobr>" . html::a($this->createLink('my', 'index', "tabID=team"), $lang->my->team) . "</nobr></li>";
|
|
echo <<<EOT
|
|
<script language="Javascript">
|
|
$("#{$tabID}tab").addClass('active');
|
|
</script>
|
|
EOT;
|
|
?>
|
|
</ul>
|
|
<?php if($tabID == 'todo'):?>
|
|
<div>
|
|
</div>
|
|
<?php endif;?>
|
|
</div>
|
|
<?php include $tabID . '.html.php';?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php include '../../common/footer.html.php';?>
|