-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
169 lines (150 loc) · 5.88 KB
/
Copy pathform.html
File metadata and controls
169 lines (150 loc) · 5.88 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
<html>
<head>
<title>Form</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<script type="text/javascript">
function readURL1(input) {
if (input.files && input.files[0]) {
var reader1 = new FileReader();
reader1.onload = function (e) {
$('#blah1').attr('src', e.target.result);
}
reader1.readAsDataURL(input.files[0]);
$('#blah1').css("visibility","visible");
}
}
</script>
<script type="text/javascript">
function readURL2(input) {
if (input.files && input.files[0]) {
var reader2 = new FileReader();
reader2.onload = function (e) {
$('#blah2').attr('src', e.target.result);
}
reader2.readAsDataURL(input.files[0]);
$('#blah2').css("visibility","visible");
}
}
</script>
<script type="text/javascript">
function readURL3(input) {
if (input.files && input.files[0]) {
var reader3 = new FileReader();
reader3.onload = function (e) {
$('#blah3').attr('src', e.target.result);
}
reader3.readAsDataURL(input.files[0]);
$('#blah3').css("visibility","visible");
}
}
</script>
<style>
th {padding: 10px;}
input[type=submit] {
width: 100%;
background-color: #275193;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #1e437f;
}
</style>
<script type="text/javascript">
function check()
{
var a=document.forms["Form"]["name"].value;
var b=document.forms["Form"]["rollno"].value;
var c=document.forms["Form"]["specialization"].value;
var d=document.forms["Form"]["research"].value;
var d=document.forms["Form"]["abstract"].value;
var d=document.forms["Form"]["publications"].value;
var d=document.forms["Form"]["subtext1"].value;
var d=document.forms["Form"]["subtext2"].value;
var d=document.forms["Form"]["subtext3"].value;
if (a==null || a=="" || b==null || b=="" || c==null || c=="" || d==null || d=="" || e==null || e=="" || f==null || f=="" || g==null || g=="" || h==null || h=="" || i==null || i=="")
{
alert("Please Fill All Required Field");
return false;
}
}
</script>
<body style="background-color:#ddd">
<div style="max-width: 900px; width: 100%; margin: 0 auto; position: relative; background-color:lightblue; border: 1px solid grey;">
<form action="submit.php" method="post" enctype="multipart/form-data" onsubmit="return check()" name="Form">
<center>
<table>
<tr>
<th><b>Name :</b></th>
<th><input name="name" id="name" type="text" class="form-control" placeholder="Name" required></th>
</tr>
<tr>
<th><b>Roll number :</b></th>
<th><input name="rollno" id="rollno" type="text" class="form-control" placeholder="AB12C345" required></th>
</tr>
<tr>
<th><b>Specialization :</b></th>
<th><input name="specialization" id="specialization" type="text" class="form-control" placeholder="Specialization" required></th>
</tr>
<tr>
<th><b>Title of Research :</b></th>
<th><input name="research" id="research" type="text" class="form-control" placeholder="Title" required></th>
</tr>
<tr>
<th><b>Abstract :</b></th>
<th><textarea rows="5" cols="50" placeholder="Abstract" name="abstract" id="abstract" required></textarea></th>
</tr>
<tr>
<th><b>Important publications :</b></th>
<th><textarea rows="5" cols="50" placeholder="Publications" name="publications" id="publications" required></textarea></th>
</tr>
<tr>
<th><b>Awards obtained, if any :</b></th>
<th><textarea rows="5" cols="50" placeholder="Awards" name="awards" id="awards"></textarea></th>
</tr>
</table>
</center>
<br><br>
<div class="container-fluid">
<div class="row">
<div class="col-sm-4">
<div style="background-color:pink; text-align:center; max-width:290px; box-shadow: 10px 10px 5px #888888;">
Select image to upload:<br>
<img id="blah1" src="#" alt="your image" height="200px" style="visibility:hidden"/>
<input type="file" name="image1" id="image1" onchange="readURL1(this);">
<input name="subtext1" id="subtext1" type="text" class="form-control"/>
</div>
</div>
<div class="col-sm-4">
<div style="background-color:pink; text-align:center; max-width:290px; box-shadow: 10px 10px 5px #888888;">
Select image to upload:<br>
<img id="blah2" src="#" alt="your image" height="200px" style="visibility:hidden"/>
<input type="file" name="image2" id="image2" onchange="readURL2(this);">
<input name="subtext2" id="subtext2" type="text" class="form-control"/>
</div>
</div>
<div class="col-sm-4">
<div style="background-color:pink; text-align:center; max-width:290px; box-shadow: 10px 10px 5px #888888;">
Select image to upload:<br>
<img id="blah3" src="#" alt="your image" height="200px" style="visibility:hidden"/>
<input type="file" name="image3" id="image3" onchange="readURL3(this);">
<input name="subtext3" id="subtext3" type="text" class="form-control"/>
</div>
</div>
</div>
</div>
<br><br>
<center><input name="login" type="submit" value="Submit"><br><br></center>
</form>
</div>
</body>
</html>