Skip to content
Snippets Groups Projects
dashboard.php 2.92 KiB
Newer Older
  • Learn to ignore specific revisions
  • Jared Hancock's avatar
    Jared Hancock committed
    <?php
    /*********************************************************************
        dashboard.php
    
        Staff's Dashboard - basic stats...etc.
    
        Peter Rotich <peter@osticket.com>
    
        Copyright (c)  2006-2013 osTicket
    
    Jared Hancock's avatar
    Jared Hancock committed
        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');");
    
    Jared Hancock's avatar
    Jared Hancock committed
    require(STAFFINC_DIR.'header.inc.php');
    
    ?>
    
    <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>
    
    Jared Hancock's avatar
    Jared Hancock committed
    <script type="text/javascript" src="js/dashboard.inc.js"></script>
    
    
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
    
    Jared Hancock's avatar
    Jared Hancock committed
    <link rel="stylesheet" type="text/css" href="css/dashboard.css"/>
    
    <h2><?php echo __('Ticket Activity');
    ?>&nbsp;<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>&nbsp;&nbsp;<?php
                echo __('Report timeframe'); ?>:
    
            <input type="text" class="dp input-medium search-query"
    
                name="start" placeholder="<?php echo __('Last month');?>"/>
    
        </label>
    
            <?php echo __('period');?>:
    
            <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>
    
    
    <h2><?php echo __('Statistics'); ?>&nbsp;<i class="help-tip icon-question-sign" href="#statistics"></i></h2>
    
    <p><?php echo __('Statistics of tickets organized by department, help topic, and agent.');?></p>
    
    <ul class="nav nav-tabs" id="tabular-navigation"></ul>
    
    
    <div id="table-here"></div>
    
    
    Peter Rotich's avatar
    Peter Rotich committed
    <?php
    
    Jared Hancock's avatar
    Jared Hancock committed
    include(STAFFINC_DIR.'footer.inc.php');
    ?>