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