]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/templates/index.tpl
bacula-web: Removed generaldata template
[bacula/bacula] / gui / bacula-web / templates / index.tpl
index 7ac3027b395d8f74ab166108ec479b415fbd4145..9f70c4ab76c7500eb128defd76a302afd63a0d1f 100644 (file)
@@ -2,49 +2,66 @@
   "http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
 <head>
-{*{popup_init src="js/overlib.js"}*}
+<title>bacula-web</title>
+<link rel="stylesheet" type="text/css" href="style/default.css">
 {literal}
-<script language="Javascript">
+<script type="text/javascript">
        function OpenWin(URL,wid,hei) {
                window.open(URL,"window1","width="+wid+",height="+hei+",scrollbars=yes,menubar=no,location=no,resizable=no")
        }
 </script>
 {/literal}
-<link rel="stylesheet" type="text/css" href="style/default.css" />
-<title>bacula-web</title>
+
 </head>
 <body>
-
+{popup_init src='./js/overlib.js'}
 {include file=header.tpl}
 
-{config_load file=bacula.conf}
+<div id="main_left">
+{include file=volumes.tpl}
+</div>
+
+<div id="main_right">
+  <!-- General information -->
+  <div class="box">
+       <p class="title">General informations</p>
+       <table>
+         <tr>
+           <td class="label">{t}Clients{/t}</td> <td>{$clientes_totales}</td>
+         </tr>
+         <tr>
+               <td class="label">{t}Total bytes stored{/t}:</td> <td>{$bytes_stored}</td>
+         </tr>
+         <tr>
+               <td class="label">{t}Total files:{/t}</td> <td>{$files_totales}</td>
+         </tr>
+         <tr>
+               <td class="label">{t}Database size{/t}:</td> <td>{$database_size}</td>
+         </tr>
+         <tr>
+               <td colspan=2 align=center>
+                 <a href="javascript:OpenWin('index.php?pop_graph1=yes','600','400')">{t}Last month, bytes transferred{/t}</a>
+               </td>
+         </tr>
+         <tr>
+               <td colspan=2 align=center>
+                 <a href="javascript:OpenWin('index.php?pop.graph2=yes','600','400')">{t}Last month, bytes transferred (pie){/t}</a>
+               </td>
+         </tr>
+       </table>
+  </div>
+       
+  {include file="$last_report"}        
+  
+  <div class="box">
+       <p class="title">General report</p>
+       {if $server==""} 
+         <img src="stats.php?server={$server}&amp;tipo_dato=69&amp;title=General%20report&amp;modo_graph=bars&amp;sizex=420&amp;sizey=250&amp;MBottom=20&amp;legend=1" alt="" />
+       {else}
+         <img src="stats.php?server={$server}&amp;tipo_dato=3&amp;title={$server}&amp;modo_graph=bars" alt="" />
+       {/if}
+  </div> <!-- end div box -->
 
-<table width=1000px border=0 cellspacing=5 class="back">
-  <tr>
-       <td valign=top width=60%> 
-         {include file=generaldata.tpl} 
-         <br /> 
-         {include file=volumes.tpl}
-       </td>
-       <td valign=top width=40% bgcolor=#DDDFF9 style="border-style: solid; border-color: grey">
-         {if !#IndexReport#}
-           {include file=last_run_report.tpl}  
-         {else}
-               {include file=report_select.tpl}
-         {/if}
-         <table class=genmed cellspacing="1" cellpadding="3" border=0 align="center">
-               <tr>
-                 <td>
-                       {if $server==""}
-                         <img src="stats.php?server={$server}&tipo_dato=69&title=General%20report&modo_graph=bars&sizex=420&sizey=250&MBottom=20&legend=1" />
-                       {else}
-                         <img src="stats.php?server={$server}&tipo_dato=3&title={$server}&modo_graph=bars" />
-                       {/if}
-                 </td>
-               </tr>
-         </table>
-       </td>
-  </tr>
-</table>
+</div> <!-- end div main_right -->
 
 {include file="footer.tpl"}
\ No newline at end of file