1 <!-- last_run_report.tpl -->
4 <p class="title">Last 24 hours status</p>
5 {* {if $mode == "Lite" && $smarty.get.Full_popup != "yes"} *}
8 <td class="label">Failed jobs</td> <td class="info">{$failed_jobs}</td>
11 <td class="label">Completed jobs</td> <td class="info">{$completed_jobs}</td>
14 <td class="label">Elapsed time</td> <td class="info">{$totalElapsed}</td>
17 <td class="label">Transferred Bytes</td> <td class="info">{$bytes_totales}</td>
20 <td colspan=2 align=center>
21 <a href="javascript:OpenWin('index.php?Full_popup=yes','490','350')">{t}Show details{/t}</a>
26 {* {if $status != 0} *}
30 <table border=0 cellpadding=0 cellspacing=0>
32 <td align=right colspan=4 height=25 background="images/bg7.gif" style="font-size: 12px">
33 <b>{t}Jobs with errors{/t}</b>
37 <td background="style/images/bg6.png"><b>JobId </b></td>
38 <td background="style/images/bg6.png"><b>{t}Name{/t}</b></td>
39 <td background="style/images/bg6.png"><b>{t}EndTime{/t}</b></td>
40 <td background="style/images/bg6.png"><b>{t}JobStatus{/t}</b></td>
42 {section name=row loop=$errors_array}
43 <tr {* bgcolor=#{cycle values="E6E6F5,E1E5E0"} *}>
44 {section name=tmp loop=$errors_array[row]}
45 <td {if $smarty.section.tmp.iteration == 4}align=center
46 {if $errors_array[row][tmp] == "C"}
47 {assign var=pop value="Created but not yet running"}
48 {elseif $errors_array[row][tmp] == "R"}
49 {assign var=pop value="Running"}
50 {elseif $errors_array[row][tmp] == "B"}
51 {assign var=pop value="Blocked"}
52 {elseif $errors_array[row][tmp] == "E"}
53 {assign var=pop value="Terminated in Error"}
54 {elseif $errors_array[row][tmp] == "e"}
55 {assign var=pop value="Non-fatal error"}
56 {elseif $errors_array[row][tmp] == "f"}
57 {assign var=pop value="Fatal error"}
58 {elseif $errors_array[row][tmp] == "D"}
59 {assign var=pop value="Verify Differences"}
60 {elseif $errors_array[row][tmp] == "A"}
61 {assign var=pop value="Canceled by the user"}
62 {elseif $errors_array[row][tmp] == "F"}
63 {assign var=pop value="Waiting on the File daemon"}
64 {elseif $errors_array[row][tmp] == "S"}
65 {assign var=pop value="Waiting on the Storage daemon"}
66 {elseif $errors_array[row][tmp] == "m"}
67 {assign var=pop value="Waiting for a new Volume to be mounted"}
68 {elseif $errors_array[row][tmp] == "M"}
69 {assign var=pop value="Waiting for a Mount"}
70 {elseif $errors_array[row][tmp] == "s"}
71 {assign var=pop value="Waiting for Storage resource"}
72 {elseif $errors_array[row][tmp] == "j"}
73 {assign var=pop value="Waiting for Job resource"}
74 {elseif $errors_array[row][tmp] == "c"}
75 {assign var=pop value="Waiting for Client resource"}
76 {elseif $errors_array[row][tmp] == "d"}
77 {assign var=pop value="Wating for Maximum jobs"}
78 {elseif $errors_array[row][tmp] == "t"}
79 {assign var=pop value="Waiting for Start Time"}
80 {elseif $errors_array[row][tmp] == "p"}
81 {assign var=pop value="Waiting for higher priority job to finish"}
83 {popup caption="Status detail" autostatus=yes fgcolor=red textcolor=yellow text="$pop"}
86 {if $smarty.section.tmp.iteration == 2}
87 <a href=report.php?default=1&server={$errors_array[row][tmp]} target="_blank">
89 {$errors_array[row][tmp]}
90 {if $smarty.section.row.iteration == 2}
102 </div> <!-- end div box -->
105 <p class="title">Detailled report</p>
107 <form method="get" action="report.php" target="_blank">
108 <table width="100%" cellpadding="0" cellspacing="3" border="0">
111 <td colspan="3" style="text-align: center; background-image: url('style/images/bg1.png'); font-size: 12px; font-weight: bold;">
117 <td class="label">{t}Select a job:{/t}</td>
119 <input type=hidden name="default" value="1">
121 {if $smarty.get.server != ""}
122 {html_options values=$smarty.get.server output=$smarty.get.server}
124 {html_options values=$total_name_jobs output=$total_name_jobs}
127 <input type=submit value="{t}go{/t}">
132 {* {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} *}
134 <tr class="tbl_header1">
135 <td><b>{t}Elapsed time{/t}</b></td>
136 <td><b>{t}Client{/t}</b></td>
137 <td><b>{t}Start Time{/t}</b></td>
138 <td><b>{t}End Time{/t}</b></td>
139 <td><b>{t}Type{/t}</b></td>
140 <td><b>{t}Pool{/t}</b></td>
141 <td><b>{t}Status{/t}</b></td>
143 {section name=job loop=$clients}
144 <tr class={cycle values="table3,table4"}>
145 {section name=row loop=$clients[job]}
146 <td align=left class="size_small">
147 {if $smarty.section.row.iteration == 2}
148 <a href=report.php?default=1&server={$clients[job][row]|escape:"url"} target="_blank">
150 {if $smarty.section.row.last == TRUE}
151 {if $clients[job][row] eq "T"}
152 <img src={#root#}/style/images/s_ok.gif>
154 <img src={#root#}/style/images/s_error.gif>
159 {if $smarty.section.row.iteration == 2}
172 <!-- end last_run_report.tpl -->