-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaptitude_test.html
executable file
·283 lines (271 loc) · 10.2 KB
/
aptitude_test.html
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="mumbai,engineering,colleges,branches,western,central,harbour,outside,affiliated,university,mu,syllabus,question,papers,download,information,semester,sem,electronics,etrx,telecommunication,extc,information,technology,it,computer,comps,cmpn,mechanical engineering,mech,civil,electrical,may,june,dec" />
<meta name="keywords" content="mumbai,engineering,colleges,branches,western,central,harbour,outside,affiliated,university,mu,syllabus,question,papers,download,information,semester,sem,electronics,etrx,telecommunication,extc,information,technology,it,computer,comps,cmpn,mechanical engineering,mech,civil,electrical,may,june,dec" />
<meta name="language" content="English" />
<title>CampusKeeda - Aptitude Test</title>
<link href="dropdown-menu.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.questions:hover
{
background-color: #ededed;
border-style: inset;
box-shadow:#999 2px 2px 2px;
}
-->
</style>
<script type="text/javascript">
var timeOut;
function scrollToTop() {
if (document.body.scrollTop!=0 || document.documentElement.scrollTop!=0){
window.scrollBy(0,-50);
timeOut=setTimeout('scrollToTop()',30);
}
else clearTimeout(timeOut);
}
</script>
<script type="text/javascript">
function check_all()
{
var unans = new Array();
<?html
for($p=1;$p<21;$p++)
{
?>
if(!apti_form.ans<?html echo $p; ?>[0].checked && !apti_form.ans<?html echo $p; ?>[1].checked && !apti_form.ans<?html echo $p; ?>[2].checked && !apti_form.ans<?html echo $p; ?>[3].checked)
unans.push("<?html echo $p; ?>");
<?html
}
?>
if(unans.length>0)
{
if(confirm(unans.length+" questions unanswered.Continue???"))
return true;
}
else
return true;
return false;
}
</script>
</head>
<body>
<table class="box effect8"><tr><td>
<div class="header">
<?html include('include.html');?>
</div>
<table width="100%" border="0">
<tr>
<td height="22" align="left" valign="top">
<!-- AD SLOT BEGINS HERE -->
<script type="text/javascript">
google_ad_client = "ca-pub-3334362794500045";
google_ad_slot = "7741287416";
google_ad_width = 728;
google_ad_height = 90;
</script>
<!-- top -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- AD SLOT ENDS HERE -->
</td>
<td colspan="2" align="left" valign="top">
</td>
</tr>
<tr>
<td width="989" rowspan="2" align="left" valign="top"><table width="100%" border="1">
<tr>
<td>
<!-- ************************************************************************************************************** -->
<?html
$con = mysql_connect("127.0.0.1:3309","ckadmin","keeda1");
//$con = mysql_connect("localhost","root","");
if(!$con)
die("cannot find server");
if(!mysql_select_db("feedback"))
die("cannot find database");
?>
<span class="titles">Quick Aptitude Test</span><br />
</div>
<noscript><font color="#FF0000">You need to enable javascript on your browser to complete this test</font></noscript>
<hr />
<form method="post" action="aptitude_test_score.html" onsubmit="return check_all()" name="apti_form">
<table width="100%" border="0">
<tr>
<td colspan="3">
<?html
for($i=1;$i<11;$i++)
{
$qid=rand(1,5);
$result= mysql_query("select * from aptitude where q_no='$i' and q_id='$qid'");
$rows = mysql_fetch_array($result);
$questionx = $rows['question'];
$ansax = $rows['ans_a'];
$ansbx = $rows['ans_b'];
$anscx = $rows['ans_c'];
$ansdx = $rows['ans_d'];
$answerx = $rows['answer'];
?>
<table width="100%" border="0" class="questions">
<tr>
<td colspan="4"><br />
<strong>Q<?html echo $i; ?>}<?html echo " ".$questionx; ?></strong></td>
</tr>
<tr>
<td width="25%">a)
<input type="radio" name="ans<?html echo $i; ?>" value="a" /><?html echo $ansax;?></td>
<td width="25%">b)
<input type="radio" name="ans<?html echo $i; ?>" value="b" /><?html echo $ansbx;?></td>
<td width="24%">c)
<input type="radio" name="ans<?html echo $i; ?>" value="c" /><?html echo $anscx;?></td>
<td width="26%">d)
<input type="radio" name="ans<?html echo $i; ?>" value="d" /><?html echo $ansdx;?></td>
<input type="hidden" name="answer<?html echo $i; ?>" value="<?html echo $answerx;?>" />
</tr>
</table>
<?html
}
for($i=11;$i<21;$i++)
{
$qid=rand(1,5);
$result= mysql_query("select * from aptitude where q_no='$i' and q_id='$qid'");
$rows = mysql_fetch_array($result);
$questionx = $rows['question'];
$ansax = $rows['ans_a'];
$ansbx = $rows['ans_b'];
$anscx = $rows['ans_c'];
$ansdx = $rows['ans_d'];
$answerx = $rows['answer'];
?>
<table width="100%" border="0" class="questions">
<tr>
<td colspan="4"><br />
<strong>Q<?html echo $i; ?>}<?html echo " ".$questionx; ?></strong></td>
</tr>
<tr>
<td width="25%">a)
<input type="radio" name="ans<?html echo $i; ?>" value="a" /><?html echo $ansax;?></td>
<td width="25%">b)
<input type="radio" name="ans<?html echo $i; ?>" value="b" /><?html echo $ansbx;?></td>
<td width="24%">c)
<input type="radio" name="ans<?html echo $i; ?>" value="c" /><?html echo $anscx;?></td>
<td width="26%">d)
<input type="radio" name="ans<?html echo $i; ?>" value="d" /><?html echo $ansdx;?></td>
<input type="hidden" name="answer<?html echo $i; ?>" value="<?html echo $answerx;?>" />
</tr>
</table>
<?html } ?>
</td>
</tr>
</table>
<hr />
<table width="100%">
<tr>
<td width="33%"> </td>
<td width="24%"><input name="reset" type="reset" value="reset" /></td>
<td width="43%">
<input name="submit" type="submit" value="submit" />
</td>
</tr>
</table>
</form>
<!-- ************************************************************************************************************** -->
</td>
</tr>
</table></td>
<td width="21%" height="81" colspan="2" align="left" valign="top"> <a href="site-feedback.html" class="footer_links"></a> <table width="100%" border="0">
<tr>
<td colspan="2">
<script>
(function() {
var cx = '013850330600646084762:ihheh2eqzvi';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</td>
</tr>
<tr>
<td width="24%"><a href="site-feedback.html"><img src="images/feedback.jpg" width="50" height="50" alt="feedback" /></a></td>
<td width="76%"><a href="site-feedback.html" class="footer_links"><strong>Feedback & Suggestions</strong></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
<!-- AD SLOT BEGINS HERE -->
<script type="text/javascript">
google_ad_client = "ca-pub-3334362794500045";
google_ad_slot = "7601686611";
google_ad_width = 300;
google_ad_height = 600;
</script>
<!-- large side -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- AD SLOT ENDS HERE -->
</td>
</tr>
</table>
<!-- AD SLOT BEGINS HERE -->
<script type="text/javascript">
google_ad_client = "ca-pub-3334362794500045";
google_ad_slot = "1555153014";
google_ad_width = 728;
google_ad_height = 90;
</script>
<!-- bottom -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- AD SLOT ENDS HERE -->
<!-- AddThis Button BEGIN -->
</span></span><span class="style4">
<br /><br />
<strong>
Share this page with your friends</strong></span><span class="style4 style10">
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a></div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e8ddb4f520d4f7d"></script>
<!-- AddThis Button END -->
<br />
</td></tr></table>
<div class="footer">
<hr />
<table width="100%" border="0">
<tr>
<td width="48%"><a href="index.html" class="footer_links">Home</a> • <a href="colleges.html" class="footer_links">Colleges</a> • <a href="questionpapers.html" class="footer_links">Question papers</a> • <a href="syllabus.html" class="footer_links">Syllabus</a> • <a href="sitemap.html" class="footer_links">Sitemap</a></td>
<td width="3%"><a href="#" onclick="scrollToTop();return false"><img src="images/back_to_top.png" width="30" height="28" alt="back_to_top" title="Back To Top"/></a></td>
<td width="31%"> </td>
<td width="18%" align="right">©www.campuskeeda.com</td>
</tr>
</table>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24329561-1']);
_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>
</body>
</html>