[Cartoweb-users] Filter

Oliver Christen oliver.christen at camptocamp.com
Wed Oct 4 02:51:15 EDT 2006


I see you try to pass some parameters but I dont really understand exactly 
what you want to do with these.
Are you trying to select (display) some layers depending of the options 
selected by the user ?


> Hello,
>
>
> How to get variable of php and filter for this variable a data of shape 
> file.
>
>
>
> I put this code in "cartoclient.tpl" of my project "geo"
>
> <!-- Inicio do Filtro -->
>
>
> <div id="Layer1" style="position:absolute; left:358px; top:66px;
> width:511px; height:27px; z-index:1">
>  <form action="geo.php" method="post" name="filtra">
>  <table border="0" cellspacing="0" cellpadding="0">
>    <tr>
>      <td>M&ecirc;s:
>        <select name="mes">
>        <option value="">Escolha um M&ecirc;s</option>
>        <option value="1">Janeiro</option>
>        <option value="2">Fevereiro</option>
>        <option value="3">Mar&ccedil;o</option>
>        <option value="4">Abril</option>
>        <option value="5">Maio</option>
>        <option value="6">Junho</option>
>        <option value="7">Julho</option>
>        <option value="8">Agosto</option>
>        <option value="9">Setembro</option>
>        <option value="10">Outubro</option>
>        <option value="11">Novembro</option>
>        <option value="12">Dezembro</option>
>      </select>&nbsp;</td>
>      <td>Classe: <select name="classe">
>       <option value="">Escolha uma Classe</option>
>        <option value="A">Pessoa</option>
>        <option value="B">Patrimonio</option>
>        <option value="C">Costumes</option>
>        <option value="D">Adm. Publica</option>
>        <option value="E">Toxico</option>
>        <option value="F">Armas e Municoes</option>
>        <option value="G">Diversos</option>
>        <option value="H">Contravencoes</option>
>        <option value="I">Transito</option>
>        <option value="J">Bombeiro</option>
>      </select>&nbsp;</td>
>      <td>Incidente: <input name="incidente" type="text" size="4"
> maxlength="4" /></td>
>      <td><input name="submit" type="submit" id="submit" value="Ok" /></td>
>    </tr>
>  </table>
> </form></div>
> <!-- Fim do Filtro -->
>
>
> ##############################################
>
> I put this code in my "geo.php"
>
>
> <?php
> $_ENV['CW3_PROJECT'] = 'geo';
>
> $mes       = $_POST["mes"];
> $classe    = $_POST["classe"];
> $incid     = $_POST["incidente"];
> $incidente = strtoupper($incid);
>
>
> require_once('client.php');
>
>
> echo '<b>Filtros Aplicados:</b>';
> echo '<br>';
> echo 'Mes: ';
> echo $mes;
> echo '<br>';
> echo 'Classe: ';
> echo $classe;
> echo '<br>';
> echo 'Incidente: ';
> echo $incidente;
> echo '<br>';
>
> ?>
>
>
> ########################################
>
>
> Thanks
> -- 
> Atenciosamente,
> Adriano Hantequeste Gomes
> Departamento de Geoprocessamento - GEO
> Gerência de Estatística e Analise Criminal - GEAC
> Secretaria de Estado da Segurança Pública e Defesa Social - SESP
> Av. Marechal Mascarenhas de Moraes, 2355
> Bento Ferreira - Vitória - Espírito Santo
> CEP: 29.052-121
> Telefone: 55 27 3334-4736
> Fax:       55 27 3334-4735
> Celular:   55 27 9225-4852
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> 



More information about the Cartoweb-users mailing list