<?php
include 'header.php';
include 'erpc_clientes_toolbar.php';
?>

<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
  <li role="presentation" class="active"><a href="#form1" aria-controls="form1" role="tab" data-toggle="tab">Busca Avançada - CLIENTES</a></li>
  <!--
  <li role="presentation"><a href="#form2" aria-controls="form2" role="tab" data-toggle="tab">Form #2</a></li>
  <li role="presentation"><a href="#form3" aria-controls="form3" role="tab" data-toggle="tab">Form #3</a></li>
  <li role="presentation"><a href="#form4" aria-controls="form4" role="tab" data-toggle="tab">Form #4</a></li>
  -->
</ul>

<!-- Tab panes -->
<div class="tab-content">
  <div role="tabpanel" class="tab-pane fade in active" id="form1">
    <form id=validate_custom method=POST action="erpc_clientes_list.php">
    
      <div class=block>
        <div class=header>
          <h2>Cadastrais:</h2>
        </div>
    
        <div class="content controls">
      		<div class=form-row>
              <div class=col-md-2><label>Razão Social:</label></div>
              <div class=col-md-6><input type=text name="ds_razao" value="" class="form-control" /> </div>
            </div>
            <div class=form-row>
              <div class=col-md-2><label>Nome Fantasia:</label></div>
              <div class=col-md-6><input type=text name="ds_fantasia" value="" class="form-control" /> </div>
            </div>
            <div class=form-row>
              <div class=col-md-2><label>CPF/CNPJ:</label></div>
              <div class=col-md-6><input type=text name="ds_documento" value="" class="form-control" /> </div>
            </div>
            <div class="form-row">
              <div class="col-md-2"><label>Categoria de Cliente</label></div>
              <div class="col-md-2">
                <div class="input-group">
                  <input requerid type="text" id="id_categoria_cliente" name="id_categoria_cliente" class="form-control" />
        
                  <div class="input-group-addon">
                    <a href="erpc_clientes_categorias_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="input[name='id_categoria_cliente']" data-description="input[name='ds_categoria']" data-title="Selecione:" >
                    <span class="fa fa-search"></span></a>
                  </div>
                </div>
              </div>
              <div class="col-md-4"><input readonly name="ds_categoria" id="ds_categoria"/></div>
            </div>
            <div class=form-row>
              <div class=col-md-2><label>Contato:</label></div>
              <div class=col-md-6><input type=text name="ds_contato" value="" class="form-control" /> </div>
            </div>
            
            <div class="form-row">
              <div class="col-md-2"><label>Município:</label></div>
              <div class="col-md-2">
                <div class="input-group">
                  <input class="form-control" type=number name="id_municipio" id="id_municipio" maxlenght="10" size="4">
                    <div class="input-group-addon">
                    <a href="erpc_municipios_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-parameter="" data-value="#id_municipio" data-description="#ds_municipio" data-title="Selecione:">
                    <span class="fa fa-search"></span></a>
                    </div>
                 </div>
              </div>
              <div class="col-md-4"><input name="ds_municipio" id="ds_municipio"  readonly></div>
            </div>
        
        	<div class="form-row">
          	  <div class="col-md-2">
                <label for="clientes[ds_bairro]">Bairro:</label>
              </div>
              <div class="col-md-6">
                <input type="text" id="ds_bairro" name="ds_bairro" class="form-control getCep_ds_bairro" />
              </div>
            </div>
        </div>
    	
    	<div class=header>
          <hr/>
        </div>
    	<div class=header>
          <h2>Miscelânea:</h2>
        </div>
        
    	<div class="content controls">
            <div class=form-row>
                  <div class=col-md-2><label>NF | Serial:</label></div>
                  <div class=col-md-6><input type=text name=ds_texto1 value="" class="form-control" /> </div>
            </div>
        </div>
        
        <div class=footer>
          <div class="side pull-right">
            <div class=btn-group>
    		<button class="btn btn-default" type="button" onClick="window.history.go(-1)" value="Voltar">Voltar</button>
            <button class="btn btn-success" type="submit" value="pesquisar" name="pesquisar">Pesquisar</button>
    		</div>
          </div>
        </div>
      </div>
    </form>

  </div>

</div>

<?php include 'inc/helper_modal_div.php';?>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="js/acme.js"></script>
