Moved header stuff to old file names, working on permission templates
parent
1337090964
commit
e865412b5f
@ -1,227 +0,0 @@
|
||||
<?php
|
||||
/*******************************************************************************
|
||||
* Title: Help Desk Software HESK
|
||||
* Version: 2.6.7 from 18th April 2016
|
||||
* Author: Klemen Stirn
|
||||
* Website: http://www.hesk.com
|
||||
********************************************************************************
|
||||
* COPYRIGHT AND TRADEMARK NOTICE
|
||||
* Copyright 2005-2014 Klemen Stirn. All Rights Reserved.
|
||||
* HESK is a registered trademark of Klemen Stirn.
|
||||
* The HESK may be used and modified free of charge by anyone
|
||||
* AS LONG AS COPYRIGHT NOTICES AND ALL THE COMMENTS REMAIN INTACT.
|
||||
* By using this code you agree to indemnify Klemen Stirn from any
|
||||
* liability that might arise from it's use.
|
||||
* Selling the code for this program, in part or full, without prior
|
||||
* written consent is expressly forbidden.
|
||||
* Using this code, in part or full, to create derivate work,
|
||||
* new scripts or products is expressly forbidden. Obtain permission
|
||||
* before redistributing this software over the Internet or in
|
||||
* any other medium. In all cases copyright and header must remain intact.
|
||||
* This Copyright is in full effect in any country that has International
|
||||
* Trade Agreements with the United States of America or
|
||||
* with the European Union.
|
||||
* Removing any of the copyright notices without purchasing a license
|
||||
* is expressly forbidden. To remove HESK copyright notice you must purchase
|
||||
* a license for this script. For more information on how to obtain
|
||||
* a license please visit the page below:
|
||||
* https://www.hesk.com/buy.php
|
||||
*******************************************************************************/
|
||||
|
||||
require_once(HESK_PATH . 'build.php');
|
||||
|
||||
/* Check if this is a valid include */
|
||||
if (!defined('IN_SCRIPT')) {
|
||||
die('Invalid attempt');
|
||||
}
|
||||
|
||||
$modsForHesk_settings = mfh_getSettings();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo(isset($hesk_settings['tmp_title']) ? $hesk_settings['tmp_title'] : $hesk_settings['hesk_title']); ?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=<?php echo $hesklang['ENCODING']; ?>"/>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
<meta name="theme-color" content="<?php echo '#414a5c'; ?>">
|
||||
<link href="<?php echo HESK_PATH; ?>css/datepicker.css" type="text/css" rel="stylesheet"/>
|
||||
<link href="<?php echo HESK_PATH; ?>css/bootstrap.css?v=21" type="text/css" rel="stylesheet"/>
|
||||
<link href="<?php echo HESK_PATH; ?>css/bootstrap-iconpicker.min.css" rel="stylesheet">
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/octicons.css" type="text/css">
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/dropzone.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/dropzone-basic.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/fullcalendar.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/bootstrap-clockpicker.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/jquery.jgrowl.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/bootstrap-colorpicker.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/AdminLTE.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/skins/_all-skins.min.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/mods-for-hesk-new.css">
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/colors.css">
|
||||
<script src="<?php echo HESK_PATH; ?>js/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/adminlte.min.js"></script>
|
||||
<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>hesk_javascript.js"></script>
|
||||
<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/dropzone.min.js"></script>
|
||||
<script language="Javascript" type="text/javascript"
|
||||
src="<?php echo HESK_PATH; ?>js/modsForHesk-javascript.js"></script>
|
||||
<script language="JavaScript" type="text/javascript"
|
||||
src="<?php echo HESK_PATH; ?>js/bootstrap-datepicker.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/bootstrap-clockpicker.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/iconset-fontawesome-4.3.0.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/iconset-octicon-2.1.2.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/bootstrap-iconpicker.js"></script>
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/platform.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/bootstrap-validator.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>internal-api/js/core-admin.php"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/jquery.jgrowl.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/bootstrap-colorpicker.min.js"></script>
|
||||
<?php
|
||||
if (defined('EXTRA_JS')) {
|
||||
echo EXTRA_JS;
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
.navbar-default {
|
||||
background-color: <?php echo $modsForHesk_settings['navbarBackgroundColor']; ?>;
|
||||
background-image: none;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-brand {
|
||||
color: <?php echo $modsForHesk_settings['navbarBrandColor']; ?>;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-brand:focus, .navbar-default .navbar-brand:hover {
|
||||
color: <?php echo $modsForHesk_settings['navbarBrandHoverColor']; ?>;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav > li > a {
|
||||
color: <?php echo $modsForHesk_settings['navbarItemTextColor']; ?>;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > li > a:hover {
|
||||
color: <?php echo $modsForHesk_settings['navbarItemTextHoverColor']; ?>;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.dropdown-menu > li > a {
|
||||
color: <?php echo $modsForHesk_settings['dropdownItemTextColor']; ?>;
|
||||
}
|
||||
|
||||
.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
|
||||
color: <?php echo $modsForHesk_settings['dropdownItemTextHoverColor']; ?>;
|
||||
text-decoration: none;
|
||||
background-color: <?php echo $modsForHesk_settings['dropdownItemTextHoverBackgroundColor']; ?>;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav > .open > a,
|
||||
.navbar-default .navbar-nav > .open > a:focus,
|
||||
.navbar-default .navbar-nav > .open > a:hover,
|
||||
.navbar-default .navbar-nav > .active > a,
|
||||
.navbar-default .navbar-nav > .active > a:focus,
|
||||
.navbar-default .navbar-nav > .active > a:hover {
|
||||
color: <?php echo $modsForHesk_settings['navbarItemTextSelectedColor']; ?>;
|
||||
background-color: <?php echo $modsForHesk_settings['navbarItemSelectedBackgroundColor']; ?>;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.settingsquestionmark {
|
||||
color: <?php echo $modsForHesk_settings['questionMarkColor']; ?>;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.h3questionmark {
|
||||
color: <?php echo $modsForHesk_settings['questionMarkColor']; ?>;
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php
|
||||
/* Prepare Javascript that browser should load on page load */
|
||||
$onload = "javascript:var i=new Image();i.src='" . HESK_PATH . "img/orangebtnover.gif';var i2=new Image();i2.src='" . HESK_PATH . "img/greenbtnover.gif';";
|
||||
|
||||
/* Tickets shouldn't be indexed by search engines */
|
||||
if (defined('HESK_NO_ROBOTS')) {
|
||||
?>
|
||||
<meta name="robots" content="noindex, nofollow"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
/* If page requires calendar include calendar Javascript and CSS */
|
||||
if (defined('CALENDAR')) {
|
||||
?>
|
||||
<script language="Javascript" type="text/javascript"
|
||||
src="<?php echo HESK_PATH; ?>inc/calendar/tcal.php"></script>
|
||||
<link href="<?php echo HESK_PATH; ?>inc/calendar/tcal.css" type="text/css" rel="stylesheet"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
/* If page requires WYSIWYG editor include TinyMCE Javascript */
|
||||
if (defined('WYSIWYG') && $hesk_settings['kb_wysiwyg']) {
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>inc/tiny_mce/3.5.11/tiny_mce.js"></script>
|
||||
<?php
|
||||
}
|
||||
|
||||
/* If page requires tabs load tabs Javascript and CSS */
|
||||
if (defined('LOAD_TABS')) {
|
||||
?>
|
||||
<link href="<?php echo HESK_PATH; ?>inc/tabs/tabber.css" type="text/css" rel="stylesheet"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (defined('VALIDATOR')) {
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/validation-scripts.js"></script>
|
||||
<?php
|
||||
}
|
||||
|
||||
/* If page requires timer load Javascript */
|
||||
if (defined('TIMER')) {
|
||||
?>
|
||||
<script language="Javascript" type="text/javascript"
|
||||
src="<?php echo HESK_PATH; ?>inc/timer/hesk_timer.js"></script>
|
||||
<?php
|
||||
|
||||
/* Need to load default time or a custom one? */
|
||||
if (isset($_SESSION['time_worked'])) {
|
||||
$t = hesk_getHHMMSS($_SESSION['time_worked']);
|
||||
$onload .= "load_timer('time_worked', " . $t[0] . ", " . $t[1] . ", " . $t[2] . ");";
|
||||
unset($t);
|
||||
} else {
|
||||
$onload .= "load_timer('time_worked', 0, 0, 0);";
|
||||
}
|
||||
|
||||
/* Autostart timer? */
|
||||
if (!empty($_SESSION['autostart'])) {
|
||||
$onload .= "ss();";
|
||||
}
|
||||
}
|
||||
|
||||
if (defined('MFH_CALENDAR')) { ?>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/moment.js"></script>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/fullcalendar.min.js"></script>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/lang/<?php echo $hesk_settings['languages'][$hesk_settings['language']]['folder'] ?>.js"></script>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/mods-for-hesk-calendar.js"></script>
|
||||
<?php } else if (defined('MFH_CALENDAR_READONLY')) { ?>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/moment.js"></script>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/fullcalendar.min.js"></script>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/lang/<?php echo $hesk_settings['languages'][$hesk_settings['language']]['folder'] ?>.js"></script>
|
||||
<script src="<?php echo HESK_PATH; ?>js/calendar/mods-for-hesk-calendar-admin-readonly.js"></script>
|
||||
<?php } ?>
|
||||
|
||||
</head>
|
||||
<body onload="<?php echo $onload;
|
||||
unset($onload); ?>" class="hold-transition skin-blue sidebar-mini">
|
||||
|
||||
<?php
|
||||
include(HESK_PATH . 'header.txt');
|
||||
$iconDisplay = 'style="display: none"';
|
||||
if ($modsForHesk_settings['show_icons']) {
|
||||
$iconDisplay = '';
|
||||
}
|
||||
?>
|
@ -1,458 +0,0 @@
|
||||
<?php
|
||||
/*******************************************************************************
|
||||
* Title: Help Desk Software HESK
|
||||
* Version: 2.6.7 from 18th April 2016
|
||||
* Author: Klemen Stirn
|
||||
* Website: http://www.hesk.com
|
||||
********************************************************************************
|
||||
* COPYRIGHT AND TRADEMARK NOTICE
|
||||
* Copyright 2005-2015 Klemen Stirn. All Rights Reserved.
|
||||
* HESK is a registered trademark of Klemen Stirn.
|
||||
* The HESK may be used and modified free of charge by anyone
|
||||
* AS LONG AS COPYRIGHT NOTICES AND ALL THE COMMENTS REMAIN INTACT.
|
||||
* By using this code you agree to indemnify Klemen Stirn from any
|
||||
* liability that might arise from it's use.
|
||||
* Selling the code for this program, in part or full, without prior
|
||||
* written consent is expressly forbidden.
|
||||
* Using this code, in part or full, to create derivate work,
|
||||
* new scripts or products is expressly forbidden. Obtain permission
|
||||
* before redistributing this software over the Internet or in
|
||||
* any other medium. In all cases copyright and header must remain intact.
|
||||
* This Copyright is in full effect in any country that has International
|
||||
* Trade Agreements with the United States of America or
|
||||
* with the European Union.
|
||||
* Removing any of the copyright notices without purchasing a license
|
||||
* is expressly forbidden. To remove HESK copyright notice you must purchase
|
||||
* a license for this script. For more information on how to obtain
|
||||
* a license please visit the page below:
|
||||
* https://www.hesk.com/buy.php
|
||||
*******************************************************************************/
|
||||
|
||||
/* Check if this is a valid include */
|
||||
if (!defined('IN_SCRIPT')) {
|
||||
die('Invalid attempt');
|
||||
}
|
||||
|
||||
$mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hesklang);
|
||||
?>
|
||||
<div class="wrapper">
|
||||
<header class="main-header">
|
||||
|
||||
<!-- Logo -->
|
||||
<a href="<?php echo $modsForHesk_settings['navbar_title_url']; ?>" class="logo">
|
||||
<!-- mini logo for sidebar mini 50x50 pixels -->
|
||||
<span class="logo-mini"><!-- TODO Add setting for "Mini Title" --></span>
|
||||
<!-- logo for regular state and mobile devices -->
|
||||
<span class="logo-lg"><?php echo $hesk_settings['hesk_title'] ?></span>
|
||||
</a>
|
||||
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
<!-- Navbar Right Menu -->
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- Messages: style can be found in dropdown.less-->
|
||||
<?php
|
||||
$number_of_maintenance_warnings = 0;
|
||||
if (hesk_check_maintenance(false)) {
|
||||
$number_of_maintenance_warnings++;
|
||||
}
|
||||
if (hesk_check_kb_only(false)) {
|
||||
$number_of_maintenance_warnings++;
|
||||
}
|
||||
if ($number_of_maintenance_warnings > 0): ?>
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
<span class="label label-warning"><?php echo $number_of_maintenance_warnings; ?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header"><?php echo sprintf($hesklang['x_system_warnings'],
|
||||
$number_of_maintenance_warnings,
|
||||
$number_of_maintenance_warnings == 1
|
||||
? $hesklang['warning_title_case']
|
||||
: $hesklang['warnings_title_case']); ?></li>
|
||||
<li>
|
||||
<ul class="menu">
|
||||
<?php if (hesk_check_maintenance(false)): ?>
|
||||
<li>
|
||||
<a href="#">
|
||||
<h4>
|
||||
<?php echo $hesklang['mma1']; ?>
|
||||
</h4>
|
||||
<p><?php echo $hesklang['mma2']; ?></p>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if (hesk_check_kb_only(false)):
|
||||
?>
|
||||
<li>
|
||||
<a href="#">
|
||||
<h4>
|
||||
<?php echo $hesklang['kbo1']; ?>
|
||||
</h4>
|
||||
<p><?php echo $hesklang['kbo2']; ?></p>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<?php if (count($mails) > 0): ?>
|
||||
<span class="label label-success"><?php echo count($mails); ?></span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header"><?php echo sprintf($hesklang['you_have_x_messages'],
|
||||
count($mails),
|
||||
count($mails) == 1
|
||||
? $hesklang['message_lower_case']
|
||||
: $hesklang['messages_lower_case']); ?></li>
|
||||
<!-- Begin New Messages -->
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<?php foreach ($mails as $mail): ?>
|
||||
<li><!-- start message -->
|
||||
<a href="mail.php?a=read&id=<?php echo $mail['id']; ?>">
|
||||
<!-- TODO User avatars -->
|
||||
<!--<div class="pull-left">
|
||||
<img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
|
||||
</div>-->
|
||||
<h4>
|
||||
<?php echo $mail['from']; ?>
|
||||
<small><i class="fa fa-clock-o"></i> <?php echo hesk_dateToString($mail['date'], 0, 0, 0, true); ?></small>
|
||||
</h4>
|
||||
<p><?php echo $mail['subject']; ?></p>
|
||||
</a>
|
||||
</li>
|
||||
<!-- end message -->
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer"><a href="mail.php">See All Messages</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="profile.php">
|
||||
<!--<img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image">-->
|
||||
<i class="fa fa-user"></i>
|
||||
<span class="hidden-xs"><?php echo hesk_SESSION('name'); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<!-- Control Sidebar Toggle Button -->
|
||||
<li>
|
||||
<a href="index.php?a=logout&token=<?php echo hesk_token_echo(); ?>">
|
||||
<i class="octicon octicon-sign-out"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu">
|
||||
<li class="header"><?php echo $hesklang['main_navigation_uppercase']; ?></li>
|
||||
<?php
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_HOME') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="admin_main.php">
|
||||
<i class="fa fa-home" <?php echo $iconDisplay; ?>></i> <span><?php echo $hesklang['main_page']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if (hesk_checkPermission('can_man_users', 0) && hesk_checkPermission('can_man_permission_tpl', 0)) :
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_USERS') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-users" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_users']; ?></span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li>
|
||||
<a href="manage_users.php"><i class="fa fa-circle-o"></i> <?php echo $hesklang['manage_users']; ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="manage_permission_templates.php"><i class="fa fa-circle-o"></i> <?php echo $hesklang['permission_tpl_man']; ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
elseif (hesk_checkPermission('can_man_users', 0)) :
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_USERS') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="manage_users.php">
|
||||
<i class="fa fa-users" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_users']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
elseif (hesk_checkPermission('can_man_permission_tpl', 0)) :
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_USERS') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="manage_permission_templates.php">
|
||||
<i class="fa fa-users" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['permission_templates']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if (hesk_checkPermission('can_man_cat', 0)):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CATEGORIES') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="manage_categories.php">
|
||||
<i class="fa fa-pie-chart" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_cat']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if (hesk_checkPermission('can_man_canned', 0) && hesk_checkPermission('can_man_ticket_tpl', 0)):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CANNED') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-file-text-o" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_can']; ?></span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li>
|
||||
<a href="manage_canned.php"><i class="fa fa-circle-o"></i> <?php echo $hesklang['can_man_canned']; ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="manage_ticket_templates.php"><i class="fa fa-circle-o"></i> <?php echo $hesklang['ticket_tpl_man']; ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
elseif (hesk_checkPermission('can_man_canned', 0)):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CANNED') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="manage_canned.php">
|
||||
<i class="fa fa-file-text-o" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_can']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
elseif (hesk_checkPermission('can_man_ticket_tpl', 0)):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CANNED') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="manage_ticket_templates.php">
|
||||
<i class="fa fa-file-text-o" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_can']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if ($hesk_settings['kb_enable']):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_KB') {
|
||||
$active = 'active';
|
||||
}
|
||||
if (hesk_checkPermission('can_man_kb', 0)):
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="manage_knowledgebase.php">
|
||||
<i class="fa fa-book" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_kb']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="knowledgebase_private.php">
|
||||
<i class="fa fa-book" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_kb']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
endif;
|
||||
if ($modsForHesk_settings['enable_calendar'] != 0):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CALENDAR') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="calendar.php">
|
||||
<i class="fa fa-calendar" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['calendar_title_case']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if (hesk_checkPermission('can_run_reports', 0)):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_REPORTS') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="reports.php">
|
||||
<i class="fa fa-line-chart" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['reports']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
elseif (hesk_checkPermission('can_export', 0)):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_REPORTS') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="export.php">
|
||||
<i class="fa fa-line-chart" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['reports']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
$tools_count = 0;
|
||||
$dropdown_items = array();
|
||||
if (hesk_checkPermission('can_ban_emails', 0)) {
|
||||
$tools_count++;
|
||||
$dropdown_items['banned_emails'] = $hesklang['manage_banned_emails'];
|
||||
}
|
||||
if (hesk_checkPermission('can_ban_ips', 0)) {
|
||||
$tools_count++;
|
||||
$dropdown_items['banned_ips'] = $hesklang['manage_banned_ips'];
|
||||
}
|
||||
if (hesk_checkPermission('can_service_msg', 0)) {
|
||||
$tools_count++;
|
||||
$dropdown_items['service_messages'] = $hesklang['manage_service_messages'];
|
||||
}
|
||||
if (hesk_checkPermission('can_man_email_tpl', 0)) {
|
||||
$tools_count++;
|
||||
$dropdown_items['manage_email_templates'] = $hesklang['manage_email_templates'];
|
||||
}
|
||||
if (hesk_checkPermission('can_man_ticket_statuses', 0)) {
|
||||
$tools_count++;
|
||||
$dropdown_items['manage_statuses'] = $hesklang['manage_statuses'];
|
||||
}
|
||||
if (hesk_checkPermission('can_view_logs', 0)) {
|
||||
$tools_count++;
|
||||
$dropdown_items['view_message_log'] = $hesklang['view_message_log'];
|
||||
}
|
||||
|
||||
if (count($dropdown_items) > 1):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-wrench" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['tools']; ?></span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<?php foreach($dropdown_items as $path => $text): ?>
|
||||
<li>
|
||||
<a href="<?php echo $path; ?>.php"><i class="fa fa-circle-o"></i> <?php echo $text; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
elseif (count($dropdown_items) == 1):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
|
||||
$active = 'active';
|
||||
}
|
||||
reset($dropdown_items);
|
||||
$page = key($dropdown_items);
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="<?php echo $page; ?>.php">
|
||||
<i class="fa fa-wrench" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $dropdown_items[$page]; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if (hesk_checkPermission('can_man_settings', 0)):
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_SETTINGS') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="admin_settings.php">
|
||||
<i class="fa fa-cog" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['settings']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_PROFILE') {
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $active; ?> treeview">
|
||||
<a href="profile.php">
|
||||
<i class="fa fa-user" <?php echo $iconDisplay; ?>></i>
|
||||
<span><?php echo $hesklang['menu_profile']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
<div class="content-wrapper">
|
Loading…
Reference in New Issue