<?php
include "./var.php";
$datostablaclientes = getproveedores();
$oplnegocio = getoplnegocioclientes();
$adicionales=<<<sss
<script src="../js/scripttable.js"></script>
sss;
echo $varfirst;
echo $var=<<<llll
<div class="right_col" role="main">
                <div class="col-md-12 col-xs-12">
                  <div class="x_panel">
                    <div class="x_title">
                      <h2><strong>Agregar Proveedores:</strong> <small></small></h2>
                      <ul class="nav navbar-right panel_toolbox">
                        <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                        </li>
                      </ul>
                      <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                      <br />
                      <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                        
                        <div class="form-group">
                          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Razón social:
                          </label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="rsocial" required="required" class="form-control col-md-7 col-xs-12">
                          </div>
                        </div>

                        <div class="form-group">
                          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">RFC:
                          </label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="rfcdato" required="required" class="form-control col-md-7 col-xs-12">
                          </div>
                        </div>

                        <div class="form-group">
                          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Nombre de Contacto:
                          </label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="text" id="contacto" required="required" class="form-control col-md-7 col-xs-12">
                          </div>
                        </div>
                        
                        
                        
                        <div class="form-group">
                          <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Correo: </label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="correo" class="form-control col-md-7 col-xs-12" type="mail" name="correo" required="required">
                          </div>
                        </div>

                        <div class="form-group">
                          <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Teléfono: </label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="telefono" class="form-control col-md-7 col-xs-12" type="text" name="telefono" required="required">
                          </div>
                        </div>

                        <!--<div class="form-group">
                          <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Linea de negocio</label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                          <select class="form-control" id="lnegocio" required="required" onchange="cambionegocio();">
                              <option value="">Seleccione Tipo de Negocio</option>
                              $oplnegocio
                              <option value="otro">Otro</option>
                              
                            </select>
                          </div>
                        </div>
                        <div class="form-group">
                          <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12"></label>
                          <div class="col-md-6 col-sm-6 col-xs-12">
                            <input id="lnegocioo" class="form-control col-md-7 col-xs-12" type="text" name="lnegocioo" required="required" disabled>
                          </div>
                        </div>-->
                        

                        <div class="ln_solid"></div>
                        <div class="form-group">
                          <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                            <button id="limpiar" class="btn btn-primary" type="reset">Limpiar</button>
                            <button type="button" class="btn btn-success" onclick="agregarproveedores();">Guardar</button>
                          </div>
                        </div>

                      </form>
                    </div>
                  </div>
              </div>
  <div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12"><!--aqui-->
      <div class="x_panel">
        <div class="x_title">
          <h2><strong>Proveedores:</strong><small>Consultar y modificar</small></h2>
          <ul class="nav navbar-right panel_toolbox">
            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
            </li>
          </ul>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">
          <div class="table-responsive">
            <table class="table table-striped jambo_table bulk_action" id="example" class="table table-striped table-bordered dt-responsive nowrap"cellspacing="0">
              <thead>
                <th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Razón social</th>
                <th>&nbsp;&nbsp;&nbsp;&nbsp;RFC</th>
                <th>Nombre Contacto</th>
                <th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Correo</th>
                <th>Teléfono</th>
                
                <th>Eliminar</th>
              </thead>
              <tbody>
                $datostablaclientes
              </tbody>
            </table>
          </div>
        <!--<button class="btn btn-danger" type="button" id="button">Borrar</button>
        <small>(Para eliminar un registro debe seleccionarlo y después debe oprimir Borrar).</small>-->
      </div>
    </div>
   </div>
  </div>
</div>
llll;
echo $varend;
echo $adicionales;
echo $cerrarend;
?>