<!-- * Set CSS = %INCLUDE{WebCSSNoSidebars}% --> <div id='nova_instituicao'> %IF{"$'WIKINAME' ingroup 'CetadObservaGroup'" then="<a href='#' id='link_nova_instituicao' onclick=\"$('#nova_instituicao ul').toggle()\">▿ Nova Instituição</a> * <a href='%SCRIPTURL{edit}%/%WEB%?topic=InstituicaoAUTOINC0&topicparent=%TOPIC%&templatetopic=WebRedeSaudeTemplate&template=editform&t=%GMTIME{$epoch}%'>Saúde</a> * <a href='%SCRIPTURL{edit}%/%WEB%?topic=InstituicaoAUTOINC0&topicparent=%TOPIC%&templatetopic=WebRedeAssistenciaSocialTemplate&template=editform&t=%GMTIME{$epoch}%'>Assistência Social</a> * <a href='%SCRIPTURL{edit}%/%WEB%?topic=InstituicaoAUTOINC0&topicparent=%TOPIC%&templatetopic=WebRedeJusticaTemplate&template=editform&t=%GMTIME{$epoch}%'>Justiça e Segurança Pública</a> * <a href='%SCRIPTURL{edit}%/%WEB%?topic=InstituicaoAUTOINC0&topicparent=%TOPIC%&templatetopic=WebRedeOutrosTemplate&template=editform&t=%GMTIME{$epoch}%'>Outros</a> "}% </div> <center> <table> <tr><td>Tipo de rede</td> <td> <select id='selecao_tipo'> <option value=''>- Selecione -</option> %CALC{"$LISTJOIN($sp, $LISTMAP($IF($EXACT($item, %URLPARAM{"REDE"}%), <option selected='selected' value='$item'>$item</option>, <option value='$item'>$item</option>), %TIPOS_REDES%))"}% </select> </td></tr> %IF{"defined 'REDE'" then="<tr><td>Filtrar por tipo de instituição</td><td> <select id='selecao_tipo_instituicao'><option value='*'>- Todos -</option>%CALC{"$LISTJOIN($sp, $LISTMAP($IF($EXACT($item, %URLPARAM{"TIPO_INSTITUICAO"}%), <option selected='selected' value='$item'>$item</option>, <option value='$item'>$item</option>), $LISTUNIQUE(%SEARCH{"(form.name = 'WebRedeSaudeForm' OR form.name = 'WebRedeAssistenciaSocialForm' OR form.name = 'WebRedeOutrosForm' OR form.name = 'WebRedeJusticaForm') AND TipodeRede = '%URLPARAM{"REDE"}%' AND Municipio ~ '%URLPARAM{"MUNICIPIO" default="*"}%'" type="query" scope="topic" topic="Instituicao*" nonoise="on" order="formfield(TipodeInstituio)" separator="," nofinalnewline="on" format="$formfield(TipodeInstituio)"}%)))"}%</select></td></tr>"}% %IF{"defined 'REDE'" then="<tr><td>Filtrar por município</td><td> <select id='selecao_municipio'><option value='*'>- Todos -</option>%CALC{"$LISTJOIN($sp, $LISTMAP($IF($EXACT($item, %URLPARAM{"MUNICIPIO"}%), <option selected='selected' value='$item'>$item</option>, <option value='$item'>$item</option>), $LISTUNIQUE(%SEARCH{"(form.name = 'WebRedeSaudeForm' OR form.name = 'WebRedeAssistenciaSocialForm' OR form.name = 'WebRedeOutrosForm' OR form.name = 'WebRedeJusticaForm') AND TipodeRede = '%URLPARAM{"REDE"}%' AND TipodeInstituio ~ '%URLPARAM{"TIPO_INSTITUICAO" default="*"}%'" type="query" scope="topic" topic="Instituicao*" nonoise="on" order="formfield(Municipio) ,(TipodeInstituio)" separator="," nofinalnewline="on" format="$formfield(Municipio)"}%)))"}%</select></td></tr>"}% </table> </center> <div id='lista_redes'> %IF{"defined 'REDE'" then="| *Id* | *Município* | *Tipo de instituição* | *Telefone da Instituição* | *Nome da Instituição* | %SEARCH{"(form.name = 'WebRedeSaudeForm' OR form.name = 'WebRedeAssistenciaSocialForm' OR form.name = 'WebRedeOutrosForm' OR form.name = 'WebRedeJusticaForm') AND TipodeRede = '%URLPARAM{"REDE"}%' AND TipodeInstituio ~ \"%URLPARAM{"TIPO_INSTITUICAO" default="*"}%\" AND Municipio ~ \"%URLPARAM{"MUNICIPIO" default="*"}%\"" type="query" scope="topic" topic="Instituicao*" order="formfield(Municipio) , formfield(TipodeInstituio)" nonoise="on" format="| [[$topic][$percntCALC{$dollarSUBSTITUTE($topic,.*Instituicao,,,r)}$percnt]] | $formfield(Municipio) | $formfield(Tipo de Instituição) | $formfield(Telefone da Instituição) | [[$topic][$formfield(Nome da Instituição)]] |"}%" else="<center> __Selecione o tipo de rede para listar as instituições...__ </center>"}% </div> [[Redes][« Voltar]] <script type="text/javascript"> $("#selecao_tipo").change(function() { if(this.value) { document.location = "%TOPICURL%?REDE=" + this.value; } }); $("#selecao_tipo_instituicao").change(function() { if(this.value) { document.location = "%TOPICURL%?REDE=%URLPARAM{"REDE"}%&MUNICIPIO=%URLPARAM{"MUNICIPIO" default="*"}%&TIPO_INSTITUICAO=" + this.value; } }); $("#selecao_municipio").change(function() { if(this.value) { document.location = "%TOPICURL%?REDE=%URLPARAM{"REDE"}%&TIPO_INSTITUICAO=%URLPARAM{"TIPO_INSTITUICAO" default="*"}%&MUNICIPIO=" + this.value; } }); </script>
WebPaginaComum
Título
Acesse as Redes de Atenção e Sistema de Justiça e Segurança
This topic: CetadObserva
>
WebRedes
Topic revision: r21 - 12 Aug 2011 - 16:23:00 -
GustavoCaribe
?
Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback