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:
Power BI Dev
2026-05-02 10:08:52 +07:00
parent 874dbbe8e8
commit efdb11db3f
221 changed files with 43273 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
session_start();
$idprodi=$_SESSION['login-admin']['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);
}
?>