-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
66 lines (62 loc) · 2.11 KB
/
dashboard.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
<?php
include "header.php";
include "database.php";
$singers = $db->query("SELECT * FROM `singers`");
$albums = $db->query("SELECT * FROM `albums`");
$musics = $db->query("SELECT * FROM `music`");
?>
<?php if(!empty($_SESSION['login_admin'])):?>
<h1 class="mb-1">
Dashboard
</h1>
<?php include "admin_menu.php"; ?>
<div class="col-lg-2 my-2 col-md-4 col-sm-4 col-xs-5 bg-danger rounded-4 p-3 bg-opacity-75 me-5">
<div class="card text-light text-center bg-danger bg-opacity-75">
<div class="card-header">
Albums :
</div>
<div class="card-body">
<?php echo $albums->num_rows; ?>
</div>
</div>
</div>
<div class="col-lg-2 my-2 col-md-4 col-sm-4 col-xs-5 bg-warning rounded-4 p-3 bg-opacity-75 me-5">
<div class="card text-light text-center bg-warning bg-opacity-75">
<div class="card-header">
Artists :
</div>
<div class="card-body">
<?php echo $singers->num_rows; ?>
</div>
</div>
</div>
<div class="col-lg-2 my-2 col-md-4 col-sm-4 col-xs-5 bg-info rounded-4 p-3 bg-opacity-75 me-5">
<div class="card text-light text-center bg-info bg-opacity-75">
<div class="card-header">
Musics :
</div>
<div class="card-body">
<?php echo $musics->num_rows; ?>
</div>
</div>
</div>
</div>
</div>
<script>
function lightter(x)
{
x.classList.remove('text-light');
x.classList.add('text-white');
}
function darker(x)
{
x.classList.remove('text-white');
x.classList.add('text-light');
}
</script>
<?php else:
header("Location:index.php");
endif;?>
<?php
include "footer.php";
?>