]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/templates/index.tpl
bacula-web: Renamed database.class.php to cdb.class.php
[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 </head>
8 <body>
9 {include file=header.tpl}
10
11 <div id="main_left">
12
13   <!-- Pools and Volumes Status -->
14   <div class="box">
15         <p class="title">
16         Pools and volumes status        
17         </p>
18         <img src="{$graph_pools}" alt="" />
19         <div class="footer">
20                 <a href="pools.php" title="Show pools and volumes report">{t}View report{/t}</a>
21         </div>
22   </div> <!-- end div box -->
23   
24   <!-- Stored Bytes for last 7 days -->
25   <div class="box">
26         <p class="title" title="Stored bytes for last 7 days (GB)">Stored bytes</p>
27           <img src="{$graph_stored_bytes}" alt="" />
28   </div> <!-- end div box -->
29
30 </div>
31
32 <div id="main_middle">
33   <!-- Last 24 hours jobs status -->
34   <div class="box">
35         <p class="title" title="Last 24 hours jobs status">Jobs status</p>
36           <img src="{$graph_jobs}" alt="" />
37         <div class="footer">
38                 <a href="jobs.php" title="Show last 24 hours jobs status">View report</a>
39         </div>
40   </div> <!-- end div box -->
41   
42   <div class="box">
43         <p class="title">Last used volumes</p>
44           <table>
45                 <tr>
46                   <td class="tbl_header">Volume</td>
47                   <td class="tbl_header">Status</td>
48                   <td class="tbl_header">Last written</td>
49                   <td class="tbl_header">Job Id</td>
50                 </tr>
51                 {foreach from=$volume_list item=vol}
52                 <tr>
53                   <td>{$vol.Volumename}</td>
54                   <td>{$vol.VolStatus}</td>
55                   <td>{$vol.Lastwritten}</td>
56                   <td>{$vol.JobId}</td>
57                 </tr>
58                 {/foreach}
59           </table>
60   </div> <!-- end div box -->
61   
62 </div> <!-- end div main_middle -->
63
64 <div id="main_right">
65   <!-- General information -->
66   <div class="box">
67         <p class="title">Overall status</p>
68         <table>
69           <tr>
70             <td class="label">{t}Clients{/t}</td> <td class="info">{$clientes_totales}</td>
71           </tr>
72           <tr>
73                 <td class="label">{t}Total bytes{/t}</td> <td class="info">{$stored_bytes}</td>
74           </tr>
75           <tr>
76                 <td class="label">{t}Total files{/t}</td> <td class="info">{$stored_files} file(s)</td>
77           </tr>
78           <tr>
79                 <td class="label">{t}Database size{/t}</td> <td class="info">{$database_size}</td>
80           </tr>
81         </table>
82   </div>
83
84   <!-- Last 24 hours job Status -->
85   <div class="box">
86         <p class="title">Last 24 hours status</p>
87                 <table>
88                         <tr>
89                                 <td class="label">Failed jobs</td> 
90                                 <td class="info">{$failed_jobs}</td>
91                         </tr>
92                         <tr>
93                                 <td class="label">Completed jobs</td> 
94                                 <td class="info">{$completed_jobs}</td>
95                         </tr> 
96                         <tr>
97                                 <td class="label">Waiting jobs</td> 
98                                 <td class="info">{$waiting_jobs}</td>
99                         </tr> 
100                         <tr>
101                                 <td class="label">Job Level (Incr / Diff / Full)</td>
102                                 <td class="info">{$incr_jobs} / {$diff_jobs} / {$full_jobs}</td>
103                         </tr>
104                         <tr>
105                                 <td class="label">Transferred Bytes</td> 
106                                 <td class="info">{$bytes_last}</td>
107                         </tr>
108                         <tr>
109                                 <td class="label">Transferred Files</td> 
110                                 <td class="info">{$files_last}</td>
111                         </tr>
112                 </table>
113   </div> <!-- end div box -->   
114   
115 <div class="box">
116         <p class="title">Reports</p>
117  
118  <!-- Custom report -->
119  <form method="post" action="client-report.php">
120         <table width="100%">
121                 <tr>
122                         <td class="tbl_header" colspan="2"><b>Custom report</b></td>
123                 </tr>
124                 <tr>
125                         <td class="label">Report type</td>
126                         <td class="info">
127                                 <select>
128                                         <option>{t}Transfered Bytes{/t}
129                                         <option>{t}Transfered Files {/t}
130                                 </select>
131                         </td>
132                 </tr>
133                 <tr>
134                         <td class="label">Client</td>
135                         <td class="info">
136                                 Client list here + All
137                         </td>
138                 </tr>
139                 <tr>
140                         <td class="label">Graph type</td>
141                         <td class="info">
142                                 <select>
143                                         <option>Bars
144                                         <option>Line
145                                 </select>
146                         </td>
147                 </tr>
148                 <tr>
149                         <td class="label">Interval</td>
150                         <td class="info">
151                                 <select>
152                                         <option>Last day
153                                         <option>Last week
154                                         <option>Last month
155                                 </select>
156                         </td>
157                 </tr>           
158                 <tr>
159                         <td colspan="2" class="info">
160                                 <input type="submit" value="View report"/>
161                         </td>
162                 </tr>
163         </table>
164  </form>
165  
166  <!-- Backup job report form -->
167  <form method="post" action="backupjob-report.php">
168    <table border="0">
169      <tr> <td colspan="2" class="label">&nbsp;</td> </tr>
170          <tr>
171            <td colspan="2" class="tbl_header"><b>{t}Backup Job report{/t}</b></td>
172          </tr>
173          <tr>
174                 <td class="label">Select a backup job</td>
175                 <td class="info">
176              <input type=hidden name="default" value="1">                               
177                    <select name=backupjob_name>
178                      {*
179                          {if $smarty.get.server != ""}
180                                 {html_options values=$smarty.get.server output=$smarty.get.server}
181                          {else}
182                          *}
183                                 {html_options values=$jobs_list output=$jobs_list}
184                      {* {/if} *}
185                    </select>
186            </td>
187          </tr>
188          <tr>
189          <td colspan="2" class="info"> <input type=submit value="{t}View report{/t}"> </td>
190          </tr>
191    </table>
192  </form>
193 </div> <!-- end div class=box -->
194
195 </div> <!-- end div main_right -->
196
197 {include file="footer.tpl"}