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/angkasapuraretail.com/public_html/application/views/admin/brands/ |
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>Brand Administration</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 --> <?= form_open_multipart(); ?> <div class="row"> <div class="col-sm-3"> <h4>Brands Landing Page Banner</h4> <p>Banner Image<br> <?php if (!empty($brand_landingpage->brand_landingpage_image1)) : ?> <img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brand_landingpage->brand_landingpage_image1; ?>" alt="" /> <!-- <br><i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brand/delete_landingpage_image'; ?>">Delete</a> --> <?php endif; ?></p> </div> <div class="col-sm-9"> <input type="file" name="image1" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Image size must be 1900 pixel width, 920 pixel height, jpg/jpeg/png/gif/webp, max 1MB</span> <span style="color:#F7931E;"><?php echo form_error('image1'); ?></span> <?php echo $this->session->flashdata('banner_error'); //to display error message ?> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Top Description</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'description', 'value' => $brand_landingpage->brand_landingpage_description, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('description'); ?></p> </div> </div> <div class="row"> <div class="col-sm-3"> <h4>Own Brands Banner (Front)</h4> <p>Banner Image<br> <?php if (!empty($brand_landingpage->brand_landingpage_image2)) : ?> <img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brand_landingpage->brand_landingpage_image2; ?>" alt="" /> <!-- <br><i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_landingpage_image'; ?>">Delete</a> --> <?php endif; ?></p> </div> <div class="col-sm-9"> <input type="file" name="image2" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Image size must be 1900 pixel width, 920 pixel height, jpg/jpeg/png/gif/webp, max 1MB</span> <span style="color:#F7931E;"><?php echo form_error('image2'); ?></span> <?php echo $this->session->flashdata('banner_error'); //to display error message ?> </div> </div> <div class="row"> <div class="col-sm-3"> <h4>Own Brands Banner (Back)</h4> <p>Banner Image<br> <?php if (!empty($brand_landingpage->brand_landingpage_image4)) : ?> <img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brand_landingpage->brand_landingpage_image4; ?>" alt="" /> <!-- <br><i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_landingpage_image'; ?>">Delete</a> --> <?php endif; ?></p> </div> <div class="col-sm-9"> <input type="file" name="image4" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Image size must be 1900 pixel width, 920 pixel height, jpg/jpeg/png/gif/webp, max 1MB</span> <span style="color:#F7931E;"><?php echo form_error('image4'); ?></span> <?php echo $this->session->flashdata('banner_error'); //to display error message ?> </div> </div> <div class="row"> <div class="col-sm-3"> <h4>Partner Brands Banner (Front)</h4> <p>Banner Image<br> <?php if (!empty($brand_landingpage->brand_landingpage_image3)) : ?> <img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brand_landingpage->brand_landingpage_image3; ?>" alt="" /> <!-- <br><i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_landingpage_image'; ?>">Delete</a> --> <?php endif; ?></p> </div> <div class="col-sm-9"> <input type="file" name="image3" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Image size must be 1900 pixel width, 920 pixel height, jpg/jpeg/png/gif/webp, max 1MB</span> <span style="color:#F7931E;"><?php echo form_error('image3'); ?></span> <?php echo $this->session->flashdata('banner_error'); //to display error message ?> </div> </div> <div class="row"> <div class="col-sm-3"> <h4>Partner Brands Banner (Back)</h4> <p>Banner Image<br> <?php if (!empty($brand_landingpage->brand_landingpage_image5)) : ?> <img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brand_landingpage->brand_landingpage_image5; ?>" alt="" /> <!-- <br><i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_landingpage_image'; ?>">Delete</a> --> <?php endif; ?></p> </div> <div class="col-sm-9"> <input type="file" name="image5" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Image size must be 1900 pixel width, 920 pixel height, jpg/jpeg/png/gif/webp, max 1MB</span> <span style="color:#F7931E;"><?php echo form_error('image5'); ?></span> <?php echo $this->session->flashdata('banner_error'); //to display error message ?> </div> </div> <div class="row"> <div class="col-sm-3"> </div> <div class="col-sm-9"> <p> <?= form_submit('submit', 'Update Banner', 'class="btn btn-primary btn-success button-brown"'); ?></p> </div> </div> <?= form_close(); ?> <div class="row"> <div class="col-sm-12"> <br> <?php if($allowed == true) : ?> <p><?= anchor('admin/brands/add', '<i class="fa fa-plus" aria-hidden="true"></i> <strong>ADD A NEW BRAND</strong>'); ?></p> <?php endif; ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <table class="table table-striped"> <thead> <tr> <th>Brand Name</th> <th>Type</th> <th>Ordering</th> <th>Display</th> <th>Edit Locations</th> <th>Edit</th> <?php if($allowed == true && $role != 'admin') : ?> <th>Delete</th> <?php endif; ?> </tr> </thead> <tbody> <?php if(count($brands)) : ?> <?php foreach($brands as $brand): ?> <tr> <td><?= ucfirst($brand->brand); ?></td> <td><?= $brand->type; ?></td> <td><?= $brand->priority; ?></td> <td> <?php if ($brand->status == 1) { echo 'Yes'; } else { echo 'No'; } ?> </td> <?php if($allowed == true && $role != 'admin') : ?> <td><?= bt_edit('admin/brands/locations/' . $brand->id_brands); ?></td> <td><?= bt_edit('admin/brands/edit/' . $brand->id_brands); ?></td> <td><?= bt_delete('admin/brands/delete/' . $brand->id_brands); ?></td> <?php endif; ?> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="3">We could not find any brand.</td> </tr> <?php endif; ?> </tbody> </table> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <?php //create pagination... echo '<div style="text-align:center;">' . $this->pagination->create_links() . '</div>'; ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row -->