]> matita.cs.unibo.it Git - helm.git/commitdiff
fix
authorEnrico Tassi <enrico.tassi@inria.fr>
Wed, 21 Dec 2005 16:15:14 +0000 (16:15 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Wed, 21 Dec 2005 16:15:14 +0000 (16:15 +0000)
helm/matita/scripts/public_html/bench.php
helm/matita/scripts/public_html/composequery.php

index 278e4775dd2e90f12cf2329bd6f361cf4fea1cd3..d694307ac0ab0fc30469d2effa460f23735636a6 100644 (file)
@@ -55,7 +55,7 @@ function minus1_to_all($s){
 }
 
 function links_of($name,$q,$limits){
-  echo "<li>$name&nbsp;&nbsp;&nbsp;&nbsp;";
+  echo "<li>$name :&nbsp;&nbsp;&nbsp;";
   foreach($limits as $l) {
     $q1 = str_replace(urlencode("***"), " LIMIT 0,$l", $q);
     echo "<a href=\"showquery.php?query=$q1;\">" . 
index 683df4daacede2f14bd919fc0a279226e1c33615..49a943e47b61f5f443de93261ccec984078c3822 100644 (file)
@@ -21,6 +21,7 @@
   }
   
   $gb = $_GET['groupby'];
+  $limit = $_GET['limit'];
   if($gb != "--")
     $what = "mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) as sum_time, SEC_TO_TIME(SUM(TIME_TO_SEC(timeuser))) as sum_timeuser";
   else
   if( $gb != "--"){
     $query = $query. "group by $gb";
   }
+
+  if($limit != "--") {
+    $query = $query. " LIMIT 0,$limit";
+  }
+
    $query = $query. ";"; 
 
    header("Location: showquery.php?query=".urlencode("Custom:@@@" . $query));