function modalidadeNaoExistente($id_delegacao) { $t = getTable('modalidades_nao_existentes', 'id_delegacao = ' . dbInteger($id_delegacao), ''); $ids = array(); while ($row = foreachRow($t)) { $ids[] = $row['id_modalidade']; } if (count($ids) == 0) { $ids[] = -1; } return modalidadeGetAll($ids); }
?> " /> <img src="/pw606/img/modalidades/<?php echo $prova_modalidade_tipo; ?> .png" /> <?php echo $prova_modalidade_nome; } else { ?> <select id="slt_modalidade" name="id_modalidade" <?php echo $update ? 'disabled="disabled"' : ''; ?> > <?php $modalidades = modalidadeGetAll(); while ($mod = foreachRow($modalidades)) { ?> <option value="<?php echo $mod['id_modalidade']; ?> " ><?php echo $mod['nome']; ?> </option> <?php } ?> </select> <script type="text/javascript"> selectSelectedValue(document.getElementById('slt_modalidade'), "<?php