<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } if ($_POST) { if (!empty($_POST['ticket'])) { $admin->saveTicket($_POST['name'], $_POST['email'], $_POST['company'], $_POST['ticket']); } } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Users</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> <script src="bower_components/raphael/raphael-min.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>