Author: zecas
Date: Sun May 22 17:04:39 2016
New Revision: 135

URL: http://svn.gna.org/viewcvs/zzzt?rev=135&view=rev
Log:
specific page for an android 320x480px screen device

Modified:
    trunk/i18n/switch.php
    trunk/stats/image_day.php
    trunk/stats/mobile.php

Modified: trunk/i18n/switch.php
URL: 
http://svn.gna.org/viewcvs/zzzt/trunk/i18n/switch.php?rev=135&r1=134&r2=135&view=diff
==============================================================================
--- trunk/i18n/switch.php       (original)
+++ trunk/i18n/switch.php       Sun May 22 17:04:39 2016
@@ -43,7 +43,7 @@
 <html>
 <head>
   <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" /> 
   <link rel="shortcut icon" href="../images/inverter.png" type="image/x-png"/>
   <link rel="icon" href="../images/inverter.png" type="image/x-png"/>
   <title><?php echo APPLICATION.' '.VERSION.' - '.$titre;?></title>
@@ -57,8 +57,20 @@
     html, body { height: 95%; }
     #holder { width: 98%; height: 100%; }
     #moyenne { position: absolute; right: 50px; top: 25px;}
+    
+    
+    div.pag a {
+      float: left;
+      padding: 1em;
+      border: 1px solid black;
+      margin: 0.5em;
+      background: #ffffc3;
+      color: black;
+      text-decoration: none;
+    } 
+    
   </style>
 </head>
 
 <?php }        
-?>
+?>

Modified: trunk/stats/image_day.php
URL: 
http://svn.gna.org/viewcvs/zzzt/trunk/stats/image_day.php?rev=135&r1=134&r2=135&view=diff
==============================================================================
--- trunk/stats/image_day.php   (original)
+++ trunk/stats/image_day.php   Sun May 22 17:04:39 2016
@@ -59,7 +59,7 @@
 // $graph->setAntiAliasing(TRUE);
 $group = new PlotGroup;
 $group->grid->setType(Line::DASHED);
-$group->grid->setInterval(1,10);
+$group->grid->setInterval(1,100);
 
 $group->setPadding(-1, 1, 5, 15);
 
@@ -85,7 +85,7 @@
        $plot->mark->setType(Mark::CIRCLE);
        $plot->mark->setSize(1);
        $plot->label->set($value);
-       $plot->label->setInterval(30);//toutes les 3 valeurs
+       $plot->label->setInterval(60);//toutes les 6 valeurs
        $plot->label->hideFirst(TRUE);
        $plot->label->setPadding(1, 1, 1, 1);
        $plot->label->setCallbackFunction('format');
@@ -109,12 +109,12 @@
 // heures en bas
 function setTime($value) {
        global $heure;
-       if($value % 30 == 1) $return=$heure[$value];
+       if($value % 120 == 1) $return=$heure[$value];
        else $return='';
        return $return;
 }
 $group->axis->bottom->label->setCallbackFunction('setTime');
-$group->axis->bottom->setTickInterval(10);
+$group->axis->bottom->setTickInterval(60);
 //l�gende
 $group->legend->setPosition(0.7, rand(1,5)/10);
 $group->legend->setBackgroundColor(new Color(255, 255, 255, 255));

Modified: trunk/stats/mobile.php
URL: 
http://svn.gna.org/viewcvs/zzzt/trunk/stats/mobile.php?rev=135&r1=134&r2=135&view=diff
==============================================================================
--- trunk/stats/mobile.php      (original)
+++ trunk/stats/mobile.php      Sun May 22 17:04:39 2016
@@ -23,7 +23,7 @@
   $values=array();
   $champs=array('pac','pdc','kdy','tkk');
   isset($_GET['day']) ? $day=$_GET['day'] : $day=date('Y-m-d');
-  $_GET['width']=465;
+  $_GET['width']=470;
   $_GET['height']=50;
   $sql="SELECT ROUND(DATE_FORMAT(monitor_date,'%H%i'),0) AS md,
               ROUND(AVG(pac),0) AS pac,
@@ -47,10 +47,10 @@
 
 ?>
 
-<body>
+<body style='margin:1px'>
   <b><a href=../inverter/index.php><?php echo APPLICATION;?></a></b>
   <?php echo DAY_PROD;?>
-  <a href=mobile.php><?php echo UPDATE;?></a></b>
+  
   
   <table>
     <tr><TD colspan=3>
@@ -118,19 +118,27 @@
                <td>$row[4]</td>
        </tr>";
   }
-  echo '</table>';
+  $sql="SELECT date,production FROM zzzt_daily
+          ORDER BY date DESC LIMIT 1";
+      $db->query($sql);
+      $row=$db->fetch();
 ?>
     </TD></tr>
-    <tr><TD colspan=3>
+    <tr><TD colspan=4>
       <img src='<?php echo $fixe;?>pac&amp;height=150' title='<?php echo 
PAC;?>' alt='<?php echo PAC;?>'>
     </TD></tr>
-    <tr><TD colspan=3>
-      <a href='image_day.php?width=480&amp;data=pac&amp;height=320'><?php echo 
PAC;?></a>
-      <a href='image_day.php?width=480&amp;data=kdy&amp;height=320'><?php echo 
KDY;?></a>
-      <a 
href='image_day.php?width=480&amp;data=rendement&amp;height=320'><?php echo 
EFFICIENCY;?></a>
-      <a href='image_day.php?width=480&amp;data=tkk&amp;height=320'><?php echo 
TKK;?></a>
+    <tr><TD colspan=4>
+      <?php echo KLD.' : '.$row['production'].' kWh'; ?>
     </TD></tr>
   </table>
+  
+  <div style="padding-top:1em; width:450px;">
+    <div class="pag"><a href=mobile.php><?php echo UPDATE;?></a></div>
+    <div class="pag"><a href='mobile_day.php?data=pac'><?php echo 
PAC;?></a></div>
+    <div class="pag"><a href='mobile_day.php?data=kdy'><?php echo 
KDY;?></a></div>
+    <div class="pag"><a href='mobile_day.php?data=rendement'><?php echo 
EFFICIENCY;?></a></div>
+    <div class="pag"><a href='mobile_day.php?data=tkk'><?php echo 
TKK;?></a></div>
+  </div>
   
   </body>
     


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

Reply via email to