| Server IP : 20.75.53.88 / Your IP : 216.73.217.72 [ Web Server : Apache System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29+esm15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Domains : 3 Domains MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/juridico/pacajus/horizonte/modulos/processos/ |
Upload File : |
<?php
$id = $_GET['id'];
$idend = $_GET['idend'];
//$conn = conexao::getInstance();
$proce = $conn->query("select * from processos WHERE codigo='$id'");
$d = $proce->fetch(PDO::FETCH_OBJ);
//ABAS
$pet = $conn->query("select * from peticoes where cod_proc='$id' and codigo='$idend'");
$a = $pet->fetch(PDO::FETCH_OBJ);
?>
<script src="js/mascara.js" type="text/javascript"></script>
<div class="panel panel-primary active" style="font-size: 17px;" align="center">
Petição | Edição
</div>
<div>
<a name="anda">
<form id="form12" name="form12" enctype="multipart/form-data" OnSubmit="showCarga()" id="frm_peticao" method="post" action="?page=processos/info_crud&var=peticao_edt">
<a name="peticao">
<!--<input type='hidden' name='codigo' value="--><?php //echo $d->codigo ?><!--"/>-->
<input type='hidden' name='codigo' value="<?php echo $a->codigo ?>"/>
<input type='hidden' name='cod_proc' value="<?php echo $a->cod_proc ?>"/>
<input type='hidden' name='num_proc' value="<?php echo $d->n_processo ?>"/>
<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>
<label for='data'>Data</label>
<input type='date' class='form-control' name='data' id='data' value="<?php echo $a->data ?>"/></div>
<div class='col-xs-8 col-sm-2 col-md-2 col-lg-2'>
<label for='cli_ver'>Cliente</label>
<?php if ($a->cli_ver==1) { ?>
<input type='checkbox' class='checkbox' checked name='cli_ver' id='cli_ver' value="1"/>
<?php } else { ?>
<input type='checkbox' class='checkbox' name='cli_ver' id='cli_ver' value="1"/>
<?php } ?>
</div>
<div class='col-xs-12 col-sm-7 col-md-7 col-lg-7'>
<label for='descri'>Descrição</label>
<input type='text' class='form-control upper' name='descri' id='descri' value="<?php echo $a->descri ?>"/></div>
<div class='col-xs-10 col-sm-10 col-md-10 col-lg-10'>
<label for='caminho'>Adicionar arquivo</label>
<input id="file-0a" class="file" name="caminho" type="file" multiple data-min-file-count="0">
<i class="fa fa-info-circle"></i><span> deixe em branco se não deseja alterar o arquivo</span>
</div>
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2'>
<label for='bt_novo'> </label>
<br>
<button type="submit" name="bt_novo" class="btn btn-primary form-control"><i class="glyphicon glyphicon-ok"></i></button>
</div>
</a>
</form>
</a>
</div>