Add the main admin, dosen, mahasiswa, API, and service code needed to run the core legacy application with configurable upload storage.
153 lines
4.8 KiB
PHP
153 lines
4.8 KiB
PHP
<?php $db = new dB($dbsetting);
|
||
if (!isset($_GET['lihat'])) {
|
||
?>
|
||
<div class="row">
|
||
<div class="col-sm-12">
|
||
<ol class="breadcrumb">
|
||
<li>
|
||
<i class="clip-home-3"></i>
|
||
<a href="<?php echo DOSEN_PAGE; ?>">
|
||
Home
|
||
</a>
|
||
</li>
|
||
<li class="active">
|
||
Daftar Usulan
|
||
</li>
|
||
<li class="search-box">
|
||
<label><?php echo tanggalIndo(date('Y-m-d H:i:s'), 'j F Y, H:i'); ?></label>
|
||
</li>
|
||
</ol>
|
||
<div class="page-header">
|
||
<h1>Daftar Usulan<!-- <small>overview & stats </small> --></h1>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php
|
||
$listKK = [];
|
||
$sql = "SELECT * FROM tb_kelompok_keahlian";
|
||
$result = $db->runQuery($sql);
|
||
|
||
while ($aRow = $db->dbFetch($result)) {
|
||
array_push($listKK, [
|
||
'id' => $aRow['idKK'],
|
||
'nama' => $aRow['namaKK'],
|
||
]);
|
||
}
|
||
|
||
if($_SESSION['login-dosen']['jenisdosen']=='K'){
|
||
?>
|
||
<form id="notifCloseJudul" method="POST" enctype="multipart/form-data" action="page/praoutline/act.praoutline.php" style="margin-bottom:1.5rem;border: 1px solid grey; padding: 1rem 1rem;">
|
||
<input type="hidden" name="act" value="notifCloseJudul" />
|
||
|
||
<div class="row" >
|
||
<h4 style="margin-left:1.5rem">Kirim Notif Close Judul ke Ketua KK Masing-masing</h4>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label class="control-label">
|
||
Judul Sebelum Tanggal
|
||
</label>
|
||
<input type="date" name="tanggalNotifKK" class="form-control" value="<?php echo date('Y-m-d', strtotime('-7 day', time())); ?>"/>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="control-label">
|
||
Kelompok Keahlian Tujuan :
|
||
</label>
|
||
<?php
|
||
foreach ($listKK as $key => $val) {
|
||
$checked = ' checked="checked" ';
|
||
|
||
echo ' <input class="form-check-input" type="checkbox" '.$checked.' value="'.$val['id'].'" name="kkTujuanList[]"><label class="form-check-label" style="margin-left:1rem">'.$val['nama'].'</label>';
|
||
}
|
||
?>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-2">
|
||
<button class="btn btn-teal btn-block" type="submit">
|
||
Kirim Notif
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
|
||
|
||
<?php
|
||
}
|
||
?>
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div style="margin-bottom:1rem">
|
||
<div style="display:inline-block">
|
||
Status Judul
|
||
<select id="filterJudulPraoutlineField" class="form-control" style="width:200px" onChange="filterDataPraoutline()">
|
||
<option value="all">Semua Judul</option>
|
||
<option value="myKK" <?php echo (isset($_GET['myKK'])) ? ' selected ' : ''; ?>>Kelompok Keahlian Saya</option>
|
||
</select>
|
||
</div>
|
||
<!--
|
||
<div style="display:inline-block">
|
||
Status Close Judul KK
|
||
<select id="filterJudulCLoseKK" class="form-control" style="width:200px" >
|
||
<option value="all">Semua Status</option>
|
||
<option value="0">Belum Diclose</option>
|
||
<option value="1">Diterima</option>
|
||
<option value="2">Ditolak</option>
|
||
</select>
|
||
</div>
|
||
<div style="display:inline-block">
|
||
<button class="btn btn-primary" onClick="filterDataPraoutline()">Filter</button>
|
||
</div>
|
||
-->
|
||
</div>
|
||
<!-- start: DYNAMIC TABLE PANEL -->
|
||
<?php
|
||
$whereKK = '';
|
||
if (isset($_GET['myKK'])) {
|
||
$whereKK = " AND kelompokKeahlian = '".$_SESSION['login-dosen']['kelompokKeahlian']."' ";
|
||
}
|
||
|
||
$q_jdl_terbaru = "SELECT COUNT(id) as jlh FROM tbpraoutline WHERE id NOT IN (SELECT idkonten FROM tmp_notif WHERE iduser='".$_SESSION['login-dosen']['id']."' AND typeuser='D' AND jenis='J') AND status_usulan='0' $whereKK ";
|
||
|
||
//echo $q_jdl_terbaru;
|
||
$notif_jdl_terbaru = $db->runQuery($q_jdl_terbaru);
|
||
$rjdl_terbaru = $db->dbFetch($notif_jdl_terbaru);
|
||
$jlh_notif_jdl_terbaru = $rjdl_terbaru['jlh'];
|
||
//variabel untuk menampilkan jumlah notif ada di _header.php
|
||
if ($db->dbRows($notif_jdl_terbaru) > 0) {
|
||
if ($jlh_notif_jdl_terbaru > 0) {
|
||
?>
|
||
<div class="alert alert-warning">
|
||
<button data-dismiss="alert" class="close">
|
||
×
|
||
</button>
|
||
<i class="icon-exclamation-triangle"></i>
|
||
Terdapat <strong><?php echo $jlh_notif_jdl_terbaru; ?></strong> Usulan Terbaru.
|
||
</div>
|
||
<?php
|
||
}
|
||
} ?>
|
||
<table class="table table-striped table-bordered table-hover table-full-width" id="list-judul">
|
||
<thead>
|
||
<tr>
|
||
<th style="width:15%;text-align:center">Nama Mahasiswa</th>
|
||
<th style="width:40%;text-align:center">Judul Usulan</th>
|
||
<th style="width:15%;text-align:center">Tahun Ajaran</th>
|
||
<th style="width:15%;text-align:center">Tanggal</th>
|
||
<th style="width:15%;text-align:center">KK Terkait</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td colspan="5" class="dataTables_empty">Loading data from server</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<!-- end: DYNAMIC TABLE PANEL -->
|
||
</div>
|
||
</div>
|
||
<?php
|
||
}
|
||
?>
|