[gitec] Foto Parlamentares em Mesa Diretora

Angelo Marcondes de Oliveira Neto angelomarcondes em gmail.com
Quinta Dezembro 5 09:37:03 BRST 2013


Genarks,

Em qual ferramenta você adicionou este código?

Abraços

Angelo Marcondes de Oliveira Neto. <angelomarcondes em gmail.com>
http://angelomarcondes.blogspot.com - portifólio de serviços.
angelomarcondes em gmail.com
(34) 91414287
Carneirinho - MG



2013/12/4 Assessoria Câmara de Tuparetama <
ascom em camaradetuparetama.pe.gov.br>

> &lt;dtml-var standard_html_header&gt;
> &lt;link rel=&quot;stylesheet&quot;
> href=&quot;&amp;dtml-portal_url;/javascript/jquery.tablesorter/themes/blue/style.css&quot;
> type=&quot;text/css&quot; id=&quot;&quot; media=&quot;print, projection,
> screen&quot; /&gt;
> &lt;script type=&quot;text/javascript&quot;
> src=&quot;&amp;dtml-portal_url;/javascript/jquery.min.js&quot;&gt;&lt;/script&gt;
> &lt;script type=&quot;text/javascript&quot;
> src=&quot;&amp;dtml-portal_url;/javascript/jquery.tablesorter/jquery.tablesorter.min.js&quot;&gt;&lt;/script&gt;
>
> &lt;script language=&quot;javascript&quot;&gt;
> &lt;!--
>     function atualiza_sessao_leg(cod_sessao_leg, num_legislatura){
>         location.href = &quot;&lt;dtml-var
> absolute_url&gt;/index_html?cod_sessao_leg_sel=&quot;+cod_sessao_leg+&quot;&amp;num_legislatura_sel=&quot;+num_legislatura;
>
>     }
>
>     function atualiza_num_leg(num_legislatura){
>         location.href = &quot;&lt;dtml-var
> absolute_url&gt;/index_html?num_legislatura_sel=&quot;+num_legislatura;
>     }
>    $(document).ready(function()
>         {
>          $(&quot;#mesa-diretora&quot;).tablesorter();
>         }
>     );
> //--&gt;
> &lt;/script&gt;
>
> &lt;a id=&quot;ajuda&quot;
> href=&quot;&amp;dtml-portal_url;/ajuda/consultas#cons_mesadir&quot;&gt;Ajuda&lt;/a&gt;
> &lt;h1&gt;Mesa Diretora&lt;/h1&gt;
>
> &lt;form name=&quot;composicao_mesa_form&quot;&gt;
>   &lt;fieldset&gt;
>    &lt;legend&gt;Selecione o Per&amp;iacute;odo&lt;/legend&gt;
>      &lt;table&gt;
>         &lt;tr&gt;
>          &lt;th&gt;&lt;label
> for=&quot;lst_num_legislatura&quot;&gt;Legislatura:&lt;/label&gt;&lt;/th&gt;
>          &lt;td colspan=&quot;2&quot;&gt;
>            &lt;select id=&quot;lst_num_legislatura&quot;
> name=&quot;lst_num_legislatura&quot; size=&quot;1&quot;
> onChange=&quot;atualiza_num_leg(form.lst_num_legislatura
> [form.lst_num_legislatura.selectedIndex].value)&quot;&gt;
>             &lt;dtml-in
> expr=&quot;zsql.legislatura_obter_zsql(ind_excluido=0)&quot;&gt;
>              &lt;option
>               &lt;dtml-if expr=&quot;(not
> _.has_key(&#039;num_legislatura_sel&#039;) and (_.DateTime() &gt;=
> dat_inicio and _.DateTime() &lt;= dat_fim))
>                            or (_.has_key(&#039;num_legislatura_sel&#039;)
> and num_legislatura == _.int(num_legislatura_sel))&quot;&gt;
>                     selected
>                &lt;dtml-call
> expr=&quot;REQUEST.set(&#039;num_legislatura_sel&#039;,
> num_legislatura)&quot;&gt;
>               &lt;/dtml-if&gt;
>                     value=&quot;&lt;dtml-var num_legislatura&gt;&quot;&gt;
>                &lt;dtml-var
> expr=&quot;pysc.periodo_legislatura_format_pysc(num_legislatura,
> dat_inicio, dat_fim)&quot;&gt;
>                &lt;dtml-if expr=&quot;(_.DateTime() &gt;= dat_inicio) and
> (_.DateTime() &lt;= dat_fim)&quot;&gt;(Atual)&lt;/dtml-if&gt;
>              &lt;/option&gt;
>               &lt;dtml-else&gt;
>              &lt;option selected value=&quot;-1&quot;&gt;&lt;/option&gt;
>                &lt;dtml-call
> expr=&quot;REQUEST.set(&#039;num_legislatura_sel&#039;,
> &#039;-1&#039;)&quot;&gt;
>             &lt;/dtml-in&gt;
>            &lt;/select&gt;
>        &lt;dtml-if expr=&quot;not
> _.has_key(&#039;num_legislatura_sel&#039;)&quot;&gt;
>         &lt;dtml-in
> expr=&quot;zsql.legislatura_obter_zsql(ind_excluido=0)&quot;&gt;
>             &lt;dtml-if sequence-start&gt;
>                &lt;dtml-call
> expr=&quot;REQUEST.set(&#039;num_legislatura_sel&#039;,
> num_legislatura)&quot;&gt;
>             &lt;/dtml-if&gt;
>         &lt;/dtml-in&gt;
>        &lt;/dtml-if&gt;
>        &lt;/td&gt;
>        &lt;td&gt;&lt;/td&gt;
>       &lt;th&gt;&lt;label
> for=&quot;lst_sessao_leg&quot;&gt;&amp;nbsp;Sess&amp;atilde;o
> Legislativa:&lt;/th&gt;
>        &lt;td&gt;
>               &lt;select id=&quot;lst_sessao_leg&quot;
> name=&quot;lst_sessao_leg&quot; size=&quot;1&quot;
> onChange=&quot;atualiza_sessao_leg(form.lst_sessao_leg[form.lst_sessao_leg.selectedIndex].value,
>
> form.lst_num_legislatura[form.lst_num_legislatura.selectedIndex].value)&quot;&gt;
>       &lt;dtml-in
> expr=&quot;zsql.sessao_legislativa_obter_zsql(ind_excluido=0)&quot;&gt;
>             &lt;dtml-if expr=&quot;num_legislatura ==
> num_legislatura_sel&quot;&gt;
>               &lt;option
>                 &lt;dtml-if expr=&quot;(not
> _.has_key(&#039;cod_sessao_leg_sel&#039;) and not
> _.has_key(&#039;prim_sel&#039;))
>                                 or
>                                (_.has_key(&#039;cod_sessao_leg_sel&#039;)
> and cod_sessao_leg == cod_sessao_leg_sel)&quot;&gt;
>                      selected
>                      &lt;dtml-call
> expr=&quot;REQUEST.set(&#039;prim_sel&#039;, cod_sessao_leg)&quot;&gt;
>                      &lt;dtml-call
> expr=&quot;REQUEST.set(&#039;cod_sessao_leg_sel&#039;,
> cod_sessao_leg)&quot;&gt;
>                 &lt;/dtml-if&gt;
>                  value=&quot;&lt;dtml-var cod_sessao_leg&gt;&quot;&gt;
>                  &lt;dtml-var
> expr=&quot;pysc.periodo_legislatura_format_pysc(num_sessao_leg, dat_inicio,
> dat_fim)&quot;&gt;
>                 &lt;dtml-if expr=&quot;(_.DateTime() &gt;= dat_inicio) and
> (_.DateTime() &lt;= dat_fim)&quot;&gt;(Atual)&lt;/dtml-if&gt;
>               &lt;/option&gt;
>             &lt;/dtml-if&gt;
>       &lt;/dtml-in&gt;
>      &lt;/select&gt;
>     &lt;/td&gt;
>    &lt;/tr&gt;
>    &lt;/table&gt;
>   &lt;/fieldset&gt;
>   &lt;fieldset&gt;
>   &lt;legend&gt;Composi&amp;ccedil;&amp;atilde;o da Mesa
> Diretora&lt;/legend&gt;
>      &lt;table id=&quot;mesa-diretora&quot;
> class=&quot;tablesorter&quot;&gt;
>     &lt;dtml-if cod_sessao_leg_sel&gt;
>       &lt;dtml-in
> expr=&quot;zsql.composicao_mesa_obter_zsql(cod_sessao_leg=cod_sessao_leg_sel,
> ind_excluido=0)&quot;&gt;
>         &lt;dtml-if sequence-start&gt;
>          &lt;thead&gt;
>           &lt;tr&gt;
>             &lt;th class=&quot;label&quot;&gt;Foto&lt;/th&gt;// INCLUSÃO
> DESTA TH
>             &lt;th class=&quot;form-label&quot;&gt;&amp;nbsp;Nome do
> Parlamentar&lt;/th&gt;
>             &lt;th
> class=&quot;form-label&quot;&gt;&amp;nbsp;Partido&lt;/th&gt;
>             &lt;th
> class=&quot;form-label&quot;&gt;&amp;nbsp;Cargo&lt;/th&gt;
>           &lt;/tr&gt;
>           &lt;/thead&gt;
>           &lt;tbody&gt;
>         &lt;/dtml-if sequence-start&gt;
>         &lt;dtml-in
> expr=&quot;zsql.parlamentar_obter_zsql(cod_parlamentar=cod_parlamentar,
> ind_excluido=0)&quot;&gt;
>           &lt;dtml-in
> expr=&quot;zsql.cargo_mesa_obter_zsql(cod_cargo=cod_cargo,
> ind_excluido=0)&quot;&gt;
>           &lt;dtml-in
> expr=&quot;sapl_documentos.parlamentar.fotos.objectValues(&#039;Image&#039;)&quot;&gt;//COPIA
> DO DTML DA PAGINA ORIGINAL DO PARLAMENTAR
>           &lt;dtml-if expr=&quot;
> _.str(cod_parlamentar)+&#039;_&#039;+sapl_documentos.parlamentar.fotos.nom_documento
> == id() &quot;&gt;
>             &lt;tr&gt;
>               &lt;td class=&quot;texto&quot;&gt;&lt;a
> href=&quot;&lt;dtml-var absolute_url&gt;&quot;&gt;&lt;img
> width=&quot;30&quot; height=&quot;30&quot; border=&quot;0&quot;
> src=&quot;&lt;dtml-var absolute_url&gt;&quot;&gt;&lt;/a&gt;&lt;/td&gt;
>               &lt;td class=&quot;texto&quot;&gt;&lt;a
> href=&quot;&lt;dtml-var
> URL1&gt;/parlamentar/parlamentar_mostrar_proc?cod_parlamentar=&lt;dtml-var
> cod_parlamentar&gt;&quot;&gt;&lt;b&gt;&lt;dtml-var
> nom_parlamentar&gt;&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;
>               &lt;td class=&quot;texto&quot;&gt;&amp;nbsp;&lt;dtml-var
> sgl_partido missing null=&quot;&quot;&gt;&lt;/td&gt;
>               &lt;td class=&quot;texto&quot;&gt;&amp;nbsp;&lt;dtml-var
> des_cargo&gt;&lt;/td&gt;
>             &lt;/tr&gt;
>           &lt;/dtml-if&gt;
>           &lt;/dtml-in&gt;
>           &lt;/dtml-in&gt;
>         &lt;/dtml-in&gt;
>       &lt;dtml-else&gt;
>         &lt;tr&gt;&lt;td class=&quot;texto&quot;&gt;Nenhum parlamentar
> cadastrado na Composição da Mesa Diretora.&lt;/td&gt;&lt;/tr&gt;
>       &lt;/dtml-in&gt;
>     &lt;dtml-else&gt;
>         &lt;tr&gt;&lt;td class=&quot;texto&quot;&gt;
>           &lt;dtml-if
> expr=&quot;num_legislatura_sel==&#039;-1&#039;&quot;&gt;
>                Não há nenhuma Legislatura cadastrada.
>           &lt;dtml-else&gt;
>                Não há nenhuma Sessão Legislativa cadastrada para a
> Legislatura selecionada.
>           &lt;/dtml-if&gt;
>         &lt;/td&gt;&lt;/tr&gt;
>      &lt;/dtml-if&gt;
>     &lt;/tbody&gt;
>    &lt;/table&gt;
>   &lt;/fieldset&gt;
>  &lt;/form&gt;
>
> &lt;dtml-var standard_html_footer&gt;
> --
> Site da Comunidade GITEC:
> http://colab.interlegis.leg.br
>
> Regras de participação:
> http://colab.interlegis.leg.br/wiki/ComoParticiparComunidade
>
> Para pesquisar o histórico da lista visite:
> http://colab.interlegis.leg.br/wiki/PesquisaListas
>
> Para administrar ou excluir sua conta visite:
> http://listas.interlegis.gov.br/mailman/listinfo/gitec
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.interlegis.gov.br/pipermail/gitec/attachments/20131205/3d5b7cad/attachment.htm 


Mais detalhes sobre a lista de discussão GITEC