This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
77 lines (66 loc) · 3.58 KB
/
index.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
72
73
74
75
76
77
<?php
//cek status login
include "include/auth.php";
//file configurasi
include "include/config.php";
//menghitung data rincian aplikasi
$count1 = mysql_num_rows(mysql_query("SELECT * FROM inbox",$connect));
$count2 = mysql_num_rows(mysql_query("SELECT * FROM outbox",$connect));
$count3 = mysql_num_rows(mysql_query("SELECT * FROM user",$connect));
$count4 = mysql_num_rows(mysql_query("SELECT * FROM disposisi",$connect));
//title page
$titlepage = "Dashboard";
//header aplikasi
include "include/header.php";
?>
<div class="wrapper">
<div class="container">
<div class="row">
<?php include "include/menu.php";?>
<div class="span9">
<div class="content">
<div class="alert alert-success">
<strong>Hai <?php echo $namausr;?>!</strong>
Selamat datang di aplikasi pengarsipan surat PT Web Technology Fobtera Indonesia.<br/>
Anda telah login sebagai <?php if($aksesusr == 2){echo "Pimpinan";}else if($aksesusr == 1){echo "Petugas Arsip";}else{ echo "Admin";} ?>.
Berikut rincian data aplikasi.
</div>
<div class="btn-controls">
<?php if($aksesusr == 2){ ?>
<div class="btn-box-row row-fluid">
<a href="inbox.php" class="btn-box big span4"><i class=" icon-inbox"></i><b><?php echo $count1; ?></b>
<p class="text-muted">
Surat Masuk</p>
</a><a href="outbox.php" class="btn-box big span4"><i class="icon-envelope"></i><b><?php echo $count2; ?></b>
<p class="text-muted">
Surat Keluar</p>
</a><a class="btn-box big span4"><i class="icon-edit"></i><b><?php echo $count4; ?></b>
<p class="text-muted">
Disposisi</p>
</a>
</div>
<?php }else{ ?>
<div class="btn-box-row row-fluid">
<a href="inbox.php" class="btn-box big span3"><i class=" icon-inbox"></i><b><?php echo $count1; ?></b>
<p class="text-muted">
Surat Masuk</p>
</a><a href="outbox.php" class="btn-box big span3"><i class="icon-envelope"></i><b><?php echo $count2; ?></b>
<p class="text-muted">
Surat Keluar</p>
</a><a <?php if($aksesusr == 0){ ?> href="proses/users.php" <?php } ?> class="btn-box big span3"><i class="icon-group"></i><b><?php echo $count3; ?></b>
<p class="text-muted">
Pengguna</p>
</a><a class="btn-box big span3"><i class="icon-edit"></i><b><?php echo $count4; ?></b>
<p class="text-muted">
Disposisi</p>
</a>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<!--footer aplikasi-->
<?php include "include/footer.php";?>