1 <!-- last_run_report.tpl -->
4 <p class="title">Last 24 hours status</p>
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>
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}
13 {if $mode == "Lite" && $smarty.get.Full_popup != "yes"}
19 <td style="font-size: 13px; color: blue">
26 <b>{t}Terminated Jobs:{/t}</b>
28 <td style="font-size: 13px; color: blue">
34 <b>{t}Total time spent to do backup:{/t}</b>
36 <td style="font-size: 13px; color: blue">
43 <b>{t}Bytes transferred last 24h{/t}</b>
45 <td style="font-size: 13px; color: blue">
50 <td colspan=2 align=center>
51 <a href="javascript:OpenWin('index.php?Full_popup=yes','490','350')">{t}Show details{/t}</a>
60 <table border=0 cellpadding=0 cellspacing=0>
62 <td align=right colspan=4 height=25 background="images/bg7.gif" style="font-size: 12px">
63 <b>{t}Jobs with errors{/t}</b>
67 <td background="style/images/bg6.png"><b>JobId </b></td>
68 <td background="style/images/bg6.png"><b>{t}Name{/t}</b></td>
69 <td background="style/images/bg6.png"><b>{t}EndTime{/t}</b></td>
70 <td background="style/images/bg6.png"><b>{t}JobStatus{/t}</b></td>
72 {section name=row loop=$errors_array}
73 <tr {* bgcolor=#{cycle values="E6E6F5,E1E5E0"} *}>
74 {section name=tmp loop=$errors_array[row]}
75 <td {if $smarty.section.tmp.iteration == 4}align=center
76 {if $errors_array[row][tmp] == "C"}
77 {assign var=pop value="Created but not yet running"}
78 {elseif $errors_array[row][tmp] == "R"}
79 {assign var=pop value="Running"}
80 {elseif $errors_array[row][tmp] == "B"}
81 {assign var=pop value="Blocked"}
82 {elseif $errors_array[row][tmp] == "E"}
83 {assign var=pop value="Terminated in Error"}
84 {elseif $errors_array[row][tmp] == "e"}
85 {assign var=pop value="Non-fatal error"}
86 {elseif $errors_array[row][tmp] == "f"}
87 {assign var=pop value="Fatal error"}
88 {elseif $errors_array[row][tmp] == "D"}
89 {assign var=pop value="Verify Differences"}
90 {elseif $errors_array[row][tmp] == "A"}
91 {assign var=pop value="Canceled by the user"}
92 {elseif $errors_array[row][tmp] == "F"}
93 {assign var=pop value="Waiting on the File daemon"}
94 {elseif $errors_array[row][tmp] == "S"}
95 {assign var=pop value="Waiting on the Storage daemon"}
96 {elseif $errors_array[row][tmp] == "m"}
97 {assign var=pop value="Waiting for a new Volume to be mounted"}
98 {elseif $errors_array[row][tmp] == "M"}
99 {assign var=pop value="Waiting for a Mount"}
100 {elseif $errors_array[row][tmp] == "s"}
101 {assign var=pop value="Waiting for Storage resource"}
102 {elseif $errors_array[row][tmp] == "j"}
103 {assign var=pop value="Waiting for Job resource"}
104 {elseif $errors_array[row][tmp] == "c"}
105 {assign var=pop value="Waiting for Client resource"}
106 {elseif $errors_array[row][tmp] == "d"}
107 {assign var=pop value="Wating for Maximum jobs"}
108 {elseif $errors_array[row][tmp] == "t"}
109 {assign var=pop value="Waiting for Start Time"}
110 {elseif $errors_array[row][tmp] == "p"}
111 {assign var=pop value="Waiting for higher priority job to finish"}
113 {popup caption="Status detail" autostatus=yes fgcolor=red textcolor=yellow text="$pop"}
116 {if $smarty.section.tmp.iteration == 2}
117 <a href=report.php?default=1&server={$errors_array[row][tmp]} target="_blank">
119 {$errors_array[row][tmp]}
120 {if $smarty.section.row.iteration == 2}
132 </div> <!-- end div box -->
135 <p class="title">Detailled report</p>
137 <form method="get" action="report.php" target="_blank">
141 <td align=right colspan=2 valign=bottom>
143 <table width="100%" cellpadding="0" cellspacing="3" border="0">
145 <td colspan="3" style="text-align: center; background-image: url('style/images/bg1.png'); font-size: 12px; font-weight: bold;">
155 <input type=hidden name="default" value="1">
157 {if $smarty.get.server!=""}
158 {html_options values=$smarty.get.server output=$smarty.get.server}
160 {html_options values=$total_name_jobs output=$total_name_jobs}
165 <input type=submit value="{t}go{/t}">
171 {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"}
173 <tr class="tbl_header1">
174 <td><b>{t}Elapsed time{/t}</b></td>
175 <td><b>{t}Client{/t}</b></td>
176 <td><b>{t}Start Time{/t}</b></td>
177 <td><b>{t}End Time{/t}</b></td>
178 <td><b>{t}Type{/t}</b></td>
179 <td><b>{t}Pool{/t}</b></td>
180 <td><b>{t}Status{/t}</b></td>
182 {section name=job loop=$clients}
183 <tr class={cycle values="table3,table4"}>
184 {section name=row loop=$clients[job]}
185 <td align=left class="size_small">
186 {if $smarty.section.row.iteration == 2}
187 <a href=report.php?default=1&server={$clients[job][row]|escape:"url"} target="_blank">
189 {if $smarty.section.row.last == TRUE}
190 {if $clients[job][row] eq "T"}
191 <img src={#root#}/style/images/s_ok.gif>
193 <img src={#root#}/style/images/s_error.gif>
198 {if $smarty.section.row.iteration == 2}
211 <!-- end last_run_report.tpl -->