-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompeet2.php
More file actions
96 lines (82 loc) · 2.58 KB
/
compeet2.php
File metadata and controls
96 lines (82 loc) · 2.58 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
<?php
include_once('rx_util.php');
?>
<style type="text/css">
.demo {
min-height: 300px;
/*max-height: 500px;*/
}
#tabs {
min-height: 300px;
/*max-height: 600px;*/
}
.quest {
background-color: #aba5c0;
font: 50%;
}
.answer {
font: 40%;
}
.marks{position: absolute;right:40px;font-weight:bold;}
</style>
<script>
/*window.fbAsyncInit = function() {
FB.init({
appId : '293018567378853', // App ID
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
FB.getLoginStatus(function(response) {
//alert("fun called"+response.status);
try{
if (response.status === 'connected') {
$("#my-fb-login").hide();
$(".fb-login-button").show();
} else {
$(".fb-login-button").hide();
$("#my-fb-login").show();
}
//setTimeout("",60000)
}catch(ex){
alert(ex);
}
});
};*/
$(document).ready(function(){
//$(".fb-login-button").hide();
//$("#my-fb-login").hide();
// Accordion
$("#accordion").accordion({ header: "h3" });
// Tabs
$('#tabs').tabs();
});
</script>
<!-- <div class="fb-login-button" data-show-faces="true" data-width="200" data-max-rows="1"></div>
<div id="my-fb-login">
<fb:login-button registration-url="http://127.0.0.1/coderex/Registration.php"></div>
</div>-->
<?php
if($user!=0 && $userdetails ) {
echo "You are : ".$userdetails[1];
?>
<div id="tabs" >
<ul>
<!-- li><a href="#intro">Intro</a></li> -->
<li><a href="questions/questionShowKnwlg.php?level=duce">Knowledge</a></li>
<li><a href="questions/questionShowAlg.php?level=duce">Algorithm</a></li>
<li><a href="Rank/marks.php?uid=<?php echo $user; ?>">Results</a></li>
</ul>
<!--<div id="tabs-1"></div>-->
<!-- div id="intro">Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.</div>
<!--<div id="tabs-3">Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.</div>-->
</div>
<?php
mysql_close($con);
}else {
//header('Location: http://www.ask.csetist.com/code-rex/Registration.php');
?><script>window.location = 'http://www.ask.csetist.com/code-rex/Registration.php';</script><?php
}
?>
</body>
</html>