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