1
+ <?php
2
+ session_start ();
3
+ ?>
4
+ <!DOCTYPE html>
5
+ <!--Sayan Pandey 15/IT/21-->
6
+ <html lang='en'>
7
+ <head>
8
+ <title>Administrators' Portal</title>
9
+ <meta charset="utf-8">
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <link rel="stylesheet" type="text/css" href="admin.css">
12
+ </head>
13
+ <body>
14
+ <div class="banner">
15
+ <img id="logo" src="img/logo.png">
16
+ <h1 class="bannertext">National Institute of Technology DURGAPUR, West Bengal</h1>
17
+ <h1 class="bannertext">Administrators' Portal</h1>
18
+ </div>
19
+ <nav>
20
+ <a class="nav" onclick="show('home')">Home</a>
21
+ <a class="nav" onclick="show('register')">Register</a>
22
+ <a class="nav" onclick="show('login')">Login</a>
23
+ <a class="nav" >Profile</a>
24
+ <a class="nav" >Logout</a>
25
+ </nav>
26
+ <!--Home-->
27
+ <div id="home">
28
+ <h1 class="title" style="font-size: 3em"> Home</h1>
29
+ <!--content-->
30
+ <div class="content">
31
+ <h1> Welcome!! Click on the navigation buttons for following functionalities:</h1>
32
+ </div>
33
+ <h3>
34
+ <dl style="padding:15px;">
35
+ <img class="design" src="img/back2.png">
36
+ <dt>Home:</dt>
37
+ <dd>Click on 'Home' to return here.</dd>
38
+ <br>
39
+ <dt>Register:</dt>
40
+ <dd>Click on 'Register' on the navigation bar to register yourself with this portal.</dd>
41
+ <br>
42
+ <dt>Login:</dt>
43
+ <dd>Click on 'Login' on the navigation bar to register yourself with this portal.</dd>
44
+ <br>
45
+ <dt>Profile:</dt>
46
+ <dd>Click on 'Profile' to check your profile (Login Required).</dd>
47
+ <br>
48
+ <dt>Logout:</dt>
49
+ <dd>Click on 'Logout' to end session.</dd>
50
+ </dl>
51
+ </h3>
52
+ </div>
53
+ <!--Register-->
54
+ <div id="register">
55
+ <h1 class="title" style="font-size: 3em"> Register</h1>
56
+ <!--content-->
57
+ <div class="content">
58
+ <img class="design" src="img/back2.png">
59
+ <h1> Fill up the details:</h1>
60
+ <form method="POST" action='reg.php'>
61
+ <h3 class="heading">Registration Number: <input type="number" name="regno" placeholder="Enter Registration number" required></h3>
62
+ <h3 class="heading">Roll Number: <input type="text" name="rollno" placeholder="Enter Roll number" required></h3>
63
+ <h3 class="heading">Name: <input type="text" name="name" placeholder="Enter your name" required></h3>
64
+ <h3 class="heading">Phone: <input type="number" name="phone" placeholder="Enter your phone number" required></h3>
65
+ <h3 class="heading">Email Id: <input type="email" name="email" placeholder="Enter email" required></h3>
66
+ <h3 class="heading">Password: <input type="password" id="password" name="password" placeholder="Enter password" required></h3>
67
+ <h3 class="heading">Confirm Password: <input type="password" id="conf_pass" placeholder="Re-enter password" required></h3>
68
+ <div class="wrap"><h4 id="message"></h4></div>
69
+ <div class="wrap"><button class="nav" id="register_button" type="submit">Register</button></div>
70
+ <br>
71
+ </form>
72
+ </div>
73
+ </div>
74
+ <!--Login-->
75
+ <div id="login">
76
+ <h1 class="title" style="font-size: 3em"> Login</h1>
77
+ <!--content-->
78
+ <div class="content">
79
+ <img style=" z-index:-999;
80
+ float:right;
81
+ width:auto;
82
+ max-width: 17%;
83
+ position:absolute;
84
+ right:10px;" src="img/back2.png">
85
+ <h1> Fill up the details:</h1>
86
+ <form>
87
+ <h3 class="heading">Registration Number: <input type="number" name="regno" placeholder="Enter Registration number" required></h3>
88
+ <h3 class="heading">Password: <input type="password" name="password" placeholder="Enter password" required></h3>
89
+ <div class="wrap"><button class="nav" type="submit">Login</button></div>
90
+ <br>
91
+ </form>
92
+ </div>
93
+ </div>
94
+ </body>
95
+ <script>var response= "<?php echo isset ($ _SESSION ['response ' ])?$ _SESSION ['response ' ]:0 ; ?> "</script>
96
+ <script src="admin.js"></script>
97
+ <script src="jquery3.3.1.js"></script>
98
+ </html>
99
+ <?php
100
+ session_unset ();
101
+ session_destroy ();
102
+ ?>
0 commit comments