-
Notifications
You must be signed in to change notification settings - Fork 1
/
departmentlogin.php
51 lines (49 loc) · 2.32 KB
/
departmentlogin.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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Login For Department</title>
</head>
<body>
<?php
include '.\dbConnect.php';
$query = "SELECT * FROM department";
$result = mysqli_query($conn, $query);
?>
<h4>Choose Department</h4>
<div class = "container col-6 justify-content-center mt-5">
<div class="card justify-content-center bg-dark">
<div class="card-header bg-primary">
<a href="departments.php"><i class="fa-solid fa-building-columns fa-3x" style="color: #000000;"></i></a>
</div>
<div class=" card-body mb-3">
<form method="post" action="departments.php" class="text-center">
<label for="disabledSelect" class="form-label text-light">Choose Department</label>
<select name="dName" id="disabledSelect" class="form-select">
<?php
while ($row = mysqli_fetch_assoc($result)) {
$dName = $row["dName"];
echo "<option>", $dName;
}
?>
</select>
<input class=" mt-3"type="submit" value="Login">
</form>
</div>
</div>
</div>