| 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/merenda/guaiuba/modulos/remessa/ |
Upload File : |
<?php
/**
* Criado por PhpStorm.
* Projeto: SGAE.
* Arquivo: remessa.php.
* Usuário: RalpAlves
* Data: 29/09/2015
* Hora: 12:00
*/
ini_set('display_errors', 'off');
mysql_select_db($banco, $conexao);
$rsResult = mysql_query("SELECT * FROM v_lista_remessa ORDER BY rms_id");
?>
<head>
<script type="text/javascript">
function excluir_registro(e) {
if (!confirm('Deseja realmente excluir este registro?')) {
if (window.event)
window.event.returnValue = false; else
e.preventDefault();
}
}
</script>
<script>
$('#sign-up').click(function () {
var btn = $(this);
btn.button('loading');
$.ajax(...
).
always(function () {
btn.button('reset');
});
});
</script>
<script type="application/javascript">
function excT(codCon) {
if (document.getElementById('cb_carga' + codCon).checked) {
$("#lista_qtd").show("slow");
} else {
// $ ("#lista_qtd").hide("slow");
}
}
</script>
<script type="application/javascript">
function marcardesmarcar() {
$('.cb_carga').each(function () {
if ($(this).prop("checked"))
$(this).prop("checked", false); else $(this).prop("checked", true);
$("#lista_qtd").show("slow");
});
}
</script>
</head>
<!--GRID DA DADOS-->
<body style="padding-top: 40px;"/>
<div id='print' class='container'>
<p style='font-size: 20px;'>Remessas | Listagem
<button title="incluir nova remessa" type='submit' id="#sign-up" name='bt_cad_remessa' class='btn'
onclick=location.href='?page=./remessa/remessa_cad'><i class="fa fa-plus"></i>
</button>
<a href="?page=remessa/remessa_saldo" target='_blank'>
<i class="glyphicon glyphicon-list-alt text-print-left" title="gerar saldo"></i>
</a>
<a href="modulos/remessa/rpt_rel_remessa.php" target='_blank'>
<i class="glyphicon glyphicon-print text-print navbar-right" title="gerar PDF"></i>
</a>
</p>
<div class='panel panel-body panel-primary filterable'>
<!--EMISSAO DE GUIAS POR ESCOLAS-->
<div class='col-xs-12 col-sm-12 com-md-12 col-lg-12 panel-body'>
<a href="?page=remessa/guia_escola" target='_blank'>
<i style="font-size: 15px;" class="glyphicon glyphicon-print text-print navbar-right" title="Emitir guias por escola">
<span style="font-size: 15px;">Guias por escola</span></i>
</a>
</div>
<form id='frm_pesq' method='post' action="modulos/remessa/remessa_qtd.php" target="_blank">
<table class='tabe1 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>Dias</th>
<th>Cardápio</th>
<th>Escola</th>
<th>Rota</th>
<th>Programa</th>
<th></th>
<th></th>
<th width="2%" style="text-align: center;"><input class="styled" title="listar guias de transporte" type='checkbox' id='cb_carga' onclick='marcardesmarcar()' name='cb_carga'/></th>
</tr>
</thead>
<tbody>
<?php
while ($row = mysql_fetch_array($rsResult)) {
$cod_id = $row['rms_id'];
$dias = $row['rms_dtfim'] - $row['rms_dtinic'];
echo "<tr>";
echo "<td>" . $row['rms_id'] . "</td>";
echo "<td>" . $row['rms_data'] . "</td>";
echo "<td>" . $row['rms_dtinic'] . ' a ' . $row['rms_dtfim'] . "</td>";
echo "<td>" . $dias . "</td>";
echo "<td style='font-size: 9px;'>" . utf8_encode($row['cdp_nmcardapio']) . "</td>";
echo "<td style='font-size: 9px;'>" . utf8_encode($row['esc_nome']) . "</td>";
echo "<td style='font-size: 9px;'>" . $row['rota'] . "</td>";
echo "<td>" . utf8_encode($row['prg_programa']) . "</td>";
echo "<td><a href='?page=remessa/remessa_edt&cod_id=$cod_id'> <em class='fa fa-edit text-orange' title='editar registro'></em></a></td>";
echo "<td><a href='?page=remessa/remessa_crud&cod_id=$cod_id&var_acao=exc_remessa'> <em class='fa fa-trash text-red' title='excluir registro'></em></a></td>";
echo "<td style='text-align: center;'>
<input title='listar guias de transporte' type='checkbox' class='cb_carga' id='cb_carga" . $cod_id . "' onclick='excT($cod_id)' name='cb_carga[]' value='$cod_id'/>
</td>";
echo "</tr>";
}
?>
</tbody>
</table>
<div id='lista_qtd' class='container centro' style="display:none">
<input name='lista' class='btn-primary' type='submit' value='Listar guia de transporte'/>
</div>
</form>
</div>
</div>
</html>