-
Notifications
You must be signed in to change notification settings - Fork 14
/
confirmation.php
180 lines (156 loc) · 7.4 KB
/
confirmation.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
.td-1{
text-align: center;
padding-top: 20px;
}
</style>
</head>
<body>
<div class="container-fluid" id="cont-3">
<header id="nav-bar">
<nav class="navbar navbar-expand-lg navbar-light bg-dark">
<a class="navbar-brand" href=index.html style="color: white; font-weight: 600; margin-top: 15px;">GO VOTE</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon" style="color: white;"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto animate__animated animate__bounceInDown" style="padding-right: 50px;">
<li class="nav-item" >
<a class="nav-link" href="index.html" style="color:white; font-weight: 600; text-align: center; font-size: 18px; margin-top: 20px; text-transform: capitalize; padding: 20px;">Home</a>
</li>
<li class="nav-item" >
<a class="nav-link" href="candidate.php" style="color: white; font-weight: 600; text-align: center; font-size: 18px; margin-top: 20px; text-transform: capitalize; padding: 20px;">Candidate</a>
</li>
<li class="nav-item">
<a class="nav-link" href="result.php" style="color: white; font-weight: 600; text-align: center; font-size: 18px; margin-top: 20px; text-transform: capitalize; padding: 20px;">Result</a>
</li>
<li class="nav-item" >
<a class="nav-link" href="about.php" style="color: white; font-weight: 600; text-align: center; font-size: 18px; margin-top: 20px; text-transform: capitalize; padding: 20px;">About</a>
</li>
</ul>
</div>
</nav>
</header>
</section>
<section id="center">
<div class="container">
<div class="row">
<div class="col-md-6" >
<h1 style="padding-top: 20px;">Confirmation</h1>
<form action="SavedData.php" method="post" id=ConfirmForm>
<table>
<tr>
<td class="td-1">Name :</td>
<td class="td-1"><input type="text" style="text-align: left;" name="txtName" required></td>
</tr>
<tr>
<td class="td-1">Email :</td>
<td class="td-1"><input type="email" style="text-align: left;" name="txtEmail" required></td>
</tr>
<tr>
<td class="td-1">Branch :</td>
<td class="td-1"><input type="text" style="text-align: left;" name="txtBranch" required></td>
</tr>
<tr>
<td class="td-1">Mobile Number :</td>
<td class="td-1"><input type="number" style="text-align: left;" name="txtNumber" required pattern="[6-9]{1}[0-9]{9}"></td>
</tr>
<tr>
<td class="td-1">Which Candidate :</td>
<td class="td-1"><select required name="txtCand" required>
<option>--------Select--------</option>
<?php
$sql = "select name from candidates where approve_status=1";
include("dbConnect.php");
$stmt=$pdo->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll();
foreach ($results as $output) {?>
<option><?php echo $output["name"];?></option>
<?php }?>
</select></td>
</tr>
<tr>
<td class="td-1">Roll No. :</td>
<td class="td-1" required><input type="number" style="text-align: left;" name="txtRollNo"></td>
</tr>
<tr>
<td class="td-1">Reason :</td>
<td class="td-1"><textarea style="text-align: left;" name="txtReason" id="" cols="23" rows="4" placeholder="Why You Vote This Candidate any Reason ?"></textarea></td>
</tr>
<tr>
<td class="td-2" id style="padding-top: 20px; padding-bottom: 40px;" ><button class="magnifyBtn" name="Submit">Submit</button></td>
</tr>
</table>
</form>
</div>
<div class="col-md-6" style="padding-top: 50px;">
<img src="img/7.svg" alt="" srcset="">
</div>
</div>
</div>
</section>
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<hr>
<div class="Footer">
<ul style="display: flex;">
<li style="list-style: none; padding: 10px; "><a href="index.html" style="text-decoration: none; color: #a517ba;">Home</a></li>
<li style="list-style: none; padding: 10px; "><a href="about.php" style="text-decoration: none; color: #a517ba;">About</a></li>
<li style="list-style: none; padding: 10px; "><a href="suggestion.html" style="text-decoration: none; color: #a517ba;">Suggestion</a></li>
<li style="list-style: none; padding: 10px; "><a href="contact_form.php" style="text-decoration: none; color: #a517ba;">Contact</a></li>
</ul>
</div>
</div>
<div class="col-md-6">
<hr>
<div class="social-icon">
<ul >
<li>
<a href="">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="">
<i class="fa fa-google-plus"></i>
</a>
</li>
<li>
<a href="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="">
<i class="fa fa-pinterest"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.2.1.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>