-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
163 lines (155 loc) · 9.31 KB
/
index.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?php date_default_timezone_set('Europe/Riga'); ?>
<!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" xml:lang="lv" lang="lv">
<head>
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="styles/style.css">
<title> Šķūnenieku Kauss - Rezultātu sistēma </title>
</head>
<body>
<center>
<table class="container" style="width:904px" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="890" border="0" cellpadding="0" cellspacing="0" style="margin-top:4px;background-color:#606060;border-bottom:1px solid black">
<tr>
<td width="15" height="50">
</td>
<td width="500" valign="top" style="height:50px;text-align:left">
<a href="?action="><img style="margin-top:6px" border="0" src="images/h_logo.jpg" width="200" height="40" alt="ŠK" title="Šķūnenieku Kauss"></a>
</td>
<td align="right" valign="bottom" style="color:white;font-size:10px;font-weight:bold">
<form style="margin:0px;padding:0px;" method="post" name="search" action="searchResults.php" target="mainFrame">
<table cellpadding="0" cellspacing="0" border="0" style="padding-bottom:10px">
<tr>
<td>
Meklēt :
</td>
<td>
<input style="margin:0px;height:12px;width:128px;" alt="search" type="text" name="searchform" size="20" value="" onfocus="clearForm()">
</td>
<td>
<input style="margin:0px" type="image" align="middle" src="images/search.gif">
</td>
</tr>
</table>
</form>
</td>
<td>
</td>
</tr>
</table>
<table width="890px" border="0" cellpadding="0" cellspacing="0" style="background-color:#606060">
<tr>
<td width="80px" height="23" class="blacknav" style="border-left:none">
<a class="m_item" href="registracijaForm.php" target="mainFrame">Reģistrācija</a>
</td>
<td class="blacknav" width="45px">
<a class="m_item" href="startsForm.php" target="mainFrame">Starts</a>
</td>
<td class="blacknav" width="45px">
<a class="m_item" href="finissForm.php" target="mainFrame">Finišs</a>
</td>
<td class="blacknav" width="80px">
<a class="m_item" href="komentetajsForm.php" target="mainFrame">Komentētājs</a>
</td>
<td class="blacknav" width="80px">
<a class="m_item" href="hronometrsForm.php" target="mainFrame">Hronometrs</a>
</td>
<td class="blacknav" width="90px">
<a class="m_item" href="finisaNumuriForm.php" target="mainFrame">Finiša numuri</a>
</td>
<td class="blacknav">
</td>
</tr>
</table>
<table style="margin-top:2px" width="890px" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="700" valign="top">
<iframe name="mainFrame" width="700" height="500" frameborder="0" src="" scrolling="auto" style="padding-top:5px;"></iframe>
</td>
<td width="10">
</td>
<td width="181" align="center" valign="top">
<br/>
<table width="177" height="50" style="margin-bottom:5px;margin-top:1px;background-color:#f1f1f1;border:1px solid #c3c3c3" border="0" cellpadding="10" cellspacing="0">
<tr>
<td valign="top" align="left" width="177">
<div style="font-size:32px; text-align:center;">
<div name="hronometrs" id="hronometrs"></div>
</div>
</td>
</tr>
</table>
<table width="177" height="70" style="margin-bottom:5px;margin-top:1px;background-color:#f1f1f1;border:1px solid #c3c3c3" border="0" cellpadding="10" cellspacing="0">
<tr>
<td valign="top" align="left" width="177">
<div style="font-size:12px; line-height: 150%;">
<div>Reģistrēti: <div id="registreti" style="display: inline;">0</div></div>
<div>Startējuši: <div id="startejusi" style="display: inline;">0</div></div>
<div>Finišējuši: <div id="finisejusi" style="display: inline;">0</div></div>
<br/>
<div id="reggrp"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="890px" style="margin-bottom:5px;margin-top:1px;background-color:#f1f1f1;border:1px solid #c3c3c3" border="0" cellpadding="10" cellspacing="0">
<tr>
<td valign="top" align="left" width="300">
<div style="font-size:9px;"></div>
</td>
<td valign="top" align="left">
<div style="font-size:9px;"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<script src="javascript/vendor/jquery.min.js" type="text/javascript"></script>
<script src="javascript/vendor/jintervals.js" type="text/javascript"></script>
<script type="text/javascript">
var watchInterval;
function update() {
var t = new Date().getTime();
$.ajax({
url: 'rightInfoData.php',
data: { t: t },
dataType: 'json'
}).done(function(data) {
clearInterval(watchInterval);
var watch = data.watch;
$('#hronometrs').html(jintervals(Math.abs(watch), "{HH}:{mm}:{ss}"));
watchInterval = setInterval(function() {
watch++;
$('#hronometrs').html(jintervals(Math.abs(watch), "{HH}:{mm}:{ss}"));
}, 1000);
$('#registreti').html(data.reg);
$('#startejusi').html(data.sta);
$('#finisejusi').html(data.fin);
$('#reggrp').html('');
$.each(data.reggrp, function(index, value) {
$('#reggrp').append('<div>' + index + ': ' + value + '</div>');
});
});
}
var updateInterval = setInterval(function() {
update();
}, 10000);
update();
function clearForm() {
document.search.searchform.value = "";
}
</script>
</body>
</html>