<?php 
include 'inc/conx.php'; 
if(!isset($_SESSION['name'])){
	header("LOCATION: index.php");
}
?>
<!DOCTYPE html>
<head>
	<meta charset="UTF-8" />
    <title>PHP Point Of Sale | Easy to use Online POS Software</title>
	<link rel="icon" href="images/favicon.ico" type="image/x-icon"/>	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
	<link rel="stylesheet" type="text/css" href="css/dropdown.min.css" />
	<link rel="stylesheet" type="text/css" href="css/ionicons.min.css" /> 
	<link rel="stylesheet" type="text/css" href="css/all.css?1.0" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/dropdown.min.js"></script>
	<script src="js/all.js?1.0" type="text/javascript" charset="UTF-8"></script>
		<script type="text/javascript">
	
		$.ajaxSetup ({
			cache: false,
			headers: { "cache-control": "no-cache" }
		});
		toastr.options = {
		  "closeButton": true,
		  "debug": false,
		  "newestOnTop": false,
		  "progressBar": false,
		  "positionClass": "toast-top-right",
		  "preventDuplicates": false,
		  "onclick": null,
		  "showDuration": "300",
		  "hideDuration": "1000",
		  "timeOut": "5000",
		  "extendedTimeOut": "1000",
		  "showEasing": "swing",
		  "hideEasing": "linear",
		  "showMethod": "fadeIn",
		  "hideMethod": "fadeOut"
		}
		
    $.fn.editableform.buttons = 
      '<button tabindex="-1" type="submit" class="btn btn-primary btn-sm editable-submit">'+
        '<i class="icon ti-check"></i>'+
      '</button>'+
      '<button tabindex="-1" type="button" class="btn btn-default btn-sm editable-cancel">'+
        '<i class="icon ti-close"></i>'+
      '</button>';
	  
 	  $.fn.editable.defaults.emptytext = "Empty";
		
		$(document).ready(function()
		{
			$(".wrapper.mini-bar .left-bar").hover(
			   function() {
			     $(this).parent().removeClass('mini-bar');
			   }, function() {
			     $(this).parent().addClass('mini-bar');
			   }
			 );

		    $('.menu-bar').click(function(e){                  
		    	e.preventDefault();
		        $(".wrapper").toggleClass('mini-bar');        
		    }); 
		}); 
	</script>

</head>
<body>