-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrialget.php
More file actions
120 lines (87 loc) · 3.5 KB
/
trialget.php
File metadata and controls
120 lines (87 loc) · 3.5 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Introduction Website</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="body">
<header>
<div class="container">
<a href="first.php"><img class="logo" src="logo.jpg"></a>
<h1 class="hover-4">ICT Voting Portal</h1>
<nav>
<ul>
<li class="home"><a href="first.php">Sign Up</a></li>
<li><a href="about_page.html">About</a></li>
</li>
<li style="float:right" class="about"><a href="first.php">Log Out</a></li>
</ul>
</nav>
</div>
</header>
<center>
<div class="flex">
<div class="slider">
<div class="rotator">
<div class="items">
<img src="img4.jpeg" >
</div>
<div class="items">
<img src="img1.jpeg" >
</div>
<div class="items">
<img src="img3.jpeg" >
</div>
<div class="items">
<img src="img4.jpeg" >
</div>
</div>
</div>
<div class="sloganarea">
<h2 class="text">
<img src="slogan2.jpeg" alt="">
</h2>
</div>
<div>
<img style="height: 350px;" src="slogan1.jpg">
</div>
</div>
<div class="reg_form">
<h2 style="font-family:Arial, Helvetica, sans-serif; font-size: xx-large;padding-top: 50px;">Login Form</h2>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<label for="mobile">Mobile No.:</label>
<input type="text" id="mobile" name="number" required placeholder="enter your registered number" pattern="\d{10}">
<small style="color:red;"><?php echo $errors['number'] ?? '' ?></small><br><br><br>
Select your Department:
<input type="radio" id="CE" name="branch" value="CE" required>
<label for="ce">CE</label>
<input type="radio" id="EC" name="branch" value="EC">
<label for="ec">EC</label>
<input type="radio" id="IT" name="branch" value="IT">
<label for="it">IT</label><br><br><br>
Select your Academic Year:
<input type="radio" id="1" name="year" value="1" required>
<label for="1">First</label>
<input type="radio" id="2" name="year" value="2">
<label for="2">Second</label>
<input type="radio" id="3" name="year" value="3">
<label for="3">Third</label>
<input type="radio" id="4" name="year" value="4">
<label for="4">Fourth</label><br><br><br>
<label for="kay">Password:</label>
<input type="text" id="kay" name="pwd" required placeholder="enter your college-profile password" pattern="[A-Za-z0-9]{8}">
<small style="color:red;"><?php echo $errors['pwd'] ?? '' ?></small><br><br><br>
<a href="#" <input class="signup" type="submit" value="Send OTP"><button class="signup">Log In</button></a><br><br>
</div>
</center>
<marquee class="marquee">The Election will be held only between the given time. So, hurry up and Represent Yourself!!!</marquee>
</body>
</html>
<?php
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] === "vote" || $_SESSION['loggedin']==="adm"|| $_SESSION['loggedin']!=="trialindex" ){
header("location: error.php");
exit;
}
?>