forked from tbagriyanik/eOgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.php
267 lines (251 loc) · 10.3 KB
/
stats.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
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
<?php
/*
eOgr - elearning project
Developer Site: http://yunus.sourceforge.net
Demo Site: http://yunus.sourceforge.net/eogr
Source Track: http://eogr.googlecode.com
Support: http://www.ohloh.net/p/eogr
This project is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or any later version. See the GNU
Lesser General Public License for more details.
*/
header("Expires: Sun, 1 Jan 2000 12:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
ob_start (); // Buffer output
session_start ();
$_SESSION ['ready'] = TRUE;
require("conf.php");
$time = getmicrotime();
checkLoginLang(true,true,"stats.php");
$seciliTema=temaBilgisi();
include('lib/graphs.inc.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=iso-8859-9" />
<link rel="alternate" type="application/rss+xml" title="eOgr RSS" href="rss.php" />
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="Expires" content="-1"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>eOgr -<?php echo $metin[197]?></title>
<link href="theme/feedback.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="lib/script.js"></script>
<link rel="shortcut icon" href="img/favicon.ico"/>
<link rel="stylesheet" href="theme/<?php echo $seciliTema?>/style.css" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="theme/<?php echo $seciliTema?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
<link rel="stylesheet" href="lib/as/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />
<script language="javascript" type="text/javascript" src="lib/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="lib/shadowbox/shadowbox.css" />
<script type="text/javascript" src="lib/shadowbox/shadowbox.js"></script>
<script language="javascript" type="text/javascript" src="lib/fade.js"></script>
<script type="text/javascript">
Shadowbox.init({
handleOversize: "drag",
modal: true
});
</script>
<script type="text/javascript" src="lib/facebox/facebox.js"></script>
<link href="lib/facebox/facebox.css" rel="stylesheet" type="text/css" />
<link href="theme/stilGenel.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox({
})
})
</script>
</head>
<body>
<div class="PageBackgroundGradient"></div>
<div class="Main">
<div class="Sheet">
<div class="Sheet-tl"></div>
<div class="Sheet-tr">
<div> </div>
</div>
<div class="Sheet-bl">
<div> </div>
</div>
<div class="Sheet-br">
<div> </div>
</div>
<div class="Sheet-tc">
<div> </div>
</div>
<div class="Sheet-bc">
<div> </div>
</div>
<div class="Sheet-cl">
<div> </div>
</div>
<div class="Sheet-cr">
<div> </div>
</div>
<div class="Sheet-cc"></div>
<div class="Sheet-body">
<div class="Header">
<div class="Header-png"></div>
<div class="Header-jpeg"></div>
<div class="logo">
<h1 id="name-text" class="logo-name"><a href="index.php"><?php echo ayarGetir("okulGenelAdi")?></a></h1>
<div id="slogan-text" class="logo-text"> <?php echo $metin[286]?> </div>
</div>
</div>
<div class="nav">
<?php
require("menu.php");
?>
<div class="l"> </div>
<div class="r">
<div> </div>
</div>
</div>
<div class="contentLayout">
<div class="content">
<div class="Post">
<div class="Post-tl"></div>
<div class="Post-tr">
<div> </div>
</div>
<div class="Post-bl">
<div> </div>
</div>
<div class="Post-br">
<div> </div>
</div>
<div class="Post-tc">
<div> </div>
</div>
<div class="Post-bc">
<div> </div>
</div>
<div class="Post-cl">
<div> </div>
</div>
<div class="Post-cr">
<div> </div>
</div>
<div class="Post-cc"></div>
<div class="Post-body">
<div class="Post-inner">
<h2 class="PostHeaderIcon-wrapper"> <span class="PostHeader"><img src="img/logo1.png" border="0" style="vertical-align: middle;" alt="main" title="<?php echo $metin[286]?>"/> - <?php echo $metin[197]?> </span> </h2>
<div class="PostContent">
<?php
switch($_SESSION["tur"]){
case '-1':$ktut=$metin[85];break;
case '0':$ktut=$metin[86];break;
case '1':$ktut=$metin[87];break;
case '2':$ktut=$metin[88];break;
default:$ktut=$metin[89];
}
?>
<p> <?php echo $metin[7]?>, <?php echo temizle($_SESSION["userr"])." ".$ktut;?> </p>
<?php
if($_SESSION["tur"]=='1' || $_SESSION["tur"]=='2') {
$pasifYorumlar = getpasifYorumlar();
if($pasifYorumlar>0){
echo $metin[294]." : <a href=dataCommentList2.php>".$pasifYorumlar." <img src='img/uyari.gif' border='0' style=\"vertical-align: middle;\" alt=\"imp\" /></a>";
echo "<br/>";
}
}
if (trim(getStats(11))!=""){
echo "<br/><div class='ikiKolon'>";
echo "<strong>".$metin[213]."</strong><br/>".getStats(11)."</div>";
if (trim(getStats(12))!=""){
echo "<div class='ikiKolon'><strong>".$metin[239]."</strong><br/>".getStats(12)."</div>";
}
}else
echo "$metin[485]";
?>
<div class="cleared"></div> <?php
echo "<div class='tekKolon'>";
if (trim(getStats(18))!="") echo "<strong><img src=\"img/i_low.png\" border=\"0\" style=\"vertical-align: middle;\" alt=\"ogrenci\"/> ".$metin[457]." :</strong> ".getStats(18)."<br/>";
if (trim(getStats(0))!="") echo "<strong><img src=\"img/i_note.png\" border=\"0\" style=\"vertical-align: middle;\" alt=\"ogrenci\"/> ".$metin[198]." :</strong> ".getStats(0)."<br/>";
if (trim(getStats(1))!="") echo "<strong><img src=\"img/i_medium.png\" border=\"0\" style=\"vertical-align: middle;\" alt=\"ogrenci\"/> ".$metin[199]." :</strong> ".getStats(1)."<br/>";
if (trim(getStats(17))!="") echo "<strong><img src=\"img/i_warn.png\" border=\"0\" style=\"vertical-align: middle;\" alt=\"ogrenci\"/> ".$metin[456]." :</strong> ".getStats(17)."<br/>";
if (trim(getStats(3))!="") echo "<strong><img src=\"img/i_high.png\" border=\"0\" style=\"vertical-align: middle;\" alt=\"info\"/> ".$metin[201]." :</strong> ".getStats(3)."<br/>";
// if (trim(getStats(4))!="") echo "<strong>".$metin[202]." :</strong> ".getStats(4)."<br/>";
if (trim(getStats(6))!="") echo "<strong><img src=\"img/ogrt_user.png\" border=\"0\" style=\"vertical-align: middle;\" alt=\"ogretmen\"/> ".$metin[203]." :</strong> ".getStats(6)."<br/>";
if (trim(getStats(8))!="") echo "<strong>".$metin[204]." :</strong> ".Sec2Time2(round(getStats(8)))."<br/>";
if (trim(getStats(9))!="") echo "<strong>".$metin[205]." :</strong> ".Sec2Time2(round(getStats(9)))."<br/>";
if (trim(getStats(10))!="") echo "<strong>".$metin[206]." :</strong> %".round(getStats(10))."<br/>";
echo "</div>";
if (trim(getStats(13))!=""){//son güncellenen
echo "<div class='ikiKolon'>";
echo "<strong>".$metin[84]."</strong>".getStats(13)."</div>";
}
if (trim(getStats(2))!=""){//en fazla çalýþýlan
echo "<div class='ikiKolon'><strong>".$metin[200]."</strong><br/>".getStats(2)."</div><div class=clear></div>";
}
if (trim(getStats(14))!=""){//oylar
echo "<div class='ikiKolon'><strong>".$metin[276]."</strong><br/>".getStats(14)."</div>";
}
if (trim(getStats(15))!=""){//yorumlar
echo "<div class='ikiKolon'><strong>".$metin[277]."</strong><br/>".getStats(15)."</div>";
}
?><div class="cleared"></div>
<?php
if(getGrafikRecordCount()>5) {
echo "<div class='ikiKolon'>";
echo "<p style=\"color:#000;font-weight: bold;\">".$metin[342]."</p>";
$sampleData = getGrafikValues(15);
$labels = getGrafikLabels(15);
$chart = new BAR_GRAPH("vBar");
$chart->values = grafikGunNormallestirData($sampleData,$labels);
$chart->labels = grafikGunNormallestirLabel($sampleData,$labels);
$chart->showValues = 2;
$chart->labelSize =9;
$chart->titleSize =9;
$chart->absValuesSize =9;
$chart->absValuesBorder = "0px";
echo $chart->create();
echo "</div>";
}
if(getGrafikRecordCount2()>5) {
echo "<div class='ikiKolon'>";
echo "<p style=\"color:#000;font-weight: bold;\">".$metin[343]."</p>";
$sampleData2 = getGrafikValues2(15);
$labels2 = getGrafikLabels2(15);
$chart2 = new BAR_GRAPH("vBar");
$chart2->values = grafikGunNormallestirData($sampleData2,$labels2);
$chart2->labels = grafikGunNormallestirLabel($sampleData2,$labels2);
$chart2->showValues = 2;
$chart2->labelSize =9;
$chart2->titleSize =9;
$chart2->absValuesSize =9;
$chart2->absValuesBorder = "0px";
echo $chart2->create();
echo "</div>";
}
?>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
</div>
<div class="cleared"></div>
<div class="Footer">
<div class="Footer-inner">
<?php
require "footer.php";
?>
</div>
<div class="Footer-background"></div>
</div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
<?php
require "feedback.php";
?>
</body>
</html>