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/mesinpolesshinemate.com/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 Brand List Page</a></p><br> <h4><?= empty($brands->id_brands) ? 'Add a new brand' : 'Edit brand: ' . $brands->brand; ?></h4> <?= $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"> <p>Brand Name</p> </div><!-- end class="col-sm-3" --> <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><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Brand Description</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="tabbable"> <ul class="nav nav-tabs"> <li class="active"><a href="#description_id" data-toggle="tab">Indonesian</a></li> <li><a href="#description_en" data-toggle="tab">English</a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="description_id"> <?php echo form_textarea('description', set_value('description', $brands->description, FALSE)); ?> <?php echo form_error('description'); ?> </div><!-- end id="#description_id" --> <div class="tab-pane" id="description_en"> <?php echo form_textarea('description_en', set_value('description_en', $brands->description_en, FALSE)); ?> <?php echo form_error('description_en'); ?> </div><!-- end id="#description_id" --> </div><!-- end class tab-content--> </div><!-- end tabbable --> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Brand 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><!-- end class="col-sm-3" --> <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 max of <?= $logo_dimension->brand_logo_width;?> pixel width. <?= $logo_dimension->brand_logo_height;?> pixel height, jpg/png, max 200KB</span> <span style="color:#F7931E;"><?php echo form_error('userfile2'); ?></span> <?php echo $this->session->flashdata('logo_error'); //to display error message ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Brand Banner Image<br> (shown at each brand page) <?php if (!empty($brands->image)) : ?> <img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brands->image; ?>" alt="" /> <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_image/' . $brands->id_brands; ?>">Delete</a> <?php endif; ?> </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p><input type="file" name="userfile" size="20" class="btn btn-default btn-file form-control" /> <?php //get max image width and height from configuration table $this->db->select('brand_image_width, brand_image_height')->from('configuration')->where('id_configuration', 1); $image_dimension = $this->db->get()->row(); ?> <span style="font-size:12px; font-style: italic;">Image size must be max of <?= $image_dimension->brand_image_width;?> pixel width. <?= $image_dimension->brand_image_height;?> pixel height, jpg or png, max 300KB</span> <span style="color:#F7931E;"><?php echo form_error('userfile'); ?></span> <?php echo $this->session->flashdata('banner_error'); //to display error message ?> </p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Banner Link<br> (full URL. Eg: http://www.xxx.com/category/running)</p> </div><!-- end class="col-sm-3" --> <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><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Ordering (must be number only)</p> </div><!-- end class="col-sm-3" --> <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><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Display</p> </div><!-- end class="col-sm-3" --> <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><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <p><strong>SEO (Search Engine Optimization)</strong></p> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Page Meta Description</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'meta_description', 'value' => $brands->meta_description, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('meta_description'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Page Meta Keywords<br>(separated with comma)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'meta_keywords', 'value' => $brands->meta_keywords, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('meta_keywords'); ?></p> <br> <p><?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?> <?= anchor('admin/brands', 'cancel'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <?= form_close(); ?>