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