|
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/ptbos.biz/public_html/application/views/admin/color/ |
Upload File : |
<div class="modal-header">
<a href="<?= base_url('admin/color'); ?>"><< Back to color List Page</a><br><br>
<h4><?= empty($color->id_product_color) ? 'Add a new color' : 'Edit color: '
. $color->product_color; ?></h4>
</div>
<div class="modal-body" style="max-height:800px;">
<?= form_open(); ?>
<table class="table">
<tr>
<td>Color Name (eg: red, blue, black...)</td>
<td><?= form_input('color' , set_value('color', $color->product_color)); ?>
<?= form_error('color'); ?>
</td>
</tr>
<tr>
<td>Color Hexcode<br>
(Eg. #0000FF for Blue)</td>
<td>
<div id="cp2" class="input-group colorpicker-component">
<input name="color_code" type="text"
<?php if ($color->color_code == '') : ?>
value="#00AABB"
<?php else : ?>
value="<?= $color->color_code; ?>"
<?php endif; ?>
class="form-control" />
<span class="input-group-addon"><i></i></span>
(click to choose color)
</div>
<script>
$(function() {
$('#cp2').colorpicker();
});
</script>
<?= form_error('color_code'); ?>
</td>
</tr>
<tr>
<td></td>
<td>
<?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?>
<?= anchor('admin/color', 'cancel'); ?>
</td>
</tr>
</table>
<?= form_close(); ?>
</div>