Viewing file: pareceres_cad.php (10.83 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../../config/config.php"); include(INCLUDES . "conexaoBD.php"); include(INCLUDES . "sentencas_sql.php"); include(INCLUDES . "funcoes_uteis.php"); include(INCLUDES . "valida_usuario.inc.php"); // include_once("../../../lib/fckeditor/fckeditor.php");
if(isset($_GET["idParecer"])) { $_SESSION["link_voltar"] = basename($_SERVER["HTTP_REFERER"]); $sql = "SELECT * FROM pareceres_juridicos WHERE PRJ_RowID = {$_GET['idParecer']}";
$rsParecer = $conexao->query($sql,MYSQLI_ASSOC); $parecer = $rsParecer->fetch_array();
$idParecer = $_GET['idParecer']; $titulo = $parecer["PRJ_Titulo"]; $fileName = $parecer["PRJ_Anexo"]; $conteudo = $parecer["PRJ_Oberservacao"]; } else { $idParecer = null; $titulo = ""; $conteudo = ""; $fileName = ""; }
?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Description" content="IRPEN"> <meta name="Keywords" content=""> <meta name="resource-type" content="document"> <meta name="classification" content="Internet"> <meta name="robots" content="all"> <meta name="rating" content="General"> <meta name="Author" content="Ninart! Solucoes para Web."> <meta name="language" content="pt-br"> <link rel="shortcut icon" href="imagens/favicon.gif"type="image/gif"> <link rel="stylesheet" href="<?= HOST;?>css/irpen.css" type="text/css" /> <link rel="stylesheet" media="all" type="text/css" href="<?= HOST;?>css/menu_dropline.css" /> <!--[if IE]> <link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie.css" /> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie6.css" /> <![endif]--> <title>IRPEN | Instituto de Registro Civil de Pessoas Naturais do Paran� - 2008</title> <script type="text/javascript" src="<?= HOST;?>includes/jquery-1.2.6.js"></script> <script type="text/javascript" src="<?= HOST;?>includes/jquery.maskedinput-1.1.3.js"></script> <script type="text/javascript" src="<?= HOST;?>includes/jquery-ui.js"></script> <link rel="stylesheet" href="../../flora.datepicker.css" type="text/css" media="screen" title="Flora (Default)"> <link rel="stylesheet" href="<?= HOST?>site/ipanel/js/tiny_mce/themes/advanced/skins/default/ui.css"> <link rel="stylesheet" href="<?= HOST?>site/ipanel/js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css">
<script type="text/javascript" src="<?= HOST;?>includes/ui.datepicker-pt-BR.js"></script> <script type="text/javascript" src="<?= HOST;?>includes/jquery.form.js"></script> <script type="text/javascript" src="<?= HOST;?>includes/cnpj.js"></script> <script type="text/javascript" src="<?= HOST;?>includes/util.js"></script> <script type="text/javascript" src="<?= HOST;?>includes/email.js"></script> <script type="text/javascript" src="noticia_jurisprudencia_cad.js"></script> <script src="<?= HOST?>site/ipanel/js/tiny_mce/tiny_mce.js"></script> <script src="<?= HOST?>site/ipanel/js/tiny_mce/tiny_mce_init.js"></script>
<style type="text/css"> <!-- .style1 { color: #666666; font-weight: bold; } --> .mceLayout { width: 100% !important; } </style> <script> tinymce.init({selector: "textarea",plugins: ["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste moxiemanager"],toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"});
</script> </head> <body> <div id="wrap">
<?php include "../../topo_gestao.php";?>
<!-- content-wrap starts --> <div id="content-wrap"> <table width="100%" border="0"> <tr><!-- <td align="left" valign="top" width="20%"> <?php //Menu do site //include(DIR_ADMIN . "menu_gestao.php"); ?> </td> <td align="left" valign="top" bgcolor="#cccccc"> </td>--> <td align="left" valign="top" bgcolor="#FFFFFF" width="1%"> </td> <td align="left" valign="top"> <table width="100%" border="0" > <tr> <td align="left" valign="top"> <h2>CADASTRO DE PARECERES</h2> <div id="linha_h2" > </div> <form action="pareceres_grava.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="idParecer" id="hddNoticia" value="<?= $idParecer;?>"> <input type="hidden" value="<?= $fileName?>" name="parecerName"> <table width="98%" border="0"> <tr> <td align="left" valign="top"> </td> </tr> <?php
if((isset($_GET["msg"])) && (!empty($_GET["msg"]))) { if((isset($_GET["erro"]) && $_GET["erro"])) { $class_msg = "msg_erro"; } else { $class_msg = "msg_ok"; } ?> <tr> <td align="left" colspan="2"> <p class="<?= $class_msg;?>"><?= $_GET["msg"];?></p> <br /> </td> </tr> <?php } ?> <tr> <td align="left" valign="top" colspan="2"> <p class="aviso"><span class="obrigatorio">*</span> Campos Obrigatórios</p> </td> </tr> <tr> <td width="23%" align="right" valign="top"> Título <span class="obrigatorio">*</span>: </td> <td align="left" valign="top"> <input name="txtTitulo" style="width: 98%;padding: 5px;" value="<?= $titulo;?>" /> </td> </tr> <tr> <td valign="top" colspan="2"> <label style="font-size: larger;" for="">Observação:</label> <textarea name="conteudo"><?= $conteudo?></textarea> </td> </tr> <tr> <td width="23%" align="right" valign="top"> Anexo: </td> <td align="left" valign="top"> <input name="parecer" type="file" id="parecer" style="width: 30%;padding: 5px; margin: 5px 0;" /> </tr>
<tr> <td align="left" valign="top"> </td> <td align="left" valign="top"> </td> </tr> <tr> <td align="center" valign="top" colspan="2"> <label>
<input type="submit" value="Salvar" style="padding: 5px; height: auto;" id="btnConfirmar" /> <input type="reset" name="btnLimpar" id="btnLimpar" style="padding: 5px; height: auto;" value="Limpar" /> <input type="button" name="btnVoltar" id="btnVoltar" style="padding: 5px; height: auto;" value="Voltar" onclick="javascript: history.go(-1);" /> </label> </td> </tr> </table> </form> </td> </tr> </table> <br /> </td> </tr> </table> </div> <div align="center"> <strong><br /> Rua Mal. Deodoro, 51 - Galeria Ritz - 18� Andar | Fone: (41) 3232-9811 | CEP 80.020-905 - Curitiba - Paran�</strong> <!-- content-wrap ends--> </div> <!-- footer starts --> <div id="footer-wrap"> </div> <div id="rodape"> </div> </div> <script> jQuery(function($){ $("#txtData").mask("99/99/9999"); }); </script> </body> </html>
|