mirror of https://github.com/interlegis/sapl.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							429 lines
						
					
					
						
							21 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							429 lines
						
					
					
						
							21 KiB
						
					
					
				| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 
 | |
| 
 | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt"> | |
| <head> | |
|   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
|   <title>Sistema de Apoio ao Processo Legislativo</title> | |
|   <meta name="generator" content="SAPL - Sistema de Apoio ao Processo Legislativo - http://www.interlegis.leg.br/sapl" /> | |
| 
 | |
|   <style type="text/css"><!-- @import url(http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/manage_page_style); --></style> | |
|   <style type="text/css"><!-- @import url(http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/estilos.css); --></style> | |
|   <link rel="shortcut icon" type="image/x-icon" href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/imagens/favicon.ico" /> | |
| 
 | |
|   <script type='text/javascript' src='http://devsapl25.interlegis.leg.br:8080/curso/sapl01/javascript/geral.js'></script> | |
| 
 | |
|   </head> | |
| <body> | |
|       <div id="pagina"> | |
|       <div id="topo"> | |
| 
 | |
| 
 | |
|     <h1 id="logo"> | |
|           <img src="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/imagens/brasao.gif" alt="Logotipo da Casa Legislativa" /> | |
|       </h1> | |
|   <div id="identidade"> | |
|     <h2>Câmara Municipal de Demonstração</h2> | |
|     <h3>Sistema de Apoio ao Processo Legislativo</h3> | |
|   </div> | |
|   <div id="busca"> | |
|     <form name="top_bar_form" action="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/palavra_chave_buscar_proc"> | |
|     <fieldset> | |
|       <legend>Busca por palavra-chave</legend> | |
|       <input id="campoBusca" type="text" name="txt_palavra_chave" size="20" /> | |
|       <input class="botaoBusca" type="submit" value="buscar" /> | |
|     </fieldset> | |
|     </form> | |
|   </div> | |
|   <br clear="all" /> | |
| </div> | |
| 
 | |
| <div id="funcoes"> | |
|       <span>usuário: <strong>saploper</strong></span> | |
|     <ul> | |
|     <li> <a class="inicio" href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01">início</a></li> | |
| 
 | |
|     <li> <a class="voltar" href="javascript:history.back();">voltar</a></li> | |
| 
 | |
| 
 | |
|     <li><a class="impressao" href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/documento_administrativo/documento_administrativo_form?impressao=1&">impressão</a></li> | |
|     <li><a class="manual" href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/ajuda">manual</a></li> | |
|           <li><a class="sair" href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/log_out_proc">sair</a></li> | |
|       </ul> | |
|   <br clear="all" /> | |
| </div> | |
| 
 | |
|       <div id="corpo"> | |
|         <div id="menu"> | |
|   <h5>Menu</h5> | |
| 
 | |
|             <ul> | |
| 
 | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/mesa_diretora">Mesa Diretora</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/comissao">Comissões</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/parlamentar">Parlamentares</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/consultas/protocolo/protocolo_pesquisar_form?incluir=1">Protocolo Geral</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/consultas/documento_administrativo/documento_administrativo_pesquisar_form?incluir=1">Documentos Administrativos</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/recebimento_proposicao">Recebimento de Proposições</a></li> | |
|         <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/consultas/pauta_sessao">Pauta da Sessão</a></li> | |
|         <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/materia_pesquisar_form?incluir=1">Matérias Legislativas</a></li> | |
|         <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/materia/tramitacao/tramitacao_lote_form">Tramitação em Lote</a></li> | |
|         <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/materia/documento_acessorio/documento_acessorio_lote_form">Acessório em Lote</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/sessao_plenaria">Sessão Plenária</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/norma_juridica_pesquisar_form?incluir=1">Normas Jurídicas</a></li> | |
| 
 | |
|         <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/impressos/materia_impresso_form">Impressos</a></li> | |
| 
 | |
|              <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/relatorios_administrativos">Relatórios</a></li> | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/cadastros/auxiliares">Tabelas Auxiliares</a></li> | |
| 
 | |
| 
 | |
|               <li><a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/senha_trocar_form">Troca de Senha</a></li> | |
| 
 | |
| 
 | |
|            </ul> | |
|   <br /> | |
|   <fieldset> | |
|     <legend>Pesquisar no <a href="http://www.lexml.gov.br/" title="Rede de Informação Legislativa e Jurídica">LexML</a></legend> | |
|     <form method="get" action="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/lexml_pesquisar"> | |
|       <input class="buscaLexml" type="text" name="keyword" title="Busca por palavra-chave" value="" /> | |
|       <input type="image" value="Buscar" alt="Buscar" src="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/imagens/lexml.gif" /> | |
|     </form> | |
|   </fieldset> | |
| <br /> | |
| </div> | |
| 
 | |
|         <div id="conteudo"> | |
| 
 | |
| 
 | |
| 
 | |
| <script type="text/javascript" language="Javascript" src="javascript/data_validar_jvsc"></script> | |
| <script type="text/javascript" src="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/javascript/prototype.min.js"></script> | |
| <style  type="text/css"><!-- @import url(http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/datepicker.css); --></style> | |
| <script type="text/javascript" language="Javascript"> | |
| 
 | |
|    function submeter(endereco){ | |
|       /*----------------------------- | |
|          Função: Confirma se o usuário deseja salvar os dados ao clicar em | |
|                link do formulário que não os botões SALVAR ou EXCLUIR. | |
|          Argumentos: endereco : txt - é o endereço que deve ser renderizado | |
|                      apos a confirmação ou não de salvar os dados. | |
|          Retorno: Uma janela de confirmação. Se o usuário confirmar, ele | |
|                 invoca o método documento_administrativo_salvar_proc. | |
|                 Se ele cancelar, a função apenas renderiza o endereço | |
|                 (caso esteja na atualizacao). | |
|          Luciano De Fazio em 02/11/2011. | |
|       ------------------------------*/ | |
| 
 | |
|       var form = document.documento_administrativo_form; | |
| 
 | |
|       endereco += '?cod_documento=' + form.hdn_cod_documento.value; | |
| 
 | |
|       if (form.hdn_alterou.value=="1"){ | |
|          if (confirm("Deseja salvar os dados?")){ | |
|             form.hdn_url.value = endereco; | |
|             campos_criticar(form); | |
|          } | |
|       } | |
| 
 | |
|       if (form.hdn_cod_documento.value!=""){ | |
|           location.href = endereco; | |
|       } | |
|       return; | |
|    } | |
| 
 | |
|   function campos_criticar(){ | |
|       /*----------------------------- | |
|          Função: Critica os campos obrigatórios do formulário. É chamada | |
|                 ou pela função submeter acima ou pelo botão btn_documento_administrativo_salvar | |
|                 do formulário para validação dos campos. | |
|          Argumentos: form : formulário - é o formulário em si. | |
|          Retorno: Invoca o SUBMIT do formulário ou retorna valor booleano | |
|                 falso ,caso haja algum campo incorreto, juntamente com uma | |
|                 uma mensagem de erro e o cursor no campo a ser corrigido. | |
|          Luciano De Fazio em 02/11/2011 | |
|       ------------------------------*/ | |
| 
 | |
|       var form = document.documento_administrativo_form; | |
|       var regexp_digitos = /\D+/; | |
| 
 | |
|       if (form.lst_tip_documento.selectedIndex==0){ | |
|           alert("Escolha um tipo de documento!"); | |
|           form.lst_tip_documento.focus(); | |
|           return false; | |
|       } | |
| 
 | |
|       if (form.txt_num_documento.value == "") { | |
|          alert("O número do documento deve ser preenchido!"); | |
|          form.txt_num_documento.focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       if (regexp_digitos.test(form.txt_num_documento.value)) { | |
|          alert("O número do documento deve ser um número natural!"); | |
|          form.txt_num_documento.focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       form.hdn_num_documento.value = parseInt(form.txt_num_documento.value); | |
| 
 | |
|       if (regexp_digitos.test(form.txt_num_protocolo.value)) { | |
|          alert("O número do protocolo deve ser um número natural!"); | |
|          form.txt_num_protocolo.focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       if (regexp_digitos.test(form.txt_num_dias_prazo.value)) { | |
|          alert("O número de dias de prazo deve ser um número natural!"); | |
|          form.txt_num_dias_prazo.focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       if (form.txt_ano_documento.value == "") { | |
|          alert("O ano do documento deve ser preenchido!"); | |
|          form.txt_ano_documento.focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       if (form.txt_dat_documento.value == "") { | |
|          alert("A data do documento deve ser preenchida!"); | |
|          form.txt_dat_documento.focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       if (form.txa_txt_assunto.value == "") { | |
|          alert("O assunto do documento deve ser preenchido!"); | |
|          form.txa_txt_assunto.focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       if (!(form.rad_ind_tramitacao[0].checked || | |
|             form.rad_ind_tramitacao[1].checked)){ | |
|          alert("O índice de tramitação deve ser informado!"); | |
|          form.rad_ind_tramitacao[0].focus(); | |
|          return false; | |
|       } | |
| 
 | |
|       if (form.txt_dat_documento.value!="" && !IsValidDate(form.txt_dat_documento.value)){ | |
|          alert("Digite uma data válida!"); | |
|          form.txt_dat_documento.focus(); | |
|          form.txt_dat_documento.select(); | |
|          return false; | |
|       } | |
| /* ------------------------------------ validação ano da data apresentação = ano da identificação básica ---------- | |
|       var dtapm=form.txt_dat_documento.value; | |
|       var anoi=form.txt_ano_documento.value; | |
|       var ano=dtapm.substring(6,10); | |
|  | |
|       if (ano != anoi){ | |
|          alert("O ano da data do documento deve ser o mesmo do ano da documento!"); | |
|          form.txt_dat_documento.focus(); | |
|          form.txt_dat_documento.select(); | |
|          return false; | |
|       } | |
| ---------------------------------------------------------------------------------------------------------------*/ | |
| 
 | |
|       if (form.txt_dat_fim_prazo.value!="" && !IsValidDate(form.txt_dat_fim_prazo.value)){ | |
|          alert("Digite uma data de fim de prazo válida!"); | |
|          form.txt_dat_fim_prazo.focus(); | |
|          form.txt_dat_fim_prazo.select(); | |
|          return false; | |
|       } | |
| 
 | |
|       form.submit(); | |
|     } | |
| 
 | |
|   function documento_administrativo_excluir(){ | |
|       /*----------------------------- | |
|          Função: Chama o Método DTML de exclusão do documento administrativo. | |
|          Argumentos: (). | |
|          Retorno: Retorna uma mensagem de exclusão bem sucedida e | |
|                 redireciona à página 'index_html'. | |
|          Luciano De Fazio em 02/11/2011. | |
|       ------------------------------*/ | |
| 
 | |
|        if (confirm("Deseja realmente excluir?")) { | |
|           location.href="documento_administrativo_excluir_proc?cod_documento=&url=http://devsapl25.interlegis.leg.br:8080/curso/sapl01"; | |
|        } | |
|        return; | |
|   } | |
| 
 | |
|   function texto_integral_excluir(){ | |
|       /*----------------------------- | |
|          Função: Chama o Método DTML de exclusão do texto integral | |
|          Argumentos: (). | |
|          Retorno: Retorna uma mensagem de exclusão bem sucedida e | |
|                   redireciona à página 'documento_administrativo_form'. | |
|          Luciano De Fazio em 02/11/2011 | |
|       ------------------------------*/ | |
| 
 | |
|        if (confirm("Deseja realmente excluir o texto integral?")) { | |
|           location.href="texto_documento_administrativo_excluir_proc?cod_documento="; | |
|        } | |
|        return; | |
|   } | |
| 
 | |
|   function numero_buscar(form){ | |
|      if ((form.lst_tip_documento.selectedIndex != 0) && | |
|      (form.txt_ano_documento.value!="")){ | |
|     location.href="numero_buscar_proc?tip_documento="+form.lst_tip_documento[form.lst_tip_documento.selectedIndex].value+ | |
|           "&ano_documento="+form.txt_ano_documento.value; | |
|      } | |
|   } | |
| 
 | |
| </script> | |
| 
 | |
| <a id="ajuda" href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/ajuda/cadastro_documento_administrativo">Ajuda</a> | |
| <h1> Documentos Administrativos </h1> | |
| 
 | |
| <form action="documento_administrativo_salvar_proc" name="documento_administrativo_form" method="post" enctype="multipart/form-data"> | |
| 
 | |
| <fieldset> | |
|     <legend>Formulário de Cadastro</legend> | |
| 
 | |
|   <input type="hidden" name="hdn_cod_documento" value="" /> | |
|   <input type="hidden" name="hdn_url" value="documento_administrativo_mostrar_proc?cod_documento=" /> | |
|   <input type="hidden" name="hdn_alterou" value="0" /> | |
| 
 | |
|         <fieldset> | |
|          <legend>Indentificação Básica</legend> | |
|                 <table> | |
|                         <tr> | |
|                          <td><label for="lst_tip_documento">Tipo Documento<span class="campoObrigatorio"> </span></label><br /> | |
|                            <select id="lst_tip_documento" name="lst_tip_documento" onChange="numero_buscar(document.documento_administrativo_form)" > | |
|                                  <option>Selecione</option> | |
|                                                               <option | |
|                                                                                                              value="1"> | |
|                                        CNV - Convite | |
|                                  </option> | |
|                                                               <option | |
|                                                                                                              value="2"> | |
|                                        OFC - Oficio | |
|                                  </option> | |
|                                                               <option | |
|                                                                                                              value="3"> | |
|                                        REQ - Requerimento | |
|                                  </option> | |
|                                                               </select> | |
|                                                          </td> | |
|                            <td><label for="txt_num_documento">Número <span class="campoObrigatorio"> </span></label><br /> | |
|                              <input type="hidden" name="hdn_num_documento" value="" /> | |
|                              <input type="text" id="txt_num_documento" name="txt_num_documento" size="6" maxlength="6" value="" /> | |
|                            </td> | |
| 
 | |
|                            <td><label for="txt_ano_documento">Ano <span class="campoObrigatorio"> </span></label><br /> | |
| 
 | |
|                                                          <input type="text" id="txt_ano_documento" name="txt_ano_documento" size="4" maxlength="4" value="2015"> | |
|                            </td> | |
|             </tr> | |
|             <tr> | |
|                           <td><label for="txt_dat_documento">Data <span class="campoObrigatorio"> </span></label><br /> | |
| 
 | |
|                                                          <input type="text" id="txt_dat_documento" name="txt_dat_documento" size="10" maxlength="10" value="29/06/2015" onBlur="formata_data(form.txt_dat_documento)" onChange="javascript:form.hdn_alterou.value=1" /> | |
|                             <script type="text/javascript"> | |
|                                 /*<[CDATA[*/ | |
|                                 var dpck = new DatePicker({ | |
|                                 relative : 'txt_dat_documento', | |
|                                 language : 'pt' | |
|                                 }); | |
|                                 /*]]>*/ | |
|                               </script> | |
|                             </td> | |
|                             <td><label for="txt_num_protocolo">Núm. Protocolo</label><br /> | |
|                              <input type="text" id="txt_num_protocolo" name="txt_num_protocolo" size="6" maxlength="6" value="" /> | |
|                             </td> | |
|                         </tr> | |
|                         <tr> | |
|                           <td colspan="3"><label for="txa_txt_assunto">Assunto </label> <span class="campoObrigatorio"> </span> | |
|                             <textarea id="txa_txt_assunto" name="txa_txt_assunto" cols="67" rows="4" onBlur="form.txa_txt_assunto.value = form.txa_txt_assunto.value.toUpperCase()" onChange="javascript:form.hdn_alterou.value=1"></textarea> | |
|                           </td> | |
|                         </tr> | |
|                         <tr> | |
|                           <td colspan="2"><label for="txa_txt_interessado">Interessado </label><br /> | |
|                             <input type="text" id="txa_txt_interessado" name="txa_txt_interessado" size="50" maxlength="50" value="" /> | |
|                           </td> | |
|                           <td><label>Em Tramitação? </label><span class="campoObrigatorio"> </span> <br /> | |
|                             <input type="radio" id="rad_ind_tramitacao" name="rad_ind_tramitacao" value="1" | |
|                                 onChange="javascript:form.hdn_alterou.value=1" /> | |
|                               <span class="texto">Sim</span> | |
|                             <input type="radio" id="rad_ind_tramitacao" name="rad_ind_tramitacao" value="0" | |
|                                 onChange="javascript:form.hdn_alterou.value=1" /> | |
|                               <span class="texto">Não</span> | |
|                           </td> | |
|                         </tr> | |
|                         <tr> | |
|                           <td colspan="3"><label for="radTipTxtIntegral">Texto Integral</label><br /> | |
| 
 | |
|                                                         <input type="file" name="file_nom_arquivo" size="40" maxlength="100" /> | |
|                            </td> | |
|                                                   </tr> | |
|                       </table> | |
|       </fieldset> | |
| 
 | |
|       <fieldset> | |
|           <legend>Outras Informações</legend> | |
|                        <table> | |
|                         <tr> | |
|                           <td><label for="txt_num_dias_prazo">Dias Prazo </label><br /> | |
|                             <input type="text" id="txt_num_dias_prazo" name="txt_num_dias_prazo" size="2" maxlength="2" value="" onChange="javascript:form.hdn_alterou.value=1" /> | |
|                           </td> | |
|                           <td><label for="txt_dat_fim_prazo">Data Fim Prazo </label><br /> | |
|                             <input type="text" id="txt_dat_fim_prazo" name="txt_dat_fim_prazo" size="10" maxlength="10" value="" onBlur="formata_data(form.txt_dat_fim_prazo)" onChange="javascript:form.hdn_alterou.value=1" /> | |
|                             <script type="text/javascript"> | |
|                                 /*<[CDATA[*/ | |
|                                 var dpck = new DatePicker({ | |
|                                 relative : 'txt_dat_fim_prazo', | |
|                                 language : 'pt' | |
|                                 }); | |
|                                 /*]]>*/ | |
|                               </script> | |
|                           </td> | |
|                         <tr> | |
|                           <td colspan="3"><label for="txa_txt_observacao">Observação</label> | |
|                             <textarea id="txa_txt_observacao" name="txa_txt_observacao" cols="67" onChange="javascript:form.hdn_alterou.value=1"></textarea> | |
|                           </td> | |
|                         </tr> | |
|       </table> | |
| </fieldset> | |
|  <p align="center"> | |
|   <input type="button" class="botao" name="button" value="Salvar" onClick="campos_criticar()" /> | |
|        | |
|   </p> | |
| </fieldset> | |
| </form> | |
| 
 | |
|       </div> | |
|       <br clear="all" /> | |
|     </div> | |
|     <div id="rodape"> | |
|       <address> | |
|                   Av. George Washington, 3580 | |
|                       - São José da Lagoa Tapada - PB | |
|                                 - CEP: 12345-678 - | |
|                                                         Telefone: (12)3456-7890 | |
|                       - Fax: (09)8765-4321 | |
|                           <br /> | |
| 
 | |
|               Portal: <a href="http://www.camaramunicipal.gov.br" target="_blank">http://www.camaramunicipal.gov.br</a> | |
|  <!--         Portal: <a href="http://www.camaramunicipal.gov.br">http://www.camaramunicipal.gov.br</a> -   --> | |
|                                               E-mail: <a href="mailto:faleconosco@camaramunicipal.gov.br">faleconosco@camaramunicipal.gov.br</a> | |
|               </address> | |
|       <div> | |
|         <a href="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/generico/licenca"><img src="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/imagens/interlegis.gif" width="80" height="15" alt="Desenvolvido pelo Interlegis" /></a> | |
|         <a href="http://www.zope.org/Credits"><img src="http://devsapl25.interlegis.leg.br:8080/curso/sapl01/imagens/zope.png" width="80" height="15" alt="Desenvolvido em Zope" /></a> | |
|       </div> | |
|     </div> | |
|   </div> | |
| </body> | |
| </html> | |
| 
 | |
| 
 | |
| 
 |