35 lines
1.6 KiB
PHP
Executable File
35 lines
1.6 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* The header view of common module of XXB.
|
|
*
|
|
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
|
|
* @license ZOSL (https://zpl.pub/page/zoslv1.html)
|
|
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
|
* @package common
|
|
* @version $Id: header.html.php 4029 2016-08-26 06:50:41Z liugang $
|
|
* @link https://xuanim.com
|
|
*/
|
|
?>
|
|
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
|
|
<?php include 'header.lite.html.php';?>
|
|
<style>body {padding-top: 58px;}</style>
|
|
<nav class='navbar navbar-main navbar-inverse navbar-fixed-top' id='mainNavbar'>
|
|
<ul class='nav navbar-nav'>
|
|
<li><?php echo html::a($this->createLink('user', 'profile'), "<i class='icon-user'></i> " . $app->user->realname, "data-toggle='modal' data-id='profile'");?></li>
|
|
</ul>
|
|
<?php echo commonModel::createMainMenu($this->moduleName, $this->methodName);?>
|
|
<ul class='nav navbar-nav navbar-right'>
|
|
<li><?php echo html::a($this->createLink('user', 'logout'), "<i class='icon icon-signout'></i> {$lang->logout}", 'target="_parent"')?></li>
|
|
</ul>
|
|
</nav>
|
|
<?php
|
|
if(!isset($moduleMenu)) $moduleMenu = commonModel::createModuleMenu($this->moduleName);
|
|
if($moduleMenu) echo "$moduleMenu\n<div class='container-fluid with-menu'>\n"; else echo "<div class='container-fluid'>";
|
|
?>
|
|
<?php if($this->moduleName != 'index'):?>
|
|
<ul class='breadcrumb'>
|
|
<?php echo "<span class='breadcrumb-title'>" . $lang->currentPos . "</span>";?>
|
|
<?php commonModel::printBreadMenu($this->moduleName, isset($position) ? $position : ''); ?>
|
|
</ul>
|
|
<?php endif;?>
|