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">{$elapsed_jobs}</td>
17 <td class="label">Transferred Bytes</td> <td class="info">{$bytes_totales}</td>
21 </div> <!-- end div box -->
23 {* {if $status != 0} *}
27 <table border=0 cellpadding=0 cellspacing=0>
29 <td align=right colspan=4 height=25 background="images/bg7.gif" style="font-size: 12px">
30 <b>{t}Jobs with errors{/t}</b>
34 <td background="style/images/bg6.png"><b>JobId </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>
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"}
80 {popup caption="Status detail" autostatus=yes fgcolor=red textcolor=yellow text="$pop"}
83 {if $smarty.section.tmp.iteration == 2}
84 <a href=report.php?default=1&server={$errors_array[row][tmp]} target="_blank">
86 {$errors_array[row][tmp]}
87 {if $smarty.section.row.iteration == 2}
102 <p class="title">Reports</p>
104 <form method="get" action="report.php" target="_blank">
105 <table width="100%" cellpadding="0" cellspacing="3" border="0">
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>
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>
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>
122 <tr> <td colspan="2"> </td> </tr>
124 <td class="label">{t}Select a job:{/t}</td>
126 <input type=hidden name="default" value="1">
128 {if $smarty.get.server != ""}
129 {html_options values=$smarty.get.server output=$smarty.get.server}
131 {html_options values=$total_name_jobs output=$total_name_jobs}
134 <input type=submit value="{t}go{/t}">
141 {* {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} *}
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>
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">
159 {if $smarty.section.row.last == TRUE}
160 {if $clients[job][row] eq "T"}
161 <img src={#root#}/style/images/s_ok.gif>
163 <img src={#root#}/style/images/s_error.gif>
168 {if $smarty.section.row.iteration == 2}
183 <!-- end last_run_report.tpl -->