Add SPOTA core PHP application
Add the main admin, dosen, mahasiswa, API, and service code needed to run the core legacy application with configurable upload storage.
This commit is contained in:
36
dosen/page/dashboard/json.kalender.php
Normal file
36
dosen/page/dashboard/json.kalender.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
session_start();
|
||||
$idprodi=$_SESSION['login-dosen']['prodi'];
|
||||
include ("../../../inc/helper.php");
|
||||
include ("../../../inc/konfigurasi.php");
|
||||
include ("../../../inc/db.pdo.class.php");
|
||||
|
||||
$db=new dB($dbsetting);
|
||||
$s="SELECT tj.*,tm.nim, tm.nmLengkap
|
||||
FROM tbjadwal tj
|
||||
LEFT JOIN tbmhs tm
|
||||
ON (tm.idmhs=tj.idmhs)
|
||||
WHERE tj.publish='Y' AND tj.idProdi='$idprodi'";
|
||||
$db->runQuery($s);
|
||||
if($db->dbRows()>0){
|
||||
while($r=$db->dbFetch()){
|
||||
if($r['jenis']=="Sidang"){
|
||||
$warna="label-orange text-ellipsis";
|
||||
}else if($r['jenis']=="Outline"){
|
||||
$warna="label-green text-ellipsis";
|
||||
}else if($r['jenis']=="SidHas"){
|
||||
$warna="label-yellow text-ellipsis";
|
||||
}else{
|
||||
$warna="label-default text-ellipsis";
|
||||
}
|
||||
$data['id']=$r['id'];
|
||||
//$data['title']=$r['nim'];
|
||||
$data['title']= ucwords(strtolower($r['nmLengkap']));
|
||||
$data['start']=$r['start'];
|
||||
$data['end']=$r['end'];
|
||||
$data['className']=$warna;
|
||||
$jadwal[]=$data;
|
||||
}
|
||||
echo json_encode($jadwal);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user