Author: zecas
Date: Mon Aug 25 08:12:56 2014
New Revision: 110

URL: http://svn.gna.org/viewcvs/zzzt?rev=110&view=rev
Log:
version 1.9 : checkbox for all details and utf8 fix

Modified:
    trunk/i18n/switch.php
    trunk/stats/index.php

Modified: trunk/i18n/switch.php
URL: 
http://svn.gna.org/viewcvs/zzzt/trunk/i18n/switch.php?rev=110&r1=109&r2=110&view=diff
==============================================================================
--- trunk/i18n/switch.php       (original)
+++ trunk/i18n/switch.php       Mon Aug 25 08:12:56 2014
@@ -16,7 +16,7 @@
     along with Zzzt! .  If not, see <http://www.gnu.org/licenses/>.
 */
 
-define("VERSION","1.8");
+define("VERSION","1.9");
 
 ini_set('display_errors','1');
 

Modified: trunk/stats/index.php
URL: 
http://svn.gna.org/viewcvs/zzzt/trunk/stats/index.php?rev=110&r1=109&r2=110&view=diff
==============================================================================
--- trunk/stats/index.php       (original)
+++ trunk/stats/index.php       Mon Aug 25 08:12:56 2014
@@ -32,7 +32,7 @@
        WHERE DATE(`monitor_date`)='{$_GET['day']}' GROUP BY md ORDER BY md 
ASC";
   $db->query($sql);
   while ($row = $db->fetch()) {
-    if(isset($prev) && 
+    if(isset($prev) && $_GET['detaille']==0 && 
        ( ($prev<=$row['pdc'] && $prev*1.02>=$row['pdc']) || 
($prev>=$row['pdc'] && $prev*0.98<=$row['pdc']) ) 
       ) {$skip=1;} else {$skip=0;}
     if(!$skip) {
@@ -82,13 +82,14 @@
           for($i=0;$i<10;$i++){
             $d=date('Y-m-d', strtotime($_GET['day'])-(3600*24*$i) );
            $d==$_GET['day'] ? $selected='selected' : $selected='';
-           $bd=utf8_encode(strftime("%e %b 
%G",strtotime($_GET['day'])-(3600*24*$i)));
+           $bd=strftime("%e %b %G",strtotime($_GET['day'])-(3600*24*$i));
             echo "<option value='$d' $selected >$bd</option>\n";
           }
         ?>
       </select>
       
       <noscript><?php echo GRAPH_WIDTH.' :';?><input type=text size=4 
name=width value='<?php echo $_GET ['width'];?>'></noscript>
+      <input type=checkbox name='detaille' value='1' title='++'>
       <input type=submit>
     </form>
     


_______________________________________________
Zzzt-commits mailing list
Zzzt-commits@gna.org
https://mail.gna.org/listinfo/zzzt-commits

Reply via email to