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.
		
		
		
		
		
			
		
			
				
					
					
						
							219 lines
						
					
					
						
							10 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							219 lines
						
					
					
						
							10 KiB
						
					
					
				| <html lang="pt-br"><head> | |
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
|     <title>Formulário de Afastamento</title> | |
|     <link href="http://sapl3.interlegis.leg.br/generico/estilos.css" media="all" rel="stylesheet" type="text/css"> | |
| <link href="http://sapl3.interlegis.leg.br/generico/responsive_grid.css" media="all" rel="stylesheet" type="text/css"> | |
| <style type="text/css" media="screen and (max-width: 980px) ">@import url(http://sapl3.interlegis.leg.br/generico/maxwidth980.css)</style> | |
| <style type="text/css" media="screen and (max-width: 650px) ">@import url(http://sapl3.interlegis.leg.br/generico/maxwidth650.css)</style> | |
| <style type="text/css" media="screen and (max-width: 480px) ">@import url(http://sapl3.interlegis.leg.br/generico/maxwidth480.css)</style> | |
| <style type="text/css">@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic)</style> | |
| <link href="http://sapl3.interlegis.leg.br/generico/pform.css" media="all" rel="stylesheet" type="text/css"> | |
| <style type="text/css">@import url(http://sapl3.interlegis.leg.br/generico/datepick.css)</style> | |
| <style type="text/css">@import url(http://sapl3.interlegis.leg.br/generico/jquery.fancybox.css)</style> | |
| 
 | |
| 
 | |
|     <script type="text/javascript" src="http://sapl3.interlegis.leg.br/javascript/jquery.min.js"></script> | |
|     <script type="text/javascript" src="http://sapl3.interlegis.leg.br/javascript/jquery.datepick.js"></script> | |
|     <script type="text/javascript" src="http://sapl3.interlegis.leg.br/javascript/geral.js"></script> | |
|     <script type="text/javascript" src="http://sapl3.interlegis.leg.br/javascript/data_validar_jvsc"></script> | |
|     <script type="text/javascript"> | |
|         <!-- | |
| 
 | |
|         function campos_criticar(form){ | |
| 
 | |
|             if (form.lst_tip_afastamento.selectedIndex==0){ | |
|                 alert("Selecione o motivo do afastamento ou licença!"); | |
|                 form.lst_tip_afastamento.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|             if (form.txt_dat_inicio_afastamento.value == "") { | |
|                 alert("A data início deve ser preenchida."); | |
|                 form.txt_dat_inicio_afastamento.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|             if (!IsValidDate(form.txt_dat_inicio_afastamento.value)) { | |
|                 alert("Digite uma data início válida!"); | |
|                 form.txt_dat_inicio_afastamento.focus(); | |
|                 form.txt_dat_inicio_afastamento.select(); | |
|                 return false; | |
|             } | |
| 
 | |
|             if (form.txt_dat_fim_afastamento.value != "") { | |
|                 if (!IsValidDate(form.txt_dat_fim_afastamento.value)) { | |
|                     alert("Digite uma data fim válida!"); | |
|                     form.txt_dat_fim_afastamento.focus(); | |
|                     return false; | |
|                 } | |
|             } | |
| 
 | |
|             var dat_fim_afastamento = form.txt_dat_fim_afastamento.value; | |
|             dat_fim_afastamento = dat_fim_afastamento.substring(6,10) +'/'+ dat_fim_afastamento.substring(3,5) +'/'+ dat_fim_afastamento.substring(0,2); | |
| 
 | |
|             var dat_inicio_afastamento = form.txt_dat_inicio_afastamento.value; | |
|             dat_inicio_afastamento = dat_inicio_afastamento.substring(6,10) +'/'+ dat_inicio_afastamento.substring(3,5) +'/'+ dat_inicio_afastamento.substring(0,2); | |
| 
 | |
|             if (form.txt_dat_fim_afastamento.value != "") { | |
|                 if (dat_inicio_afastamento >= dat_fim_afastamento) { | |
|                     alert("A data início deve ser menor que a data fim!"); | |
|                     return false; | |
|                 } | |
|             } | |
| 
 | |
| 
 | |
| 
 | |
|             if ((dat_inicio_afastamento > '2016/12/31 00:00:00 GMT+0')||('2013/01/01 00:00:00 GMT+0' > dat_inicio_afastamento)) { | |
|                 alert("A data de início deve estar compreendida no período da\nlegislatura (01/01/2013 - 31/12/2016)!"); | |
|                 form.txt_dat_inicio_afastamento.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|             if (form.txt_dat_fim_afastamento.value != "") { | |
|                 if ((dat_fim_afastamento < '2013/01/01 00:00:00 GMT+0')||('2016/12/31 00:00:00 GMT+0' < dat_fim_afastamento)){ | |
|                     alert("A data de fim deve estar entre compreendida no período da\nlegislatura (01/01/2013 - 31/12/2016)!"); | |
|                     form.txt_dat_fim_afastamento.focus(); | |
|                     return false; | |
|                 } | |
|             } | |
| 
 | |
| 
 | |
|             if (form.lst_suplente.selectedIndex==0){ | |
|                 alert("O suplente deve ser selecionado!"); | |
|                 form.lst_suplente.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|             form.submit(); | |
|         } | |
| 
 | |
|         function afastamento_excluir(form) { | |
| 
 | |
|             if (confirm("Deseja realmente excluir?")) { | |
|                 location.href = "afastamento_excluir_proc?cod_afastamento="; | |
|             } | |
| 
 | |
|         } | |
|         //--> | |
|     </script> | |
| 
 | |
|     <script type="text/javascript"> | |
|         $(function() { | |
|             $('#txt_dat_inicio_afastamento').datepick(); | |
|             $('#txt_dat_fim_afastamento').datepick(); | |
|         }); | |
|     </script> | |
| 
 | |
| </head> | |
| 
 | |
| <body data-pinterest-extension-installed="ff1.35"><h1 class="firstHeading">Afastamento / Licença</h1> | |
| 
 | |
| 
 | |
| 
 | |
| <h4>Alexandre Neu</h4> | |
| 
 | |
| <form class="pf-form" name="afastamento_form" action="afastamento_salvar_proc" method="post"> | |
|     <fieldset> | |
|         <input name="hdn_cod_afastamento" value="" type="hidden"> | |
|         <input name="hdn_cod_parlamentar" value="125" type="hidden"> | |
|         <input name="hdn_cod_mandato" value="177" type="hidden"> | |
|         <input name="hdn_num_legislatura" value="14" type="hidden"> | |
|         <div class="pf-element pf-full-width"> | |
|             <label for="lst_tip_norma"><span class="pf-label pf-required">Legislatura</span></label> | |
|             <select class="pf-field" name="lst_num_legislatura" onfocus="this.initialSelect = this.selectedIndex;" onchange="this.selectedIndex = this.initialSelect;" style="min-width: 270px; width: 100%;"> | |
|                                     <option selected="" value="14"> | |
|                 14ª (2013 - 2016) | |
|                 </option> | |
|                                     <option selected="" value="13"> | |
|                 13ª (2009 - 2012) | |
|                 </option> | |
|                                     <option selected="" value="12"> | |
|                 12ª (2005 - 2008) | |
|                 </option> | |
|                                     <option selected="" value="11"> | |
|                 11ª (2001 - 2004) | |
|                 </option> | |
|                                     <option selected="" value="10"> | |
|                 10ª (1997 - 2000) | |
|                 </option> | |
|                                     <option selected="" value="9"> | |
|                 9ª (1993 - 1996) | |
|                 </option> | |
|                                     <option selected="" value="8"> | |
|                 8ª (1989 - 1992) | |
|                 </option> | |
|                                     <option selected="" value="7"> | |
|                 7ª (1983 - 1988) | |
|                 </option> | |
|                                     <option selected="" value="6"> | |
|                 6ª (1977 - 1983) | |
|                 </option> | |
|                                     <option selected="" value="5"> | |
|                 5ª (1973 - 1977) | |
|                 </option> | |
|                                     <option selected="" value="4"> | |
|                 4ª (1969 - 1973) | |
|                 </option> | |
|                                     <option selected="" value="3"> | |
|                 3ª (1963 - 1969) | |
|                 </option> | |
|                                     <option selected="" value="2"> | |
|                 2ª (1959 - 1963) | |
|                 </option> | |
|                                     <option selected="" value="1"> | |
|                 1ª (1959 - 1959) | |
|                 </option> | |
|                             </select> | |
|         </div> | |
|         <div class="pf-element pf-full-width"> | |
|             <label for="lst_tip_afastamento"><span class="pf-label pf-required">Motivo</span></label> | |
|             <select class="" name="lst_tip_afastamento" style="min-width: 270px; width: 100%;"> | |
|                 <option value="0">Selecione</option> | |
|                                     <option value="1"> | |
|                 Licença Saúde | |
|                 </option> | |
|                                     <option value="3"> | |
|                 Licença para tratar de assuntos particulares | |
|                 </option> | |
|                                     <option value="4"> | |
|                 Licença para exercício de cargo de secretário | |
|                 </option> | |
|                                     <option value="5"> | |
|                 Fim de legislatura | |
|                 </option> | |
|                                     <option value="6"> | |
|                 Volta à suplência | |
|                 </option> | |
|                                     <option value="7"> | |
|                 Falecimento | |
|                 </option> | |
|                             </select> | |
|         </div> | |
|         <div class="pf-element pf-full-width"> | |
|             <label><span class="pf-label pf-required">Período:</span></label> | |
|             <div class="pf-group"> | |
|                 <label for="txt_dat_inicio_afastamento" class="pf-required">Início | |
|                     <input class="pf-field hasDatepick" id="txt_dat_inicio_afastamento" name="txt_dat_inicio_afastamento" style="min-width: 94px; max-width: 94px; width: 20%;" value="" maxlength="10" onblur="formata_data(form.txt_dat_inicio_afastamento)" type="text"></label> | |
|                 <label for="txt_dat_inicio_afastamento"> Fim | |
|                     <input class="pf-field hasDatepick" id="txt_dat_fim_afastamento" name="txt_dat_fim_afastamento" style="min-width: 94px; max-width: 94px; width: 20%;" value="" maxlength="10" onblur="formata_data(form.txt_dat_fim_afastamento)" type="text"></label> | |
|             </div> | |
|         </div> | |
|         <div class="pf-element pf-full-width"> | |
|             <label for="lst_suplente"><span class="pf-label pf-required">Suplente</span></label> | |
|             <select class="pf-field" name="lst_suplente" style="min-width: 270px; width: 100%;"> | |
|                 <option value="0">Selecione</option> | |
|                             </select> | |
|         </div> | |
|         <div class="pf-element pf-full-width" style="min-height:105px;"> | |
|             <label><span class="pf-label">Observação</span></label> | |
|             <textarea class="pf-field" name="txa_txt_observacao" style="max-width: 270px; min-height:70px;"></textarea> | |
|         </div> | |
| 
 | |
| <div class="pf-element pf-buttons pf-centered"> | |
|     <input class="botao" name="btn_salvar" value="Salvar" onclick="campos_criticar(document.afastamento_form)" type="button"> | |
|         <input class="botao" name="btn_fechar" value="Fechar" onclick="parent.jQuery.fancybox.close();" type="button"> | |
| </div> | |
| 
 | |
| 
 | |
| 
 | |
| </fieldset></form></body></html>
 | |
| 
 |