-{* BACULA main page*}
-
-{config_load file=bacula.conf}
-
-{include file=css.tpl}
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>bacula-web</title>
+<link rel="stylesheet" type="text/css" href="style/default.css">
+{literal}
+<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}
+</head>
+<body>
+{popup_init src='./js/overlib.js'}
{include file=header.tpl}
-<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={t}General%20report{/t}&modo_graph=bars&sizex=400&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>
+<div id="main_left">
+{include file=volumes.tpl}
+</div>
-</table>
+<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}&tipo_dato=69&title=General%20report&modo_graph=bars&sizex=420&sizey=250&MBottom=20&legend=1" alt="" />
+ {else}
+ <img src="stats.php?server={$server}&tipo_dato=3&title={$server}&modo_graph=bars" alt="" />
+ {/if}
+ </div> <!-- end div box -->
+</div> <!-- end div main_right -->
{include file="footer.tpl"}
\ No newline at end of file