Newer
Older
<?php
/*********************************************************************
dashboard.php
Staff's Dashboard - basic stats...etc.
Peter Rotich <peter@osticket.com>
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require('staff.inc.php');
$nav->setTabActive('dashboard');
$ost->addExtraHeader('<meta name="tip-namespace" content="dashboard.dashboard" />',
"$('#content').data('tipNamespace', 'dashboard.dashboard');");
?>
<script type="text/javascript" src="js/raphael-min.js"></script>
<script type="text/javascript" src="js/g.raphael.js"></script>
<script type="text/javascript" src="js/g.line-min.js"></script>
<script type="text/javascript" src="js/g.dot-min.js"></script>
<script type="text/javascript" src="js/bootstrap-tab.js"></script>
<script type="text/javascript" src="js/dashboard.inc.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="css/dashboard.css"/>
<h2><?php echo __('Ticket Activity');
?> <i class="help-tip icon-question-sign" href="#ticket_activity"></i></h2>
<p><?php echo __('Select the starting time and period for the system activity graph');?></p>
<form class="well form-inline" id="timeframe-form">
<label>
<i class="help-tip icon-question-sign" href="#report_timeframe"></i> <?php
echo __('Report timeframe'); ?>:
<input type="text" class="dp input-medium search-query"
name="start" placeholder="<?php echo __('Last month');?>"/>
<select name="period">
<option value="now" selected="selected"><?php echo __('Up to today');?></option>
<option value="+7 days"><?php echo __('One Week');?></option>
<option value="+14 days"><?php echo __('Two Weeks');?></option>
<option value="+1 month"><?php echo __('One Month');?></option>
<option value="+3 months"><?php echo __('One Quarter');?></option>
<button class="btn" type="submit"><?php echo __('Refresh');?></button>
</form>
<!-- Create a graph and fetch some data to create pretty dashboard -->
<div style="position:relative">
<div id="line-chart-here" style="height:300px"></div>
<div style="position:absolute;right:0;top:0" id="line-chart-legend"></div>
</div>
<hr/>
<h2><?php echo __('Statistics'); ?> <i class="help-tip icon-question-sign" href="#statistics"></i></h2>
<p><?php echo __('Statistics of tickets organized by department, help topic, and staff.');?></p>
<ul class="nav nav-tabs" id="tabular-navigation"></ul>