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/kanvakanva.com/public_html/application/views/admin/testimonies/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <a href="<?= base_url('admin/testimonies'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Testimonies Page</a><br><br> <h4><?= empty($testimony->id) ? 'Add a new testimony' : 'Edit testimony: ' . ucwords($testimony->name); ?></h4> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div> </div> <?= form_open_multipart(); ?> <br> <div class="row"> <div class="col-sm-3"> <p>Customer Name</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'name', 'value' => $testimony->name, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('name'); ?> </p> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Customer Image<br> <?php if (!empty($testimony->image)) : ?> <img style="width:100px; height:auto;" src="<?= base_url() . 'uploads/' . $testimony->image; ?>" alt="" /> <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/testimonies/delete_image/' . $testimony->id . '/image'; ?>">Delete</a> <?php endif; ?> </p> </div> <div class="col-sm-9"> <p><input type="file" name="image" size="20" class="form-control" /><br> <span style="font-size:12px; font-style: italic;">Image size must be max of 600 pixel width. 600 pixel height, jpg/png, max 300KB</span><br> <span style="color:#F7931E;"><?php echo form_error('image'); ?></span> <?php echo $this->session->flashdata('image-error'); //to display error message ?></p> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Testimony Content</p> </div> <div class="col-sm-9"> <?php echo form_textarea('testimony', set_value('testimony', $testimony->testimony, FALSE)); ?> <?php echo form_error('testimony'); ?> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Status</p> </div> <div class="col-sm-9"> <?php $options = array( 'active' => 'Active', 'not active' => 'Not Active' ); echo form_dropdown('status', $options, $testimony->status, 'class="form-control"'); ?> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Ordering</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'ordering', 'value' => $testimony->ordering, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('ordering'); ?> </p> </div> </div> <div class="row"> <div class="col-sm-3"> </div> <div class="col-sm-9"> <?= form_submit('submit', 'Submit', 'class="btn btn-primary btn-success button-brown"'); ?> <?= anchor('admin/testimonies', 'cancel'); ?> </div> </div> <?= form_close(); ?> <br><br>