* adjust for manage view.
This commit is contained in:
@@ -142,8 +142,8 @@ class group extends control
|
||||
$this->view->position[] = $this->lang->group->manageView;
|
||||
|
||||
$this->view->group = $group;
|
||||
$this->view->products = $this->loadModel('product')->getPairs();
|
||||
$this->view->projects = $this->loadModel('project')->getPairs();
|
||||
$this->view->products = $this->dao->select('*')->from(TABLE_PRODUCT)->orderBy('order_desc')->fetchPairs('id', 'name');
|
||||
$this->view->projects = $this->dao->select('*')->from(TABLE_PROJECT)->orderBy('order_desc')->fetchPairs('id', 'name');
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -26,9 +26,10 @@ $lang->group->unlinkMember = 'Remove member';
|
||||
$lang->group->confirmDelete = 'Are you sure to delete this group?';
|
||||
$lang->group->successSaved = 'Success saved.';
|
||||
$lang->group->errorNotSaved = 'Not saved, please make sure you have selected some actions and groups.';
|
||||
$lang->group->visitProduct = 'Visit product';
|
||||
$lang->group->visitProject = 'Visit project';
|
||||
$lang->group->noticeVisit = 'All elected representatives have no access restrictions';
|
||||
$lang->group->viewList = 'Restricted access view';
|
||||
$lang->group->productList = 'Restricted access product';
|
||||
$lang->group->projectList = 'Restricted access project';
|
||||
$lang->group->noticeVisit = 'The empty access has no access restrictions';
|
||||
|
||||
$lang->group->id = 'Id';
|
||||
$lang->group->name = 'Name';
|
||||
|
||||
@@ -26,9 +26,10 @@ $lang->group->unlinkMember = '移除用户';
|
||||
$lang->group->confirmDelete = '您确定删除该用户分组吗?';
|
||||
$lang->group->successSaved = '成功保存';
|
||||
$lang->group->errorNotSaved = '没有保存,请确认选择了权限数据。';
|
||||
$lang->group->visitProduct = '可访问的产品';
|
||||
$lang->group->visitProject = '可访问的项目';
|
||||
$lang->group->noticeVisit = '全不选代表没有访问限制';
|
||||
$lang->group->viewList = '限制访问视图';
|
||||
$lang->group->productList = '限制访问产品';
|
||||
$lang->group->projectList = '限制访问项目';
|
||||
$lang->group->noticeVisit = '空代访问没有访问限制';
|
||||
|
||||
$lang->group->id = '编号';
|
||||
$lang->group->name = '分组名称';
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<form class='form-condensed' method='post' target='hiddenwin'>
|
||||
<table class='table table-hover table-striped table-bordered table-form'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-150px'>
|
||||
<?php echo $lang->group->module;?>
|
||||
<?php echo $lang->group->viewList;?>
|
||||
<input type="checkbox" name="allchecker[]" onclick="selectAll(this, '', 'checkbox')">
|
||||
</th>
|
||||
<td colspan='2'>
|
||||
<td class='w-p60'>
|
||||
<?php foreach($lang->menu as $menu):?>
|
||||
<?php list($moduleName, $module) = explode('|', $menu);?>
|
||||
<?php if($module == 'my') continue;?>
|
||||
@@ -31,25 +31,25 @@
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
</td>
|
||||
<td><?php echo $lang->group->noticeVisit?></td>
|
||||
</tr>
|
||||
<tr id='productBox' style='display:none'>
|
||||
<th class='text-right'><?php echo $lang->group->visitProduct?></th>
|
||||
<td class='w-p60'><?php echo html::select("actions[products][]", $products, isset($group->acl['products']) ? join(',', $group->acl['products']) : '', "class='chosen' multiple")?></td>
|
||||
<th class='text-right'><?php echo $lang->group->productList?></th>
|
||||
<td><?php echo html::select("actions[products][]", $products, isset($group->acl['products']) ? join(',', $group->acl['products']) : '', "class='chosen' multiple")?></td>
|
||||
<td><?php echo $lang->group->noticeVisit?></td>
|
||||
</tr>
|
||||
<tr id='projectBox' style='display:none'>
|
||||
<th class='text-right'><?php echo $lang->group->visitProject?></th>
|
||||
<th class='text-right'><?php echo $lang->group->projectList?></th>
|
||||
<td><?php echo html::select("actions[projects][]", $projects, isset($group->acl['projects']) ? join(',', $group->acl['projects']) : '', "class='chosen' multiple")?></td>
|
||||
<td><?php echo $lang->group->noticeVisit?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->selectAll . html::selectAll('', 'checkbox')?></th>
|
||||
<th><span class='hidden'><?php echo html::selectAll('', 'checkbox')?></span></th>
|
||||
<td colspan='2'>
|
||||
<?php
|
||||
echo html::submitButton($lang->save);
|
||||
echo html::linkButton($lang->goback, $this->createLink('group', 'browse'));
|
||||
echo html::hidden('foo'); // Just a hidden var, to make sure $_POST is not empty.
|
||||
echo $lang->group->noticeVisit;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user