|
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/testimony/ |
Upload File : |
<div class="modal-header">
<h4><?= empty($testimony->id_testimonies) ? 'Add a new testimony' : 'Edit Testimony: '
. $testimony->customer_name; ?></h4>
</div>
<div class="modal-body" style="max-height:1500px;">
<?= form_open_multipart(); ?>
<table class="table">
<tr>
<td>Customer Name</td>
<td><?php echo form_input('customer_name', set_value('customer_name', $testimony->customer_name)); ?>
<?php echo form_error('customer_name'); ?>
</tr>
<tr>
<td>Customer Photo
<?php if (!empty($testimony->image)) : ?>
<img style="width:80px; height:auto;" src="<?= base_url() . 'uploads/page/' . $testimony->image; ?>" alt="" />
<?php endif; ?>
</td>
<td>
<input type="file" name="userfile" size="20" /><br>
<span style="font-size:12px; font-style: italic;">Image size must be 150 pixel width. 150 pixel height, jpg, max 100KB</span>
<span style="color:#F7931E;"><?php echo form_error('userfile'); ?></span>
<?php echo $this->session->flashdata('error'); //to display error message ?>
</td>
</tr>
<tr>
<td>Testimony<br>
Max 350 Characters</td>
<td>
<?php echo form_textarea('testimony', set_value('testimony', $testimony->testimony, FALSE)); ?>
<?php echo form_error('testimony'); ?>
</td>
</tr>
<tr style="display:none;">
<td>Rating<br>(choose from 1 - 5)</td>
<td>
<?php
$options = array(
'5' => '5',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
);
echo form_dropdown('rating', $options, $testimony->rating);
?>
<?php echo form_error('rating'); ?>
</td>
</tr>
<tr>
<td>Priority (must be numeric)</td>
<td><?= form_input('priority' , set_value('priority', $testimony->priority)); ?>
<?= form_error('priority'); ?>
</td>
</tr>
<tr>
<td>Testimony Active ?</td>
<td>
<?php
$options = array(
1 => 'Yes',
0 => 'No'
);
echo form_dropdown('status', $options, $testimony->status);
?>
</td>
</tr>
<tr>
<td></td>
<td>
<?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?>
<?= anchor('admin/testimony', 'cancel'); ?>
</td>
</tr>
</table>
<?= form_close(); ?>
</div>