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/promotion/ |
Upload File : |
<div class="modal-header"> <h4>Manage Promotion Banner</h4> </div> <?= $this->session->flashdata('success'); //to display success message ?> <?php echo $error; ?> <?= $this->session->flashdata('result'); //to display result message ?> <!--Upload Image error message--> <?php //error display for image if(isset($error)) { echo $error; } ?> <div class="modal-body" style="max-height:3500px;"> <?= form_open_multipart(); ?> <table class="table configuration"> <tr> <td colspan="2"><h3>Promo 1</h3></td> </tr> <tr> <td style="width:300px;">Image Promo <br> <img style="width:300px; height:auto;" src="<?= base_url() . 'uploads/promotion/' . $promotion->banner1; ?>" alt="" /> </td> <td> <input type="file" name="banner1" size="20" /><br> <span style="font-size:12px; font-style: italic;">Image size must be 1170 pixel width. 162 pixel height, jpg/png, max 300KB</span> <span style="color:#F7931E;"><?php echo form_error('banner1'); ?></span> <?php echo $this->session->flashdata('error'); //to display error message ?> </td> <tr> <td>Direct Url (Optional)</td> <td><input type="text" name="link1" value="<?=$promotion->link1?>" style="width:100%"></td> </tr> </tr> <tr> <td></td> <td> <br> <?= form_submit('submit1', 'Update', 'class="btn btn-primary btn-success"'); ?> <?= anchor('admin/dashboard', 'cancel'); ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"><h3>Promo 2</h3></td> </tr> <tr> <td>Title</td> <td> <?php $data = array( 'name' => 'title', 'value' => $promotion->title, 'maxlength' => '255', 'style' => 'width:100%', ); echo form_input($data); echo '<span>' . form_error('title') . '</span>'; ?> </td> </tr> <tr> <td>Discount (%)</td> <td><input type="number" name="discount" value="<?=$promotion->discount?>" maxlength="3" style="width:100px"></td> </tr> <tr> <td>Description</td> <td><input type="text" name="description" value="<?=$promotion->description?>" maxlength="255" style="width:100%"></td> </tr> <tr> <td>Image Promo <img style="width:100px; height:auto;" src="<?= base_url() . 'uploads/promotion/' . $promotion->banner2; ?>" alt="" /> </td> <td> <input type="file" name="banner2" size="20" /><br> <span style="font-size:12px; font-style: italic;">Image size must be 570 pixel width. 526 pixel height, jpg/png, max 300KB</span> <span style="color:#F7931E;"><?php echo form_error('banner2'); ?></span> <?php echo $this->session->flashdata('error'); //to display error message ?> </td> </tr> <tr> <td>Direct Url (Optional)</td> <td><input type="text" name="link2" value="<?=$promotion->link2?>" style="width:100%"></td> </tr> <tr> <td></td> <td> <br> <?= form_submit('submit2', 'Update', 'class="btn btn-primary btn-success"'); ?> <?= anchor('admin/dashboard', 'cancel'); ?> </td> </tr> </table> <?= form_close(); ?> </div> <script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/2.2.6/css/responsive.bootstrap4.min.css"> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.6.4/css/buttons.dataTables.min.css"> <script type="text/javascript" src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/1.10.22/js/dataTables.bootstrap4.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.6/js/dataTables.responsive.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.6/js/responsive.bootstrap4.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.6.4/js/dataTables.buttons.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.6.4/js/buttons.flash.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.6.4/js/buttons.html5.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.6.4/js/buttons.print.min.js"></script>