-
Notifications
You must be signed in to change notification settings - Fork 1
/
adminOption.php
100 lines (93 loc) · 3.54 KB
/
adminOption.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php $get_std = false;
include("./includes/nav.php");
include("./db.con.php"); ?>
<?php
if (!isset($_SESSION['username'])) {
$_SESSION['msg'] = "You must log in first to view this page";
header('location: login.php');
}
?>
<div class="side-bar ui bg-dark white">
<?php include("./includes/sideBar.php"); ?>
<?php include("./header.php"); ?>
</div>
<div class="ui main">
<div class="container-fluid m-0 ui">
<?php if(isset($_GET['action'])):?>
<a href="adminOption.php" class="btn btn-sm btn-success my-1">Retour</a>
<?php if($_GET['action'] == 'Classe'):?>
<div class="row">
<div class="col-md-4">
<div class="card card-body">
<h2>Classe</h2>
</div>
</div>
<div class="col-md-8">
<div class="card card-body">
<h2>Data...</h2>
</div>
</div>
</div>
<?php elseif($_GET['action'] == 'Cours'):?>
<div class="card card-body">
<h2>Cours</h2>
</div>
<?php elseif($_GET['action']== 'Annee'):?>
<div class="card card-body">
<?php include_once './includes/Annee.php';?>
</div>
<?php else:?>
<div class="card card-body my-5">
<h2 class="text-center">
Sorry guy but you need bad things ...
</h2>
<a href="javascript:void()" id="go-back" class="text-center btn btn-lg btn-block btn-primary">Back</a>
</div>
<?php endif;?>
<?php else:?>
<div class="row justify-content-center">
<div class="col-md-12 mb-2">
<div class="card card-body">
<form action="" method="get">
<input type="search" name="search" id="search" placeholder="Search..." class="form-control">
</form>
</div>
</div>
<div class="col-md-12 my-1">
<div class="card card-body">
<p class="d-flex justify-content-between align-items-center">
<span>Classe</span>
<span class="badge badge-success">nombre des classe</span>
<a href="adminOption.php?action=Classe" class="btn btn-sm btn-success" type="button">Add</a>
</p>
</div>
</div>
<div class="col-md-12 my-1">
<div class="card card-body">
<p class="d-flex justify-content-between align-items-center">
<span>Cours</span>
<span class="badge badge-success">nombre des cours</span>
<a href="adminOption.php?action=Cours" class="btn btn-sm btn-success" type="button">Add</a>
</p>
</div>
</div>
<div class="col-md-12 my-1">
<div class="card card-body">
<p class="d-flex justify-content-between align-items-center">
<span>Annee scolaire</span>
<span class="badge badge-success">nombre des annees</span>
<a href="adminOption.php?action=Annee" class="btn btn-sm btn-success" type="button">Add</a>
</p>
</div>
</div>
</div>
<?php endif;?>
</div>
</div>
</div>
<?php include('./footer.php'); ?>
<script>
document.getElementById('go-back').addEventListener('click', () => {
history.back();
});
</script>