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