* finish task #2526, task #2525.

This commit is contained in:
Catouse
2016-04-27 08:59:20 +08:00
parent 20520456b8
commit b07caeefae
5 changed files with 73 additions and 3 deletions
+17 -2
View File
@@ -48,8 +48,9 @@ class block extends control
if(!common::hasPriv($moduleKey, 'index')) unset($modules[$moduleKey]);
}
$modules['dynamic'] = $this->lang->block->dynamic;
$modules['html'] = 'HTML';
$modules['dynamic'] = $this->lang->block->dynamic;
$modules['html'] = 'HTML';
$modules['flowchart'] = '流程图';
$modules = array('' => '') + $modules;
$hiddenBlocks = $this->block->getHiddenBlocks();
@@ -262,6 +263,10 @@ class block extends control
{
$html = $this->fetch('block', 'dynamic');
}
elseif($block->block == 'flowchart')
{
$html = $this->fetch('block', 'flowchart');
}
die($html);
}
@@ -568,4 +573,14 @@ class block extends control
$pager = pager::init(0, $num, 1);
$this->view->projectStats = $this->loadModel('project')->getProjectStats($type, $productID = 0, $branch = 0, $itemCounts = 30, $orderBy = 'order_desc', $this->viewType != 'json' ? $pager : '');
}
/**
* Print flow chart block
* @access public
* @return void
*/
public function flowchart()
{
$this->display();
}
}