<!DOCTYPE html>
<!--Formulario que registra a los usuarios (Franquiciatario)-->
<html>
<div id="page-content-wrapper">
  <div class="page-content inset">
<div class="row">
<div class="col-md-12">

<head>
  <!-- Manda a traer el javascript para validar el formulario -->
  <script type="text/javascript" src="<?php echo base_url()?>assets/dist/js/usuarios.js"></script>
   <link rel="stylesheet" href="<?php echo base_url().'assets/dist/css/validacion.css'?>">
   <link rel='stylesheet' href="<?php echo base_url().'assets/dist/css/styles.css'?>">
	<link rel="stylesheet" type="text/css" href='<?php echo base_url()?>assets/dist/css/styleTable.css' /> 
   <link rel="stylesheet" type="text/css" href='<?php echo base_url()?>assets/dist/css/table.css' />
  <style>
  .doubleScroll-scroll-wrapper{
		display:none;
	}
  </style>
  <link rel="stylesheet" href="<?php echo base_url().'assets/plugins/select/bootstrap-select.min.css'?>">
		<!-- Latest compiled and minified JavaScript -->
		<script src="<?php echo base_url().'assets/plugins/select/bootstrap-select.min.js'?>"></script>

  </head>

<center><h1>Agregar Usuario</h1></center>
<form id="formUsuario" autocomplete="off">
<div class="form-group modal-dialog modal-lg">
  <div class="col-md-6">
    <label for="name1">Nombre</label>
    <input type="text" maxlength="30" minlength="3"  required="" class="form-control" id="txtnombre_completo" name="txtnombre_completo" placeholder="Nombre "  onkeypress="return validaLetra(event)" >
  </div>
  <div class="col-md-6">
    <label for="name1">Apellido Paterno</label>
    <input type="text" maxlength="25" minlength="3"  required="" class="form-control" id="txtapellido_paterno" name="txtapellido_paterno" placeholder="Apellido Paterno" onkeypress="return validaLetra(event)">
  </div>
  <div class="col-md-6">
    <label for="name1">Apellido Materno</label>
    <input type="text" maxlength="25" minlength="3"  required="" class="form-control" id="txtapellido_materno" name="txtapellido_materno" placeholder="Apellido Materno" onkeypress="return validaLetra(event)">
  </div>
  <div class="col-md-6">
    <label for="name1">Usuario</label>
    <input type="text" maxlength="25" minlength="6"  required="" class="form-control" id="text_usuario" name="text_usuario" placeholder="Introduce un usuario con mínimo 6 caracteres"  >
  </div>
  <div class="col-md-6">
    <label for="name1">Contraseña</label>
    <input type="password" class="form-control" name="txt_contrasenia" id="txt_contrasenia" placeholder="Contraseña" maxlength="20" required="">
  </div>
  <div class="col-md-6">
    <label for="name1">Fecha de Nacimiento</label>
    <input type="date" class="form-control" name="text_fecha"  id="text_fecha" required="">
  </div>
  <div class="col-md-6">
    <label for="name1">Número Telefonico</label>
    <input type="tel" class="form-control" id="text_telefono" name="text_telefono" minlength="10" maxlength="10" placeholder="2226887807" onkeypress="return valida(event)" required="">  
  </div>
  <div class="col-md-6">
    <label for="name1">Dirección</label>
    <input type="text" class="form-control" id="text_direccion" name="text_direccion" placeholder="Dirección" required="" minlength="15">
  </div>
  <div class="col-md-6">
    <label for="name1">Rol</label>
    <select id="rol"  class="form-control" name="rol" required=""> 
    <option value="">--- Selecciona la opción ---</option>
    <?php foreach ($ReRol as $i => $Rol)    
    echo'<option value="',$i,'">',$Rol,'</option>'; ?> </select>
  </div>
  <div class="col-md-6">
    <label for="Estatus">Estado</label>
    <select id= "Estatus" name="Estatus" class="form-control" required="">    
    <option value="">--- Selecciona la opción ---</option>
    <option value="Activo">Activo</option>
    <option value="Inactivo">Inactivo</option>
    </select> 
  </div>
  <div class="col-md-6">
    <label for="name1">Profesión</label>
    <input type="text" class="form-control" id="text_profesion" name="text_profesion" placeholder="Profesión" required="">
  </div>
  <div class="col-md-6">
    <label for="name1">Franquicias</label>
    <select id="franquicias"  class="form-control" name="franquicias" required=""> 
    <?php foreach ($ReFranquicias as $i => $Franquicias)    
    echo '<option value="',$i,'">',$Franquicias,'</option>'; ?> </select>
  </div>
</form>
 <input type="text" class="form-control" id="oculto" name="oculto" style="visibility: hidden;">
 <div class="form-group col-md-10 div-centrado"> 
  <button type="button" class="btn btn-primary col-md-4 col-xs-5 pull-right" onclick="insertUsuario()"><span class="glyphicon glyphicon-floppy-disk"> </span> Guardar</button>
  <a href="javascript:window.history.back()" ><button type="button" class="btn btn-danger col-md-4 col-xs-5 pull-left"> <span class="glyphicon glyphicon-circle-arrow-left"> </span> Regresar</button></a>  
    <!-- Regresa a la pantalla anterior -->  
</div>




  
 </div>
</div>

</div>
<!-- </div>
</div> -->
</div>
</div>



