Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /proc/self/root/var/www/laciasmara.com/public_html/shop/application/views/admin/customers/ |
Upload File : |
<?= $this->session->unset_userdata('location_add_customer'); ?> <div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/customers'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke List Pelanggan</a></p> <h2>Ranking Customers</h2> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="panel panel-default"> <div class="panel-heading"> <!-- form filter data --> <?php echo form_open('admin/customers/getBest', 'class="form-inline" id="penjualan"') ?> <label class="sr-only" for="datetime">start</label> <input required data-date-format="DD MMMM YYYY" type="date" class="form-control mb-2 mr-sm-2" id="startBest" name="startBest" value="<?php echo (isset($_SESSION['startBest'])) ? $_SESSION['startBest'] : "" ?>"> <label class="sr-only" for="datetime">end</label> <div class="input-group mb-2 mr-sm-2"> <input required data-date-format="DD MMMM YYYY" type="date" class="form-control" id="endBest" name="endBest" value="<?php echo (isset($_SESSION['endBest'])) ? $_SESSION['endBest'] : "" ?>"> </div> <button id="submitGetRanking" type="submit" class="btn btn-primary mb-2">Submit</button> </form> </div> <div class="panel-body"> <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#top">By Nominal Order</a></li> <li><a data-toggle="tab" href="#poor">By Jumlah Order</a></li> </ul> <div class="tab-content"> <div id="top" class="tab-pane fade in active"> <!-- jquery datatable table with print --> <table id="nominal" class="display nowrap" style="width:100%"> <thead> <tr> <th>Nama Pelanggan</th> <th>No.Telepon</th> <th>Email</th> <th>Jumlah Order(Rp)</th> </tr> </thead> <tbody> <?php if (count($toppelanggannominal)) : ?> <?php foreach ($toppelanggannominal as $tp) : ?> <tr> <td><?= ucfirst($tp->name); ?></td> <td><?= ucfirst($tp->phone); ?></td> <td><?= ucfirst($tp->email); ?></td> <td><?= number_format($tp->grand_total_amount); ?></td> </tr> <?php endforeach; ?> <?php else : ?> <tr> <td colspan="3">Kami tidak menemukan data apapun</td> </tr> <?php endif; ?> </tbody> </table> </div> <div id="poor" class="tab-pane fade in"> <!-- jquery datatable table with print --> <table id="jumlah" class="display nowrap" style="width:100%"> <thead> <tr> <th>Nama Pelanggan</th> <th>No.Telepon</th> <th>Email</th> <th>Jumlah Order</th> </tr> </thead> <tbody> <?php if (count($toppelanggan)) : ?> <?php foreach ($toppelanggan as $tp) : ?> <tr> <td><?= ucfirst($tp->name); ?></td> <td><?= ucfirst($tp->phone); ?></td> <td><?= ucfirst($tp->email); ?></td> <td><?= ucfirst($tp->jumlah); ?></td> </tr> <?php endforeach; ?> <?php else : ?> <tr> <td colspan="3">Kami tidak menemukan data apapun</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <?php if (isset($use_pagination)) : ?> <?php //create pagination... echo '<p style="text-align:center;">' . $this->pagination->create_links() . '</p>'; ?> <?php endif; ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <iframe id="txtArea1" style="display:none"></iframe> <script src="https://code.jquery.com/jquery-3.5.1.js"></script> <script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.2/js/buttons.flash.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.2/js/buttons.html5.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.2/js/buttons.print.min.js"></script> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.6.2/css/buttons.dataTables.min.css"> <script> // date picker $(function() { $('#datetime, #search-to-date, #startPenjualan, #endPenjualan, #startProduk, #endProduk, #startCustomer, #endCustomer').datepicker(); }); // datatable jquery $(document).ready(function() { $('#jumlah').DataTable({ "info": false, "ordering": false, dom: 'Bfrtip', buttons: [{ extend: 'excelHtml5', title: 'Ranking Customer Berdasarkan Jumlah Order <?php echo (isset($_SESSION['startPenjualan'])) ? $_SESSION['startPenjualan'] . " - " . $_SESSION['endPenjualan'] : "" ?>' }, { extend: 'pdfHtml5', title: 'Ranking Customer Berdasarkan Jumlah Order <?php echo (isset($_SESSION['startPenjualan'])) ? $_SESSION['startPenjualan'] . " - " . $_SESSION['endPenjualan'] : "" ?>' }, { extend: 'print', title: 'Ranking Customer Berdasarkan Jumlah Order <?php echo (isset($_SESSION['startPenjualan'])) ? $_SESSION['startPenjualan'] . " - " . $_SESSION['endPenjualan'] : "" ?>' } ] }); }); $(document).ready(function() { $('#nominal').DataTable({ "info": false, "ordering": false, dom: 'Bfrtip', buttons: [{ extend: 'excelHtml5', title: 'Ranking Customer Berdasarkan Nominal Order <?php echo (isset($_SESSION['startPenjualan'])) ? $_SESSION['startPenjualan'] . " - " . $_SESSION['endPenjualan'] : "" ?>' }, { extend: 'pdfHtml5', title: 'Ranking Customer Berdasarkan Nominal Order <?php echo (isset($_SESSION['startPenjualan'])) ? $_SESSION['startPenjualan'] . " - " . $_SESSION['endPenjualan'] : "" ?>' }, { extend: 'print', title: 'Ranking Customer Berdasarkan Nominal Order <?php echo (isset($_SESSION['startPenjualan'])) ? $_SESSION['startPenjualan'] . " - " . $_SESSION['endPenjualan'] : "" ?>' } ] }); }); </script>