|
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/kamariallee.com/public_html/application/views/admin/home_slideshow/ |
Upload File : |
<div class="row">
<div class="col-sm-12">
<p><a href="<?= base_url('admin/home_slideshow'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Slideshow List</a></p><br>
<h4><?= empty($home_slideshow->id_home_slideshow) ? 'Add a new home slideshow' : 'Edit home slideshow: ' . $home_slideshow->title; ?></h4>
<?= $this->session->flashdata('success'); //to display success message ?>
<?= $this->session->flashdata('result'); //to display result message ?>
</div><!-- end class="col-sm-12" -->
</div>
<?= form_open_multipart(); ?>
<div class="row">
<div class="col-sm-3">
<p>Button Text</p>
</div>
<div class="col-sm-9">
<p>
<?php
$data = array(
'name' => 'title',
'value' => $home_slideshow->title,
'class' => 'form-control'
);
echo form_input($data); ?>
<?= form_error('title'); ?></p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Slideshow Image
<?php if (!empty($home_slideshow->image)) : ?>
<img style="width:150px; height:auto;" src="<?= base_url() . 'uploads/banners/' . $home_slideshow->image; ?>" alt="" />
<?php endif; ?>
</p>
</div>
<div class="col-sm-9">
<input type="file" name="userfile" size="20"class="form-control" /><br>
<?php
//get slideshow size from configuration table
$this->db->select('home_slideshow_width, home_slideshow_height')->from('configuration')->where('id_configuration', 1);
$slideshow_dimensions = $this->db->get()->row();
?>
<span style="font-size:12px; font-style: italic;">Image size must be 1920 pixel width. 1165 pixel height, jpg/jpeg/png, max 800KB</span>
<span style="color:#F7931E;"><?php echo form_error('userfile'); ?></span>
<?php echo $this->session->flashdata('error'); //to display error message ?>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Button Color Code</p>
</div>
<div class="col-sm-9">
<div id="cp2" class="input-group colorpicker-component">
<input name="text_content" type="text" value="<?= $home_slideshow->text_content; ?>" class="form-control" />
<span class="input-group-addon"><i style="border:1px solid black;"></i> (click icon to choose color)</span>
</div>
<script>
$(function() {
$('#cp2').colorpicker();
});
</script>
<?= form_error('text_content'); ?>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Banner Link<br>
(full URL. Eg: http://www.xxx.com/category/running)</p>
</div>
<div class="col-sm-9">
<p>
<?php
$data = array(
'name' => 'banner_link',
'value' => $home_slideshow->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 (number only)</p>
</div>
<div class="col-sm-9">
<p>
<?php
$data = array(
'name' => 'priority',
'value' => $home_slideshow->priority,
'class' => 'form-control'
);
echo form_input($data); ?>
<?= form_error('priority'); ?></p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Banner Active ?</p>
</div>
<div class="col-sm-9">
<?php
$options = array(
1 => 'Yes',
0 => 'No'
);
echo form_dropdown('status', $options, $home_slideshow->status, 'class="form-control"');
?>
</div>
</div>
<div class="row">
<div class="col-sm-3">
</div>
<div class="col-sm-9">
<?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?>
<?= anchor('admin/home_slideshow', 'cancel'); ?>
</div>
</div>
<?= form_close(); ?>