forked from davidpanderson/science_united
-
Notifications
You must be signed in to change notification settings - Fork 0
/
su_manage.php
69 lines (60 loc) · 2.2 KB
/
su_manage.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
<?php
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2017 University of California
//
// BOINC 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 (at your option) any later version.
//
// BOINC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
// management interface home page
require_once("../inc/util.inc");
require_once("../inc/su.inc");
require_once("../inc/su_util.inc");
function top() {
start_table();
row2("", '<a class="btn btn-primary" href="su_projects_edit.php">Project info</a>');
row2("", '<a class="btn btn-primary" href="su_keyword_stats.php">Keyword statistics</a>');
row2("Accounting",
'<a class="btn btn-primary" href="su_projects_acct.php">Projects</a>
<a class="btn btn-primary" href="su_accounting.php">Daily history</a>'
);
end_table();
}
function left() {
echo '
<img src="su_graph.php?type=total&what=ec&ndays=400&xsize=600&ysize=400">
<br> <br>
<img src="su_graph.php?type=total&what=users&ndays=400&xsize=600&ysize=400">
<br> <br>
<img src="su_graph.php?type=total&what=jobs&ndays=400&xsize=600&ysize=400">
<br> <br>
<img src="su_graph.php?type=projects&ndays=40&gpu=0&xsize=600&ysize=400">
<br> <br>
<img src="su_graph.php?type=projects&ndays=40&gpu=1&xsize=600&ysize=400">
';
}
function right() {
echo "<h3>Last accounting period</h3>\n";
$a = SUAccounting::last(1);
show_accounting_deltas($a, true);
echo "<h3>Accounting totals</h3>\n";
$a = SUAccounting::last();
show_accounting_totals($a);
}
function main() {
page_head("Science United: Management");
grid('top', 'left', 'right');
page_tail();
}
admin_only();
main();
?>