<?php 
// *************************************************************************
// *                                                                       *
// * DEPRIXA -  logistics Worldwide Software                               *
// * Copyright (c) JAOMWEB. All Rights Reserved                            *
// *                                                                       *
// *************************************************************************
// *                                                                       *
// * Email: osorio2380@yahoo.es                                            *
// * Website: http://www.jaom.info                                         *
// *                                                                       *
// *************************************************************************
// *                                                                       *
// * This software is furnished under a license and may be used and copied *
// * only  in  accordance  with  the  terms  of such  license and with the *
// * inclusion of the above copyright notice.                              *
// * If you Purchased from Codecanyon, Please read the full License from   *
// * here- http://codecanyon.net/licenses/standard                         *
// *                                                                       *
// *************************************************************************
 
error_reporting(E_ERROR | E_WARNING | E_PARSE);
session_start();
require_once('database-settings.php');
require_once('database.php');
require_once('library.php');
isUser();	
?>

<!DOCTYPE html>
<html>
 
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- Page Description and Author -->
	<meta name="description" content="Courier Deprixa V2.5 "/>
	<meta name="keywords" content="Courier DEPRIXA-Integral Web System" />
	<meta name="author" content="Jaomweb">

	<!-- App Favicon -->
	<link rel="shortcut icon" href="assets/images/favicon.ico">

	<!-- App title -->
	<title>DEPRIXA | SERVICE MODE </title>
	
	<!-- Switchery css -->
    <link href="assets/plugins/switchery/switchery.min.css" rel="stylesheet" />

    <!-- App CSS -->
	<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
    
	<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" type="text/css" />
	<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css" type="text/css" />
	<link rel="stylesheet" href="bower_components/simple-line-icons/css/simple-line-icons.css" type="text/css" />
	<link rel="stylesheet" href="css/font.css" type="text/css" />
	<link href="css/estilos.css" rel="stylesheet">
	<link href="js/css/dataTables.bootstrap.css" rel="stylesheet">
	<link href="js/plugins/sweetalert/css/sweetalert.css" rel="stylesheet">
	<link rel="stylesheet" href="css/footer-basic-centered.css">
  
</head>
<body>
<?php
include("header.php");
?>

<!-- ============================================================== -->
        <!-- Start right Content here -->
        <!-- ============================================================== -->
        <div class="wrapper">
            <div class="container">

                <!-- Page-Title -->
				<?php
				include("icon_settings.php");
				?>

		        <div class="row">
                    <div class="col-sm-12">
                        <div class="card-box table-responsive">
							<table border="0" align="center" width="100%">
								  <tr>
								  <td class="TrackTitle" valign="top"><div  align=""><h3 class="classic-title1"><span><strong></strong></span></h3>
								</tr>
							<div class="row">
									<div class="col-xs-12" align="center">
									<h2>Add New Type of Shipments</h2>
									<br>
									</div>
								</div>

								<div class="row">
									<div class="col-xs-12">
									<!--Botones principales-->
									<button type="button" class="btn btn-md btn-success" data-toggle="modal" data-target="#nuevo"><i class="fa fa-user-plus"></i>
									 New Type Shipments</button>
									 <button type="button" class="btn btn-md btn-info" id="recarga"><i class="fa fa-refresh"></i>
									 To Update</button>
									</div>
								<div class="col-xs-12">
								<div class="table">
								<br>
								<!--Inicio de tabla usuarios-->
								<table id="tabla-usuarios" class="table table-striped table-bordered" cellspacing="0" width="100%">
								<!--encabezado tabla-->
								<thead>
											<tr>
												<th>Name Shipments</th>
												<th>Services</th>
												<th>Delivery Time</th>
												<th>observations</th>									
												<th>Status</th>
												<th>Actions</th>
											</tr>
										</thead>

								</table>
								<!--fin de tabla-->

								</div>
								</div>
								</div>


								<!-- Modal nuevo usuario -->
								<div class="modal fade" id="nuevo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
								  <div class="modal-dialog">
									<div class="modal-content">
									  <div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
										<h4 class="modal-title" id="myModalLabel"><i class="fa fa-user-plus"></i> New Type Shipments</h4>
									  </div>
									  <div class="modal-body">
									  <!--Cuerpo del modal aquí el formulario-->
												   <form class="form-horizontal" id="formularioNuevo">
								  <div class="form-group " id="gnombre">
									<label for="name" class="col-sm-2 control-label">Name Shipments </label>
									<div class="col-sm-10">
									  <input type="text" class="form-control name" name="name"  placeholder="Name Shipments">
									</div>
								  </div>
								  <div class="form-group" id="gapellido">
									<label for="services" class="col-sm-2 control-label">Services </label>
									<div class="col-sm-10">
									  <input type="text" class="form-control services" name="services"   placeholder="Services ">
									</div>
								  </div>
								  <div class="form-group" id="gtelefono">
									<label for="delivery_time" class="col-sm-2 control-label">Delivery Time</label>
									<div class="col-sm-10">
									  <input class="form-control delivery_time" name="deliverytime" placeholder="Delivery Time">						
									  
									</div>
								  </div>
								  <div class="form-group" id="gemail">
									<label for="observations" class="col-sm-2 control-label">Observations</label>
									<div class="col-sm-10">
									  <input type="text" class="form-control observations" name="observations"  placeholder="Observations">
									</div>
								  </div>					  
								  <div class="form-group">
									<div class="col-sm-offset-2 col-sm-10">
										<div class="checkbox checkbox-success">
											<input id="checkbox3" type="checkbox" name="estado" value="1" checked>
											<label for="checkbox3">
												Success
											</label>
										</div>
									</div>
								  </div>
								  
								</form>
								<!--Fin del cuerpo del modal-->
									  </div>
									  <div class="modal-footer">
										<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>
								 Close</button>
										<button type="button" id="guardarNuevo" class="btn btn-primary"><i class="fa fa-floppy-o"></i>
								 Save</button>
									  </div>
									</div>
								  </div>
								</div>
								<!--fin de modal nuevo usuario-->


								<!-- Modal para editar Usuario -->
								<div class="modal fade" id="editar" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
								  <div class="modal-dialog">
									<div class="modal-content">
									  <div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
										<h4 class="modal-title" id="myModalLabel"><i class="fa fa-pencil-square-o"></i>
								 Edit Type Shipments</h4>
									  </div>
									  <div class="modal-body">
								<!--Cuerpo del modal aquí el formulario-->
									<form class="form-horizontal" id="formularioEditar">
								  <div class="form-group" id="Enombre">
									<label for="name" class="col-sm-2 control-label">Name Shipments  </label>
									<div class="col-sm-10">
									  <input type="text" class="form-control name" name="name" placeholder="Name Shipments ">
									</div>
								  </div>
								  <div class="form-group" id="Eapellido">
									<label for="services" class="col-sm-2 control-label">Services </label>
									<div class="col-sm-10">
									  <input type="text" class="form-control services" name="services" placeholder="Services ">
									</div>
								  </div>
								  <div class="form-group" id="Etelefono">
									<label for="delivery_time" class="col-sm-2 control-label">Delivery Time</label>
									<div class="col-sm-10">
									  <input class="form-control delivery_time" name="deliverytime" placeholder="Delivery Time ">							
									</div>
								  </div>
								  <div class="form-group" id="Eemail">
									<label for="observations" class="col-sm-2 control-label">Observations</label>
									<div class="col-sm-10">
									  <input type="text" class="form-control observations" name="observations"  placeholder="Observations ">
									</div>
								  </div>					  
								  <div class="form-group">
									<div class="col-sm-offset-2 col-sm-10">
										<div class="checkbox checkbox-success">
											<input id="checkbox3" type="checkbox" name="estado" value="1" >
											<label for="checkbox3">
												Success
											</label>
										</div>
									</div>
								  </div>
								  <!--campo oculto-->
								  <input type="hidden" name="id" id="id_user">
								</form>   
								<!--Fin del cuerpo del modal-->  
									  </div>
									  <div class="modal-footer">
										<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
										<button type="button" id="actualizar" class="btn btn-primary">Save</button>
									  </div>
									</div>
								  </div>
								</div>
								<!--fin de modal nuevo usuario-->
                        </div>
                    </div>
                </div>
                <!-- end row -->
		
		<!-- Footer -->
		<?php
			include("footer.php");
		?>
		<!-- End Footer -->

         </div> <!-- container -->
        </div> <!-- End wrapper -->
 
		<script type='text/javascript' src="js/jquery.js"></script>
		<script type='text/javascript' src="js/bootstrap.min.js"></script> 
		<script type='text/javascript' src="plugins/DataTables/js/jquery.dataTables.js"></script>
		<script type='text/javascript' src="plugins/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
		<script type='text/javascript' src="js/dataTables.bootstrap.js"></script> 
		<script type='text/javascript' src="plugins/bootstrap-notify/bootstrap-notify.min.js"></script> 
		<script type='text/javascript' src="plugins/sweetalert/js/sweetalert.min.js"></script>  

		<script type='text/javascript' src="js/modebookings.js"></script>
		
		<!-- App js -->
        <script src="assets/js/jquery.core.js"></script>
        <script src="assets/js/jquery.app.js"></script>

  </body>
</html> 
