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'); } else { jQuery('#search-icon-button').attr('class','icon-calendar'); }