-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
71 lines (67 loc) · 1.92 KB
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<?php
include 'setting/head.php';
include "setting/cekredirect.php";
cekRole("mix");
$user_role = $_SESSION['role'];
$username_pengguna = $_SESSION['username'];
$nama_user = $db->get("user_pengguna","nama_user",["username" => $_SESSION['username']]);
$count_suratmasuk = $count_suratmasuk = $db->count("surat",["username_pengguna" => $username_pengguna,"hapus"=>0]);
$count_suratbelumselesai = $count_suratbelumselesai = $db->count("surat",["username_pengguna" => $username_pengguna,"status"=>"Belum Selesai","hapus"=>0]);
?>
<link rel="stylesheet" type="text/css" href="assets/css/native-css/homes.css">
</head>
<body>
<!-- HEADER -->
<?php
include "setting/header.php";
?>
<!-- KONTEN -->
<div class="konten">
<div class="kontenatas">
<div class="kontenatas-header">
<!-- Selamat Datang (nama_user) -->
<?php echo "Selamat Datang ".$nama_user; ?>
</div>
<div class="kontenatas-isi">
<!-- Anda login sebagai (jenis_user). -->
<?php echo "Anda Login Sebagai ".$user_role."."; ?>
</div>
</div>
<div class="kontenbawah">
<div class="menubawah">
<a href="datasurat.php">
<div class="menubawah-konten konten1">
<div class="menubawah-konten-header">
<i class="material-icons md-36 ikon">mail</i>
<p class="konten-header">Surat Masuk</p>
</div>
<p>
<?php echo $count_suratmasuk." Surat Masuk"; ?>
</p>
</div>
</a>
</div>
<div class="menubawah">
<a href="datasurat.php">
<div class="menubawah-konten konten2">
<div class="menubawah-konten-header">
<i class="material-icons md-36 ikon">drafts</i>
<p class="konten-header">Surat Belum Selesai</p>
</div>
<p>
<?php echo $count_suratbelumselesai." Surat Belum Selesai"; ?>
</p>
</div>
</a>
</div>
</div>
</div>
<!-- FOOTER -->
<?php
include "setting/footer.php";
?>
</body>
</html>