<div class="block">
  <div class="content controls">
    
    <div class="form-row">
      <div class="col-md-2"><label>Foto</label></div>
      <div class="col-md-4">
        <input type="file" accept="image/*" name="ds_foto" />
      </div>
    </div>
    
    
    <div class="form-row">
      <div class="col-md-2"><label>Nome</label></div>
      <div class="col-md-4">
        <input  name="ds_nome" id="ds_nome" maxlength="100"/>
      </div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Nome Reduzido</label></div>
      <div class="col-md-2">
        <input name="ds_fantasia" id="ds_fantasia" maxlength="20"/>
      </div>
    </div>

	<div class="form-row">
      <div class="col-md-2"><label>CEP</label></div>
      <div class="col-md-2"><input type=text name="ds_cep" id="ds_cep" maxlenght="8" size="8" class="mask_cep"></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Endereço</label></div>
      <div class="col-md-8"><input name="ds_endereco" id="ds_endereco" class="form-control getCep_ds_logradouro" maxlength="100"/></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Bairro</label></div>
      <div class="col-md-4"><input name="ds_bairro" id="ds_bairro" class="form-control getCep_ds_bairro" maxlength="60"/></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 required class="validate[required] form-control getCep_id_municipio" 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-2"><input name="ds_municipio" id="ds_municipio" class="getCep_ds_municipio" readonly></div>
    </div>
    
    <!--
    <div class="form-row">
      <div class="col-md-2"><label>UF</label></div>
      <div class="col-md-2">
          <div class="input-group">
          <input name="ds_uf" id="ds_uf" class="validate[required] form-control" maxlength="2"/>
          <div class="input-group-addon">
            <a href="helper-descricao-uf.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#ds_uf" data-description="#ds_estado" data-title="Selecione:">
            <span class="fa fa-search"></span></a>
          </div>
          </div>
      </div>
          <div class="col-md-2"><input name="ds_estado" id="ds_estado" readonly/></div>
    </div>
  -->

    <div class="form-row">
      <div class="col-md-2"><label>DDD</label></div>
      <div class="col-md-2"><input type=number name="ds_ddd" id="ds_ddd"/></div>

      <div class="col-md-1">&nbsp;</div>
      <div class="col-md-2"><label>Telefone</label></div>
      <div class="col-md-2"><input type=number name="ds_telefone" id="ds_telefone" class="mask_nr_tel"/></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Celular 1</label></div>
      <div class="col-md-2"><input name="ds_celular" id="ds_celular" maxlength="11" class="mask_nr_tel"></div>

      <div class="col-md-1">&nbsp;</div>
      <div class="col-md-2"><label>Operadora:</label></div>
      <div class="col-md-2">
        <select name="id_operadora" id="id_operadora">
        <?php 
          	 $sql_operadora = 'select * from erpc_operadoras_telefonia where st_ativo = 1';
          	 $result_operadora = mysqli_query($conexao, $sql_operadora);
          	 if(mysqli_num_rows($result_operadora)){
          	     while($operadora = mysqli_fetch_assoc($result_operadora)){
          	         $id_operadora = $operadora['id'];
          	         $ds_operadora = $operadora['ds_operadora'];
          	         echo "<option value='$id_operadora'>$ds_operadora</option>'";
          	     }
          	 }
      	?>
         </select>
      </div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>CNPJ / CPF</label></div>
      <div class="col-md-4">
        <input type=number name="ds_cnpj_cpf" id="ds_cnpj_cpf"/></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Insc. Estadual</label></div>
      <div class="col-md-3"><input type=number name="ds_ie" id="ds_ie"/></div>

      <div class="col-md-2"><label>Insc. Municipal</label></div>
      <div class="col-md-2"><input type=number name="ds_im" id="ds_im"/></div>
     </div>


     <div class="form-row">
       <div class="col-md-2"><label>E-mail</label></div>
       <div class="col-md-3"><input name="ds_email" id="ds_email" maxlength="40"/></div>
     </div>

    <div class="form-row">
      <div class="col-md-2"><label>Home Page</label></div>
      <div class="col-md-3"><input name="ds_homepage" id="ds_homepage" maxlength="100"/></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Cód. Usuário</label></div>
      <div class="col-md-2">
        <div class="input-group">
          <input required class="validate[required] form-control" type="number" name="id_usuario_vendedor" id="id_usuario_vendedor" maxlenght="8">
          <div class="input-group-addon">
          <a href="erpc_usuario_vendedor_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-parameter="" data-value="#id_usuario_vendedor" data-description="#ds_usuario_vendedor" data-title="Selecione:">
          <span class="fa fa-search"></span></a>
        </div>
        </div>
      </div>
      <div class="col-md-4"><input name="ds_usuario_vendedor" id="ds_usuario_vendedor" readonly></div>
    </div>

	<div class="form-row">
      <div class="col-md-2"><label>Supervisor</label></div>
      <div class="col-md-2">
        <div class="input-group">
          <input required class="validate[required] form-control" type="number" name="id_supervisor" id="id_supervisor" maxlenght="8">
          <div class="input-group-addon">
          <a href="erpc_usuario_supervisor_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-parameter="" data-value="#id_supervisor" data-description="#ds_supervisor" data-title="Selecione:">
          <span class="fa fa-search"></span></a>
        </div>
        </div>
      </div>
      <div class="col-md-4"><input name="ds_supervisor" id="ds_supervisor" readonly></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Gerente</label></div>
      <div class="col-md-2">
        <div class="input-group">
          <input required class="validate[required] form-control" type="number" name="id_gerente" id="id_gerente" maxlenght="8">
          <div class="input-group-addon">
          <a href="erpc_usuario_gerente_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-parameter="" data-value="#id_gerente" data-description="#ds_gerente" data-title="Selecione:">
          <span class="fa fa-search"></span></a>
        </div>
        </div>
      </div>
      <div class="col-md-4"><input name="ds_gerente" id="ds_gerente" readonly></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Banco</label></div>
      <div class="col-md-2">
        <div class="input-group">
          <input required class="validate[required] form-control" type="number" name="id_banco" id="id_banco" maxlenght="8">
          <div class="input-group-addon">
          <a href="erpc_financeiro_bancos_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-parameter="" data-value="#id_banco" data-description="#ds_banco" data-title="Selecione:">
          <span class="fa fa-search"></span></a>
        </div>
        </div>
      </div>
      <div class="col-md-4"><input name="ds_banco" id="ds_banco" readonly></div>
    </div>
    
    <div class="form-row">
      <div class="col-md-2"><label>Região</label></div>
      <div class="col-md-2">
        <div class="input-group">
          <input required class="validate[required] form-control" type="number" name="id_regiao" id="id_regiao" maxlenght="8" >
          <div class="input-group-addon">
          <a href="erpc_vendedor_regiao_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#id_regiao" data-description="#ds_regiao" data-title="Selecione:">
          <span class="fa fa-search"></span></a>
        </div>
        </div>
      </div>
      <div class="col-md-4">
        <input name="ds_regiao" id="ds_regiao" readonly /></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Comissão</label></div>
      <div class="col-md-2">
        <input type=number name="vl_comissao" id="vl_comissao"/></div>
    </div>

    <div class="form-row">
      <div class="col-md-2">&nbsp;</div>
      <div class="col-md-2">
        <label>%. Pg. Na Emissão</label>
        <input type=number name="nr_perc_pgto_emissao" id="nr_perc_pgto_emissao" min="0" step="0.01"/></div>

      <div class="col-md-2">
        <label>%. Pg. Na Baixa</label>
        <input type=number name="nr_perc_pgto_baixa" id="nr_perc_pgto_baixa" min="0" step="0.01"/></div>
    </div>

  </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>
