-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewuser.php
More file actions
224 lines (209 loc) · 5.74 KB
/
Copy pathnewuser.php
File metadata and controls
224 lines (209 loc) · 5.74 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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<html>
<head>
<title>OES</title>
<link rel="shortcut icon" href="logo.png" type=" image/png">
<style>@media only screen and (max-width: 40em) {
thead th:not(:first-child) {
display: none;
}
td, th {
display: block;
}
td[data-th]:before {
content: attr(data-th);
}
}</style>
<style>
* {
box-sizing: border-box;
}
#mycon {
background-color:black;
color: black;
width:100%;
height:100%;
align:center;
}
#myHeader {
background-color:limegreen;
color: black;
width:100%;
height:20%;
text-align:center;
}
#hb1 {
background-color:bisque;
color: black;
width:15%;
height:100%;
float: left;
}
#hb2 {
background-color:limegreen;
color: black;
width:60%;
height:20%;
float: left;
text-align:center;
color:azure;
}
#hb3 {
background-color:bisque;
color: black;
width:15%;
height:100%;
float:right;
}
#mymain {
background-color:lightgray;
color: black;
width:100%;
height:auto;
float: left;
}
#myfooter {
background-color:#f0ce54;
color: black;
width:100%;
height:10%;
float: left;
vertical-align: middle;
text-align :center;
}
.block {
display: block;
width: 100%;
border: none;
background-color: #4CAF50;
color: white;
padding: 14px 28px;
font-size: 16px;
cursor: pointer;
text-align: center;
}
.block:hover {
background-color: #ddd;
color: black;
}
</style>
</head>
<body>
<div id="mycon">
<div id="myHeader">
<div id="hb1"><img src="logo.png"alt="LOGO OF AAU" width=100% height=100%></div>
<div id="hb2"><h1> ANAND AGRICULTURE UNIVERSITY,ANAND</h1>
<h2> ONLINE EXAMINATION SYSTEM.</h2></div>
<div id="hb3"><img src="logo.png" alt="LOGO OF AIT" width=100% height=100%>
</div>
</div>
<div id="mymain">
<form method=post action=adduser.php>
<table width=100% height=68%>
<tr>
<td align=center valign=middle>
<table border=2 bgcolor=orange cellpadding=10 cellspacing=3 align=center BORDERCOLOR=rosybrown>
<?php
echo "<caption><font color=green>PLEASE PROVIDE YOUR INFORMATION </font></caption>";
?>
<?php
if (isset($_GET["err"]))
{
if ($_GET["err"]==2)
echo "<caption><font color=#a00>PASSWORD AND CONFORM PASSWORD DOSN'T MATCH</font></caption>";
if ($_GET["err"]==1)
echo "<caption><font color=#a00>PLEASE PROVIDE CORRECT INFORMATION</font></caption>";}if (isset($_GET["msg"])){
if ($_GET["msg"]==0)
echo "<caption><font color=#a00>PLEASE PROVIDE CORRECT MOBILE NUMBER</font></caption>";
if ($_GET["msg"]==14)
echo "<caption><font color=#a00>PLEASE PROVIDE CORRECT E-MAIL ADDRESS</font></caption>";}
?>
<tr>
<td bgcolor="gold"><b>FIRST NAME :- </b></td>
<td bgcolor="gold"><b>MIDDLE NAME :- </b></td>
<td bgcolor="gold"><b>SURNAME :- </b></td>
<td bgcolor="gold"><b>USER TYPE :- </b></td>
</tr>
<tr>
<td bgcolor="darkslategray"><input type=text name=txtfname size=30 placeholder="ENTER YOUR FIRST NAME HERE"></td>
<td bgcolor="darkslategray"><input type=text name=txtmname size=30 placeholder="ENTER YOUR MIDDLE NAME HERE"></td>
<td bgcolor="darkslategray"><input type=text name=txtsname size=30 placeholder="ENTER YOUR SURNAME HERE"></td>
<td bgcolor="darkslategray">
<SELECT name=cmbtype>
<?php
$host="localhost";
$user="root";
$password="";
$con=mysqli_connect($host,$user,$password);
//$conn=mysqli_connect("localhost","root","");
$db=mysqli_select_db($con,"akil");
$qry="select * from userlist order by usertype";
$rs=mysqli_query($con,$qry);
while ($val=mysqli_fetch_assoc($rs))
{
echo "<OPTION value='".$val["usertype"]."'>".$val["usertype"]."</option>";
}
?>
</SELECT>
</td>
</tr>
<tr>
<td bgcolor="gold"><b>REG.NO/EMPLOY.ID :- </b></td>
<td bgcolor="gold"><b>COLLAGE NAME :- </b></td>
<td bgcolor="gold"><b>E-MAIL :- </b></td>
<td bgcolor="gold"><b>ENTER DOB :- </b></td>
</tr>
<tr>
<td bgcolor="darkslategray"><input type=text name=txtreg size=30 placeholder="ENTER YOUR REG.No/EMP.id HERE"></td>
<td bgcolor="darkslategray"><input type=text name=txtcoll size=30 placeholder="ENTER COLLAGE NAME HERE"></td>
<td bgcolor="darkslategray"><input type=text name=txtemail size=30 placeholder="ENTER YOUR E-mail HERE"></td>
<td bgcolor="darkslategray"><input type=date name=txtdob size=30 placeholder="DD-MM-YYYY"></td>
</tr>
<tr >
<td bgcolor="gold"><b>USER NAME :- </b></td>
<td bgcolor="gold"><b>PASSWORD :- </b></td>
<td bgcolor="gold"><b>CONFORM PASSWORD :- </b></td>
<td bgcolor="gold"><b>MOBILE NUMBER :- </b></td>
</tr>
<tr>
<td bgcolor="darkslategray"><input type=text name=txtuname size=30 placeholder="ENTER USER NAME"></td>
<td bgcolor="darkslategray"><input type="password" name=txtpass id="myInputa" placeholder="ENTER PASSWORD"><input type="checkbox" onclick="myFunction()"><font color=white>Show</font>
<script>
function myFunction() {
var x = document.getElementById("myInputa");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</td>
<td bgcolor="darkslategray"><input type="password" name=txtcpass id="myInputb" placeholder="ENTER PASSWORD"><input type="checkbox" onclick="myFunctiona()"><font color=white>Show</font>
<script>
function myFunctiona() {
var x = document.getElementById("myInputb");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</td>
<td bgcolor="darkslategray"><input type=text name=txtmob size=30 placeholder="ENTER MOBILE No."></td>
</tr>
<tr>
<td></td>
<th colspan=2><input type=submit name=s1 class="block" value="submit"></th>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
<div id="myfooter"><span>2021-2022</span> © - Developed By <strong>COLLAGE OF AIT,AAU,ANAND</strong></div>
</div>
</body>
</html>