|
|
|
@ -37,6 +37,7 @@ 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/reporting_functions.inc.php');
|
|
|
|
|
require(HESK_PATH . 'inc/mail_functions.inc.php');
|
|
|
|
|
hesk_load_database_functions();
|
|
|
|
|
|
|
|
|
|
hesk_session_start();
|
|
|
|
@ -214,15 +215,8 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');
|
|
|
|
|
/* Print main manage users page */
|
|
|
|
|
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="row move-down-20">
|
|
|
|
|
<div align="left" class="col-md-4">
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
<?php echo $hesklang['reports_tab']; ?> <a href="#"
|
|
|
|
|
onclick="javascript:alert('<?php echo hesk_makeJsString($hesklang['reports_intro']); ?>')"><i
|
|
|
|
|
class="fa fa-question-circle settingsquestionmark"></i></a>
|
|
|
|
|
</div>
|
|
|
|
|
<section class="content">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<?php if (hesk_checkPermission('can_export', 0)) {
|
|
|
|
|
$canExport = true;
|
|
|
|
|
$panelMargin = '-15px';
|
|
|
|
@ -230,16 +224,28 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|
|
|
|
$canExport = false;
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="panel-body" <?php if ($canExport) echo 'style="margin-top: -15px";'; ?>>
|
|
|
|
|
<div class="box-header">
|
|
|
|
|
<h1 class="box-title">
|
|
|
|
|
<?php echo $hesklang['reports_tab']; ?> <a href="#"
|
|
|
|
|
onclick="javascript:alert('<?php echo hesk_makeJsString($hesklang['reports_intro']); ?>')"><i
|
|
|
|
|
class="fa fa-question-circle settingsquestionmark"></i></a>
|
|
|
|
|
</h1><br>
|
|
|
|
|
<?php
|
|
|
|
|
// Show a link to export.php if user has permission to do so
|
|
|
|
|
if ($canExport) {
|
|
|
|
|
echo '<small><a title="' . $hesklang['export'] . '" href="export.php">' . $hesklang['export'] . '</a></small><div class="blankSpace"></div>';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<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">
|
|
|
|
|
<form action="reports.php" method="get" name="form1" role="form">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="dtrg" class="control-label"><?php echo $hesklang['dtrg']; ?></b>:</label>
|
|
|
|
|
<label for="dtrg" class="control-label"><?php echo $hesklang['dtrg']; ?>:</label>
|
|
|
|
|
|
|
|
|
|
<div class="radio move-right-20">
|
|
|
|
|
<input type="radio" name="w" value="0" id="w0" <?php echo $selected['w'][0]; ?> />
|
|
|
|
@ -309,32 +315,37 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|
|
|
|
value="4" <?php echo $selected['type'][4]; ?>><?php echo $hesklang['t4']; ?></option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group text-center">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<input type="submit" value="<?php echo $hesklang['dire']; ?>" class="btn btn-default"/>
|
|
|
|
|
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>"/>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header">
|
|
|
|
|
<h1 class="box-title">
|
|
|
|
|
<?php
|
|
|
|
|
if ($date_from == $date_to) {
|
|
|
|
|
echo hesk_dateToString($date_from, 0);
|
|
|
|
|
} else {
|
|
|
|
|
echo hesk_dateToString($date_from, 0) . ' - ' . hesk_dateToString($date_to, 0);
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</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="col-sm-8">
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
<?php
|
|
|
|
|
/* This will handle error, success and notice messages */
|
|
|
|
|
hesk_handle_messages();
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
if ($date_from == $date_to) {
|
|
|
|
|
?>
|
|
|
|
|
<h3><?php echo hesk_dateToString($date_from, 0); ?></h3>
|
|
|
|
|
<div class="footerWithBorder blankSpace"></div>
|
|
|
|
|
<?php
|
|
|
|
|
} else {
|
|
|
|
|
?>
|
|
|
|
|
<h3><?php echo hesk_dateToString($date_from, 0); ?> - <?php echo hesk_dateToString($date_to, 0); ?></h3>
|
|
|
|
|
<div class="footerWithBorder blankSpace"></div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Show a note if reports are limited
|
|
|
|
|
if (!$can_run_reports_full) {
|
|
|
|
@ -909,6 +920,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
require_once(HESK_PATH . 'inc/footer.inc.php');
|
|
|
|
|