/
var
/
www
/
barefootlaw.org
/
bios2
/
manager
/
Upload File
HOME
<?php require_once('../Connections/fleetMan.php'); ?> <?php require_once("functions.php"); $api = new fleet(); ?> <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // For security, start by assuming the visitor is NOT authorized. $isValid = False; // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. // Therefore, we know that a user is NOT logged in if that Session variable is blank. if (!empty($UserName)) { // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. // Parse the strings into arrays. $arrUsers = Explode(",", $strUsers); $arrGroups = Explode(",", $strGroups); if (in_array($UserName, $arrUsers)) { $isValid = true; } // Or, you may restrict access to only certain users based on their username. if (in_array($UserGroup, $arrGroups)) { $isValid = true; } if (($strUsers == "") && true) { $isValid = true; } } return $isValid; } $MM_restrictGoTo = "signin.php"; if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) { $MM_qsChar = "?"; $MM_referrer = $_SERVER['PHP_SELF']; if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&"; if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0) $MM_referrer .= "?" . $_SERVER['QUERY_STRING']; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location: ". $MM_restrictGoTo); exit; } ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } //Report Content $report_tables = $api->report_table(); mysql_select_db($database_fleetMan, $fleetMan); $query_user_info = "SELECT * FROM fleet_personel WHERE email = '".$_SESSION['MM_Username']."'"; $user_info = mysql_query($query_user_info, $fleetMan) or die(mysql_error()); $row_user_info = mysql_fetch_assoc($user_info); $totalRows_user_info = mysql_num_rows($user_info); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!--<link rel="shortcut icon" href="../images/favicon.png" type="image/png">--> <title><?php echo $api->site_name; ?></title> <link rel="stylesheet" href="../lib/fontawesome/css/font-awesome.css"> <link rel="stylesheet" href="../lib/weather-icons/css/weather-icons.css"> <link rel="stylesheet" href="../lib/jquery-toggles/toggles-full.css"> <link rel="stylesheet" href="../lib/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css"> <link rel="stylesheet" href="../lib/select2/select2.css"> <link rel="stylesheet" href="fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" /> <link rel="stylesheet" href="../css/quirk.css"> <script src="/lib/modernizr/modernizr.js"></script> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="../lib/html5shiv/html5shiv.js"></script> <script src="../lib/respond/respond.src.js"></script> <![endif]--> </head> <body> <header> <?php include('header.php'); ?> </header> <section> <div class="leftpanel"> <?php include('menu.php'); ?><!-- leftpanelinner --> </div><!-- leftpanel --> <div class="mainpanel"> <div class="contentpanel"> <div class="panel"> <div class="panel-heading"> <h4 class="panel-title">CREATE REPORT TEMPLATES</h4> <p>Create Custom Reports and Manage Information better.</p> </div> <div class="panel-body"> <div class="table-responsive"> <table id="dataTable1" class="table table-bordered table-striped-col"> <thead> <tr> <th>data store</th> <th>description</th> </tr> </thead> <tfoot> <tr> <th>DATA STORE</th> <th>DESCRIPTION</th> </tr> </tfoot> <tbody> <?php foreach($report_tables as $item) { ?> <tr> <td><a href="generate_template.php?type=<?php echo $item['table']; ?>" class="new_record"><?php echo strtoupper(str_replace("_"," ",$item['table'])); ?></a></td> <td><?php echo $item['description'] ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div><!-- panel --><!-- panel --> </div><!-- contentpanel --> </div><!-- mainpanel --> </section> <script src="../lib/jquery/jquery.js"></script> <script src="../lib/jquery-ui/jquery-ui.js"></script> <script src="../lib/bootstrap/js/bootstrap.js"></script> <script src="../lib/jquery-toggles/toggles.js"></script> <script src="../lib/datatables/jquery.dataTables.js"></script> <script src="../lib/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.js"></script> <script src="../lib/select2/select2.js"></script> <script src="../js/quirk.js"></script> <script> $(document).ready(function() { 'use strict'; $('#dataTable1').DataTable(); var exRowTable = $('#exRowTable').DataTable({ responsive: true, 'fnDrawCallback': function(oSettings) { $('#exRowTable_paginate ul').addClass('pagination-active-success'); }, 'ajax': 'ajax/objects.txt', 'columns': [{ 'class': 'details-control', 'orderable': false, 'data': null, 'defaultContent': '' }, { 'data': 'name' }, { 'data': 'position' }, { 'data': 'office' }, { 'data': 'start_date'}, { 'data': 'salary' } ], 'order': [[1, 'asc']] }); // Add event listener for opening and closing details $('#exRowTable tbody').on('click', 'td.details-control', function () { var tr = $(this).closest('tr'); var row = exRowTable.row( tr ); if ( row.child.isShown() ) { // This row is already open - close it row.child.hide(); tr.removeClass('shown'); } else { // Open this row row.child( format(row.data()) ).show(); tr.addClass('shown'); } }); function format (d) { // `d` is the original data object for the row return '<h4>'+d.name+'<small>'+d.position+'</small></h4>'+ '<p class="nomargin">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>'; } // Select2 $('select').select2({ minimumResultsForSearch: Infinity }); }); </script> <script type="text/javascript" src="fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script> <script type="text/javascript"> $('.fancybox').fancybox(); $(".new_record").fancybox({ type : 'iframe', autoScale: 'true', topRatio : 0, padding : 5 }); </script> </body> </html> <?php mysql_free_result($user_info); ?>