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/blue-sky.co.id/public_html/application/views/admin/vouchers/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/promotion'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke Promosi</a></p><br> <h2>Administrasi Voucher</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="row" style="border:1px solid #ddd;"> <div class="col-sm-12"> <h3>Unggah Voucher Massal</h3> <p> DATA PRODUK UNGGULAN. SETUJUI HANYA CSV. HARAP SIMPAN EXCEL AS CSV. PENGGUNAAN CSV ~ SEBAGAI PEMISAHAN. UNDUH CONCEL SAMPEL <a style="color:blue;" href="<?= base_url('uploads/vouchers.xls'); ?>">DISINI</a>.</p> --> <!-- <p>PS: Products data with same SKU will be updated.</p> --> <!-- <?php $attributes = array( 'name' => 'uploadcsv', 'id' => 'uploadcsv' ); ?> <?= form_open_multipart('admin/vouchers/upload_vouchers', $attributes); ?> <table> <tr> <td> UNGGAH DATA VOUCHERS CSV: </td> <td> <div class="form-group"> <input style="float:left; width:60%;" type="file" class="form-control" name="userfile" id="userfile" align="center"/><input type="submit" name="upload_csv" class="btn btn-info" value="UPLOAD"> </div> </td> </tr> </table> </form> --> <!-- <p> Catatan: Selama Upload, harap tunggu hingga proses selesai. Jangan tutup jendela saat ini.</p> --> <!-- </div> --><!-- end class="col-sm-12" --> <!-- <?= form_close(); ?> --> <!-- </div> --> <!-- end row; --> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"> <a aria-controls="search" href="#search" role="tab" data-toggle="tab">Cari Voucher</a> </li> <li role="presentation"> <a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Upload Voucher Excel</a> </li> </ul> <!-- Tab panes --> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="search"> <div class="row"> <?= form_open('admin/vouchers'); ?> <div class="col-sm-5 col-xs-6"> <input class="form-control" type="text" placeholder="Isi nama voucher atau kode voucher" name="voucher" <?php if (isset($keyword)) : ?> value="<?= ucwords($keyword); ?>" <?php endif; ?>> </div><!-- end class="col-sm-8" --> <div class="col-sm-3 col-xs-6"> <input class="btn btn-primary form-control" type="submit" name="search_voucher" value="CARI VOUCHER"> </div><!-- end class="col-sm-6" --> <?= form_close(); ?> </div> <!-- end row --> </div> <div role="tabpanel" class="tab-pane" id="settings"> <div class="row" style="border:1px solid #ddd;"> <div class="col-sm-12"> <h3>Upload Voucher Microsoft Excel</h3> <p>DOWNLOAD CONTOH FILE EXCEL <a target="_blank" style="color:brown; font-weight: bold;" href="https://www.tokodaku.com/store-shared/assets/admin/vouchers.xls">DISINI</a>. IKUTI PENGISIAN SESUAI CONTOH.</p> <p>Maksimal 50 item per file excel.</p> <?php $attributes = array( 'name' => 'uploadexcel', 'id' => 'uploadexcel' ); ?> <?= form_open_multipart('admin/vouchers/upload_vouchers_xls', $attributes); ?> <table> <tr> <td> ULPLOAD VOUCHER EXCEL: </td> <td> <div class="form-group"> <input style="float:left; width:60%;" type="file" class="form-control" name="userfile" id="userfile" align="center"/><input type="submit" name="upload_excel" class="btn btn-info" value="UPLOAD"> </div> </td> </tr> </table> </form> <p>Note: Saat proses upload, mohon menunggu saampai proses selesai.</p> </div><!-- end class="col-sm-12" --> <?= form_close(); ?> </div> <!-- end row; --> </div> </div> <div class="row"> <div class="col-sm-12"> <p><?= anchor('admin/vouchers/add', '<i class="fa fa-plus" aria-hidden="true"></i> TAMBAH VOUCHER BARU'); ?></p> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Nama Voucher</th> <th>Kode Voucher</th> <th>Tipe Promo</th> <th>Jumlah diskon</th> <th>Tanggal Pembuatan</th> <th>Tanggal kadaluarsa</th> <th>Lihat</th> <th>Hapus</th> </tr> </thead> <tbody> <?php if(count($vouchers)) : ?> <?php foreach($vouchers as $voucher): ?> <tr> <td><?= ucfirst($voucher->voucher_name); ?></td> <td><?= ucfirst($voucher->voucher_code); ?></td> <td><?= ucwords($voucher->voucher_type); ?></td> <td> <?php $discount_type = $voucher->discount_type; if ($discount_type == 'amount') { echo 'IDR ' . number_format($voucher->discount_value); } else { echo number_format($voucher->discount_value) . ' %'; } ?> </td> <td><?= ucfirst($voucher->created_date); ?></td> <td> <?php if ($voucher->expired_date == NULL) { echo 'tak terbatas'; } else { echo ucfirst($voucher->expired_date); } ?> </td> <td><?= bt_edit('admin/vouchers/edit/' . $voucher->id_vouchers); ?></td> <td><?= bt_delete('admin/vouchers/delete/' . $voucher->id_vouchers); ?></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="3">Kami tidak dapat menemukan voucher apa pun.</td> </tr> <?php endif; ?> </tbody> </table> </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 -->