Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FarrelAD committed Dec 20, 2024
2 parents 1ec3cae + 324ed62 commit b2d3300
Show file tree
Hide file tree
Showing 31 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/controllers/NotifikasiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function viewNotification(): void
$notifications = NotifikasiRepository::getAdminProdiNotificationByUserID($_SESSION['user_id']);
break;
}

} catch (\PDOException $e) {
http_response_code(500);
echo json_encode([
Expand Down
5 changes: 5 additions & 0 deletions app/models/BerkasPengajuan.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class BerkasPengajuan extends Model
protected string $nama_lengkap;
protected string $tanggal_request;
protected string $keterangan_verifikasi;
private string $jenis_berkas;


public function getNomor(): int { return $this->nomor; }
Expand Down Expand Up @@ -47,4 +48,8 @@ public function setTanggalRequest(string $tanggal_request): void { $this->tangga
public function getKeteranganVerifikasi(): string { return $this->keterangan_verifikasi; }

public function setKeteranganVerifikasi(string $keterangan_verifikasi): void { $this->keterangan_verifikasi = $keterangan_verifikasi; }

public function getJenisBerkas(): string {return $this->jenis_berkas;}

public function setJenisBerkas(string $jenis_berkas){$this->jenis_berkas = $jenis_berkas;}
}
2 changes: 2 additions & 0 deletions app/models/Notifikasi.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ public function setTanggal(string $tanggal): void { $this->tanggal = $tanggal; }
public function getStatus(): string { return $this->status; }

public function setStatus(string $status): void { $this->status = $status; }


}
4 changes: 3 additions & 1 deletion app/repository/BerkasRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public static function getAllBerkas(): array
m.nim,
m.nama_lengkap,
ta.tanggal_request,
vb.status_verifikasi,
vb.status_verifikasi,
'Berkas TA' AS jenis_berkas,
vb.keterangan_verifikasi
FROM VER.VerifikasiBerkas vb
INNER JOIN BERKAS.TA ta ON vb.id_berkas = ta.id_ta
Expand All @@ -103,6 +104,7 @@ public static function getAllBerkas(): array
m.nama_lengkap,
p.tanggal_request,
v.status_verifikasi,
'Berkas Prodi' AS jenis_berkas,
v.keterangan_verifikasi
FROM USERS.Mahasiswa m
INNER JOIN BERKAS.Prodi p ON m.nim = p.nim
Expand Down
11 changes: 5 additions & 6 deletions app/repository/NotifikasiRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ public static function getAdminProdiNotificationByUserID(string $user_id): array
{
try {
$stmt = Database::getConnection()->prepare(<<<SQL
SELECT
n.id_notifikasi,
SELECT DISTINCT
a.nama_lengkap AS 'admin',
m.nama_lengkap AS 'mahasiswa',
n.pesan,
PR.tanggal_request AS 'tanggal',
n.status_notifikasi AS 'status'
n.status_notifikasi AS 'status',
PR.tanggal_request AS 'tanggal'
FROM VER.Notifikasi n
INNER JOIN USERS.Admin a ON a.id_admin = n.id_admin
INNER JOIN USERS.Mahasiswa m ON m.nim = n.nim
Expand All @@ -41,7 +40,7 @@ public static function getAdminTANotificationByUserID(string $user_id): array
{
try {
$stmt = Database::getConnection()->prepare(<<<SQL
SELECT
SELECT DISTINCT
n.id_notifikasi,
a.nama_lengkap AS 'admin',
m.nama_lengkap AS 'mahasiswa',
Expand Down Expand Up @@ -70,7 +69,7 @@ public static function getMahasiswaNotificationByUserID(string $user_id): array
{
try {
$stmt = Database::getConnection()->prepare(<<<SQL
SELECT
SELECT DISTINCT
n.id_notifikasi,
a.nama_lengkap AS 'admin',
m.nama_lengkap AS 'mahasiswa',
Expand Down
2 changes: 2 additions & 0 deletions app/views/pages/admin_jurusan/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<th style="background-color:#E4EEFF ;">NIM</th>
<th style="background-color:#E4EEFF ;">Mahasiswa</th>
<th style="background-color:#E4EEFF ;">Status</th>
<th style="background-color:#E4EEFF ;">Jenis Berkas</th>
<th style="background-color:#E4EEFF ;">Tanggal Pengajuan</th>
<th style="background-color:#E4EEFF ;">Keterangan</th>
</thead>
Expand All @@ -98,6 +99,7 @@
<td>
<?php include __DIR__ . '/../../atoms/badge_' . strtolower($value->getStatusVerifikasi()) . '.php' ?>
</td>
<td><?= $value->getJenisBerkas() ?></td>
<td><?= $value->getTanggalRequest() ?></td>
<td><?= $value->getKeteranganVerifikasi() ?></td>
</tr>
Expand Down
1 change: 1 addition & 0 deletions storage/logs/error.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
2024-12-05 14:06:37 UTC -- SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [2].
2024-12-05 14:07:12 UTC -- SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [2].
2024-12-19 05:52:21 UTC -- SQLSTATE[42S22]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'status_verifikasi'.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit b2d3300

Please sign in to comment.