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