<?php
/**
 * The deptside view file of user module of XXB.
 *
 * @copyright   Copyright 2009-2020 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @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>
