Files
EasySoft-ZenTaoPMS/trunk/module/index/view/index.html.php
2010-05-02 15:32:06 +00:00

76 lines
2.8 KiB
PHP

<?php
/**
* The html template file of index method of index 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 青岛易软天创网络科技有限公司(www.cnezsoft.com)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package ZenTaoMS
* @version $Id$
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/colorize.html.php';?>
<div class="yui-d0 yui-t6">
<div class='yui-main'>
<div class='yui-b'>
<?php foreach($projectGroups as $projects):?>
<div class="yui-g">
<?php foreach($projects as $key => $project):?>
<?php
$class = 0;
if($key == 0) $class = 'first';
if($key == 2) break;
?>
<div class="yui-u <?php echo $class;?> mb-10px">
<div class='box-title'>
<div class='a-center'>
<?php
echo html::a($this->createLink('project', 'browse', "projectid=$project->id"), $project->name);
echo '(' . $project->begin . ' ~ ' . $project->end . ')';
?>
</div>
</div>
<div class='box-content a-center'>
<?php
echo $burns[$project->id];
echo html::linkButton($lang->project->largeBurnChart, $this->createLink('project', 'burn', "projectID=$project->id"));
?>
</div>
</div>
<?php endforeach;?>
</div>
<?php endforeach;?>
</div>
</div>
<div class='yui-b'>
<table class='table-1 colored'>
<caption><?php echo $lang->index->latest;?></caption>
<?php
foreach($actions as $action)
{
$user = isset($users[$action->actor]) ? $users[$action->actor] : $action->actor;
echo "<tr><td>";
printf($lang->index->action, $action->date, $user, $action->actionLabel, $action->objectLabel, $action->objectLink);
echo "</td></tr>";
}
?>
</table>
</div>
</div>
<script language='Javascript'><?php for($i = 1; $i <= $counts; $i ++) echo "createChart$i();"; ?></script>
<?php include '../../common/view/footer.html.php';?>