����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.20.221.0 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/muebles/pos11/core/app/view/ |
Upload File : |
<?php if(isset($_GET["id"])): $product = ProductData::getById($_GET["id"]); ?> <div class="row"> <div class="col-md-12"> <a href="index.php?view=reportsbyproduct" class="pull-right btn btn-lg btn-default "> <i class="glyphicon glyphicon-chevron-left"></i> Regresar </a> <h1><?php echo $product->name; ?> <small>Reporte </small></h1> <form> <div class="jumbotron" id="wellcome"> <h2>Bienvenido al sistema de reportes</h2> <p>Te invitamos a que selecciones un rango de fechas (fecha inicial - fecha final) en las opciones de abajo.</p> </div> <div class="well"> <table class="table table-bordered"> <thead> <tr> <div class="col-md-3"> </div> <div class="col-md-3"> <input type="date" name="sd" value="<?php if(isset($_GET["sd"])){ echo $_GET["sd"]; }?>" class="form-control"> </div> <div class="col-md-3"> </div> <div class="col-md-3"> <input type="date" name="ed" value="<?php if(isset($_GET["ed"])){ echo $_GET["ed"]; }?>" class="form-control"> </div> <th></th> </tr> </thead> <tbody> <tr> <td id="startDate"></td> <td id="endDate"></td> <td id=""> <input type="hidden" name="view" value="productreport"> <input type="hidden" name="id" value="<?php echo $product->id; ?>"> <input type="hidden" name="sd" id="stdate"> <input type="hidden" name="ed" id="endate"> <div class="col-md-3"> </div> <div class="col-md-3"> </div> <button type="submit" class="btn btn-lg btn-primary"><i class="fa fa-file-text"></i> Generar Reporte</button> </form> </td> </tr> </tbody> </table> <div class="alert alert-danger" id="alert"> <strong></strong> </div> </div> </div> </div> <!--- --> <div class="row"> <div class="col-md-12"> <?php if(isset($_GET["sd"]) && isset($_GET["ed"]) ):?> <?php if($_GET["sd"]!=""&&$_GET["ed"]!=""):?> <?php $operations = OperationData::getPPByDateOfficial($_GET["sd"],$_GET["ed"]); ?> <?php if(count($operations)>0):?> <script> $("#wellcome").hide(); </script> <table class="table table-hover table-bordered"> <thead> <th>Id</th> <th>Producto</th> <th>Cantidad</th> <th>Tipo</th> <th>Fecha</th> </thead> <?php foreach($operations as $operation):?> <tr> <td><?php echo $operation->id; ?></td> <td><?php echo $operation->getProduct()->name; ?></td> <td><?php echo $operation->q; ?></td> <td><?php echo $operation->getOperationType()->name; ?></td> <td><?php echo $operation->created_at; ?></td> </tr> <?php endforeach; ?> </table> <?php else: // si no hay operaciones ?> <script> $("#wellcome").hide(); </script> <div class="jumbotron"> <h2>No hay operaciones</h2> <p>El rango de fechas seleccionado no proporciono ningun resultado de operaciones.</p> </div> <?php endif; ?> <?php else:?> <script> $("#wellcome").hide(); </script> <div class="jumbotron"> <h2>Fecha Incorrectas</h2> <p>Puede ser que no selecciono un rango de fechas, o el rango seleccionado es incorrecto.</p> </div> <?php endif;?> <?php endif; ?> </div> </div> <br><br><br><br> <?php endif; ?>