Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

membuat halaman administrasi jurusan #61

Merged
merged 4 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions app/controllers/AdminJurusanController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace App\Controllers;

require_once __DIR__ . '/../core/Controller.php';


use App\Core\Controller;


class AdminJurusanController extends Controller {
public function kelolaAdmin(): void {
$data['title'] = "Permintaan Verifikasi";
$data['css'] = ["assets/css/sidebar"];
$this->view("templates/header",$data);
$this->view("pages/admin_jurusan/kelola_admin");
$this->view("templates/footer");
}

public function tambahAdmin(): void {
$data['title'] = "Permintaan Verifikasi";
$data['css'] = ["assets/css/sidebar"];
$this->view("templates/header",$data);
$this->view("pages/admin_jurusan/tambah_admin");
$this->view("templates/footer");
}
public function editAdmin(): void {
$data['title'] = "Permintaan Verifikasi";
$data['css'] = ["assets/css/sidebar"];
$this->view("templates/header",$data);
$this->view("pages/admin_jurusan/edit_admin");
$this->view("templates/footer");
}
}
26 changes: 26 additions & 0 deletions app/controllers/AdminTAController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace App\Controllers;

require_once __DIR__ . '/../core/Controller.php';


use App\Core\Controller;


class AdminTAController extends Controller {
public function requestVerifikasi(): void {
$data['title'] = "Permintaan Verifikasi";
$data['css'] = ["assets/css/sidebar"];
$this->view("templates/header",$data);
$this->view("pages/admin_ta/permintaan_verifikasi");
$this->view("templates/footer");
}
public function detailsRequest(): void {
$data['title'] = "Detail Permintaan";
$data['css'] = ["assets/css/sidebar"];
$this->view("templates/header",$data);
$this->view("pages/admin_ta/detail_permintaan");
$this->view("templates/footer");
}
}
14 changes: 13 additions & 1 deletion app/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_once __DIR__ . '/../../vendor/autoload.php';

use App\Core\Router;
use App\Controllers\{HomeController, AuthController, MahasiswaController, AdminProdiController, NotificationController};
use App\Controllers\{HomeController, AuthController, MahasiswaController, AdminProdiController, AdminTAController, AdminJurusanController ,NotificationController};


// General
Expand Down Expand Up @@ -35,3 +35,15 @@

//Notif
Router::add('GET', '/notifikasi', NotificationController::class, 'notif');

//Admin TA
Router::add('GET', '/permintaan-verif-ta', AdminTAController::class, 'requestVerifikasi');
Router::add('GET', '/detail-permintaan-ta', AdminTAController::class, 'detailsRequest');

//Admin Jurusan
Router::add('GET', '/kelola-admin', AdminJurusanController::class, 'kelolaAdmin');
Router::add('GET', '/tambah-admin', AdminJurusanController::class, 'tambahAdmin');
Router::add('GET', '/edit-admin', AdminJurusanController::class, 'editAdmin');



90 changes: 90 additions & 0 deletions app/views/components/admin_jurusan/sidebar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<div class="d-flex flex-column align-items-center border-end justify-content-center"
style="background-color: #052C65; width: 250px; height: 100vh; padding-top: 20px;">
<!-- Bagian Profil -->
<div class="d-flex text-center pt-2 mb-4">
<img src="profile-placeholder.png" alt="Logo" class="rounded-circle me-3"
style="width: 35px; height: 35px; background-color: #ddd;">
<h3 class="align-items-center fw-bold" style="color: #F7DE00;">FINALIS JTI</h3>
</div>

<!-- Tautan Navigasi -->

<nav class="nav w-100 d-flex flex-column text-start">

<a href="/kelola-admin" class="sidebar-nav nav-link text-white w-100 ps-5 fw-bold kelola-data">
Kelola Data
</a>
<div class="submenu ms-5 " style="display: none;">
<a href="/kelola-admin" class="sidebar-nav nav-link text-white w-100 ps-5">
Admin
</a>
<a href="#" class="sidebar-nav nav-link text-white w-100 ps-5">
Mahasiswa
</a>
<a href="#" class="sidebar-nav nav-link text-white w-100 ps-5">
Template Surat
</a>
</div>

<a href="#" class="sidebar-nav nav-link text-white w-100 ps-5 fw-bold">
Log Aktivitas
</a>
</nav>

<!-- Tombol Keluar -->
<div class="mt-auto w-100 mb-4 d-flex justify-content-center" style="">
<button type="button" class="sidebar-nav nav-link w-100 ps-5 p-3 d-flex text-white text-start"
data-bs-toggle="modal" data-bs-target="#modalConfirmationLogout">
<svg class="me-2" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M8.36828 6.65552C6.91888 7.45808 5.77602 8.71798 5.11811 10.2385C4.46021 11.759 4.32429 13.4546 4.73158 15.0605C5.13886 16.6665 6.06643 18.0923 7.36947 19.1155C8.67251 20.1387 10.2777 20.7017 11.9344 20.7165C13.5911 20.7313 15.206 20.1971 16.5272 19.1974C17.8483 18.1976 18.8012 16.7886 19.2371 15.1902C19.6731 13.5918 19.5675 11.8941 18.9369 10.362C18.3062 8.82999 17.1861 7.54987 15.7513 6.72152L16.5013 5.42252C18.2228 6.4168 19.5666 7.95307 20.323 9.79154C21.0795 11.63 21.2059 13.6672 20.6826 15.5851C20.1593 17.5029 19.0157 19.1936 17.4304 20.3931C15.8451 21.5926 13.9072 22.2335 11.9193 22.2157C9.93136 22.1978 8.00528 21.5223 6.44172 20.2945C4.87816 19.0668 3.7651 17.3559 3.2763 15.4289C2.78749 13.5019 2.95046 11.4674 3.73974 9.64277C4.52903 7.81817 5.90022 6.30625 7.63928 5.34302L8.36828 6.65552Z"
fill="#E4EEFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.25 12V1.5H12.75V12H11.25Z" fill="#E4EEFF" />
</svg>
Keluar
</button>
</div>
</div>

<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script>
$(document).ready(function () {
let submenuPermanent = false;

$(".kelola-data").hover(
function () {
if (!submenuPermanent) {
$(".submenu").slideDown();
}
},
function () {
if (!submenuPermanent) {
$(".submenu").slideUp();
}
}
);

$(".kelola-data").click(function (e) {
e.preventDefault();
submenuPermanent = !submenuPermanent;
if (submenuPermanent) {
$(".submenu").slideDown();
} else {
$(".submenu").slideUp();
}
});
});
</script>







<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>



<!-- Bootstrap Modal -->
<?php include __DIR__ . '/../ask_logout_modal.php' ?>
29 changes: 29 additions & 0 deletions app/views/components/admin_jurusan/topbar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<nav class="navbar">
<div class="container-fluid mx-3">
<div class="text-center d-flex pt-3 ">
<img src="foto.jpg" alt="Profil" class="rounded-circle"
style="width: 30px; height: 30px; background-color: #ddd;">
<div class="ms-2 flex-column text-start">
<h5 class="mb-0">Danin</h5>
<p class="mt-0" style="font-size: 12px;">Admin Jurusan</p>
</div>
</div>
<div>
<a href="/notifikasi">
<svg width="30" height="30" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="25" cy="25" r="25" fill="white" />
<g clip-path="url(#clip0_530_8699)">
<path
d="M25 39.9998C25.9946 39.9998 26.9484 39.6047 27.6516 38.9015C28.3549 38.1982 28.75 37.2444 28.75 36.2498H21.25C21.25 37.2444 21.6451 38.1982 22.3483 38.9015C23.0516 39.6047 24.0054 39.9998 25 39.9998ZM26.8656 12.0604C26.8918 11.7997 26.863 11.5364 26.7812 11.2875C26.6993 11.0386 26.5662 10.8096 26.3905 10.6153C26.2147 10.421 26.0001 10.2657 25.7606 10.1594C25.5211 10.0531 25.262 9.99817 25 9.99817C24.738 9.99817 24.4789 10.0531 24.2394 10.1594C23.9999 10.2657 23.7853 10.421 23.6095 10.6153C23.4338 10.8096 23.3007 11.0386 23.2188 11.2875C23.137 11.5364 23.1082 11.7997 23.1344 12.0604C21.0151 12.4915 19.1099 13.6417 17.7414 15.3164C16.373 16.991 15.6253 19.0871 15.625 21.2498C15.625 23.3086 14.6875 32.4998 11.875 34.3748H38.125C35.3125 32.4998 34.375 23.3086 34.375 21.2498C34.375 16.7123 31.15 12.9248 26.8656 12.0604Z"
fill="#052C65" />
</g>
<defs>
<clipPath id="clip0_530_8699">
<rect width="30" height="30" fill="white" transform="translate(10 10)" />
</clipPath>
</defs>
</svg>
</a>
</div>
</div>
</nav>
39 changes: 39 additions & 0 deletions app/views/components/admin_ta/sidebar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<div class="d-flex flex-column align-items-center border-end justify-content-center"
style="background-color: #052C65; width: 250px; height: 100vh; padding-top: 20px;">
<!-- Bagian Profil -->
<div class="d-flex text-center pt-2 mb-4">
<img src="profile-placeholder.png" alt="Logo" class="rounded-circle me-3"
style="width: 35px; height: 35px; background-color: #ddd;">
<h3 class="align-items-center fw-bold" style="color: #F7DE00;">FINALIS JTI</h3>
</div>

<!-- Tautan Navigasi -->
<nav class="nav w-100 d-flex justify-content-center text-start">
<a href="/dashboard" class="sidebar-nav nav-link text-white w-100 ps-5">
Dashboard
</a>
<a href="/permintaan-verif-ta" class="sidebar-nav nav-link text-white w-100 ps-5">
Permintaan Verifikasi
</a>
</nav>

<!-- Tombol Keluar -->
<div class="mt-auto w-100 mb-4 d-flex justify-content-center" style="">
<button type="button" class="sidebar-nav nav-link w-100 ps-5 p-3 d-flex text-white text-start" data-bs-toggle="modal"
data-bs-target="#modalConfirmationLogout">
<svg class="me-2" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M8.36828 6.65552C6.91888 7.45808 5.77602 8.71798 5.11811 10.2385C4.46021 11.759 4.32429 13.4546 4.73158 15.0605C5.13886 16.6665 6.06643 18.0923 7.36947 19.1155C8.67251 20.1387 10.2777 20.7017 11.9344 20.7165C13.5911 20.7313 15.206 20.1971 16.5272 19.1974C17.8483 18.1976 18.8012 16.7886 19.2371 15.1902C19.6731 13.5918 19.5675 11.8941 18.9369 10.362C18.3062 8.82999 17.1861 7.54987 15.7513 6.72152L16.5013 5.42252C18.2228 6.4168 19.5666 7.95307 20.323 9.79154C21.0795 11.63 21.2059 13.6672 20.6826 15.5851C20.1593 17.5029 19.0157 19.1936 17.4304 20.3931C15.8451 21.5926 13.9072 22.2335 11.9193 22.2157C9.93136 22.1978 8.00528 21.5223 6.44172 20.2945C4.87816 19.0668 3.7651 17.3559 3.2763 15.4289C2.78749 13.5019 2.95046 11.4674 3.73974 9.64277C4.52903 7.81817 5.90022 6.30625 7.63928 5.34302L8.36828 6.65552Z"
fill="#E4EEFF" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.25 12V1.5H12.75V12H11.25Z" fill="#E4EEFF" />
</svg>
Keluar
</button>
</div>
</div>




<!-- Bootstrap Modal -->
<?php include __DIR__ . '/../ask_logout_modal.php' ?>
29 changes: 29 additions & 0 deletions app/views/components/admin_ta/topbar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<nav class="navbar">
<div class="container-fluid mx-3">
<div class="text-center d-flex pt-3 ">
<img src="foto.jpg" alt="Profil" class="rounded-circle"
style="width: 30px; height: 30px; background-color: #ddd;">
<div class="ms-2 flex-column text-start">
<h5 class="mb-0">Anggi Putra</h5>
<p class="mt-0" style="font-size: 12px;">Admin Prodi TA</p>
</div>
</div>
<div>
<a href="/notifikasi">
<svg width="30" height="30" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="25" cy="25" r="25" fill="white" />
<g clip-path="url(#clip0_530_8699)">
<path
d="M25 39.9998C25.9946 39.9998 26.9484 39.6047 27.6516 38.9015C28.3549 38.1982 28.75 37.2444 28.75 36.2498H21.25C21.25 37.2444 21.6451 38.1982 22.3483 38.9015C23.0516 39.6047 24.0054 39.9998 25 39.9998ZM26.8656 12.0604C26.8918 11.7997 26.863 11.5364 26.7812 11.2875C26.6993 11.0386 26.5662 10.8096 26.3905 10.6153C26.2147 10.421 26.0001 10.2657 25.7606 10.1594C25.5211 10.0531 25.262 9.99817 25 9.99817C24.738 9.99817 24.4789 10.0531 24.2394 10.1594C23.9999 10.2657 23.7853 10.421 23.6095 10.6153C23.4338 10.8096 23.3007 11.0386 23.2188 11.2875C23.137 11.5364 23.1082 11.7997 23.1344 12.0604C21.0151 12.4915 19.1099 13.6417 17.7414 15.3164C16.373 16.991 15.6253 19.0871 15.625 21.2498C15.625 23.3086 14.6875 32.4998 11.875 34.3748H38.125C35.3125 32.4998 34.375 23.3086 34.375 21.2498C34.375 16.7123 31.15 12.9248 26.8656 12.0604Z"
fill="#052C65" />
</g>
<defs>
<clipPath id="clip0_530_8699">
<rect width="30" height="30" fill="white" transform="translate(10 10)" />
</clipPath>
</defs>
</svg>
</a>
</div>
</div>
</nav>
13 changes: 13 additions & 0 deletions app/views/pages/admin_jurusan/dashboard.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<main class="d-flex">
<!-- Sidebar -->
<?php include __DIR__ . '/../../components/admin_jurusan/sidebar.php' ?>
<div class="flex-grow-1">

<?php include __DIR__ . '/../../components/admin_jurusan/topbar.php' ?>

<div class="halaman mx-5 ">
<h1>TIDAK ADAKAH DASHBOARD?</h1>

</div>
</div>
</main>
Loading