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/brands/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/brands'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Partner List Page</a></p><br> <h4><?= empty($brands->id_brands) ? 'Add a new partner' : 'Edit partner: ' . $brands->brand; ?></h4> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div> </div> <?= form_open_multipart(); ?> <div class="row"> <div class="col-sm-3"> <p>Partner Name</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'brand_name', 'value' => $brands->brand, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('brand_name'); ?></p> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Partner Logo<br> <?php if (!empty($brands->logo)) : ?> <img style="width:100px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brands->logo; ?>" alt="" /> <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_logo/' . $brands->id_brands; ?>">Delete</a> <?php endif; ?> </p> </div> <div class="col-sm-9"> <p><input type="file" name="userfile2" size="20" class="btn btn-default btn-file form-control" /> <?php //get max logo width and height from configuration table $this->db->select('brand_logo_width, brand_logo_height')->from('configuration')->where('id_configuration', 1); $logo_dimension = $this->db->get()->row(); ?> <span style="font-size:12px; font-style: italic;">Image size must be of 1080 pixel width. 1080 pixel height, jpg/png/webp/jpeg, max 300KB</span> <span style="color:#F7931E;"><?php echo form_error('userfile2'); ?></span> <?php echo $this->session->flashdata('logo_error'); //to display error message ?></p> </div> </div> <div class="row"> <div class="col-sm-3"> <p>URL Link<br> (full URL. Eg: http://www.xxx.com)</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'banner_link', 'value' => $brands->banner_link, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('banner_link'); ?></p> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Ordering (must be number only)</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'priority', 'value' => $brands->priority, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('priority'); ?></p> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Display</p> </div> <div class="col-sm-9"> <p> <?php $options = array( 1 => 'Yes', 0 => 'No' ); echo form_dropdown('status', $options, $brands->status, 'class="form-control"'); ?> </p> </div> </div> <div class="row"> <div class="col-sm-3"> </div> <div class="col-sm-9"> <p><?= form_submit('submit', 'Update', 'class="btn btn-success"'); ?> <?= anchor('admin/brands', 'cancel'); ?></p> </div> </div> <?= form_close(); ?>