xxb/module/user/view/deptside.html.php
2023-10-23 15:51:36 +08:00

25 lines
1.3 KiB
PHP

<?php
/**
* The deptside view file of user module of XXB.
*
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
* @license ZOSL (https://zpl.pub/page/zoslv1.html)
* @author Yidong Wang <yidong@cnezsoft.com>
* @package user
* @version $Id$
* @link https://xuanim.com
*/
?>
<div class='col-md-2'>
<div class='panel'>
<div class='panel-heading'><strong><i class="icon-sitemap"></i> <?php echo $lang->dept->common;?></strong></div>
<div class='panel-body'>
<div id='treeMenuBox'><?php echo $treeMenu;?></div>
<?php if(commonModel::hasPriv('user', 'create')) echo html::a($this->inlink('create'), $lang->user->create, "class='btn btn-primary btn-xs'");?>
<?php if(commonModel::hasPriv('user', 'batchcreate')) echo html::a($this->inlink('batchcreate'), $lang->user->batchCreate, "class='btn btn-primary btn-xs'");?>
<?php if(commonModel::hasPriv('tree', 'browse')) echo html::a($this->createLink('tree', 'browse', "type=dept"), $lang->dept->edit, "class='btn btn-primary btn-xs'");?>
<?php if(commonModel::hasPriv('setting', 'lang')) echo html::a($this->createLink('setting', 'lang', "module=user&field=roleList"), $lang->user->role, "class='btn btn-primary btn-xs'");?>
</div>
</div>
</div>