-
Notifications
You must be signed in to change notification settings - Fork 0
/
yearbook2.php
executable file
·147 lines (135 loc) · 3.63 KB
/
yearbook2.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
<?php
include_once("session.php");
include_once("include/database.php");
$objDB = new Database();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Yearbook, 2013</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19055295-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<style>
p, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}
/* ----------- My Form ----------- */
.myform{
margin:0 auto;
width:400px;
padding:14px;
}
/* ----------- stylized ----------- */
#stylized{
border:solid 2px #b7ddf2;
background:#ebf4fb;
}
#stylized h1 {
font-size:14px;
font-weight:bold;
margin-bottom:8px;
}
#stylized p{
font-size:11px;
color:#666666;
margin-bottom:20px;
border-bottom:solid 1px #b7ddf2;
padding-bottom:10px;
}
#stylized label{
display:block;
font-weight:bold;
text-align:right;
width:140px;
float:left;
}
#stylized .small{
color:#666666;
display:block;
font-size:11px;
font-weight:normal;
text-align:right;
width:140px;
}
#stylized input{
float:left;
font-size:12px;
padding:4px 2px;
border:solid 1px #aacfe4;
width:200px;
margin:2px 0 20px 10px;
}
#stylized textarea{
float:left;
font-size:12px;
padding:4px 2px;
border:solid 1px #aacfe4;
width:200px;
margin:2px 0 20px 10px;
}
#stylized button{
clear:both;
margin-left:150px;
width:125px;
height:31px;
background:#666666 url(img/button.png) no-repeat;
text-align:center;
line-height:31px;
color:#FFFFFF;
font-size:11px;
font-weight:bold;
}
</style>
<div id="stylized" class="myform">
<form id="form" name="form" action="thankyou3.php" method="post" enctype="multipart/form-data" onsubmit="return signupValidate();">
<h1>Yearbook</h1>
<p>Submit your entry</p>
<label>Full Name:
<span class="small">Add your name</span>
</label>
<input type="text" name="name" id="name" maxlength="50"/>
<label>Hall and Wing:
<span class="small">Add your hall and wing</span>
</label>
<input type="text" name="hall" id="hall" maxlength="50"/>
<label>Email:
<span class="small">Add your email address</span>
</label>
<input type="text" name="email" id="email" maxlength="50"/>
<label>Mobile:
<span class="small">Add your phone no.</span>
</label>
<input type="number" name="mobile" id="mobile" maxlength="50"/>
<label>Writeup:
<span class="small">a few lines about the good times the group shared</span>
</label>
<textarea rows="4" cols="50" name="writeup" id="writeup"/></textarea>
<label>Write-up:
<span class="small">(doc/pdf/docx/txt/odt)<2MB</span>
</label>
<input type="file" name = "file" id="file"/>
<label>People:
<span class="small">People in the photo(left to right). Write respective nicknames and departments also.</span>
</label>
<textarea rows="4" cols="50" name="people" id="people"/></textarea>
<label>Your Group's Photograph:
<span class="small">(jpg/jpeg/gif/png)<10MB</span>
</label>
<input type="file" name = "photo" id="photo"/>
<button type="submit">Submit</button>
<div class="spacer"></div>
</form>
</div>
<footer><center>© Office of Alumni Affairs & International Relations, IIT Kharagpur</center></footer>
</body>
</html>