<?php
include 'header.php';
include 'erpc_estados_toolbar.php';
include_once 'connect.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">Dados Cadastrais</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_estados_list.php">
  <div class=block>
    <div class=header>
      <h2>Localizar Estados:</h2>
    </div>

    <!--
    <div class="content controls">
	  <div class=form-row>
        <div class=col-md-3>ID:</div>
        <div class=col-md-6><input type=text name="id" value="" class="" maxlength=02  /> </div>
      </div>
    </div>-->

    <div class="content controls">
      <div class=form-row>
          <div class=col-md-2>UF:</div>
          <div class=col-md-6><input name="ds_uf" value="" maxlength=02 class=""/> </div>
        </div>

        <div class=form-row>
            <div class=col-md-2>Descrição:</div>
            <div class=col-md-6><input name="ds_estado" value="" maxlength=100 class=""/> </div>
          </div>

        <div class=form-row>
            <div class=col-md-2>Capital:</div>
            <div class=col-md-6><input name="ds_capital" value="" maxlength=100 class=""/> </div>
        </div>

        <div class="form-row">
          <div class=col-md-2>Pais</div>
          <div class="col-md-2">
              <div class="input-group">
              <input name="id_pais" id="id_pais" class=" " maxlength="9999999999"/>
              <div class="input-group-addon">
                <a href="helper-paises.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#id_pais" data-description="#ds_pais" data-title="Selecione:">
                <span class="fa fa-search"></span></a>
              </div>
              </div>
          </div>
          <div class="col-md-4"><input name="ds_pais" id="ds_pais" readonly/></div>
        </div>
    </div>

    <!-- Elementos
      <div class=form-row>
        <div class=col-md-3>Select:</div>
        <div class=col-md-9> <select name=s_example class=" "> <option value></option> <option value=1>Andorra</option> <option value=2>Antarctica</option> <option value=3>Ukraine</option> </select>            <span class=help-block></span> </div>
      </div>
      <div class=form-row>
        <div class=col-md-3>Checkbox:</div>
        <div class=col-md-9>
          <div class=checkbox-inline> <label> <input type=checkbox class=" " name=vcheck value="1"/> Enabled </label>              </div>
          <div class=checkbox-inline> <label> <input name=vcheck value=0 type=checkbox disabled=disabled /> Disabled </label>              </div>
        </div>
      </div>
      <div class=form-row>
        <div class=col-md-3>Radio:</div>
        <div class=col-md-9>
          <div class=checkbox-inline> <label> <input type=radio class= name=vradio value="1"/> Enabled </label> </div>
          <div class=checkbox-inline> <label> <input type=radio disabled=disabled class= name=vradio value="0"/> Disabled </label>              </div>
        </div>
      </div>
      <div class=form-row>
        <div class=col-md-3>Datepicker:</div>
        <div class=col-md-9> <input type=text class=" datepicker " /> <span class=help-block></span> </div>
      </div>
      <div class=form-row>
        <div class=col-md-3>Group :</div>
        <div class=col-md-9> <input class="validate[group[payments]] " type=text name=credit id=credit /> <span class=help-block>Any of group fields must be filled</span>            </div>
      </div>
      <div class=form-row>
        <div class=col-md-3></div>
        <div class=col-md-9> <input class="validate[group[payments]] " type=text name=paypal id=paypal /> <span class=help-block>Any of group fields must be filled</span>            </div>
      </div>
      <div class=form-row>
        <div class=col-md-3>Condition :</div>
        <div class=col-md-9> <input type=text name=creditcard id=creditcard placeholder="Credit card" class="" /> </div>
      </div>
      <div class=form-row>
        <div class=col-md-3></div>
        <div class=col-md-9> <input class="validate[cond[creditcard]] " type=text id=ccv name=ccv placeholder="CCV" />
          <span
            class=help-block>This field is  if "Credit card" field is filled</span>
        </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>
			  <!--botao antigo
		<button class="btn btn-default" type=button onClick="$('#validate_custom').validationEngine('hide');">Hide prompts</button>            <button class="btn btn-success" type=submit>Submit</button>
		-->
		    </div>
      </div>
    </div>

  </div>
</form>

  </div>

</div>


<!-- modal do helper -->
<div class="row-clear">&nbsp;</div>
<div class="modal modal-white modal-draggable fade" id="helper-modal-div" tabindex="-1" role="dialog" aria-labelledby="helper-modal-label" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="helper-modal-label">Helper</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" id="modalCancel">Cancelar</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" id="modalOk" disabled="disabled">Selecionar</button>
      </div>
    </div>
  </div>
</div>



<?php include 'footer.php'; ?>
