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/serbaantik.com/public_html/application/views/admin/service/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/dashboard'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Dashboard</a></p><br> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div> </div> <div> <?= form_open_multipart(); ?> <div class="row" style="display:none"> <div class="col-sm-3"> <h4>Landing Page Banner</h4> <p>Banner Image<br> <?php if (!empty($service_landingpage->service_landingpage_image)) : ?> <img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/page/' . $service_landingpage->service_landingpage_image; ?>" alt="" /> <br><i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/service/delete_landingpage_image'; ?>">Delete</a> <?php endif; ?></p> </div> <div class="col-sm-9"> <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 1920 pixel width. 500 pixel height, jpg/png, max 800KB</span> <span style="color:#F7931E;"><?php echo form_error('userfile'); ?></span> <?php echo $this->session->flashdata('banner_error'); //to display error message ?> </div> </div> <div class="row" style="display:none"> <div class="col-sm-3"> <p>Title</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'title', 'value' => $service_landingpage->service_landingpage_title, 'class' => 'form-control' ); echo form_input($data); ?> <?php echo form_error('title'); ?></p> </div> </div> <div class="row" style="display:none"> <div class="col-sm-3"> <p>Description</p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'description', 'value' => $service_landingpage->service_landingpage_description, 'class' => 'form-control' ); echo form_input($data); ?> <?php echo form_error('description'); ?></p> </div> </div> <div class="row" style="display:none"> <div class="col-sm-3"> </div> <div class="col-sm-9"> <p> <?= form_submit('submit', 'Update Page', 'class="btn btn-success"'); ?></p> </div> </div> <?= form_close(); ?> </div> <section> <h2>Services</h2> <br> <p><?= anchor('admin/service/add', '<i class="fa fa-plus" aria-hidden="true"></i> ADD A NEW SERVICE', 'class="btn btn-success"'); ?></p> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Service Name</th> <th>Priority</th> <th>Display</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> <?php if(count($service)) : ?> <?php foreach($service as $item): ?> <tr> <td><?= ucwords($item->name); ?></td> <td><?= $item->priority; ?></td> <td> <?php if ($item->status == 1) { echo 'Yes'; } else { echo 'No'; } ?> </td> <td><?= bt_edit('admin/service/edit/' . $item->id_service); ?></td> <td><?= bt_delete('admin/service/delete/' . $item->id_service); ?></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="3">We could not find any service.</td> </tr> <?php endif; ?> </tbody> </table> </div> <?php //create pagination... echo '<p style="text-align:center;">' . $this->pagination->create_links() . '</p>'; ?> </section>