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/rabbithabit.com/public_html/application/views/admin/testimony/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/testimony'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Testimony List Page</a></p><br> <h4><?= empty($testimony->id_testimonies) ? 'Add a new testimony' : 'Edit testimony for ' . ucwords($testimony->customer_name); ?></h4> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <?= form_open_multipart(); ?> <div class="row"> <div class="col-sm-3"> <p>Customer Name</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'customer_name', 'value' => $testimony->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>Customer Photo<br> <?php if (!empty($testimony->image)) : ?> <img style="width:100px; height:auto;" src="<?= base_url() . 'uploads/page/' . $testimony->image; ?>" alt="" /> <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/testimony/delete_customer_photo/' . $testimony->id_testimonies; ?>">Delete</a> <?php endif; ?> </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p><input type="file" name="userfile" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Image size must be max of 500 pixel width. 500 pixel height, jpg/png, max 100KB</span> <span style="color:#F7931E;"><?php echo form_error('userfile'); ?></span> <?php echo $this->session->flashdata('error'); //to display error message ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Testimony Content</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="tabbable"> <ul class="nav nav-tabs"> <li class="active"><a href="#testimony_id" data-toggle="tab">Indonesian</a></li> <li><a href="#testimony_en" data-toggle="tab">English</a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="testimony_id"> <?php echo form_textarea('testimony', set_value('testimony', $testimony->testimony, FALSE)); ?> <?php echo form_error('testimony'); ?> </div><!-- end id="#description_id" --> <div class="tab-pane" id="testimony_en"> <?php echo form_textarea('testimony_en', set_value('testimony_en', $testimony->testimony_en, FALSE)); ?> <?php echo form_error('testimony_en'); ?> </div><!-- end id="#testimony_id" --> </div><!-- end class tab-content--> </div><!-- end tabbable --> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Ordering (must be number only)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'priority', 'value' => $testimony->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>Testimony Active ?</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $options = array( 1 => 'Yes', 0 => 'No' ); echo form_dropdown('status', $options, $testimony->status, 'class="form-control"'); ?> </p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display:none;"> <div class="col-sm-3"> <p>Testimony Rating (1 - 5)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $options = array( '5' => '5', '4' => '4', '3' => '3', '2' => '2', '1' => '1', ); echo form_dropdown('rating', $options, $testimony->rating, 'class="form-control"'); ?> </p> </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"> <p><?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?> <?= anchor('admin/testimony', 'cancel'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <?= form_close(); ?>