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