| 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/produto/ |
Upload File : |
<?PHP
ini_set('display_errors', 'off');
if (isset($_POST['txt_pesq'])) {
$ntb = $_POST['txt_pesq'];
}
$rsResult = mysql_query("SELECT * from v_lista_prod WHERE pro_tipo=1 and pro_ativo=1");
?>
<html>
<head>
<title> | Produtos</title>
<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>
</head>
<body style="padding-top: 40px;"/>
<div id='texto' class='container'>
<p style='font-size: 20px;'>Produtos | Listagem
<button type='submit' name='bt_cad_prod' class='btn' onclick=location.href='?page=./produto/produto_cad'>
<i class="fa fa-plus"></i>
</button>
<a class="janela100r" style="font-size: 20px; text-decoration: none;" href="?page=produto/produto_taco" title="Incluir produtos da tabela TACO"> <i class="fa fa-folder-open-o text-center"></i> Tabela TACO</a>
<a href="modulos/relatorio/relacao_produto.php" target='_blank'>
<i class="glyphicon glyphicon-print text-print botao_direita" title="gerar PDF"></i>
</a>
</p>
<div class="container">
<div class=" col-md-12">
<div class='panel panel-body panel-primary filterable'>
<form id='frm_pesq' method='post'>
<table class='tabe1 table table-striped table-hover dt-responsive' cellspacing='0' width='100%' border='0'>
<thead>
<tr>
<th width="2%">ID</th>
<th width="30%">Descrição</th>
<th width="5%">Und.</th>
<!-- <th>Emb.</th>-->
<th width="5%">Peso</th>
<th>Grupo</th>
<th>marca</th>
<th width="2%"></th>
<th width="2%"></th>
<!--<th></th>-->
</tr>
</thead>
<tbody>
<?php
while ($row_rsResult = mysql_fetch_array($rsResult)) {
echo "<tr>";
echo "<td>" . $row_rsResult['pro_id'] . "</td>";
echo "<td>" . utf8_encode($row_rsResult['pro_produto']) . "</a></td>";
echo "<td>" . utf8_encode($row_rsResult['und_desc']) . "</a></td>";
// echo "<td>" . utf8_encode($row_rsResult['ebu_desc']) . "</a></td>";
echo "<td>" . number_format($row_rsResult['pro_pesounit'], 4, ',', '.') . "</a></td>";
echo "<td>" . utf8_encode($row_rsResult['grp_grupo']) . "</a></td>";
echo "<td>" . utf8_encode($row_rsResult['mrc_marca']) . "</a></td>";
$cod_produto = $row_rsResult['pro_id'];
$des_produto = utf8_encode($row_rsResult['pro_produto']);
echo "<td><a href='?page=produto/produto_edt&cod_produto=$cod_produto'> <em class='fa fa-edit text-orange' title='editar registro'></em></a></td>";
echo "<td><a class='janela100' href='?page=produto/produto_movimento&cod_produto=$cod_produto&des_produto=$des_produto' target='_blank'> <em class='fa fa-eye text-green' title='movimentação do produto'></em></a></td>";
// echo "<td><a href='?page=produto/produto_ins&cod_produto=$cod_produto&des_prod=$des_produto&var_acao=excluir'> <em class='fa fa-trash text-red' title='Excluir registro'
// onclick='excluir_registro(event);'/></a></td>";
echo "</tr>";
}
?>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</html>