Files
EasySoft-ZenTaoPMS/module/message/view/header.html.php
2018-04-16 15:28:21 +08:00

14 lines
806 B
PHP

<?php include '../../common/view/header.html.php';?>
<div id="mainMenu" class="clearfix">
<div class="btn-toolbar pull-left">
<?php foreach($lang->message->typeList as $type => $typeName):?>
<?php if(isset($config->message->typeLink[$type])):?>
<?php list($moduleName, $methodName) = explode('|', $config->message->typeLink[$type]);?>
<?php if(!common::hasPriv($moduleName, $methodName)) continue;?>
<?php echo html::a($this->createLink($moduleName, $methodName), "<span class='text'>$typeName</span>", '', "class='btn btn-link'")?>
<?php endif;?>
<?php endforeach;?>
<?php if(common::hasPriv('message', 'setting')) echo html::a($this->createLink('message', 'setting'), "<span class='text'>{$lang->message->setting}</span>", '', "class='btn btn-link'")?>
</div>
</div>