]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/templates/index.tpl
bacula-web: Internal PHP code improvment
[bacula/bacula] / gui / bacula-web / templates / index.tpl
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
2   "http://www.w3.org/TR/html4/loose.dtd">
3 <html lang="en">
4 <head>
5 <title>bacula-web</title>
6 <link rel="stylesheet" type="text/css" href="style/default.css">
7 {literal}
8 <script type="text/javascript">
9         function OpenWin(URL,wid,hei) {
10                 window.open(URL,"window1","width="+wid+",height="+hei+",scrollbars=yes,menubar=no,location=no,resizable=no")
11         }
12 </script>
13 {/literal}
14
15 </head>
16 <body>
17 {popup_init src='./js/overlib.js'}
18 {include file=header.tpl}
19
20 <div id="main_left">
21 {include file=volumes.tpl}
22 </div>
23
24 <div id="main_right">
25   <!-- General information -->
26   <div class="box">
27         <p class="title">General informations</p>
28         <table>
29           <tr>
30             <td class="label">{t}Clients{/t}</td> <td>{$clientes_totales}</td>
31           </tr>
32           <tr>
33                 <td class="label">{t}Total bytes stored{/t}:</td> <td>{$bytes_stored}</td>
34           </tr>
35           <tr>
36                 <td class="label">{t}Total files:{/t}</td> <td>{$files_totales}</td>
37           </tr>
38           <tr>
39                 <td class="label">{t}Database size{/t}:</td> <td>{$database_size}</td>
40           </tr>
41           <tr>
42                 <td colspan=2 align=center>
43                   <a href="javascript:OpenWin('index.php?pop_graph1=yes','600','400')">{t}Last month, bytes transferred{/t}</a>
44                 </td>
45           </tr>
46           <tr>
47                 <td colspan=2 align=center>
48                   <a href="javascript:OpenWin('index.php?pop.graph2=yes','600','400')">{t}Last month, bytes transferred (pie){/t}</a>
49                 </td>
50           </tr>
51         </table>
52   </div>
53         
54   {include file="$last_report"}         
55   
56   <div class="box">
57         <p class="title">General report</p>
58         {if $server==""} 
59           <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="" />
60         {else}
61           <img src="stats.php?server={$server}&amp;tipo_dato=3&amp;title={$server}&amp;modo_graph=bars" alt="" />
62         {/if}
63   </div> <!-- end div box -->
64
65 </div> <!-- end div main_right -->
66
67 {include file="footer.tpl"}