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/serbaantik.com/public_html/application/views/admin/products/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/dashboard'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Dashboard</a></p><br> <h2>Manage Products</h2> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div> </div> <?= form_open_multipart('admin/products/import_excel'); ?> <div class="row"> <div class="col-sm-3"> <p>Excel Import</p> </div> <div class="col-sm-9"> <input required class="form-control" type="file" name="fileExcel" size="20" /><br> <span style="font-size:12px; font-style: italic;">File must be in Excel format (XLSX).</span> <span style="color:#F7931E;"><?= form_error('fileExcel'); ?></span> <?= $this->session->flashdata('fileExcel-error'); ?> <input type="submit" name="upload_excel" class="btn btn-success" value="UPLOAD"> <br> <p>Important Note: <br> 1. During Upload, please wait until process finish. Do not close current window. <br> 2. Please upload Excel file per category. 1 Excel file for 1 category only. <br> 3. Previous products, varians, and attributes datas will be deleted for this category, and replaced with data from new Excel file. </p> </div> </div> <?= form_close() ?> <div class="row"> <div class="col-sm-6"> <p><?= anchor('admin/products/add', '<i class="fa fa-plus" aria-hidden="true"></i> ADD A NEW PRODUCT', 'class="btn btn-success"'); ?></p> </div> <div class="col-sm-6"> <?= form_open('admin/products') ?> <div style="display:grid; grid-template-columns: 3fr 1fr 1fr; grid-gap:10px"> <input type="text" placeholder="Find product by Name / SKU" name="keyword" class="form-control" required value="<?php if(isset($keyword)) : ?><?= $keyword ?><?php endif ?>" /> <input type="submit" name="search_product" class="btn btn-success" value="SEARCH" /> <?= anchor('admin/products', 'RESET', 'class="btn btn-secondary"'); ?> </div> <?= form_close() ?> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Product Name</th> <th>Category</th> <th>Display</th> <th>Edit</th> <th>Preview</th> <th>Delete</th> </tr> </thead> <tbody> <?php if(count($products)) : ?> <?php foreach($products as $product): ?> <tr> <td><?= ucfirst($product->title); ?></td> <td> <?= $product->categories ?> </td> <td> <?php if ($product->product_status == 1) { echo 'Yes'; } else { echo 'No'; } ?> </td> <td><?= bt_edit('admin/products/edit/' . $product->id_products); ?></td> <td><a href="<?= base_url() . 'products/detail/' . strtolower($product->alias); ?>" target="_blank"><i class="fa fa-eye" aria-hidden="true"></i></a></td> <td><?= bt_delete('admin/products/delete/' . $product->id_products); ?></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="6">We could not find any product.</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <?php if(isset($use_pagination)) : ?> <div style="text-align:center;"><?= $this->pagination->create_links(); ?></div> <?php endif; ?> </div> </div>