<!--Formulario que registra a las franquicias (Administrador General)-->
<div id="page-content-wrapper">
  <div class="page-content inset">

  <link href="\SM\views\css\estilos.css" rel='stylesheet' type='text/css' />
  <script src="http://code.jquery.com/jquery-1.0.4.js"></script>
  <script src="http://code.jquery.com/jquery-1.0.4.js"></script>
  <script src="http://code.jquery.com/jquery-1.0.4.js"></script> 

<head>
  <!-- Manda a traer el javascript para validar el formulario -->
  <script type="text/javascript" src="<?php echo base_url()?>assets/dist/js/site.js"></script>
</head>
<div class="row">
 <div class="col-md-8">
  
<center><h1>Agregar Franquicia</h1></center>
<!-- Función que guarda todos los datos ingresados -->
<form action="<?php echo base_url();?>franquicias/franquicias/administrador/franquiciaA/guardar" method="POST">

    
    <div class="form-group">
     <label for="name1">Modelo  </label>
    <select class="form-control" name="txt_modelo" required=""> 
         <option value="">--- Selecciona una opción ---</option>
         <?php foreach ($ReModelo as $i => $modelo)    
    echo '<option value="',$i,'">',$modelo,'</option>'; ?> </select>

    <label for="name1">Nombre Franquicia</label>
    <input type="text" class="form-control" id="name1" name="txt_nombref" placeholder="Nombre Franquicia" minlength="3" maxlength="50" onkeyUp="this.value=this.value.toUpperCase();" required="">

    <label for="name1">Razón Social</label>
    <input type="text" class="form-control" id="name1" name="txt_razons" placeholder="Razón Social" maxlength="70" onkeyUp="this.value=this.value.toUpperCase();" required="">
    
    <div class="form-group">
    <label for="name1">RFC</label>
    <input type="text" class="form-control" id="name1" name="txt_rfc" placeholder="RFC" minlength="6" maxlength="13" onkeyUp="this.value=this.value.toUpperCase();" required="">
    
    <label for="name1">Domicilio Fiscal</label>
    <input type="text" class="form-control" id="name1" name="txt_domiciliofi" maxlength="150" placeholder="Domicilio Fiscal" onkeyUp="this.value=this.value.toUpperCase();" required="">
    
    <label for="name1">Regimen Fiscal</label>
    <input type="text" class="form-control" id="name1" name="txt_regimenf" placeholder="Regimen Fiscal" maxlength="85" onkeyUp="this.value=this.value.toUpperCase();" onkeypress="return validaLetra(event)" required="">
    <label for="name1">Domicilio Franquicia</label>
    <input type="text" class="form-control" id="name1" name="txt_domiciliofr" maxlength="150" placeholder="Domicilio Franquicia" onkeyUp="this.value=this.value.toUpperCase();" required>
    <label for="txt_estado">Estado</label>
    <select id= "txt_estado" name="txt_estado" class="form-control" required="">
        <option value="">--- Selecciona una opción ---</option>
        <OPTION VALUE="AGUASCALIENTES">AGUASCALIENTES</OPTION>
        <OPTION VALUE="BAJA CALIFORNIA">BAJA CALIFORNIA </OPTION>
        <OPTION VALUE="BAJA CALIFORNIA SUR">BAJA CALIFORNIA SUR </OPTION>
        <OPTION VALUE="CAMPECHE">CAMPECHE </OPTION>
        <OPTION VALUE="CHIAPAS">CHIAPAS </OPTION>
        <OPTION VALUE="CHIHUAHUA">CHIHUAHUA </OPTION>
        <OPTION VALUE="COAHUILA">COAHUILA </OPTION>
        <OPTION VALUE="COLIMA">COLIMA </OPTION>
        <OPTION VALUE="CIUDAD DE MÉXICO">CIUDAD DE MÉXICO</OPTION>
        <OPTION VALUE="DURANGO">DURANGO </OPTION>
        <OPTION VALUE="ESTADO DE MÉXICO">ESTADO DE MÉXICO </OPTION>
        <OPTION VALUE="GUANAJUATO">GUANAJUATO </OPTION>
        <OPTION VALUE="GUERRERO">GUERRERO </OPTION>
        <OPTION VALUE="HIDALGO">HIDALGO </OPTION>
        <OPTION VALUE="JALISCO">JALISCO </OPTION>
        <OPTION VALUE="MICHOACÁN">MICHOACÁN </OPTION>
        <OPTION VALUE="MORELOS">MORELOS </OPTION>
        <OPTION VALUE="NAYARIT">NAYARIT </OPTION>
        <OPTION VALUE="NUEVO LEÓN">NUEVO LEÓN </OPTION>
        <OPTION VALUE="OAXACA">OAXACA </OPTION>
        <OPTION VALUE="PUEBLA">PUEBLA </OPTION>
        <OPTION VALUE="QUERÉTARO">QUERÉTARO </OPTION>
        <OPTION VALUE="QUINTANA ROO">QUINTANA ROO </OPTION>
        <OPTION VALUE="SAN LUIS POTOSÍ">SAN LUIS POTOSÍ </OPTION>
        <OPTION VALUE="SINALOA">SINALOA </OPTION>
        <OPTION VALUE="SONORA">SONORA </OPTION>
        <OPTION VALUE="TABASCO">TABASCO </OPTION>
        <OPTION VALUE="TAMAULIPAS">TAMAULIPAS </OPTION>
        <OPTION VALUE="TLAXCALA">TLAXCALA </OPTION>
        <OPTION VALUE="VERACRUZ">VERACRUZ </OPTION>
        <OPTION VALUE="YUCATÁN">YUCATÁN </OPTION>
        <OPTION VALUE="ZACATECAS">ZACATECAS</OPTION>
    </select>
    <label for="name1">Municipio</label>
    <input type="text" class="form-control" id="name1" name="txt_municipio" placeholder="Municipio" maxlength="60" minlength="5" onkeyUp="this.value=this.value.toUpperCase();" onkeypress="return validaM(event)" required="">
    <label for="name1">C.P.</label>
    <input type="text" class="form-control" id="name1" name="txt_cp" placeholder="74850" maxlength="5" onkeyUp="this.value=this.value.toUpperCase();" onkeypress="return valida(event)" required="">
    <label for="name1">Teléfono</label>
    <input type="tel" class="form-control" id="name1" name="txt_telefono" placeholder="2226887807" maxlength="10" minlength="10" onkeyUp="this.value=this.value.toUpperCase();" onkeypress="return valida(event)" required="">
    <label for="name1">Correo Corporativo</label>
    <input type="email" class="form-control" id="name1" name="txt_correoc" placeholder="soporte@modelartspa.com" maxlength="50" onkeyUp="this.value=this.value.toLowerCase();"  required="">
   
    <label for="name1">Nombre Propietario</label>
    <input type="text" class="form-control" id="name1" name="txt_nombrep" placeholder="Nombre Propietario" minlength="8" maxlength="90" onkeyUp="this.value=this.value.toUpperCase();" onkeypress="return validaLetra(event)" required="">
    <label for="name1">Celular del Propietario</label>
    <input type="text" class="form-control" id="name1" name="txt_celularp" placeholder="2226887807" maxlength="10" onkeyUp="this.value=this.value.toUpperCase();" onkeypress="return valida(event)" required="">

    <label for="name1">Correo Personal</label>
    <input type="email" class="form-control" id="name1" name="txt_correop" placeholder="soporte@modelartspa.com" maxlength="50" onkeyUp="this.value=this.value.toLowerCase();" required="">
   
    <label >Autorización para cancelar citas !</label>
          <input type="text" id="cantidad" name="cantidad" placeholder="Cantidad" class="form-control" value=""  maxlength="15" data-toggle="tooltip" data-placement="top" title="Ingresar cantidad">
        <br>
          <select type="text" id="abreviatura" name="abreviatura"  class="form-control" data-toggle="tooltip" data-placement="top" title="Seleccionar una opcion">
            <option value=""  selected disabled>Seleccionar</option>
            <option value="min" > >Minutos</option>
            <option value="hrs" >Horas</option>
            <option value="d" >Días</option>
            <option value="s" >Semanas</option>    
          </select> 
    <label for="name1">Zona </label>
    <select class="form-control" name="txt_zona" required=""> 
        <option value="">--- Selecciona una opción ---</option>
        <?php foreach ($ReZona as $i => $zona)    
    echo '<option value="',$i,'">',$zona,'</option>'; ?> </select>
  
  </div>
  <!-- Guarda todos los datos de la franquicia -->
  <button type="submit" class="btn btn-primary">Guardar</button>
  <!-- Regresa a la vista principal de franquicias -->
  <a href="<?php echo base_url();?>franquicias/franquicias/administrador/franquiciaA?>"><button type="button" class="btn btn-danger">Cancelar</button></a>

</form>

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