<?php if (!defined('PARENT')) { exit; } if (isset($_GET['edit'])) { $_GET['edit'] = (int) $_GET['edit']; $EDIT = mswGetTableData('responses', 'id', $_GET['edit']); checkIsValid($EDIT); $deptArr = $EDIT->departments != '0' ? explode(',', $EDIT->departments) : array(); } ?> <div class="content"> <div class="header"> <h1 class="page-title"><?php echo isset($_GET['edit']) ? $msg_response13 : $msg_adheader53; ?> </h1> <span class="clearfix"></span> </div> <ul class="breadcrumb"> <li><?php echo $msg_adheader13; ?> <span class="divider">/</span></li> <li class="active"><?php
Script: Maian Support Programmed & Designed by: David Ian Bennett E-Mail: support@maianscriptworld.co.uk Software Website: http://www.maiansupport.com Script Portal: http://www.maianscriptworld.co.uk ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This File: graph.php Description: System File ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT') || !isset($_GET['id'])) { $HEADERS->err403(true); } // Access.. if (!in_array($cmd, $userAccess) && $MSTEAM->id != '1') { $HEADERS->err403(true); } // Lets check someone isn`t trying to view the admin user.. if ($_GET['id'] == '1' && $MSTEAM->id != '1') { $HEADERS->err403(true); } $U = mswGetTableData('users', 'id', (int) $_GET['id']); checkIsValid($U); $title = $msg_user86 . ' (' . mswSpecialChars($U->name) . ')'; $loadJQAPI = true; $loadJQPlot = true; include PATH . 'templates/header.php'; include PATH . 'templates/system/team/graph.php'; include PATH . 'templates/footer.php';
<?php if (!defined('PARENT')) { exit; } $_GET['id'] = (int) $_GET['id']; $USER = mswGetTableData('users', 'id', $_GET['id']); checkIsValid($USER); // For graphs.. $dateRange = '-6 months'; $colors = array('#c8c8cb', '#65718a'); $from = isset($_GET['from']) && $MSDT->mswDatePickerFormat($_GET['from']) != '0000-00-00' ? $_GET['from'] : $MSDT->mswConvertMySQLDate(date('Y-m-d', strtotime($dateRange, $MSDT->mswTimeStamp()))); $to = isset($_GET['to']) && $MSDT->mswDatePickerFormat($_GET['to']) != '0000-00-00' ? $_GET['to'] : $MSDT->mswConvertMySQLDate(date('Y-m-d', $MSDT->mswTimeStamp())); include PATH . 'control/classes/class.graphs.php'; $MSGRAPH = new graphs(); $MSGRAPH->settings = $SETTINGS; $MSGRAPH->datetime = $MSDT; $MSGRAPH->range = array($from, $to); $buildGraph = $MSGRAPH->graph('responses'); ?> <div class="content"> <script type="text/javascript"> //<![CDATA[ <?php include PATH . 'templates/date-pickers.php'; ?> function searchToggle() { jQuery('#b1').toggle(); if (jQuery('#b1').css('display')!='none') { jQuery('input[name="q"]').focus(); jQuery('#search-icon-button').attr('class','icon-remove');
<?php if (!defined('PARENT')) { exit; } checkIsValid($SUPTICK); $countOfCusFields = mswRowCount('cusfields WHERE `enField` = \'yes\''); $dept = array(); ?> <div class="content"> <script type="text/javascript"> //<![CDATA[ function addTicketCusFields(dept) { jQuery(document).ready(function() { jQuery.ajax({ url: 'index.php', data: 'ajax=add-cus-field&dept='+dept, dataType: 'json', success: function (data) { if (data['fields']) { if (jQuery('#cusFieldsTab').css('display')=='none') { jQuery('#cusFieldsTab').show(); } jQuery('#customFieldsArea').html(data['fields']); } else { if (jQuery('#cusFieldsTab').css('display')!='none') { jQuery('#cusFieldsTab').hide(); } jQuery('#customFieldsArea').html(data['fields']); } }