<?php $gestion = new gestion(); $incs = new internalIncs(); $incs->head('Accueil'); $this->headerAdmin(); ?> <div class="section admin-section"> <div class="container"> <div class="row"> <div id="map"></div> </div> <hr/> <div class="row"> <div class="col-lg-12"> <h2 class="section-title">Administration</h2> </div> <div class="row"> <?php $gestion->runningTrucks(); ?> <?php $gestion->brokenTrucks(); ?> </div> <div class="row"> <?php $gestion->currentInterventions(); ?> </div> </div>
<label for="login-remember-me"> <input type="checkbox" id="login-remember-me" name="login-remember-me" class="input-themed"> Recordar me </label> </div> </div> </div> </form> <div id="fail" class="fail" >Usuario o password incorrecto</div> </div> <?php if (isset($_POST['submit'])) { $n = $_POST['nombre']; $p = $_POST['p']; include '../db/DBGestion.php'; $gestion = new gestion(); $chek = $gestion->check($n, $p); if ($chek == true) { $sesion = new sesion(); $sesion->set($n); $sesion->setCh_Roll($gestion->ch_rol()); ?> <script type="text/javascript" language="javascript">window.location="../inicio/";</script><?php } } ?> </div> </div> </div> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script>!window.jQuery && document.write(unescape('%3Cscript src="js/vendor/jquery-1.9.1.min.js"%3E%3C/script%3E'));</script>
<?php include_once '../functions.php'; getHeader(); include_once '../db/DBGestion.php'; $gestion = new gestion(); $limite = 5; $inicio = 0; $sql = "SELECT * \n FROM usuarios as u, personas as p, roll as r \n WHERE u.id_persona=p.id_persona and u.id_roll=r.id_roll"; $result = $gestion->setQueryForResult($sql . " \n LIMIT {$inicio} , {$limite}"); $rowTodo = mysql_fetch_array($result); ?> <div class="page-content" id="contenedor"> <div class="page-header"> <div class="page-title"> <h3>Usuarios<small>Modulo de administración de usuarios (listar. agregar, modificar, eliminar).</small></h3> </div> </div> <div class="tabbable page-tabs"> <ul class="nav nav-tabs"> <li class="active"><a href="#inside" data-toggle="tab"><i class="icon-checkbox-partial"></i> Panel de usuario</a></li> </ul> <div class="tab-content"> <div class="tab-pane active fade in" id="inside"> <div class="panel panel-default"> <div class="panel-heading"><h6 class="panel-title"><i class="icon-table"></i> Listado de usuarios registrados</h6></div> <div class="datatable"> <table class="table"> <thead> <tr> <th>Id</th>