* display all defaultly.

This commit is contained in:
zhujinyong
2013-01-17 01:48:41 +00:00
parent be1ccca5e5
commit afa2224320
2 changed files with 2 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ class project extends control
* @access public
* @return void
*/
public function index($locate = 'yes', $status = 'undone', $projectID = 0)
public function index($locate = 'yes', $status = 'all', $projectID = 0)
{
if(empty($this->projects)) $this->locate($this->createLink('project', 'create'));
if($locate == 'yes') $this->locate($this->createLink('project', 'task'));

View File

@@ -13,6 +13,7 @@
<?php include '../../common/view/sparkline.html.php';?>
<?php include '../../common/view/colorize.html.php';?>
<h3>
<?php echo html::a(inlink("index", "locate=no&status=all&projectID=$project->id"), $lang->project->allProject);?>
<?php echo html::a(inlink("index", "locate=no&status=wait&projectID=$project->id"), $lang->project->statusList['wait']);?>
<?php echo html::a(inlink("index", "locate=no&status=doing&projectID=$project->id"), $lang->project->statusList['doing']);?>
<?php echo html::a(inlink("index", "locate=no&status=suspended&projectID=$project->id"), $lang->project->statusList['suspended']);?>