Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <title><?= $title; ?></title>
- <!-- Bootstrap -->
- <link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css" rel="stylesheet">
- <link href="<?php echo base_url(); ?>assets/time/css/bootstrap-material-datetimepicker.css" rel="stylesheet">
- <!-- Custom styles for this template -->
- <link href="<?php echo base_url(); ?>assets/css/custom.css" rel="stylesheet">
- <!-- Import Datatables core css -->
- <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/dataTables/css/dataTables.bootstrap.min.css" />
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <!-- start body -->
- <div class="container-fluid">
- <!-- start container-fluid -->
- <div class="row">
- <!-- start row -->
- <div class="col-xs-12 col-sm-12 col-md-12">
- <!-- start col -->
- <?= validation_errors(); ?>
- <?= $this->session->flashdata("flashError_JamSama"); ?>
- <?= $this->session->flashdata("flashError_TanggalSama"); ?>
- <?= $this->session->flashdata("flashError_Pinjam"); ?>
- <?= $this->session->flashdata("flashSuccess_Pinjam"); ?>
- <?= $this->session->flashdata("flashError_Ganti"); ?>
- <?= $this->session->flashdata("flashSuccess_Ganti"); ?>
- <small>
- Nb:
- <ol>
- <!-- <li>Untuk <b style="color: #FF0000;">NAMA RUANGAN</b> yang tidak ada di daftar nama ruangan, ruangan tersebut telah <b>DIPAKAI</b></li> -->
- <li>Untuk peminjaman Aula, baik UKM ataupun Himpunan silahkan sertakan proposal kepada pihak Logistik.</li>
- <li><b>KHUSUS</b> untuk Himpunan, jika ingin meminjam ruangan silahkan sertakan surat dari <b style="color: #FF0000;">KAPRODI</b> kepada pihak Logistik.</li>
- <li><b>KHUSUS</b> untuk UKM, jika ingin meminjam ruangan silahkan sertakan surat dari <b style="color: #FF0000;">Kemahasiswaan</b> kepada pihak Logistik.</li>
- </ol>
- </small>
- <ul class="nav nav-tabs" role="tablist">
- <!-- start nav nav-tabs -->
- <li role="presentation" class="active"><a href="#tab-daftarhistorypeminjamanruangan" aria-controls="tab-daftarhistorypeminjamanruangan" role="tab" data-toggle="tab">Daftar History Peminjaman Ruangan</a></li>
- <li role="presentation"><a href="#tab-formpeminjamanruangan" aria-controls="tab-formpeminjamanruangan" role="tab" data-toggle="tab">Form Peminjaman Ruangan</a></li>
- <!-- end nav nav-tabs -->
- </ul>
- <div class="tab-content">
- <!-- start tab-content -->
- <div role="tabpanel" class="tab-pane fade in active" id="tab-daftarhistorypeminjamanruangan">
- <!-- start tab-pane -->
- <div class="table table-responsive">
- <!-- start table-responsive -->
- <table id="tbl_historypeminjaman" class="table table-striped table-bordered">
- <!-- start table -->
- <thead>
- <tr>
- <th>No</th>
- <th>Nama Pengaju Peminjaman Ruangan</th>
- <th>Nama Pemakai</th>
- <th>Nama Kegiatan</th>
- <th>Stat. Peminjaman</th>
- <th>Stat. Pemakaian</th>
- <th>Aksi 1</th>
- <th>Aksi 2</th>
- </tr>
- </thead>
- <tbody>
- <?php $no = ""; foreach($listhistorypeminjaman as $value): $no++; ?>
- <tr>
- <td><?php echo $no; ?></td>
- <td><?php echo $value["nama_lengkap"]; ?></td>
- <td><?php echo $value["nama_pemakai"]; ?></td>
- <td><?php echo $value["nama_kegiatan"]; ?></td>
- <td><?php echo $value["status_peminjaman"]; ?></td>
- <td><?php echo $value["status_pemakaianruangan"]; ?></td>
- <td>
- <?php
- if($value["status_peminjaman"] == "Approve" || $value["status_peminjaman"] == "Cancel"){
- echo "N/A";
- }else{
- ?>
- <button type="button" class="btn btn-xs btn-default btn-ganti" data-toggle="modal" data-target="#myModalGanti">
- <span class='glyphicon glyphicon-edit'></span> Ganti
- </button>
- <?php
- echo anchor("kbpi/pengadaaninventaris/hapus_Data_Inventaris/$value[id_ruangan]", "<span class='glyphicon glyphicon-remove'></span> Hapus", array("class" => "btn btn-xs btn-danger", "onclick" => "return confirm('Anda yakin ingin menghapus data tersebut?')"));
- }
- ?>
- </td>
- <td>
- <button type="button" class="btn btn-xs btn-info btn-detail" data-toggle="modal" data-target="#myModalDetail"
- data-detailnamaruangan = "<?php echo $value['nama_ruangan']; ?>"
- data-detailjammulai = "<?php echo $value['jam_mulaipemakaianruangan']; ?>"
- data-detailjamselesai = "<?php echo $value['jam_selesaipemakaianruangan']; ?>"
- data-detailtanggalmulai = "<?php echo $value['tanggal_mulaipemakaianruangan']; ?>"
- data-detailtanggalselesai = "<?php echo $value['tanggal_selesaipemakaianruangan']; ?>"
- data-detailwaktumulaipengajuan = "<?php echo $value['waktu_mulaipengajuanpeminjamanruangan']; ?>"><span class='glyphicon glyphicon-eye-open'></span> Detail
- </button>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- <tfoot>
- <tr>
- <th>No</th>
- <th>Nama Pengaju Peminjaman Ruangan</th>
- <th>Nama Pemakai</th>
- <th>Nama Kegiatan</th>
- <th>Stat. Peminjaman</th>
- <th>Stat. Pemakaian</th>
- <th>Aksi 1</th>
- <th>Aksi 2</th>
- </tr>
- </tfoot>
- <!-- end table -->
- </table>
- <!-- end table-responsive -->
- </div>
- <!-- end tab-pane -->
- </div>
- <div role="tabpanel" class="tab-pane" id="tab-formpeminjamanruangan">
- <!-- start tab-pane -->
- <?php $attributes = array('class' => 'form-horizontal position-custom-formpeminjamanruangan', "id" => "form-inputpeminjamanruangan"); ?>
- <?php echo form_open('mahasiswa/peminjaman/simpanData', $attributes); ?>
- <!-- <input type="hidden" name="id_pengguna" class="form-control" value="<?= $id_pengguna; ?>" readonly />
- <div class="form-group">
- <label for="id_ruangan" class="col-sm-5 control-label">Nama Ruangan</label>
- <div class="col-sm-1">
- <select name="id_ruangan[]" class="form-control" id="id_ruangan" multiple>
- <?php
- foreach ($listruangan as $value) {
- ?>
- <option value="<?php echo $value["id_ruangan"]; ?>"><?php echo $value["nama_ruangan"]; ?></option>
- <?php
- }
- ?>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="nama_pemakai" class="col-sm-5 control-label">Nama Pemakai</label>
- <div class="col-sm-3">
- <input type="text" name="nama_pemakai" class="form-control" id="nama_pemakai" value="<?php echo set_value('nama_pemakai'); ?>" placeholder="Nama UKM atau Nama Himpunan" />
- </div>
- </div>
- <div class="form-group">
- <label for="nama_kegiatan" class="col-sm-5 control-label">Nama Kegiatan</label>
- <div class="col-sm-4">
- <input type="text" name="nama_kegiatan" class="form-control" id="nama_kegiatan" value="<?php echo set_value('nama_kegiatan'); ?>" />
- </div>
- </div> -->
- <div class="form-group">
- <label for="tanggal_mulaipemakaianruangan" class="col-sm-5 control-label">Tanggal Mulai Pemakaian Ruangan</label>
- <div class="col-sm-2">
- <input type="date" name="tanggal_mulaipemakaianruangan" class="form-control" id="tanggal_mulaipemakaianruangan" value="<?php echo set_value('tanggal_mulaipemakaianruangan'); ?>" />
- </div>
- </div>
- <!-- <div class="form-group">
- <label for="tanggal_selesaipemakaianruangan" class="col-sm-5 control-label">Tanggal Selesai Pemakaian Ruangan</label>
- <div class="col-sm-2">
- <input type="date" name="tanggal_selesaipemakaianruangan" class="form-control" id="tanggal_selesaipemakaianruangan" value="<?php echo set_value('tanggal_selesaipemakaianruangan'); ?>" />
- </div>
- </div> -->
- <div class="form-group">
- <label for="jam_mulaipemakaianruangan" class="col-sm-5 control-label">Jam Mulai Pemakaian</label>
- <div class="col-sm-2">
- <input type="text" name="jam_mulaipemakaianruangan" class="form-control" id="jam_mulaipemakaianruangan" value="<?php echo set_value('jam_mulaipemakaianruangan'); ?>" />
- </div>
- </div>
- <!-- <div class="form-group">
- <label for="jam_selesaipemakaianruangan" class="col-sm-5 control-label">Jam Selesai Pemakaian</label>
- <div class="col-sm-2">
- <input type="text" name="jam_selesaipemakaianruangan" class="form-control" id="jam_selesaipemakaianruangan" value="<?php echo set_value('jam_mulaipemakaianruangan'); ?>" />
- </div>
- </div> -->
- <div class="form-group">
- <label for="" class="col-sm-5 control-label sr-only">Button</label>
- <button type="submit" class="btn btn-md btn-success"><span class="glyphicon glyphicon-ok"></span> Simpan Data</button>
- <button type="reset" class="btn btn-md btn-warning"><span class="glyphicon glyphicon-backward"></span> Reset Form</button>
- </div>
- <?php echo form_close(); ?>
- <!-- end tab-pane -->
- </div>
- <!-- end tab-content -->
- </div>
- <!-- end col -->
- </div>
- <!-- end row -->
- </div>
- <!-- end container-fluid -->
- </div>
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
- <script src="<?php echo base_url(); ?>assets/js/jquery-1.12.4.min.js"></script>
- <!-- Include all compiled plugins (below), or include individual files as needed -->
- <script src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
- <!-- Import dataTables core Javascript -->
- <script src="<?php echo base_url(); ?>assets/dataTables/js/jquery.dataTables.min.js"></script>
- <script src="<?php echo base_url(); ?>assets/dataTables/js/dataTables.bootstrap.min.js"></script>
- <script src="<?php echo base_url(); ?>assets/time/js/moment.js"></script>
- <script src="<?php echo base_url(); ?>assets/time/js/bootstrap-material-datetimepicker.js"></script>
- <!-- Custom jQuery or Javascript -->
- <script src="<?php echo base_url(); ?>assets/js/mahasiswa/formdetaildatapeminjampemakairuangan.js"></script>
- <script>
- $(document).ready(function(){
- $("#tbl_historypeminjaman").DataTable();
- $('#jam_mulaipemakaianruangan, #jam_selesaipemakaianruangan').bootstrapMaterialDatePicker({date:false, format: 'HH:mm'});
- });
- </script>
- <!-- end body -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement