@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user