<div id="page-content-wrapper">
<div class="page-content inset">
<div class="row">
 <div class="col-md-8">
    
 
 
<head>
<!-- Manda a traer el javascript para validar el formulario -->

    <!-- <script src="http://code.jquery.com/jquery-1.0.4.js"/> -->
    <script type="text/javascript" src="<?php echo base_url()?>assets/dist/js/site.js"></script>
     <script type="text/javascript" src="<?php echo base_url()?>assets/dist/js/agenda.js"></script> 
</head>

 <div class="title_right">
<div class="x_panel"> 

<br>

<center><h1>Agregar Cita</h1></center>

<form action="<?php echo base_url();?>agenda/administrador/listacitasA/guardar" method="POST">

    <div class="form-group"> 
    <label for="name1">Cliente  </label>
    <select class="form-control" name="txtcliente" required>   <option value="">Selecione un cliente</option> <?php foreach ($ReCliente as $i => $cliente)    
    echo '<option value="',$i,'">',$cliente,'</option>'; ?> </select>

    <label for="name1">Categoría </label>
    <select class="form-control" name="txtcategoria" required>    <option value="">Seleciona una categoria</option><?php foreach ($ReCategoria as $i => $categoria)    
    echo '<option value="',$i,'">',$categoria,'</option>'; ?> </select>


    
    <label for="name1">Promociones Locales</label>
    <select class="form-control" name="txt_promocioneslocales">   <option value="">Selecione una promoción </option> <?php foreach ($RePromocionesLocales as $i => $Nombrepromocion)    
    echo '<option value="',$i,'">',$Nombrepromocion,'</option>'; ?> </select>


  <label for="name1">Promociones Institucionales </label>
    <select class="form-control" name="txt_promocionesinstitucionales">    <option value="">Selecione una promoción</option><?php foreach ($RePromocionesInstitucionales as $i => $promocionesgenerales)    
    echo '<option value="',$i,'">',$promocionesgenerales,'</option>'; ?> </select>

     <label for="name1">Servicios </label>
    <select class="form-control" name="txt_servicios" > <?php foreach ($ReServicios as $i => $serviciosfranquicia)    
    echo '<option value="',$i,'">',$serviciosfranquicia,'</option>'; ?> </select>

    <div class="form-group">
    
   <!-- <label for="name1">Tipo de cita</label>
    <input type="text" class="form-control" id="name1" name="txttipocita" maxlength='60' placeholder="Muestra" >-->
    
    <label for="name1">Fecha</label>
    <input type="date" class="form-control" id="name1" name="txtfecha" placeholder="dd/mm/aaaa" required> 
    <label for="name1">Hora inicio</label>
    <input type="time" class="form-control" id="txthorai" name="txthorai" maxlength='11' placeholder="00:00" required >


    <label for="name1">Hora fin </label>
    <input type="time" class="form-control" id="txthoraf" name="txthoraf" maxlength='11' placeholder="00:00" required >

    
    <label for="txtstatus">Estado</label>
    <select id= "txtstatus" name="txtstatus" class="form-control" required>
    <option value="">Selecione un estatus</option>
    <?php foreach ($ReEstatusCita as $i => $estatuscita)   
    echo '<option value="',$i,'">',$estatuscita,'</option>'; ?> </select>
    
    </select> 
    <label for="name1">Usuario </label>
    <select class="form-control" name="txtusuario" required> <option value="">Selecione un Usuario</option><?php foreach ($ReUsuario as $i => $usuario)   
    echo '<option value="',$i,'">',$usuario,'</option>'; ?> </select>

    <label for="name1">Cabina </label>
    <select class="form-control" name="txt_cabina" required>   <option value="">Selecione una cabina</option> <?php foreach ($ReCabina as $i => $cabina)    
    echo '<option value="',$i,'">',$cabina,'</option>'; ?> </select>


    <label for="name1">Franquicia  </label>
    <select class="form-control" name="txt_franquicia" required> <?php foreach ($ReFranquicia as $i => $franquicia)    
    echo '<option value="',$i,'">',$franquicia,'</option>'; ?> </select>

    <label for="name1">Observaciones</label>
    <input type="text" class="form-control" id="name1" name="txt_observaciones" placeholder="Observaciones" minlength='5' maxlength='40'   onkeyUp="this.value=this.value.toUpperCase();" onkeypress="return validaLetra(event)" required>
    </div>
    </div>
    </div>
    </div>


  <button type="submit" class="btn btn-primary">Guardar</button>

  <a href="<?php echo base_url();?>agenda/administrador/listacitasA"><button type="button" class="btn btn-danger" >Cancelar</button></a>

<br>
<br>
<br>


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


