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