Beispiel #1
0
                  <th>CEP</th>
                  <th>Bairro</th>
                  <th>Controles</th>
                </tr>
              </thead>
              <tfoot>
                <tr>
                  <th>Logradouro</th>
                  <th>CEP</th>
                  <th>Bairro</th>
                  <th>Controles</th>
                </tr>
              </tfoot>
              <tbody>
                <?php 
    foreach ($logradouros->getResult() as $regs) {
        $id = (int) $regs['logradouro_id'];
        ?>
                  <tr>
                    <td><?php 
        echo $regs['logradouro_nome'];
        ?>
</td>
                    <td><?php 
        echo $regs['logradouro_cep'];
        ?>
</td>
                    <td><?php 
        echo $regs['bairros_nome'];
        ?>
</td>
echo isset($dados['bairros_nome']) ? $dados['bairros_nome'] : '';
?>
" />
        </div>
      </div>

      <div class="form-group">
        <label for="tb_cidade_cidade_id" class="col-md-3 control-label">Cidade</label>
        <div class="col-md-4">
          <select class="form-control" name="tb_cidade_cidade_id" id="tb_cidade_cidade_id">
            <option value="">Selecione...</option>
            <?php 
$readerlog = new ModelEnderecos();
$readerlog->getCidades();
if ($readerlog->getRowCount() > 0) {
    foreach ($readerlog->getResult() as $options) {
        if ($options['cidade_id'] == $dados['tb_cidade_cidade_id']) {
            echo "<option value=\"{$options['cidade_id']}\" selected=\"selected\">{$options['cidade_nome']}</option>";
        } else {
            echo "<option value=\"{$options['cidade_id']}\">{$options['cidade_nome']}</option>";
        }
    }
}
?>
          </select>
        </div>
      </div>

      <div class="form-group">
        <label for="" class="col-md-3 control-label"></label>
        <div class="col-md-3">
Beispiel #3
0
                <tr>
                  <th>Bairro</th>
                  <th>Cidade</th>
                  <th>Controles</th>
                </tr>
              </thead>
              <tfoot>
                <tr>
                  <th>Bairro</th>
                  <th>Cidade</th>
                  <th>Controles</th>
                </tr>
              </tfoot>
              <tbody>
                <?php 
    foreach ($bairros->getResult() as $regs) {
        $id = (int) $regs['bairros_id'];
        ?>
                  <tr>
                    <td><?php 
        echo $regs['bairros_nome'];
        ?>
</td>
                    <td><?php 
        echo $regs['cidade_nome'];
        ?>
</td>
                    <td>
                      <a href="<?php 
        echo HOME;
        ?>
Beispiel #4
0
                <tr>
                  <th>Cidade</th>
                  <th>UF</th>
                  <th>Controles</th>
                </tr>
              </thead>
              <tfoot>
                <tr>
                  <th>Cidade</th>
                  <th>UF</th>
                  <th>Controles</th>
                </tr>
              </tfoot>
              <tbody>
                <?php 
    foreach ($cidades->getResult() as $regs) {
        $id = (int) $regs['cidade_id'];
        ?>
                  <tr>
                    <td><?php 
        echo $regs['cidade_nome'];
        ?>
</td>
                    <td><?php 
        echo $regs['cidade_uf'];
        ?>
</td>
                    <td>
                      <a href="<?php 
        echo HOME;
        ?>
Beispiel #5
0
      <div class="card-header">
        <div class="card-title">
          Atenção! TODOS os campos são de preenchimento obrigatório.
        </div>
      </div>
      <div class="card-body">

        <div class="form-group">
          <label for="rota_inicio" class="col-md-3 control-label">Início do trajeto</label>
          <div class="col-md-3">
            <select name="rota_inicio" class="form-control" id="rota_inicio" required="required">
              <option value="">Selecione...</option>
              <?php 
    $rotaInicio = new ModelEnderecos();
    $rotaInicio->getLogradouros();
    if ($rotaInicio->getResult()) {
        foreach ($rotaInicio->getResult() as $inicio) {
            echo "<option value='{$inicio['logradouro_id']}'>{$inicio['logradouro_nome']} - {$inicio['logradouro_cep']}</option>";
        }
    }
    ?>
            </select>
          </div>
        </div>

        <div class="form-group">
          <label for="rota_fim" class="col-md-3 control-label">Fim do trajeto</label>
          <div class="col-md-3">
            <select name="rota_fim" class="form-control" id="rota_fim" required="required">
              <option value="">Selecione...</option>
              <?php