Commit 30c98f066fed8ee41f124219800a8a0265a5a9fb

Authored by Leandro Arndt
1 parent 3131af77
Exists in mysqli

Arquivo não utilizado

Esse arquivo restringia a procura por CEPs a Natal (RN) e não era utilizado no e-SIC Livre.
Showing 1 changed file with 0 additions and 39 deletions   Show diff stats
inc/lkpcep.php
@@ -1,39 +0,0 @@ @@ -1,39 +0,0 @@
1 -<?php  
2 -/**********************************************************************************  
3 - Sistema e-SIC Livre: sistema de acesso a informação baseado na lei de acesso.  
4 -  
5 - Copyright (C) 2014 Prefeitura Municipal do Natal  
6 -  
7 - Este programa é software livre; você pode redistribuí-lo e/ou  
8 - modificá-lo sob os termos da Licença GPL2.  
9 -***********************************************************************************/  
10 -  
11 - //include("../inc/autenticar.php");  
12 - include("../inc/security.php");  
13 -  
14 - $q = $_REQUEST['q'];  
15 -  
16 - $sql = "select cep, logradouro, bairro, cidade as municipio, uf as estado  
17 - from vw_cep  
18 - where cep like '$q%'  
19 - and cidade = 'Natal'  
20 - and uf = 'RN'  
21 - limit 0,10";  
22 -  
23 - $resultado = execQuery($sql);  
24 - $codigos = "";  
25 - while ($row = mysql_fetch_array($resultado)){  
26 -  
27 - $codigos .= '"'.$row['cep'].'",' ;  
28 - $nomes .= '"'.htmlentities($row['logradouro']).' - '.htmlentities($row['bairro']).', '.htmlentities($row['municipio']).'/'.$row['estado'].'",' ;  
29 -  
30 -  
31 - }  
32 - $codigos = substr($codigos,0,strlen($codigos)-1);  
33 - $nomes = substr($nomes,0,strlen($nomes)-1);  
34 - ?>  
35 -  
36 - showQueryDiv("<?php echo $q;?>", new Array(<?php echo $codigos;?>), new Array(<?php echo $nomes;?>))  
37 -  
38 -  
39 -  
40 \ No newline at end of file 0 \ No newline at end of file