]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/display_client_stats.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[bacula/bacula] / gui / bweb / tpl / display_client_stats.tpl
index 19a7c4df350847852e4ba8105e4f9879ac042376..27babe9edceb7d88fea907d275ff3f8f2f344e19 100644 (file)
@@ -1,44 +1,43 @@
 <br/>
  <div class='titlediv'>
-  <h1 class='newstitle'> Client : <TMPL_VAR NAME=clientname> (<TMPL_VAR NAME=label>)</h1>
+  <h1 class='newstitle'> __Client:__ <TMPL_VAR clientname> (<TMPL_VAR label>)</h1>
  </div>
  <div class='bodydiv'>
-<form action='?'
-     <table id='id<TMPL_VAR NAME=ID>'></table>
-     <img src="bgraph.pl?client=<TMPL_VAR NAME=clientname>;graph=job_duration;age=2592000;width=420;height=200" alt='Not enough data' > &nbsp;
-     <img src="bgraph.pl?client=<TMPL_VAR NAME=clientname>;graph=job_rate;age=2592000;width=420;height=200" alt='Not enough data'> &nbsp;
-     <img src="bgraph.pl?client=<TMPL_VAR NAME=clientname>;graph=job_size;age=2592000;width=420;height=200" alt='Not enough data'> &nbsp;
+<form action='?'>
+     <table id='id<TMPL_VAR ID>'></table>
+     <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data' > &nbsp;
+     <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'> &nbsp;
+     <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'> &nbsp;
 <!--   <div class="otherboxtitle">
-          Actions &nbsp;
+          __Actions__ &nbsp;
         </div>
         <div class="otherbox">
        <h1>Actions</h1> 
-       <input type="image" name='action' value='job' title='Show last job'
-        src='/bweb/zoom.png'> &nbsp;
-       <input type="image" name='action' value='dsp_cur_job' title='Show current job' src='/bweb/zoom.png'> &nbsp;
-       <input type="image" name='action' value='client_stat' title='Client stats' src='/bweb/zoom.png'> &nbsp;
+       <button type="submit" class="bp" name='action' value='job' title='__Show last job__'> <img src='/bweb/zoom.png' alt=''>__View last jobs__</button>
+       <button type="submit" class="bp" name='action' value='dsp_cur_job' title='__Show current job__'> <img src='/bweb/zoom.png' alt=''>__View current jobs__</button>
+       <button type="submit" class="bp" name='action' value='client_stat' title='__Client stats__'> <img src='/bweb/zoom.png' alt=''>__View stats__</button>
         </div>
 -->
 </form>
  </div>
 
 <script type="text/javascript" language="JavaScript">
-var header = new Array("Name", "Nb Jobs", "Nb Bytes", "Nb Files", "Nb Errors");
+var header = new Array("__Name__", "__Nb Jobs__", "__Nb Bytes__", "__Nb Files__", "__Nb Errors__");
 
 var data = new Array();
 
 data.push( 
-  new Array( "<TMPL_VAR NAME=clientname>", 
-            "<TMPL_VAR NAME=nb_jobs>",
-            human_size(<TMPL_VAR NAME=nb_bytes>),
-            "<TMPL_VAR NAME=nb_files>",
-            "<TMPL_VAR NAME=nb_err>"
+  new Array( "<TMPL_VAR clientname>", 
+            "<TMPL_VAR nb_jobs>",
+            human_size(<TMPL_VAR nb_bytes>),
+            "<TMPL_VAR nb_files>",
+            "<TMPL_VAR nb_err>"
              )
 ) ; 
 
 nrsTable.setup(
 {
- table_name:     "id<TMPL_VAR NAME=ID>",
+ table_name:     "id<TMPL_VAR ID>",
  table_header: header,
  table_data: data,
  up_icon: up_icon,
@@ -52,8 +51,8 @@ nrsTable.setup(
  odd_cell_color: odd_cell_color, 
  header_color: header_color,
  page_nav: true,
- rows_per_page: rows_per_page,
-// disable_sorting: new Array(1)
+// disable_sorting: new Array(1),
+ rows_per_page: rows_per_page
 }
 );
 </script>