piler/webui/view/theme/default/templates/common/menu.tpl

96 lines
7.3 KiB
Smarty
Raw Permalink Normal View History

2012-02-08 23:14:28 +01:00
<?php if(Registry::get('username')) { ?>
2013-04-05 10:16:33 +02:00
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
2013-08-09 22:11:16 +02:00
<div class="container-fluid"<?php if($settings['background_colour']) { ?> style="background: <?php print $settings['background_colour']; ?>;"<?php } ?>>
2013-04-05 10:16:33 +02:00
2013-08-14 23:40:52 +02:00
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
2013-04-05 10:16:33 +02:00
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
2013-08-14 23:40:52 +02:00
</button>
2013-04-05 10:16:33 +02:00
2016-01-13 20:49:19 +01:00
<a class="brand"<?php if($settings['branding_url']) { ?> target="_blank" href="<?php print $settings['branding_url']; ?>" title="<?php print $settings['branding_text']; ?>"<?php } ?>><?php if($settings['branding_logo']) { ?><img src="<?php print $settings['branding_logo']; ?>" alt="<?php print $settings['branding_text']; ?>" /><?php } ?></a>
2013-04-05 10:16:33 +02:00
2013-08-14 23:40:52 +02:00
<div class="nav-collapse collapse">
<ul class="nav">
2013-08-14 23:40:52 +02:00
<?php if($admin_user == 1) { ?>
2013-08-14 23:40:52 +02:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-desktop"></i>&nbsp;<?php print $text_monitor; ?>&nbsp;<b class="caret"></b></a>
<ul class="dropdown-menu">
2014-08-19 15:00:31 +02:00
<li><a href="index.php?route=stat/stat&timespan=daily"><i class="icon-bar-chart"></i>&nbsp;<?php print $text_statistics; ?></a></li>
<li><a href="index.php?route=accounting/accounting&view=email"><i class="icon-tasks"></i>&nbsp;<?php print $text_accounting; ?></a></li>
<li><a href="index.php?route=health/health"><i class="icon-medkit"></i>&nbsp;<?php print $text_health; ?></a></li>
2013-08-14 23:40:52 +02:00
<?php if(ENABLE_AUDIT == 1) { ?>
<li><a href="index.php?route=audit/audit"><i class="icon-book"></i>&nbsp;<?php print $text_audit; ?></a></li>
<?php } ?>
</ul>
</li>
<li class="dropdown"<?php if(strstr($_SERVER['QUERY_STRING'], "domain/") || ($_SERVER['QUERY_STRING'] != "route=user/settings" && strstr($_SERVER['QUERY_STRING'], "user/")) || strstr($_SERVER['QUERY_STRING'], "policy/") || strstr($_SERVER['QUERY_STRING'], "import/")) { ?> id="active"<?php } ?>>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-cogs"></i>&nbsp;<?php print $text_administration; ?>&nbsp;<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.php?route=user/list"><i class="icon-user"></i>&nbsp;<?php print $text_users; ?></a></li>
<li><a href="index.php?route=group/list"><i class="icon-group"></i>&nbsp;<?php print $text_groups; ?></a></li>
<li><a href="index.php?route=domain/domain"><i class="icon-globe"></i>&nbsp;<?php print $text_domain; ?></a></li>
<?php if(ENABLE_SAAS == 1) { ?>
<li><a href="index.php?route=ldap/list"><i class="icon-key"></i>&nbsp;<?php print $text_ldap; ?></a></li>
<li><a href="index.php?route=customer/list"><i class="icon-wrench"></i>&nbsp;<?php print $text_customers; ?></a></li>
2013-08-23 13:02:51 +02:00
<li><a href="index.php?route=import/list"><i class="icon-lightbulb"></i>&nbsp;<?php print $text_import; ?></a></li>
2013-08-14 23:40:52 +02:00
<?php } ?>
2015-09-03 14:41:52 +02:00
<li><a href="index.php?route=policy/archiving"><i class="icon-stop"></i>&nbsp;<?php print $text_archiving_rules; ?></a></li>
2013-08-14 23:40:52 +02:00
<li><a href="index.php?route=policy/retention"><i class="icon-time"></i>&nbsp;<?php print $text_retention_rules; ?></a></li>
2015-09-03 14:41:52 +02:00
<li><a href="index.php?route=policy/folder"><i class="icon-folder-open"></i>&nbsp;<?php print $text_folder_rules; ?></a></li>
2015-03-29 16:27:44 +02:00
<li><a href="index.php?route=policy/legalhold"><i class="icon-legal"></i>&nbsp;<?php print $text_legal_hold; ?></a></li>
<li><a href="index.php?route=search/autosearch"><i class="icon-search"></i>&nbsp;<?php print $text_automated_search; ?></a></li>
2013-08-14 23:40:52 +02:00
</ul>
</li>
<?php if(LDAP_ADMIN_MEMBER_DN || ADMIN_CAN_POWER_SEARCH) { ?>
2013-08-22 11:24:54 +02:00
<li><a href="search.php" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-search"></i>&nbsp;<?php print $text_search; ?></a></li>
<?php } ?>
2013-08-14 23:40:52 +02:00
<?php } else { ?>
2013-08-14 23:40:52 +02:00
<li><a href="search.php" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-search"></i>&nbsp;<?php print $text_search; ?></a></li>
2013-04-05 10:16:33 +02:00
2013-08-14 23:40:52 +02:00
<?php if(ENABLE_AUDIT == 1 && $auditor_user == 1) { ?>
<li><a href="index.php?route=audit/audit" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-book"></i>&nbsp;<?php print $text_audit; ?></a></li>
<?php } ?>
2013-07-12 15:02:50 +02:00
2013-08-14 23:40:52 +02:00
<?php if($settings['support_link']) { ?>
<li><a href="<?php print $settings['support_link']; ?>" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><?php print $text_contact_support; ?></a></li>
<?php } ?>
2013-07-12 15:02:50 +02:00
2013-08-14 23:40:52 +02:00
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
<li><a href="/folders.php" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-folder-close"></i>&nbsp;<?php print $text_folders; ?></a></li>
<?php } ?>
2012-02-08 23:14:28 +01:00
2013-08-14 23:40:52 +02:00
<?php } ?>
</ul>
2013-04-05 10:16:33 +02:00
2013-08-14 23:40:52 +02:00
<ul class="nav pull-right">
<?php if($settings['branding_url']) { ?>
2014-01-26 22:24:38 +01:00
<li><a href="<?php print $settings['branding_url']; ?>" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?> target="_blank"><i class="icon-phone"></i>&nbsp;<?php print $settings['branding_text']; ?></a></li>
2013-08-14 23:40:52 +02:00
<?php } ?>
2013-07-16 07:36:48 +02:00
2013-08-14 23:40:52 +02:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i>&nbsp;<?php if($realname) { print $realname; ?>&nbsp;<?php } ?><b class="caret"></b></a>
2013-08-14 23:40:52 +02:00
<ul class="dropdown-menu">
<?php if($settings['support_link']) { ?>
2014-09-15 10:39:24 +02:00
<li><a href="<?php print $settings['support_link']; ?>" target="_blank"><i class="icon-question-sign"></i>&nbsp;<?php print $text_contact_support; ?></a></li>
2013-08-14 23:40:52 +02:00
<li class="divider"></li>
<?php } ?>
<li><a href="settings.php"><i class="icon-cog"></i>&nbsp;<?php print $text_settings; ?></a></li>
<li class="divider"></li>
<li><a href="logout.php"><i class="icon-off"></i>&nbsp;<?php print $text_logout; ?></a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
2013-04-05 10:16:33 +02:00
</div>
</div>
</div>
<?php } ?>