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/kanvakanva.com/public_html/application/views/admin/vouchers/ |
Upload File : |
<div class="modal-header"> <a href="<?= base_url('admin/vouchers'); ?>"><< Back to voucher List Page</a><br><br> <h4><?= empty($vouchers->id_vouchers) ? 'Add a new voucher' : 'Edit voucher code: ' . $vouchers->voucher_code; ?></h4> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div> <div class="modal-body" style="max-height:1200px;"> <?= form_open(); ?> <table class="table"> <tr> <td>Voucher Name</td> <td><?= form_input('voucher_name' , set_value('voucher_name', $vouchers->voucher_name)); ?> <?= form_error('voucher_name'); ?> </td> </tr> <tr> <td>Voucher Code<br> (Example: IGXQVWVP)</td> <td><?= form_input('voucher_code' , set_value('voucher_code', $vouchers->voucher_code)); ?> <?= form_error('voucher_code'); ?> </td> </tr> <tr> <td>Display code at Checkout ?</td> <td> <?php $options = array( 0 => 'No', 1 => 'Yes' ); echo form_dropdown('display_at_checkout', $options, $vouchers->display_at_checkout); ?> </td> </tr> <tr> <td>Voucher Quantity<br> (Leave blank for unlimited. Numbers only)</td> <td><?= form_input('qty_ready' , set_value('qty_ready', $vouchers->qty_ready)); ?> <?= form_error('qty_ready'); ?> </td> </tr> <tr> <td>Maximum Quantity per Customer<br> (Leave blank for unlimited. Numbers only)</td> <td><?= form_input('maxqty_per_person' , set_value('maxqty_per_person', $vouchers->maxqty_per_person)); ?> <?= form_error('maxqty_per_person'); ?> </td> </tr> <tr> <td>Minimum Purchase<br> (Leave blank for unlimited . Number only)</td> <td><?= form_input('min_order' , set_value('min_order', $vouchers->min_order)); ?> <?= form_error('min_order'); ?> </td> </tr> <tr> <td>Discount Type ?</td> <td> <?php $options = array( 'amount' => 'By Amount', 'percentage' => 'By Percentage (%)', ); echo form_dropdown('discount_type', $options, $vouchers->discount_type); ?> </td> </tr> <tr> <td>Discount Value<br> (Example: for amount: 50000, for %: 10)</td> <td><?= form_input('discount_value' , set_value('discount_value', $vouchers->discount_value)); ?> <?= form_error('discount_value'); ?> </td> </tr> <tr> <td>Expired Date<br> (Leave blank for unlimited time)</td> <td> <?php if (empty($vouchers->expired_date)) { $trim_expired_date = ''; } else { $expired_date = $vouchers->expired_date; $trim_expired_date = date('d-m-Y',strtotime($expired_date)); } $data = array( 'name' => 'expired_date', 'value' => $trim_expired_date, 'class' => 'datepicker', ); echo form_input($data); ?> <?= form_error('expired_date'); ?> </td> </tr> <tr> <td></td> <td> <?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?> <?= anchor('admin/vouchers', 'cancel'); ?> </td> </tr> </table> <?= form_close(); ?> </div>