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