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/blue-sky.co.id/public_html/application/views/admin/rooms/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/hotels/landing_page/' . $this->session->userdata('hotel_id')); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke Beranda</a></p><br> <h2>Halaman Room</h2> <p style="text-transform:uppercase;"><?= $this->session->userdata('hotel_name'); ?></p> <?= $this->session->flashdata('success'); ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <!-- Room Landing Form --> <div class="row"> <div class="col-sm-12"> <h3>Edit Room Landing Page</h3> <?= form_open_multipart('admin/rooms/update_landing/' . $this->session->userdata('hotel_id')); ?> <div class="form-group"> <label for="landing_image">Landing Image</label> <?php if (isset($room_landing->landing_image) && !empty($room_landing->landing_image)): ?> <div class="current-image" style="margin-bottom: 10px;"> <p><strong>Current Image:</strong></p> <img src="<?= base_url('uploads/' . $room_landing->landing_image); ?>" alt="Landing Image" style="max-width: 200px; height: auto; border: 1px solid #ddd; padding: 5px;"> <br><br> <a href="<?= base_url('admin/rooms/delete_image/landing_image/' . $this->session->userdata('hotel_id')); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want to delete this image?')"> <i class="fa fa-trash"></i> Delete Image </a> </div> <?php endif; ?> <input type="file" class="form-control" id="landing_image" name="landing_image" accept="image/*"> <small class="form-text text-muted">Images are stored in: ./uploads/</small> </div> <div class="form-group"> <label for="title">Title</label> <input type="text" class="form-control" id="title" name="title" value="<?= isset($room_landing->title) ? $room_landing->title : ''; ?>"> </div> <div class="form-group"> <label for="intro_image">Intro Image</label> <?php if (isset($room_landing->intro_image) && !empty($room_landing->intro_image)): ?> <div class="current-image" style="margin-bottom: 10px;"> <p><strong>Current Image:</strong></p> <img src="<?= base_url('uploads/' . $room_landing->intro_image); ?>" alt="Intro Image" style="max-width: 200px; height: auto; border: 1px solid #ddd; padding: 5px;"> <br><br> <a href="<?= base_url('admin/rooms/delete_image/intro_image/' . $this->session->userdata('hotel_id')); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want to delete this image?')"> <i class="fa fa-trash"></i> Delete Image </a> </div> <?php endif; ?> <input type="file" class="form-control" id="intro_image" name="intro_image" accept="image/*"> <small class="form-text text-muted">Images are stored in: ./uploads/</small> </div> <div class="form-group"> <label for="intro_title">Intro Title</label> <input type="text" class="form-control" id="intro_title" name="intro_title" value="<?= isset($room_landing->intro_title) ? $room_landing->intro_title : ''; ?>"> </div> <div class="form-group"> <label for="intro_subtitle">Intro Subtitle</label> <textarea class="form-control" id="intro_subtitle" name="intro_subtitle" rows="3"><?= isset($room_landing->intro_subtitle) ? $room_landing->intro_subtitle : ''; ?></textarea> </div> <div class="form-group"> <label for="content_title">Content Title</label> <input type="text" class="form-control" id="content_title" name="content_title" value="<?= isset($room_landing->content_title) ? $room_landing->content_title : ''; ?>"> </div> <div class="form-group"> <label for="content_subtitle">Content Subtitle</label> <textarea class="form-control" id="content_subtitle" name="content_subtitle" rows="3"><?= isset($room_landing->content_subtitle) ? $room_landing->content_subtitle : ''; ?></textarea> </div> <button type="submit" class="btn btn-primary">Update Room Landing</button> <?= form_close(); ?> </div> </div> <div class="row"> <div class="col-sm-12"> <br> <p><?= anchor('admin/rooms/add', '<i class="fa fa-plus" aria-hidden="true"></i> BUAT ROOM BARU'); ?></p> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Nama Room</th> <th>Ordering</th> <th>Edit</th> <th>Hapus</th> </tr> </thead> <tbody> <?php if(count($rooms)) : ?> <?php foreach($rooms as $room): ?> <tr> <td><?= $room->room_name; ?> <td><?= $room->priority; ?> <td> <?= bt_edit('admin/rooms/edit/' . $room->id); ?> | <a href="<?= base_url(); ?>/admin/rooms/rooms_gallery/<?= $room->id; ?>"><i class="fa fa-camera" aria-hidden="true"></i></a> </td> <td> <?= bt_delete('admin/rooms/delete/' . $room->id); ?></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="3">Room tidak ditemukan.</td> </tr> <?php endif; ?> </tbody> </table> </div><!-- end table class responsive --> </div><!-- end class="col-sm-12" --> </div> <!-- end row -->