diff --git a/iterasi1.sql b/iterasi1.sql index 86f3e6a0b43325022e86c8ee3c4e9dce632b507b..820d3e0d9818c72bc58184af6420a9bc0b54384d 100644 --- a/iterasi1.sql +++ b/iterasi1.sql @@ -65,9 +65,6 @@ CREATE TABLE `institusi` ( INSERT INTO `institusi` (`institusi_id`, `nama_institusi`, `alamat_institusi`, `email_institusi`, `notelp_institusi`) VALUES (1, 'Universitas Indonesia', 'Kampus Baru UI Depok, Depok', 'humas-ui@ui.ac.id', '+62217867222'), (4, 'Institut Teknologi Bandung', 'Jl. Ganesha No.10, Jawa Barat, Indonesia', 'itb@itb.ac.id', '+62222500935'), -(5, 'Institut Teknologi Bandung', 'Jl. Ganesha No.10, Jawa Barat, Indonesia', 'itb@itb.ac.id', '+62222500935'), -(1, 'Universitas Indonesia', 'Kampus Baru UI Depok, Depok', 'humas-ui@ui.ac.id', '+62217867222'), -(4, 'Institut Teknologi Bandung', 'Jl. Ganesha No.10, Jawa Barat, Indonesia', 'itb@itb.ac.id', '+62222500935'), (5, 'Institut Teknologi Bandung', 'Jl. Ganesha No.10, Jawa Barat, Indonesia', 'itb@itb.ac.id', '+62222500935'); -- -------------------------------------------------------- diff --git a/ppl2/app/Http/routes.php b/ppl2/app/Http/routes.php index 77f65bad8e620def72ad15c04e570306f0fd91c1..5f63362fe2cbb199f9f9df5e472726b452de48f9 100644 --- a/ppl2/app/Http/routes.php +++ b/ppl2/app/Http/routes.php @@ -73,3 +73,7 @@ Route::get('daftarinstitusi/{id}','InstitusiController@show'); Route::get('daftarinstitusi/search','InstitusiController@search'); Route::resource('InstitusiController', 'InstitusiController'); + +Route::get('/penjadwalan', function () { + return view('penjadwalan'); +}); diff --git a/ppl2/config/database.php b/ppl2/config/database.php index 6f17b63f585308c9824f664ded640d2849cc44d8..d02db4bf3225f3337967daf9db79d1a0f19f8ee5 100644 --- a/ppl2/config/database.php +++ b/ppl2/config/database.php @@ -57,7 +57,7 @@ return [ 'driver' => 'mysql', 'host' => 'localhost', 'port' => '3306', - 'database' => 'pendidikan', + 'database' => 'ppl2', 'username' => 'root', 'password' => '', 'charset' => 'utf8', diff --git a/ppl2/public/bdgwebkit/css/style.css b/ppl2/public/bdgwebkit/css/style.css index 44c5c332158d8d10e757bc7cee05655f7518a0af..093fcd001a5827cc95ac9ba58726c1e7c6164826 100644 --- a/ppl2/public/bdgwebkit/css/style.css +++ b/ppl2/public/bdgwebkit/css/style.css @@ -6199,4 +6199,14 @@ span.circle{ .list-status i.away { background-color: #fad733; -} \ No newline at end of file +} + +.penjadwalan-table th, td { + text-align: center; + width: 100px; + height: 30px; +} + +.penjadwalan-table td:hover { + background: #E5E5E5; +} diff --git a/ppl2/resources/views/app_template.blade.php b/ppl2/resources/views/app_template.blade.php index ff5d0c7e0e31611a68f61224e40199e1e223ad33..47f8d59b32b7f6a80857872b01fd55576383c8ba 100644 --- a/ppl2/resources/views/app_template.blade.php +++ b/ppl2/resources/views/app_template.blade.php @@ -316,5 +316,7 @@ <script src="{{URL::asset('bdgwebkit/js/ui-toggle.js')}}"></script> <script src="{{URL::asset('bdgwebkit/js/ui-client.js')}}"></script> +@yield('js') + </body> </html> \ No newline at end of file diff --git a/ppl2/resources/views/penjadwalan.blade.php b/ppl2/resources/views/penjadwalan.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..23f8b999764df5eac8ea9d9af3b6e9b0e40fde81 --- /dev/null +++ b/ppl2/resources/views/penjadwalan.blade.php @@ -0,0 +1,240 @@ +@extends('app_template') + +@section('title') + Penjadwalan +@stop + +@section('page_title') + <h2>Penjadwalan</h2> +@stop + + +<!-- content --> +@section('head_content') + @if (Session::has('message')) + <div class="alert alert-info fade in">{{ Session::get('message') }} + <a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">×</a> + </div> + @endif +@stop + +@section('content') +<div class="panel panel-default"> + <div class="panel-heading font-semibold"> + <div style="display: inline-block;">Penjadwalan</div> + <div style="display: inline-block; width: 93%; text-align: right;"> + <button class="btn btn-default">Prev</button> + <button class="btn btn-default">Next</button> + </div> + </div> + <div> + <table id="penjadwalan" class="table penjadwalan-table" ui-jq="footable"> + <thead> + <tr> + <th data-breakpoints="xs">Waktu</th> + <th>Senin, 17/4</th> + <th>Selasa, 18/4</th> + <th>Rabu, 19/4</th> + <th>Kamis, 20/4</th> + <th>Jumat, 21/4</th> + <th>Sabtu, 22/4</th> + <th>Minggu, 23/4</th> + </tr> + </thead> + <tbody> + <tr data-expanded="true"> + <td>07.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>08.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>09.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>10.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>11.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>12.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>13.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>14.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>15.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>16.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>17.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>18.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>19.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>20.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td>21.00</td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + </tbody> + </table> + </div> + + <!-- Modal --> + <div class="modal fade" id="myModal" role="dialog"> + <div class="modal-dialog"> + + <!-- Modal content--> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal">×</button> + <h4 class="modal-title">Input Jadwal</h4> + </div> + <div class="modal-body"> + <form class="form-group"> + <label for="judul">Judul kegiatan</label> + <input type="text" class="form-control" id="judul"> + <label for="nama">Nama penyelenggara</label> + <input type="text" class="form-control" id="nama"> + <label for="ruangan">Ruangan</label> + <select class="form-control" id="ruangan"> + <option>Ruangan 1</option> + <option>Ruangan 2</option> + </select> + </form> + </div> + <div class="modal-footer"> + <input type="submit" class="btn btn-primary" data-dismiss="modal" value="Submit"> + <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> + </div> + </div> + + </div> + </div> +@stop + +@section('js') + <script> + $(function(){ + $('#penjadwalan td').click(function () { + $('#myModal').modal('show'); + }); + }); + </script> +@stop \ No newline at end of file diff --git a/ppl2/resources/views/penjadwalan.php b/ppl2/resources/views/penjadwalan.php new file mode 100644 index 0000000000000000000000000000000000000000..f2cc187d699edc6b85088df2a1c665fc2efc20c5 --- /dev/null +++ b/ppl2/resources/views/penjadwalan.php @@ -0,0 +1,107 @@ +@extends('app_template') + +@section('title') + Penjadwalan +@stop + +@section('page_title') + <h2>Penjadwalan</h2> +@stop + + +<!-- content --> +@section('head_content') + @if (Session::has('message')) + <div class="alert alert-info fade in">{{ Session::get('message') }} + <a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">×</a> + </div> + @endif + <div class="row"> + <div class="col-md-3"> + <button class="btn m-b-sm m-r-sm btn-success" onclick="location.href = '{{URL::to('/')}}/formInstitusi';"><i class="m-r-xs fa fa-plus"></i>Tambahkan Institusi</button> + </div> + <div class="col-md-6"> + <form action = "{{URL::to('/')}}/daftarinstitusi/search" method="GET"> + <div class="input-group"> + <input type="text" class="form-control" placeholder="Cari Institusi" name="query" required> + <span class="input-group-btn"> + <button class="btn btn-default" type="submit">Go!</button> + </span> + </div> + </form> + </div> + </div> +@stop + +@section('content') +<div class="panel panel-default"> + <div class="panel-heading font-semibold"> + Penjadwalan + </div> + <div> + <table class="table" ui-jq="footable" ui-options='{ + "paging": { + "enabled": true + }}'> + <thead> + <tr> + <th>Minggu ke-</th> + <th>Senin</th> + <th>Selasa</th> + <th>Rabu</th> + <th>Kamis</th> + <th>Jumat</th> + <th>Sabtu</th> + <th>Minggu</th> + </tr> + </thead> + <tbody> + <tr data-expanded="true"> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + <tr data-expanded="true"> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + </tbody> + </table> + </div> +@stop \ No newline at end of file