-
Notifications
You must be signed in to change notification settings - Fork 0
/
7.php
216 lines (214 loc) · 7.18 KB
/
7.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>W3.CSS </title>
<link rel="icon" type="image/gif" href="icon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width ,initial-scale=1.0">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
#A
{
border-left:1px solid white ;
height:1px;
}
</style>
</head>
<body>
<div style="background:rgb(102, 255, 51);"class="w3-container ">
<div class="w3-center w3-text-teal" >
<h1>UDYAM REGISTRATION 2K18 </h1>
<h2 class="w3-text-orange"> DAYS TO GO -></h2>
</div>
<div style="background:rgb(102, 255, 51);" class=" w3-container">
<div class="w3-cell w3-col s3 m3 l3 w3-padding w3-center ">
<p class="w3-text-black ">DAYS </p>
<span class="demo w3-large w3-tag w3-circle"> </span>
</div>
<div class="w3-cell w3-col s3 m3 l3 w3-padding w3-center">
<p class="w3-text-black ">HOUR </p>
<span class="demo w3-large w3-tag w3-circle"> </span>
</div>
<div class="w3-cell w3-col s3 m3 l3 w3-padding w3-center">
<p class="w3-text-black ">MINUTE </p>
<span class="demo w3-large w3-tag w3-circle"> </span>
</div>
<div class="w3-cell w3-col s3 m3 l3 w3-padding w3-center">
<p class="w3-text-black ">SECOND </p>
<span class="demo w3-large w3-tag w3-circle"> </span>
</div>
</div>
<div class="w3-row-padding">
<div class="w3-row">
<div id="valid" style="background:rgb(255, 51, 204);"class="w3-cell w3-content w3-col l4 m6 s12 w3-text-teal w3-round w3-hide">
<p id="valid1" class="w3-center w3-text-white"></p>
</div>
</div>
<div class="w3-col s12 m12 l5 w3-card-4 w3-section w3-orange">
<div class="w3-text-white w3-cell">
<h3>Login to our site </h3>
<h4>Enter username and password to log on: </h4>
</div>
<div class="w3-cell w3-text-white w3-cell-middle">
<i class="fa fa-key fa fa-4x "> </i>
</div>
<form method="post" action="9.php" onsubmit=" return myfunc()">
<div class="w3-row w3-section">
<input type="text" class="w3-input w3-border w3-hover-border-blue w3-border-white w3-round" placeholder="Email..." name="email" required>
</div>
<div class="w3-row w3-section">
<input type="password" class="w3-input w3-border w3-hover-border-blue w3-border-white w3-round" placeholder="Password..." name="password" required>
</div>
<div class="w3-row w3-section">
<input type="submit" value="Sign in !" class="w3-input w3-hover-border-gray w3-hover-text-white w3-border w3-hover-gray w3-blue w3-border-blue w3-round" name="submit">
</div>
</form>
</div>
<div id="A"style="background:rgb(102, 255, 51);" class=" w3-col l2 m12 s12 w3-center">
</div>
<div class="w3-col s12 m12 l5 w3-section w3-card-4 w3-orange">
<div class="w3-text-white w3-cell">
<h3>Sign up now </h3>
<h4>Fill in the form below to get instant access:</h4>
</div>
<div class="w3-cell w3-text-white w3-cell-middle">
<i class="fa fa-pencil fa fa-4x "> </i>
</div>
<form method="post" action="8.php" onsubmit="return myfunc1()">
<div class="w3-section w3-row">
<input type="text" class="w3-input w3-border w3-hover-border-blue w3-border-white w3-round" placeholder="Name..." name="name" required>
</div>
<div class="w3-section w3-row">
<input type="text" class="w3-input w3-border w3-hover-border-blue w3-border-white w3-round" placeholder="Email..." name="email" required>
</div>
<div class="w3-section w3-row">
<input type="password" class="w3-input w3-border w3-hover-border-blue w3-border-white w3-round" placeholder="Password..." name="password" required>
</div>
<div class="w3-section w3-row">
<input type="password" class="w3-input w3-border w3-hover-border-blue w3-border-white w3-round" placeholder="Password(again)" name="password" required>
</div>
<div class="w3-section w3-row">
<input type="text" class="w3-input w3-border w3-hover-border-blue w3-border-white w3-round" placeholder="Phone.." name="phone" required>
</div>
<div class="w3-section w3-row">
<select class="w3-select" name="gender" required>
<option value =""disabled selected>Gender </option>
<option value="male">Male </option>
<option value="female">Female </option>
<option value="other">Other </option>
</select>
</div>
<div class="w3-section w3-row">
<input type="submit" value="Sign me up!" class="w3-input w3-border w3-hover-border-gray w3-hover-text-white w3-hover-gray w3-blue w3-border-blue w3-round" name="submit">
</div>
</form>
</div>
</div>
</div>
<div style="background:rgb(102,204,255);"class="w3-container w3-center">
<p> © 2014-15 | Indian Institute of Technology (Banaras Hindu University), Varanasi. All Rights Reserved.</p>
<h5 class="w3-text-black">Developed and Maintained by Web Management & Email Services Committee, IIT(BHU)</h5>
</div>
<div style="background:rgb(153, 51, 255);"class="w3-container w3-center">
<a href="#" class="w3-text-white w3-button w3-circle w3-pink w3-hover-red"><i class="fa fa-facebook fa fa-2x"> </i> </a>
<a href="#" class="w3-text-white w3-button w3-circle w3-pink w3-hover-red"><i class="fa fa-instagram fa fa-2x"> </i> </a>
<a href="#" class="w3-text-white w3-button w3-circle w3-pink w3-hover-red"><i class="fa fa-twitter fa fa-2x"> </i> </a>
<h2 class="w3-text-black w3-center"> Powered by w3.css </h2>
</div>
<script>
foo();
function foo()
{
var a = new Date('6 april 2019');
var b= new Date();
var c=a.getTime();
var d= b.getTime();
var e=c-d;
var s= Math.floor(e/1000);
var m=Math.floor(s/60);
var h=Math.floor(m/60);
var day= Math.floor(h/24);
h=h%24;
m=m%60;
s=s%60+1;
var x=document.getElementsByClassName("demo");
x[0].innerHTML=day;
x[1].innerHTML=h;
x[2].innerHTML=m;
x[3].innerHTML=s;
setTimeout(foo,1000);
}
function myfunc()
{
var text=document.getElementsByName('email')[0].value;
var b=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(text);
if(b==false)
{
var p=document.getElementById('valid');
var q=document.getElementById('valid1');
q.innerHTML="Please fill out valid email address";
p.className=p.className.replace(' w3-hide',' w3-show');
}
else
{
p.className=p.className.replace(' w3-show',' w3-hide');
}
return b;
}
function myfunc1()
{
var t;
var p=document.getElementById('valid');
var q=document.getElementById('valid1');
var a=document.getElementsByName('name')[0].value;
var b=/^[A-Za-z _.+0-9]+$/.test(a);
var c=document.getElementsByName('email')[1].value;
var d=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(c);
var e=document.getElementsByName('phone')[0].value;
var f=/^[0-9]{10}$/.test(e);
var m1= document.getElementsByName('password')[1].value;
var m2= document.getElementsByName('password')[2].value;
if(b==false)
{
q.innerHTML="Please fill out valid Name format";
p.className=p.className.replace(' w3-hide',' w3-show');
t=b;
}
else
{
if(d==false)
{
q.innerHTML="Please fill out valid email address";
p.className=p.className.replace(' w3-hide',' w3-show');
t=d;
}
else
{
if(m1!==m2)
{
q.innerHTML="Password should be matched";
p.className=p.className.replace(' w3-hide',' w3-show');
t=false;
}
else
{
if(f==false)
{
q.innerHTML="Please fill out valid mobile number";
p.className=p.className.replace(' w3-hide',' w3-show');
t=f;
}
else
{
p.className=p.className.replace(' w3-show',' w3-hide');
t=true;
}
}
}
}
return t;
}
</script>
</body>
</html>