]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/templates/last_run_report.tpl
bacula-web: Improved design and fixed html/css issue
[bacula/bacula] / gui / bacula-web / templates / last_run_report.tpl
1 <!-- last_run_report.tpl -->
2
3 <div class="box">
4         <p class="title">Last 24 hours status</p>
5 <!--    
6 <table width=100% align=center {if !$status }background="images/backlast.gif"{else}background="images/backlastred.gif" {/if} style="background-repeat:no-repeat" height=178px border=0 cellspacing=0 cellpadding=0>
7  <tr>
8         <td colspan=2 align=center style="font-size: 12px; font-weight: bold; background-repeat: repeat" background="images/bg6.png" height=25>
9                 {t}Status from last 24h{/t}
10         </td>
11  </tr>
12 -->
13 {if #mode# == "Lite" && $smarty.get.Full_popup != "yes"}
14 <table width="100%">
15  <tr>
16         <td>
17                 <b>{t}Errors:{/t}</b>
18         </td>
19         <td style="font-size: 13px; color: blue">
20                 {$status}
21         </td>
22  </tr>
23
24  <tr>
25         <td>
26                 <b>{t}Terminated Jobs:{/t}</b>
27         </td>
28         <td style="font-size: 13px; color: blue">
29                 {$total_jobs}
30         </td>
31  </tr> 
32  <tr>
33         <td>
34                 <b>{t}Total time spent to do backup:{/t}</b>
35         </td> 
36         <td style="font-size: 13px; color: blue">
37                 {$TotalElapsed}
38         </td>
39  </tr>
40  
41  <tr>
42         <td>
43                 <b>{t}Bytes transferred last 24h{/t}</b>
44         </td> 
45         <td style="font-size: 13px; color: blue">
46                 {$bytes_totales|fsize_format}
47         </td>
48  </tr> 
49  <tr>
50         <td colspan=2 align=center>
51                 <a href="javascript:OpenWin('index.php?Full_popup=yes','490','350')">{t}Show details{/t}</a>
52         </td>
53  </tr>
54  </table>
55  
56  {if $status != 0}
57 <table>
58         <tr>
59                 <td colspan=2>
60                         <table border=0 cellpadding=0 cellspacing=0>
61                                 <tr>
62                                         <td align=right colspan=4 height=25 background="images/bg7.gif" style="font-size: 12px">
63                                                 <b>{t}Jobs with errors{/t}</b>
64                                         </td>
65                                 </tr>
66                                 <tr>
67                                         <td background="images/bg6.png"><b>JobId&nbsp;</b></td>
68                                         <td background="images/bg6.png"><b>{t}Name{/t}</b></td>
69                                         <td background="images/bg6.png"><b>{t}EndTime{/t}</b></td>
70                                         <td background="images/bg6.png"><b>{t}JobStatus{/t}</b></td>
71                                 </tr>
72                                 {section name=row loop=$errors_array} 
73                                 <tr {* bgcolor=#{cycle values="E6E6F5,E1E5E0"} *}>
74                                         {section name=tmp loop=$errors_array[row]}
75                                         <td {if $smarty.section.tmp.iteration == 4}align=center 
76                                 {if $errors_array[row][tmp] == "C"}
77                                         {assign var=pop value="Created but not yet running"}
78                                 {elseif $errors_array[row][tmp] == "R"}
79                                         {assign var=pop value="Running"}
80                                 {elseif $errors_array[row][tmp] == "B"}
81                                         {assign var=pop value="Blocked"}
82                                 {elseif $errors_array[row][tmp] == "E"}
83                                         {assign var=pop value="Terminated in Error"}
84                                 {elseif $errors_array[row][tmp] == "e"}
85                                         {assign var=pop value="Non-fatal error"}
86                                 {elseif $errors_array[row][tmp] == "f"}
87                                         {assign var=pop value="Fatal error"}
88                                 {elseif $errors_array[row][tmp] == "D"}
89                                         {assign var=pop value="Verify Differences"}
90                                 {elseif $errors_array[row][tmp] == "A"}
91                                         {assign var=pop value="Canceled by the user"}
92                                 {elseif $errors_array[row][tmp] == "F"}
93                                         {assign var=pop value="Waiting on the File daemon"}
94                                 {elseif $errors_array[row][tmp] == "S"}
95                                         {assign var=pop value="Waiting on the Storage daemon"}
96                                 {elseif $errors_array[row][tmp] == "m"}
97                                         {assign var=pop value="Waiting for a new Volume to be mounted"}
98                                 {elseif $errors_array[row][tmp] == "M"}
99                                         {assign var=pop value="Waiting for a Mount"}
100                                 {elseif $errors_array[row][tmp] == "s"}
101                                         {assign var=pop value="Waiting for Storage resource"}
102                                 {elseif $errors_array[row][tmp] == "j"}
103                                         {assign var=pop value="Waiting for Job resource"}
104                                 {elseif $errors_array[row][tmp] == "c"}
105                                         {assign var=pop value="Waiting for Client resource"}
106                                 {elseif $errors_array[row][tmp] == "d"}
107                                         {assign var=pop value="Wating for Maximum jobs"} 
108                                 {elseif $errors_array[row][tmp] == "t"}
109                                         {assign var=pop value="Waiting for Start Time"}
110                                 {elseif $errors_array[row][tmp] == "p"}
111                                         {assign var=pop value="Waiting for higher priority job to finish"}
112                                 {/if}
113                         {popup caption="Status detail" autostatus=yes fgcolor=red textcolor=yellow text="$pop"}
114                                                 {/if}                                   
115                                         >
116                                                 {if $smarty.section.tmp.iteration == 2}
117                             <a href=report.php?default=1&server={$errors_array[row][tmp]} target="_blank">
118                         {/if}    
119                                                 {$errors_array[row][tmp]}
120                                                 {if $smarty.section.row.iteration == 2}
121                                                         </a>
122                                                 {/if}
123                                         </td>
124                                         {/section}
125                                 </tr>
126                                 {/section}
127                         </table>
128                 </td>
129         </tr>
130 </table>        
131  {/if}
132 </div> <!-- end div box --> 
133  
134 <div class="box">
135         <p class="title">Detailled report</p>
136  
137  <form method="get" action="report.php" target="_blank">
138  <table>
139  <!--
140  <tr>
141         <td align=right colspan=2 valign=bottom>
142
143                 <table width="100%" cellpadding="0" cellspacing="3" border="0">
144                         <tr bgcolor=white>
145                                 <td colspan="3" style="text-align: center; background-image: url(images/bg1.png); font-size: 12px; font-weight: bold;">
146                                 Detailed report
147                                 </td>
148                         </tr>
149   -->           
150                         <tr>
151                                 <td align=left>
152                                         {t}Select a job:{/t}
153                                 </td>                   
154                                 <td align=right>
155                                         <input type=hidden name="default" value="1">                            
156                                         <select name=server>
157                                                 {if $smarty.get.server!=""}
158                                                         {html_options values=$smarty.get.server output=$smarty.get.server}
159                                                 {else}
160                                                         {html_options values=$total_name_jobs output=$total_name_jobs}
161                                                 {/if}
162                                         </select>
163                                 </td>
164                                 <td>
165                                         <input type=submit value="{t}go{/t}">
166                                 </td>
167                                 
168                         </tr>
169  </table>
170                 </form>
171 {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"}
172 <table>
173         <tr class="tbl_header1">
174                 <td><b>{t}Elapsed time{/t}</b></td>
175                 <td><b>{t}Client{/t}</b></td>
176                 <td><b>{t}Start Time{/t}</b></td>
177                 <td><b>{t}End Time{/t}</b></td>
178                 <td><b>{t}Type{/t}</b></td>
179                 <td><b>{t}Pool{/t}</b></td>
180                 <td><b>{t}Status{/t}</b></td>
181         </tr>
182         {section name=job loop=$clients}
183         <tr class={cycle values="table3,table4"}>
184                 {section name=row loop=$clients[job]}
185                         <td align=left class="size_small">
186                         {if $smarty.section.row.iteration == 2}
187                                 <a href=report.php?default=1&server={$clients[job][row]|escape:"url"} target="_blank">
188                         {/if}
189                         {if $smarty.section.row.last == TRUE}
190                         {if $clients[job][row] eq "T"}
191                                 <img src={#root#}/images/s_ok.gif>
192                         {else}
193                                 <img src={#root#}/images/s_error.gif>
194                         {/if}
195                         {else}
196                                 {$clients[job][row]}
197                         {/if}
198                                 {if $smarty.section.row.iteration == 2}
199                         </a>
200                         {/if}
201                         </td>
202                 {/section}
203         </tr>
204                 {/section}
205         </td>
206  </tr>
207 </table>
208 {/if}
209
210 </div>
211 <!-- end last_run_report.tpl -->