-
Notifications
You must be signed in to change notification settings - Fork 1
/
contest.php
140 lines (106 loc) · 3.5 KB
/
contest.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
<?php
include_once("allFunctions.php");
session_start();
if (!isset($_SESSION['SESS_MEMBER_ID'])) header("location:index.php");
$end=time();
include("start_timer.php");
include("end_timer.php");
?>
<!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" />
<title>FOREX-V.J.T.I.'s first Foreign Exchange Installment</title>
<meta name="keywords" content="Forex,Technovanza" />
<meta name="description" content="Forex is online currency trading game" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="contest.js" ></script>
</head>
<body onload="updateClock(); setInterval('updateClock()', 1000 )">
<?php
if (isset($_SESSION['SESS_MEMBER_ID'])) echo $logged;
else echo $unlogged;
?>
</div> <!-- end of templatemo_menu_wrapper -->
<div id="templatemo_content_wrapper">
<div id="templatemo_content">
<p><span id='mrqe'>
<?php include 'marquee.php';?></span>
<!-- Left Content Starts Here -->
<div class="mainbar" align="center">
<p><span id='lastTransaction'></span></p>
</p>
<p style="font-size:16px;align:left;">Current Amounts</p>
<p>
<span id="aT">
<?php
include 'update.php';
?></p>
</span>
<p><span id="timeOut"></p>
<p><span id = "toTable"></span></p>
<br/>
<p><span id="fromJS" onchange="validateSourceValue();document.getElementById('dispEA').value = ''"></span><br/>
<input type= "text" id="sourceValue" onkeypress="return isNumberKey(event)" onkeyup="validateSourceValue();" /></p><br/><br/>
<span id='cb'><input id ='confirm' type="checkbox" onclick='confirmNow();'>Lock Transaction</input></span><br /><br/><br/>
</br>
<p><span id = "expTable"></span></p>
<p><button id='conv' type="button" onclick="convertNow()" >Convert</button>
<form action="endContest.php">
<button id='endC' type="submit" >End Session</button>
</form>
</p>
<br/>
<br/>
<p>
</p>
</div>
<!-- Left Content Ends Here -->
<div class="cleaner_h10"></div>
</div> <!-- end of templatemo_content -->
<div id="templatemo_content_bottom"></div>
<div class="cleaner_h10"></div>
</div> <!-- end of templatemo_content_wrapper -->
<div id="templatemo_footer">
<center>
<form name="counter"><input type="text" size="8"
name="d2"></form>
<script>
<!--
//
var time = document.getElementById('clock').innerHTML;
var min1 = parseInt(time.charAt(0));
var sec1 = parseInt(time.charAt(2));
var sec2 = parseInt(sec1)*10+parseInt(time.charAt(3)) + min1*60;
var milisec= sec2% 60
var seconds = min1
document.counter.d2.value='30'
function display(){
if (milisec>=59){
milisec=0
seconds+=1
}
if (seconds>=60){
milisec=0
seconds+=1
}
else
milisec+=1
if(milisec<10)
document.counter.d2.value=seconds+":0"+milisec
else
document.counter.d2.value=seconds+":"+milisec
setTimeout("display()",1000)
}
if(seconds == 10)
window.location.reload();
display()
-->
</script>
<span style="color:#00baff;">NOTE: If the confirm transaction checkbox doesnt work please refresh the page!
Developed by <a href="aboutus.php" style="color:#00baff;">FOREX Team</a> |
Copyright © <span style="color:#00baff;">FOREX <a href="http://technovanza.org" style="color:#00baff;">Technovanza 11</a></span>. All Rights Reserved
</center>
</div> <!-- end of footer -->
</body>
</html>