-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadddriver.php
More file actions
140 lines (130 loc) · 3.52 KB
/
adddriver.php
File metadata and controls
140 lines (130 loc) · 3.52 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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="mainpage2.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
function validate()
{
var cnum=document.getElementById("cnumber").value;
var x=document.getElementById("cardnumber");
if(cnum.toString().length==8)
{
if(!isNaN(cnum))
{
x.style.display="none";
return true;
}
else
{
x.style.display="contents";
return false;
}
}
else
{
x.style.display="contents";
return false;
}
return false;
}
</script>
<style type="text/css">
label{
color: blue;
margin: solid black 3px;
padding : 5px;
}
footer{clear:both;
text-align:center;
padding:20px;
background:url('emoji.jpg');
margin:10px;
margin-top:12%;
margin-left:45%;
margin-right:45%;
border:2px dashed green;}
input[type=date] {
padding: 8px 20px;
margin: 8px ;
margin-bottom:10px;
margin-left:50px;
border: 2px solid lightblue;
border-radius: 2px;}
input[type=password]{
width: 25%;
padding: 8px 20px;
margin: 8px 0;
margin-left:50px;
border: 2px solid red;
border-radius: 2px;
}
input[type=number]{
width: 25%;
padding: 8px 20px;
margin: 8px 0;
margin-left:65px;
border: 2px solid green;
border-radius: 2px;
}
input[type=email] {
width: 25%;
padding: 8px 20px;
margin: 8px 0;
margin-left:56px;
border: 2px solid blue;
border-radius: 2px;
}
input[type=text] {
width: 25%;
padding: 8px 20px;
margin: 8px 0;
border: 2px solid yellow;
border-radius: 2px;
margin-left:45px;
margin-right:50%;
}
h2{color:yellow;
border:2px dashed yellow;
margin:10px;
padding:5px;
background:url('emoji.jpg')}
input:focus {border: 3px solid #555;}
body{background:url('emoji.jpg');
color:red;
font-family:100px bold;}
</style>
</head>
<body>
<div>
<nav class="floating-head">
<img src="delhi-metro-logo-6351.png" align= "left" width=100px height=100px>
<img src="helpline1.png" width=200px height=100px align="right">
<font style="font-size:250%; color:black;font-family: caviar;text-align: left;padding: 10px">DELHI BUS CORPORATION</font><br>
<font style="font-size:100%; color:black;font-family: caviar-light; text-align: left;padding: 10px">(An Joint Venture Of Govt. Of INDIA And Govt. Of NCT DELHI)</font>
</nav>
</div>
<div class="tab">
<nav>
<ul>
<li><a class="active" href="mainpage2.php">HOME</a></li>
<li><a href="about.php">ABOUT US</a></li>
<li><a href="contact.php">CONTACT</a></li>
</ul>
</nav>
</div>
<div id="form">
<form name="form" id="form" method="post" action="adddriver1.php" >
<label>DRIVER ID</label>:<input type="number" maxlength="20" name="driver_id" id="driver_id" autocomplete="on" required ><br/>
<label>ADHAAR</label>:<input type="number" maxlength="10" id="adhaar_number" name="adhaar_number" required ><br/>
<label>AGE</label>:<input type="number" maxlength="10" id="age" name="age" required ><br/>
<label>DRIVER NAME</label>:<input type="text" name="driver_name" id="driver_name" maxlength="10" ><br>
<label>MOBILE</label>:<input type="number" name="mobile" id="mobile" maxlength="10" ><br>
<label>BUS ALLOTED</label>:<input type="number" name="bus_no" id="bus_no" maxlength="10" ><br>
<br><br>
<input type="submit" value="submit" onclick="thnx()" >
</form>
</div>
</body>
</html>