| Server IP : 20.75.53.88 / Your IP : 216.73.217.138 [ 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/merenda/ajuste/modulos/escola_almox/ |
Upload File : |
<?php
/**
* Criado por PhpStorm.
* Projeto: SGAE.
* Arquivo: entradas.php.
* Usuário: RalpAlves
* Data: 14/10/2015
* Hora: 11:31
*/
//$data = $conn->query("SELECT * FROM v_lista_processo where cod_cli in(select usu_id from usuarios_ent where usu_id = '$idusu')");
session_start();
$_SESSION['txt_usuario'];
$id_usu_ent = $_SESSION['idusu'];
ini_set('display_errors', 'off');
$rsResult = mysql_query("SELECT * FROM v_lista_escola_remessa where esc_esc_id in(select id_entidade from usuarios_ent where usu_id = '$id_usu_ent') order by esc_id DESC ");
?>
<head>
<script type="text/javascript">
$(document).ready(function () {
$('.tabela').DataTable({
"pagingType": "full_numbers", "lengthMenu": [[8, 25, 50, -1], [8, 25, 50, "Todos"]], stateSave: true, "oLanguage": {
"sProcessing": "Processando. Aguarde...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sZeroRecords": "NENHUM REGISTRO ENCONTRADO!",
"sInfo": "Mostrando _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando 0 até 0 de 0 registros",
"sInfoFiltered": "(de _MAX_ registros no total)",
"sInfoPostFix": "",
"sSearch": "<em class='fa fa-search' title='pesquisar'></em>",
"sUrl": "",
"oPaginate": {
"sFirst": "<em class='fa fa-angle-double-left' title='primeiro registro'>",
"sPrevious": "<em class='fa fa-arrow-circle-left' title='registro anterior'></em>",
"sNext": "<em class='fa fa-arrow-circle-right' title='próximo registro'></em>",
"sLast": "<em class='fa fa-angle-double-right ' title='último registro'>"
}
}
});
});
</script>
<script type="text/javascript" language="javascript">
function recebe_remessa(codDat) {
var Dat = document.getElementById('vvali' + codDat).value;
$.ajax({
type: "GET", url: './modulos/escola_almox/esc_sol_lida.php?var=insvali&dat=' + Dat + '&codcon=' + codDat,
dataType: "html",
success: function (resultado) {
$('#LicDat').html(resultado);
window.location.reload()
//alert(resultado)
}
});
}
</script>
</head>
<!--GRID DA DADOS-->
<body style="padding-top: 40px;"/>
<div class="container panel-body">
<div class="panel panel-primary">
<div class="panel-heading">
<span style='font-size: 18px;'>Entradas | Listagem </span>
</div>
<div class='panel-body'>
<form id='frm_pesq' method='post' action="modulos/remessa/remessa_qtd" target="_blank">
<table class='tabela table table-striped table-hover dt-responsive' cellspacing='0' width='100%' border='0'
'>
<thead>
<tr>
<th>ID</th>
<th>Data</th>
<th>Período</th>
<th>Cardápio</th>
<th>Escola</th>
<th>Programa</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<?php
while ($row = mysql_fetch_array($rsResult)) {
$rem_id = $row['esc_rms_id'];
$rem_ti = $row['esc_tipo'];
$qtd_ite = mysql_num_rows(mysql_query("select * from v_lista_escola_remessa_item WHERE esi_rms_id='$rem_id' and esi_tipo='$rem_ti'"));
$cod_id = $row['esc_id'];
$esc_tipo = $row['esc_tipo'];
$cod_rem = $row['esc_rms_id'];
echo "<tr>";
if ($row['esc_lido']==0) {
echo "<td><b style='color: #cc661a; font-size: 15px;'>" . $row['esc_id'] . "</b></td>";
echo "<td><b style='color: #cc661a; font-size: 15px;'>" . $row['esc_data'] . "</b></td>";
} else {
echo "<td>" . $row['esc_id'] . "</td>";
echo "<td>" . $row['esc_data'] . "</td>";
}
echo "<td>" . $row['esc_dtinic'] . ' a ' . $row['esc_dtfim'] . "</td>";
if ($row['esc_cdp_id']==0) {
echo "<td>REMESSA AVULSA " . ' [ ' . $qtd_ite . ' ]' . "</td>";
} else {
echo "<td>" . utf8_encode($row['cdp_nmcardapio']) . ' [ ' . $qtd_ite . ' ]' . "</td>";
}
if ($row['esc_lido']==0) {
echo "<td><b style='color: #cc661a; font-size: 15px;'>" . utf8_encode($row['esc_nome']) . '-' . $row['esc_esc_id'] . "</b></td>";
} else {
echo "<td>" . utf8_encode($row['esc_nome']) . '-' . $row['esc_esc_id'] . "</td>";
}
echo "<td>" . utf8_encode($row['prg_programa']) . "</td>";
echo "<td><a href='?page=escola_almox/entradas_edt&cod_id=$cod_id&esc_tipo=$esc_tipo&cod_rem=$cod_rem'> <em class='fa fa-eye'
title='visualizar itens'/></a></td>";
if ($row['esc_lido']==0) {
echo "<td>
<a href='#' id='vvali" . $cod_id . "' onclick='recebe_remessa($cod_id)'><img src='img/off.png' width='18' title='CLIQUE PARA RECEBER
A REMESSA N° $cod_rem
E ADICIONAR OS ITENS
AO ESTOQUE DA ESCOLA'/></a>
</td>";
} else {
echo "<td><img src='img/on.png' width='13' title='Remessa Recebida'/></td>";
}
echo "</tr>";
}
?>
</tbody>
</table>
</form>
</div>
</div>
</div>
</html>