Files
EasySoft-ZenTaoPMS/module/group/view/browse.html.php
2012-02-21 07:22:58 +00:00

51 lines
2.2 KiB
PHP

<?php
/**
* The browse view file of group module of ZenTaoPMS.
*
* @copyright Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package group
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<table align='center' class='table-1 tablesorter'>
<caption class='caption-tl'>
<div class='f-left'><?php echo $lang->group->browse;?></div>
<div class='f-right'><?php echo html::a(inlink('create'), $lang->group->create);?></div>
</caption>
<thead>
<tr class='colhead'>
<th><?php echo $lang->group->id;?></th>
<th><?php echo $lang->group->name;?></th>
<th><?php echo $lang->group->desc;?></th>
<th class='w-p60'><?php echo $lang->group->users;?></th>
<th class='{sorter:false}'><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>
<?php foreach($groups as $group):?>
<tr class='a-center'>
<td class='strong'><?php echo $group->id;?></td>
<td><?php echo $group->name;?></td>
<td class='a-left'><?php echo $group->desc;?></td>
<td class='a-left'><?php foreach($groupUsers[$group->id] as $user) echo "<span class='user'>$user</span>";?></td>
<td>
<?php common::printLink('group', 'managepriv', "type=byGroup&param=$group->id", $lang->group->managePrivByGroup);?>
<?php common::printLink('group', 'managemember', "groupID=$group->id", $lang->group->manageMember);?>
<?php common::printLink('group', 'edit', "groupID=$group->id", $lang->edit);?>
<?php common::printLink('group', 'copy', "groupID=$group->id", $lang->copy);?>
<?php common::printLink('group', 'delete', "groupID=$group->id", $lang->delete, "hiddenwin");?>
</td>
</tr>
<?php endforeach;?>
</tbody>
<tfoot>
<tr><td colspan='5' class='a-center'><?php echo html::linkButton($lang->group->managePrivByModule, inlink('managePriv', 'type=byModule'));?></td></tr>
</tfoot>
</table>
<?php include '../../common/view/footer.html.php';?>