* adjust the all projects page.
This commit is contained in:
@@ -31,15 +31,18 @@ class project extends control
|
||||
/**
|
||||
* The index page.
|
||||
*
|
||||
* @param string $locate yes|no locate to the browse page or not.
|
||||
* @param string $status the projects status, if locate is no, then get projects by the $status.
|
||||
* @param string $locate yes|no locate to the browse page or not.
|
||||
* @param string $status the projects status, if locate is no, then get projects by the $status.
|
||||
* @param int $projectID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function index($locate = 'yes', $status = 'undone')
|
||||
public function index($locate = 'yes', $status = 'undone', $projectID = 0)
|
||||
{
|
||||
if(empty($this->projects)) $this->locate($this->createLink('project', 'create'));
|
||||
if($locate == 'yes') $this->locate($this->createLink('project', 'browse'));
|
||||
if($locate == 'yes') $this->locate($this->createLink('project', 'task'));
|
||||
|
||||
$this->commonAction($projectID);
|
||||
|
||||
$this->app->loadLang('my');
|
||||
$this->view->projectStats = $this->project->getProjectStats($status);
|
||||
|
||||
@@ -9,12 +9,11 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/sparkline.html.php';?>
|
||||
<?php include '../../common/view/colorize.html.php';?>
|
||||
<h3>
|
||||
<?php echo html::a(inlink("index", "locate=no&status=undone"), $lang->project->unDoneProjects);?>
|
||||
<?php echo html::a(inlink("index", "locate=no&status=done"), $lang->project->doneProjects);?>
|
||||
<?php echo html::a(inlink("index", "locate=no&status=undone&projectID=$project->id"), $lang->project->unDoneProjects);?>
|
||||
<?php echo html::a(inlink("index", "locate=no&status=done&projectID=$project->id"), $lang->project->doneProjects);?>
|
||||
</h3>
|
||||
<table class='table-1 fixed colored'>
|
||||
<tr class='colhead'>
|
||||
@@ -45,4 +44,4 @@
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user