tambah halaman utama admin dan managemen dosen, memperbaiki pembuatan table dengan menambah timezom +8.00

This commit is contained in:
cowrie committed 2026-11-16 04:21:56 +08:00
1 parent 41f92f40bb
commit 31eb35c090
7 files changed
+1247 -383

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@
</div>
<button type="submit" id="login_btn" class="frm-submit">Login<i class="fa fa-arrow-circle-right"></i></button>
<a href="index.html" class="a-link"><i class="fa fa-arrow-circle-right"></i>Kembali ke halaman utama.</a>
<div class="frm-footer">Tugas RPL.</div>
<div class="frm-footer text-center" >Sistem Penelitian Dosen <br> Universitas Handayani Makassar. <br> Copyright &copy; 2026</div>
</div>
</form>
</div>
@@ -71,12 +71,12 @@
if (data.role === 'admin') {
localStorage.setItem('admin_auth', 'true');
window.location.href = 'admin.html';
window.location.href = 'admin_index.html';
} else if (data.role === 'dosen') {
// Store dosen_id as the auth token for the dosen
localStorage.setItem('dosen_id', data.dosen_id);
localStorage.setItem('dosen_name', data.dosen_name);
window.location.href = 'dosen.html';
window.location.href = 'dosen_index.html';
}
} else {
alert(data.message || 'Login gagal!');