Moved header stuff to old file names, working on permission templates
This commit is contained in:
parent
1337090964
commit
e865412b5f
@ -53,8 +53,8 @@ define('MAIN_PAGE', 1);
|
||||
define('PAGE_TITLE', 'ADMIN_HOME');
|
||||
|
||||
/* Print header */
|
||||
require_once(HESK_PATH . 'inc/header_new_admin.inc.php');
|
||||
require_once(HESK_PATH . 'inc/new_admin_header_and_sidebar.inc.php');
|
||||
require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
|
||||
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
|
||||
/* Reset default settings? */
|
||||
if (isset($_GET['reset']) && hesk_token_check()) {
|
||||
|
@ -37,6 +37,7 @@ define('PAGE_TITLE', 'ADMIN_USERS');
|
||||
require(HESK_PATH . 'hesk_settings.inc.php');
|
||||
require(HESK_PATH . 'inc/common.inc.php');
|
||||
require(HESK_PATH . 'inc/admin_functions.inc.php');
|
||||
require(HESK_PATH . 'inc/mail_functions.inc.php');
|
||||
hesk_load_database_functions();
|
||||
|
||||
hesk_session_start();
|
||||
@ -96,23 +97,25 @@ while ($row = hesk_dbFetchAssoc($res)) {
|
||||
array_push($categories, $row);
|
||||
}
|
||||
?>
|
||||
<div class="row move-down-20">
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
hesk_handle_messages();
|
||||
?>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4><?php echo $hesklang['manage_permission_templates']; ?>
|
||||
<i class="fa fa-question-circle settingsquestionmark" data-toggle="tooltip" data-placement="right"
|
||||
title="<?php echo $hesklang['manage_permission_templates_help']; ?>"></i>
|
||||
<span class="nu-floatRight panel-button">
|
||||
<a href="#" data-toggle="modal" data-target="#modal-template-new" class="btn btn-success nu-floatRight">
|
||||
<i class="fa fa-plus-circle"></i> <?php echo $hesklang['create_new_template']; ?>
|
||||
</a>
|
||||
</span>
|
||||
</h4>
|
||||
<section class="content">
|
||||
<?php hesk_handle_messages(); ?>
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h1 class="box-title">
|
||||
<?php echo $hesklang['manage_permission_templates']; ?>
|
||||
<i class="fa fa-question-circle settingsquestionmark" data-toggle="tooltip" data-placement="right"
|
||||
title="<?php echo $hesklang['manage_permission_templates_help']; ?>"></i>
|
||||
</h1>
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||
<i class="fa fa-minus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<a href="#" data-toggle="modal" data-target="#modal-template-new" class="btn btn-success nu-floatRight">
|
||||
<i class="fa fa-plus-circle"></i> <?php echo $hesklang['create_new_template']; ?>
|
||||
</a>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th><?php echo $hesklang['name']; ?></th>
|
||||
@ -129,23 +132,23 @@ while ($row = hesk_dbFetchAssoc($res)) {
|
||||
<i class="fa fa-pencil icon-link" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['view_permissions_for_this_template'] ?>"></i></a>
|
||||
<?php if ($row['id'] == 1) { ?>
|
||||
<i class="fa fa-star icon-link orange" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['admin_cannot_be_staff']; ?>"></i></a>
|
||||
<?php } elseif ($row['heskprivileges'] == 'ALL' && $row['categories'] == 'ALL'){ ?>
|
||||
<a href="manage_permission_templates.php?a=deladmin&id=<?php echo $row['id']; ?>">
|
||||
<i class="fa fa-star icon-link orange" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['template_has_admin_privileges']; ?>"></i></a>
|
||||
<?php } elseif ($row['id'] != 2) { ?>
|
||||
<a href="manage_permission_templates.php?a=addadmin&id=<?php echo $row['id']; ?>">
|
||||
<i class="fa fa-star-o icon-link gray" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['template_has_no_admin_privileges']; ?>"></i></a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<i class="fa fa-star-o icon-link gray" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['staff_cannot_be_admin']; ?>"></i>
|
||||
<?php
|
||||
}
|
||||
<i class="fa fa-star icon-link orange" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['admin_cannot_be_staff']; ?>"></i></a>
|
||||
<?php } elseif ($row['heskprivileges'] == 'ALL' && $row['categories'] == 'ALL'){ ?>
|
||||
<a href="manage_permission_templates.php?a=deladmin&id=<?php echo $row['id']; ?>">
|
||||
<i class="fa fa-star icon-link orange" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['template_has_admin_privileges']; ?>"></i></a>
|
||||
<?php } elseif ($row['id'] != 2) { ?>
|
||||
<a href="manage_permission_templates.php?a=addadmin&id=<?php echo $row['id']; ?>">
|
||||
<i class="fa fa-star-o icon-link gray" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['template_has_no_admin_privileges']; ?>"></i></a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<i class="fa fa-star-o icon-link gray" data-toggle="tooltip"
|
||||
title="<?php echo $hesklang['staff_cannot_be_admin']; ?>"></i>
|
||||
<?php
|
||||
}
|
||||
if ($row['id'] != 1 && $row['id'] != 2):
|
||||
?>
|
||||
<a href="manage_permission_templates.php?a=delete&id=<?php echo $row['id']; ?>">
|
||||
@ -159,7 +162,7 @@ while ($row = hesk_dbFetchAssoc($res)) {
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
foreach ($templates as $template) {
|
||||
createEditModal($template, $featureArray, $categories);
|
||||
@ -207,8 +210,10 @@ function createEditModal($template, $features, $categories)
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<?php if ($showNotice): ?>
|
||||
<div class="alert alert-info">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $hesklang['template_is_admin_cannot_change']; ?>
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-info">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $hesklang['template_is_admin_cannot_change']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="form-group">
|
||||
|
@ -172,8 +172,8 @@ if ($action = hesk_REQUEST('a')) {
|
||||
|
||||
|
||||
/* Print header */
|
||||
require_once(HESK_PATH . 'inc/header_new_admin.inc.php');
|
||||
require_once(HESK_PATH . 'inc/new_admin_header_and_sidebar.inc.php');
|
||||
require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
|
||||
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
?>
|
||||
<section class="content">
|
||||
<?php hesk_handle_messages(); ?>
|
||||
|
@ -51,8 +51,8 @@ hesk_checkPermission('can_view_tickets');
|
||||
|
||||
|
||||
/* Print header */
|
||||
require_once(HESK_PATH . 'inc/header_new_admin.inc.php');
|
||||
require_once(HESK_PATH . 'inc/new_admin_header_and_sidebar.inc.php');
|
||||
require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
|
||||
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
|
||||
?>
|
||||
<section class="content">
|
||||
|
@ -2,10 +2,19 @@
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.red {
|
||||
.red,
|
||||
.important {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.green {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.orange {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
.gray {
|
||||
color: grey;
|
||||
}
|
@ -37,42 +37,17 @@ if (!defined('IN_SCRIPT')) {
|
||||
|
||||
$modsForHesk_settings = mfh_getSettings();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!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'; ?>">
|
||||
<?php if ($modsForHesk_settings['rtl']) { ?>
|
||||
<link href="<?php echo HESK_PATH; ?>hesk_style_RTL.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||
rel="stylesheet"/>
|
||||
<?php } else { ?>
|
||||
<link href="<?php echo HESK_PATH; ?>hesk_style.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||
rel="stylesheet"/>
|
||||
<?php } ?>
|
||||
<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-theme.css?v=21" type="text/css"
|
||||
rel="stylesheet" <?php if ($modsForHesk_settings['use_bootstrap_theme'] == 0) {
|
||||
echo 'disabled';
|
||||
} ?>>
|
||||
<?php if ($modsForHesk_settings['rtl']) { ?>
|
||||
<link href="<?php echo HESK_PATH; ?>css/bootstrap-rtl.min.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>"
|
||||
type="text/css" rel="stylesheet"/>
|
||||
<link href="<?php echo HESK_PATH; ?>css/mods-for-hesk.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||
rel="stylesheet"/>
|
||||
<link href="<?php echo HESK_PATH; ?>css/hesk_newStyleRTL.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>"
|
||||
type="text/css" rel="stylesheet"/>
|
||||
<?php } else { ?>
|
||||
<link href="<?php echo HESK_PATH; ?>css/mods-for-hesk.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||
rel="stylesheet"/>
|
||||
<link href="<?php echo HESK_PATH; ?>css/hesk_newStyle.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||
rel="stylesheet"/>
|
||||
<?php } ?>
|
||||
<link href="<?php echo HESK_PATH; ?>css/bootstrap-iconpicker.min.css" rel="stylesheet">
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.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">
|
||||
@ -81,7 +56,12 @@ $modsForHesk_settings = mfh_getSettings();
|
||||
<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>
|
||||
@ -236,7 +216,7 @@ $modsForHesk_settings = mfh_getSettings();
|
||||
|
||||
</head>
|
||||
<body onload="<?php echo $onload;
|
||||
unset($onload); ?>">
|
||||
unset($onload); ?>" class="hold-transition skin-blue sidebar-mini">
|
||||
|
||||
<?php
|
||||
include(HESK_PATH . 'header.txt');
|
||||
|
@ -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">
|
@ -38,7 +38,7 @@ function hesk_profile_tab($session_array = 'new', $is_profile_page = true, $acti
|
||||
{
|
||||
global $hesk_settings, $hesklang, $can_reply_tickets, $can_view_tickets, $can_view_unassigned;
|
||||
?>
|
||||
<div role="tabpanel">
|
||||
<div role="tabpanel" class="nav-tabs-custom">
|
||||
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
|
@ -33,68 +33,426 @@ if (!defined('IN_SCRIPT')) {
|
||||
die('Invalid attempt');
|
||||
}
|
||||
|
||||
$num_mail = hesk_checkNewMail();
|
||||
$mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hesklang);
|
||||
?>
|
||||
<?php
|
||||
// Show a notice if we are in maintenance mode
|
||||
if (hesk_check_maintenance(false)) {
|
||||
echo '<div style="margin-bottom: -20px">';
|
||||
hesk_show_notice($hesklang['mma2'], $hesklang['mma1'], false);
|
||||
echo '</div>';
|
||||
}
|
||||
<div class="wrapper">
|
||||
<header class="main-header">
|
||||
|
||||
// Show a notice if we are in "Knowledgebase only" mode
|
||||
if (hesk_check_kb_only(false)) {
|
||||
echo '<div style="margin-bottom: -20px">';
|
||||
hesk_show_notice($hesklang['kbo2'], $hesklang['kbo1'], false);
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
<div class="enclosing">
|
||||
<nav class="navbar navbar-default navbar-static-top" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<!-- 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>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="<?php echo $modsForHesk_settings['navbar_title_url']; ?>"><?php echo $hesk_settings['hesk_title'] ?></a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<?php
|
||||
</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 = ' class="active"';
|
||||
$active = 'active';
|
||||
}
|
||||
?>
|
||||
<li<?php echo $active; ?>><a href="profile.php"><i
|
||||
class="fa fa-user" <?php echo $iconDisplay; ?>></i> <?php echo $hesklang['menu_profile']; ?>
|
||||
</a></li>
|
||||
<?php
|
||||
$active = '';
|
||||
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_MAIL') {
|
||||
$active = ' class="active"';
|
||||
}
|
||||
?>
|
||||
<li<?php echo $active; ?>><a href="mail.php"><i
|
||||
class="fa fa-envelope-o" <?php echo $iconDisplay; ?>></i> <?php echo $hesklang['menu_msg']; ?>
|
||||
<?php if ($num_mail != 0) {
|
||||
echo '<span class="badge">';
|
||||
echo $num_mail;
|
||||
unset($num_mail);
|
||||
echo '</span>';
|
||||
} ?>
|
||||
</a></li>
|
||||
<?php include('custom/show_admin_nav-custom.inc.php');
|
||||
$iconDisplay = ($iconDisplay == '') ? 'style="font-size: 14px"' : $iconDisplay;
|
||||
?>
|
||||
<li><a href="index.php?a=logout&token=<?php echo hesk_token_echo(); ?>"><span
|
||||
class="octicon octicon-sign-out" <?php echo $iconDisplay; ?>></span> <?php echo $hesklang['logout']; ?>
|
||||
</a></li>
|
||||
<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>
|
||||
</div>
|
||||
<!-- /.navbar-collapse -->
|
||||
</nav>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
<div class="content-wrapper">
|
Loading…
x
Reference in New Issue
Block a user