* Add filter button and create button.
This commit is contained in:
@@ -14,11 +14,23 @@ class kanban extends control
|
||||
/**
|
||||
* Kanban space.
|
||||
*
|
||||
* @param string $browseType all|my|other|closed
|
||||
* @param int $recTotal
|
||||
* @param int $recPerPage
|
||||
* @param int $pageID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function space()
|
||||
public function space($browseType = 'my', $recTotal = 0, $recPerPage = 15, $pageID = 1)
|
||||
{
|
||||
/* Load pager. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
$pager = new pager($recTotal, $recPerPage, $pageID);
|
||||
|
||||
$this->view->title = $this->lang->kanban->common;
|
||||
$this->view->browseType = $browseType;
|
||||
$this->view->pager = $pager;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
$lang->kanban->space = 'Kanban Space';
|
||||
$lang->kanban->space = 'Kanban Space';
|
||||
$lang->kanban->create = 'Create Kanban';
|
||||
$lang->kanban->createSpace = 'Create Space';
|
||||
|
||||
$lang->kanban->featureBar['all'] = 'All';
|
||||
$lang->kanban->featureBar['my'] = 'My';
|
||||
$lang->kanban->featureBar['other'] = 'Other';
|
||||
$lang->kanban->featureBar['closed'] = 'Closed';
|
||||
|
||||
$lang->kanban->type = array();
|
||||
$lang->kanban->type['all'] = "All KanBan";
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
$lang->kanban->space = '看板空间';
|
||||
$lang->kanban->space = '看板空间';
|
||||
$lang->kanban->create = '添加看板';
|
||||
$lang->kanban->createSpace = '添加空间';
|
||||
|
||||
$lang->kanban->featureBar['all'] = '所有';
|
||||
$lang->kanban->featureBar['my'] = '我的空间';
|
||||
$lang->kanban->featureBar['other'] = '其他空间';
|
||||
$lang->kanban->featureBar['closed'] = '已关闭';
|
||||
|
||||
$lang->kanban->type = array();
|
||||
$lang->kanban->type['all'] = "综合看板";
|
||||
|
||||
@@ -11,4 +11,18 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div id="mainMenu" class="clearfix table-row">
|
||||
<div class="btn-toolBar pull-left">
|
||||
<?php foreach($lang->kanban->featureBar as $key => $label):?>
|
||||
<?php $active = $browseType == $key ? 'btn-active-text' : '';?>
|
||||
<?php $label = "<span class='text'>$label</span>";?>
|
||||
<?php if($browseType == $key) $label .= " <span class='label label-light label-badge'>{$pager->recTotal}</span>";?>
|
||||
<?php echo html::a(inlink('space', "browseType=$key"), $label, '', "class='btn btn-link $active'");?>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php common::printLink('kanban', 'create', '', '<i class="icon icon-plus"></i> ' . $lang->kanban->create, '', 'class="btn btn-secondary iframe"', '', true);?>
|
||||
<?php common::printLink('kanban', 'createSpace', '', '<i class="icon icon-plus"></i> ' . $lang->kanban->createSpace, '', 'class="btn btn-primary iframe"', '', true);?>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user