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/blue-sky.co.id/public_html/application/views/admin/testimony_slideshow/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/testimony_slideshow'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke Daftar Slideshow</a></p><br> <h4><?= empty($testimony_slideshow->id) ? 'Buat slideshow baru' : 'Edit slideshow: ' . $testimony_slideshow->title; ?></h4> <?= $this->session->flashdata('success'); ?> </div> </div> <?= form_open_multipart(); ?> <div class="row"> <div class="col-sm-3"> <p>Nama Konsumen</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'customer_name', 'value' => $testimony_slideshow->customer_name, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('customer_name'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>From Country</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'from_country', 'value' => $testimony_slideshow->from_country, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('from_country'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Testimony</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'testimony', 'value' => $testimony_slideshow->testimony, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('testimony'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Gambar <?php if (!empty($testimony_slideshow->image)) : ?> <img style="width:150px; height:auto;" src="<?= base_url() . 'uploads/banners/' . $testimony_slideshow->image; ?>" alt="" /> <?php endif; ?> </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <input type="file" name="image1" 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;">Ukuran disarankan lebar 200 pixel. Tinggi 200 pixel, jpg/png, maks 200KB</span> <span style="color:#F7931E;"><?php echo form_error('image1'); ?></span> <?php echo $this->session->flashdata('error'); //to display error message ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Urutan Tampilan (isi dengan angka)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'priority', 'value' => $testimony_slideshow->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>Aktif ?</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?php $options = array( 1 => 'Ya', 0 => 'Tidak' ); echo form_dropdown('status', $options, $testimony_slideshow->status, 'class="form-control"'); ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?php if(empty($testimony_slideshow->id)) : ?> <p><?= form_submit('submit', 'Simpan', 'class="btn btn-primary btn-success"'); ?> <?php else : ?> <p><?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success"'); ?> <?php endif; ?> <?= anchor('admin/testimony_slideshow', 'Batal', array('class' => 'btn btn-default')); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <?= form_close(); ?>