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>
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>
27 {* {if $status != 0} *}
31 <table border=0 cellpadding=0 cellspacing=0>
33 <td align=right colspan=4 height=25 background="images/bg7.gif" style="font-size: 12px">
34 <b>{t}Jobs with errors{/t}</b>
38 <td background="style/images/bg6.png"><b>JobId </b></td>
39 <td background="style/images/bg6.png"><b>{t}Name{/t}</b></td>
40 <td background="style/images/bg6.png"><b>{t}EndTime{/t}</b></td>
41 <td background="style/images/bg6.png"><b>{t}JobStatus{/t}</b></td>
43 {section name=row loop=$errors_array}
44 <tr {* bgcolor=#{cycle values="E6E6F5,E1E5E0"} *}>
45 {section name=tmp loop=$errors_array[row]}
46 <td {if $smarty.section.tmp.iteration == 4}align=center
47 {if $errors_array[row][tmp] == "C"}
48 {assign var=pop value="Created but not yet running"}
49 {elseif $errors_array[row][tmp] == "R"}
50 {assign var=pop value="Running"}
51 {elseif $errors_array[row][tmp] == "B"}
52 {assign var=pop value="Blocked"}
53 {elseif $errors_array[row][tmp] == "E"}
54 {assign var=pop value="Terminated in Error"}
55 {elseif $errors_array[row][tmp] == "e"}
56 {assign var=pop value="Non-fatal error"}
57 {elseif $errors_array[row][tmp] == "f"}
58 {assign var=pop value="Fatal error"}
59 {elseif $errors_array[row][tmp] == "D"}
60 {assign var=pop value="Verify Differences"}
61 {elseif $errors_array[row][tmp] == "A"}
62 {assign var=pop value="Canceled by the user"}
63 {elseif $errors_array[row][tmp] == "F"}
64 {assign var=pop value="Waiting on the File daemon"}
65 {elseif $errors_array[row][tmp] == "S"}
66 {assign var=pop value="Waiting on the Storage daemon"}
67 {elseif $errors_array[row][tmp] == "m"}
68 {assign var=pop value="Waiting for a new Volume to be mounted"}
69 {elseif $errors_array[row][tmp] == "M"}
70 {assign var=pop value="Waiting for a Mount"}
71 {elseif $errors_array[row][tmp] == "s"}
72 {assign var=pop value="Waiting for Storage resource"}
73 {elseif $errors_array[row][tmp] == "j"}
74 {assign var=pop value="Waiting for Job resource"}
75 {elseif $errors_array[row][tmp] == "c"}
76 {assign var=pop value="Waiting for Client resource"}
77 {elseif $errors_array[row][tmp] == "d"}
78 {assign var=pop value="Wating for Maximum jobs"}
79 {elseif $errors_array[row][tmp] == "t"}
80 {assign var=pop value="Waiting for Start Time"}
81 {elseif $errors_array[row][tmp] == "p"}
82 {assign var=pop value="Waiting for higher priority job to finish"}
84 {popup caption="Status detail" autostatus=yes fgcolor=red textcolor=yellow text="$pop"}
87 {if $smarty.section.tmp.iteration == 2}
88 <a href=report.php?default=1&server={$errors_array[row][tmp]} target="_blank">
90 {$errors_array[row][tmp]}
91 {if $smarty.section.row.iteration == 2}
103 </div> <!-- end div box -->
106 <p class="title">Detailled report</p>
108 <form method="get" action="report.php" target="_blank">
109 <table width="100%" cellpadding="0" cellspacing="3" border="0">
112 <td colspan="3" style="text-align: center; background-image: url('style/images/bg1.png'); font-size: 12px; font-weight: bold;">
118 <td class="label">{t}Select a job:{/t}</td>
120 <input type=hidden name="default" value="1">
122 {if $smarty.get.server != ""}
123 {html_options values=$smarty.get.server output=$smarty.get.server}
125 {html_options values=$total_name_jobs output=$total_name_jobs}
128 <input type=submit value="{t}go{/t}">
133 {* {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} *}
135 <tr class="tbl_header1">
136 <td><b>{t}Elapsed time{/t}</b></td>
137 <td><b>{t}Client{/t}</b></td>
138 <td><b>{t}Start Time{/t}</b></td>
139 <td><b>{t}End Time{/t}</b></td>
140 <td><b>{t}Type{/t}</b></td>
141 <td><b>{t}Pool{/t}</b></td>
142 <td><b>{t}Status{/t}</b></td>
144 {section name=job loop=$clients}
145 <tr class={cycle values="table3,table4"}>
146 {section name=row loop=$clients[job]}
147 <td align=left class="size_small">
148 {if $smarty.section.row.iteration == 2}
149 <a href=report.php?default=1&server={$clients[job][row]|escape:"url"} target="_blank">
151 {if $smarty.section.row.last == TRUE}
152 {if $clients[job][row] eq "T"}
153 <img src={#root#}/style/images/s_ok.gif>
155 <img src={#root#}/style/images/s_error.gif>
160 {if $smarty.section.row.iteration == 2}
173 <!-- end last_run_report.tpl -->