gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14460 - gauger


From: gnunet
Subject: [GNUnet-SVN] r14460 - gauger
Date: Fri, 18 Feb 2011 16:00:50 +0100

Author: bartpolot
Date: 2011-02-18 16:00:50 +0100 (Fri, 18 Feb 2011)
New Revision: 14460

Modified:
   gauger/template.php
   gauger/template_graph.php
   gauger/template_host.php
Log:
Changed graph page template to add controls, list of hosts in the graph


Modified: gauger/template.php
===================================================================
--- gauger/template.php 2011-02-18 10:05:26 UTC (rev 14459)
+++ gauger/template.php 2011-02-18 15:00:50 UTC (rev 14460)
@@ -3,7 +3,7 @@
 <html lang="en">
     <head>
         <meta http-equiv="content-type" content="text/html; charset=utf-8">
-        <title>Gauger [<?php echo isset($current) ? $current : $currentg 
?>]</title>
+        <title>Gauger [<?php echo isset($current) && $current ? $current : 
$currentg ?>]</title>
 
         <link href="jquery-ui.css" rel="stylesheet" type="text/css"/> 
         <script type="text/javascript" src="jquery.min.js"></script>

Modified: gauger/template_graph.php
===================================================================
--- gauger/template_graph.php   2011-02-18 10:05:26 UTC (rev 14459)
+++ gauger/template_graph.php   2011-02-18 15:00:50 UTC (rev 14460)
@@ -1,3 +1,37 @@
 <h1>SHOWING GRAPH: <?php echo get_counter_name($currentg) ?></h1>
-<img class="plot" src="plot.php?g=<?php echo $currentg ?>" alt="loading..."/>
+<?php if (array_key_exists($currentg, $metrics)): ?>
+<table>
+    <tr>
+        <th>Controls</th>
+        <th>Graph</th>
+    </tr>
+    <tr>
+        <th>
+            Range
+            <br/>
+            <div class="side_slider_control">
+                <div class="slider-range" id="other_slider" ></div>
+                <div class="left-range"><?php echo get_session('x_min', 
get_session('xrange_min', '0')) ?></div>
+                <div class="right-range"><?php echo get_session('x_max', 
get_session('xrange_max', '100')) ?></div>
+                <div class="auto_range">
+                    <input class="auto_min" type="checkbox" <?php 
if(get_session('x_min_a')) echo 'checked="checked"'?>/>
+                    Auto
+                    <input class="auto_max" type="checkbox" <?php 
if(get_session('x_max_a')) echo 'checked="checked"'?>/>
+                </div>
+            </div>
+            <br/>
+            <?php foreach ($hosts as $host => $counters): ?>
+            <?php if(array_search($currentg, $counters) !== FALSE): ?>
+            <a href="?host=<?php echo $host ?>">See <?php echo $host ?></a>
+            <?php endif; ?>
+            <?php endforeach; ?>
+            <br/><br/>
+            <a href="#" onclick="get_command(this); return false;" >Get 
Command</a>
+        </th>
+        <td height="<?php echo get_session('png_y_size')+2 ?>" width="<?php 
echo get_session('png_x_size')+2 ?>"><img class="plot" src="plot.php?g=<?php 
echo $currentg ?>" alt="loading..."/></td>
+    </tr>
+</table>
+<?php else: ?>
+<h1>The graph "<?php echo $currentg ?>" is not present in any host.</h1>
+<?php endif; ?>
 <p>TODO: Select hosts | Range | Normalize </p>

Modified: gauger/template_host.php
===================================================================
--- gauger/template_host.php    2011-02-18 10:05:26 UTC (rev 14459)
+++ gauger/template_host.php    2011-02-18 15:00:50 UTC (rev 14460)
@@ -34,6 +34,8 @@
     <h1>The host "<?php echo $current ?>" has no counters</h1>
     <?php endif; ?>
 <?php else: ?>
-    <h1>Please select a host from the hosts menu.</h1>
-    <p>Some very useful data / overview will go here</p>
+    <h1>Oops!</h1>
+    <p>The host you are looking for doesn't seem to exist. Please select a 
host from the menu on the left.</p>
+    <p>If you reached this page from a link within the application, an error 
must have occurred.
+        Please be so kind and send a report to the maintainer.</p>
 <?php endif; ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]