require_once rootPath('co/check_login.php', 1); ?> <h1 class="header_h1"> Elementos </h1> <table id="tableresults" class="tableclass"> <tr class="rowheader"> <th>ID</th> <th>Nome</th> <th>Sexo</th> <th>Nascimento</th> <th>Estado</th> <th></th> </tr> <?php $elementos = elementoGetByFiltro(-1, -1, null, array('X')); $delegacao = -1; $alt = false; while ($row = foreachRow($elementos)) { $alt = !$alt; if ($delegacao !== $row['id_delegacao']) { $delegacao = $row['id_delegacao']; $alt = false; ?> <tr class="rowgroup"> <td colspan="6"> <img src="/pw606/img/countries/16/<?php echo $row['id_pais']; ?> .png" /> <b><?php
<form action="index.php" method="GET"> <!--<input type="hidden" name="id_delegacao" value="<?php echo dbInteger(-1); ?> " /> --> <input type="image" src="/pw606/img/funnel_delete.png" title="Retirar filtro" onsubmit="submit-form();"> </form> </th> </tr> <?php if (isset($_GET['id_delegacao'])) { $id_delegacao = dbInteger($_GET['id_delegacao']); } else { $id_delegacao = -1; } $elementos = elementoGetByFiltro($id_delegacao, -1, null, array('X')); $alt = false; $id_delegacao = -1; while ($row = foreachRow($elementos)) { $alt = !$alt; if ($id_delegacao !== $row['id_delegacao']) { $id_delegacao = $row['id_delegacao']; // $alt = false; ?> <tr class="rowgroup"> <td colspan="4"> <img src="/pw606/img/countries/16/<?php echo $row['id_pais']; ?> .png" /> <b><?php
</div> <?php unset($_SESSION['error_msg']); } ?> <table id="tableresults" class="tableclass"> <tr class="rowheader"> <th>ID</th> <th>Nome</th> <th>Sexo</th> <th>Nascimento</th> <th>Estado</th> <th></th> </tr> <?php $elementos = elementoGetByFiltro($current_user['id_delegacao'], -1, null, array('X')); $delegacao = -1; $alt = false; while ($row = foreachRow($elementos)) { $alt = !$alt; if ($delegacao !== $row['id_delegacao']) { $delegacao = $row['id_delegacao']; $alt = false; ?> <tr class="rowgroup"> <td colspan="6"> <img src="/pw606/img/countries/16/<?php echo $row['id_pais']; ?> .png" /> <b><?php