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 : /var/www/laciasmara.com/public_html/shop/application/views/admin/wishlist/ |
Upload File : |
<!DOCTYPE html> <html lang="en"> <head> <!-- Include CSS and JS for DataTables --> <link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.7.2/css/buttons.dataTables.min.css"> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.7.2/js/dataTables.buttons.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.7.2/js/buttons.html5.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.7.2/js/buttons.print.min.js"></script> <style> /* Optional: styling for DataTables */ table.dataTable thead th { background-color: #f2f2f2; } .dt-buttons { margin-bottom: 10px; } </style> </head> <body> <div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/product_index'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke Produk</a></p><br> <h2>Daftar Keinginan Produk Pelanggan</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 --> <section> <div> <table id="wishlistTable" class="table table-striped"> <thead> <tr> <th>No</th> <!-- Add the 'No' column header --> <th>Pelanggan</th> <th>Nama Produk yang diinginkan</th> </tr> </thead> <tbody> <?php if (count($wishlists)) : ?> <?php $no = 1; // Initialize counter ?> <?php foreach ($wishlists as $wishlist) : ?> <tr> <td><?= $no++; ?></td> <!-- Display the counter value --> <td> <ul style="list-style:none; margin-left:0;"> <?php //get customer lists $this->db->select('name, email, phone')->from('customers')->where('id_customers', $wishlist->customer_id); $customer = $this->db->get()->row(); ?> <li>Nama : <?= ucwords($customer->name); ?>, Email : <?= ucwords($customer->email); ?>, Phone : <?= ucwords($customer->phone); ?></li> </ul> </td> <td> <?php //get product name and alias $this->db->select('title, alias')->from('products')->where('id_products', $wishlist->product_id); $product = $this->db->get()->row(); ?> <p><a href="<?= base_url() . 'product/' . $product->alias; ?>" target="_blank"><?= ucwords($product->title); ?></a></p> </td> </tr> <?php endforeach; ?> <?php else : ?> <tr> <td colspan="3">Tidak ada daftar produk yang diinginkan saat ini.</td> </tr> <?php endif; ?> </tbody> </table> </div> <br><br> </section> <script> $(document).ready(function() { $('#wishlistTable').DataTable({ "order": [ [0, "desc"] ], // Optional: set default ordering "paging": true, "searching": true, "info": true, "autoWidth": false, }); }); </script> </body> </html>