gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14415 - gauger


From: gnunet
Subject: [GNUnet-SVN] r14415 - gauger
Date: Tue, 15 Feb 2011 17:52:27 +0100

Author: bartpolot
Date: 2011-02-15 17:52:27 +0100 (Tue, 15 Feb 2011)
New Revision: 14415

Modified:
   gauger/plot.php
   gauger/style.css
   gauger/template.php
   gauger/template_host.php
Log:
Added gnuplot source command access


Modified: gauger/plot.php
===================================================================
--- gauger/plot.php     2011-02-15 16:28:07 UTC (rev 14414)
+++ gauger/plot.php     2011-02-15 16:52:27 UTC (rev 14415)
@@ -61,6 +61,8 @@
     if(!$c) die('NODATA');
 
     $cmd = "echo '$cmd' | gnuplot";
+    if(get_param('raw_cmd') == 'true')
+        die($cmd);
     $out = shell_exec($cmd);
 
     return $out;

Modified: gauger/style.css
===================================================================
--- gauger/style.css    2011-02-15 16:28:07 UTC (rev 14414)
+++ gauger/style.css    2011-02-15 16:52:27 UTC (rev 14415)
@@ -132,6 +132,7 @@
     padding:            2px 1px 2px 6px;
     margin-top:         5px;
     border:             1px black solid;
+    text-align:         center;
 }
 
 
@@ -146,6 +147,14 @@
     margin-left:        78px;
 }
 
+.auto_range {
+    clear:              both;
+}
+
+.auto_range input {
+    margin:             0px;
+}
+
 .footer-shadow {
     height:             50px;
     background-image:   url("f.png");

Modified: gauger/template.php
===================================================================
--- gauger/template.php 2011-02-15 16:28:07 UTC (rev 14414)
+++ gauger/template.php 2011-02-15 16:52:27 UTC (rev 14415)
@@ -81,6 +81,13 @@
                 });
         });
 
+        function get_command(element) {
+            var url = $(element).parents("tr").find("img").attr("src");
+            $.get(url + "&raw_cmd=true", function(data) {
+                alert(data)
+            });
+        }
+
         function ajax_handler() {
 
         }
@@ -101,6 +108,7 @@
                     <div class="slider-range" id="default_range_slider"></div>
                     <div class="left-range"><?php echo get_session('x_min', 
'0') ?></div>
                     <div class="right-range"><?php echo get_session('x_max', 
'100') ?></div>
+                    <div class="auto_range"><input style="float:left" 
type="checkbox"/>Auto<input style="float:right;" type="checkbox"/></div>
                 </div> | 
                 <a href="#" id="change_origin" >Change Origin</a>
                 <div class="slider_control" id="change_origin_control">

Modified: gauger/template_host.php
===================================================================
--- gauger/template_host.php    2011-02-15 16:28:07 UTC (rev 14414)
+++ gauger/template_host.php    2011-02-15 16:52:27 UTC (rev 14415)
@@ -20,6 +20,8 @@
                     <div class="right-range"><?php echo get_session('x_max', 
'100') ?></div>
                 </div>
                 <br/>
+                <br/><a href="#" onclick="get_command(this); return false;" 
>Get Command</a>
+                <br/>
                 <br/>TODO:
                 <br>Add counter
                 <br/>Colors




reply via email to

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