1 <?php require("common.php");
3 $c = array("mark", "options", "test", "result", "compilation");
5 function clause_for($c) {
8 foreach($c as $fake => $x) {
17 $rc = $rc . $x . " = '" . $v . "'";
23 $gb = $_GET['groupby'];
25 $what = "mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) as sum_time, SEC_TO_TIME(SUM(TIME_TO_SEC(timeuser))) as sum_timeuser";
27 $what = "mark, time, timeuser, compilation, test, result, options";
28 $clause = clause_for($c);
30 $query = "select $what from bench where " . clause_for($c);
32 $query = "select $what from bench ";
34 $query = $query. "group by $gb";
38 header("Location: showquery.php?query=".urlencode("Custom:@@@" . $query));