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"} *}
16 <td class="label">Failed jobs</td> <td class="info">{$jobserror}</td>
19 <td class="label">Completed jobs</td> <td class="info">{$total_jobs}</td>
22 <td class="label">Backup elapsed time</td> <td class="info">{$totalElapsed}</td>
25 <td class="label">Transferred bytes</td> <td class="info">{$bytes_totales}</td>
28 <td colspan=2 align=center>
29 <a href="javascript:OpenWin('index.php?Full_popup=yes','490','350')">{t}Show details{/t}</a>
34 {* {if $status != 0} *}
38 <table border=0 cellpadding=0 cellspacing=0>
40 <td align=right colspan=4 height=25 background="images/bg7.gif" style="font-size: 12px">
41 <b>{t}Jobs with errors{/t}</b>
45 <td background="style/images/bg6.png"><b>JobId </b></td>
46 <td background="style/images/bg6.png"><b>{t}Name{/t}</b></td>
47 <td background="style/images/bg6.png"><b>{t}EndTime{/t}</b></td>
48 <td background="style/images/bg6.png"><b>{t}JobStatus{/t}</b></td>
50 {section name=row loop=$errors_array}
51 <tr {* bgcolor=#{cycle values="E6E6F5,E1E5E0"} *}>
52 {section name=tmp loop=$errors_array[row]}
53 <td {if $smarty.section.tmp.iteration == 4}align=center
54 {if $errors_array[row][tmp] == "C"}
55 {assign var=pop value="Created but not yet running"}
56 {elseif $errors_array[row][tmp] == "R"}
57 {assign var=pop value="Running"}
58 {elseif $errors_array[row][tmp] == "B"}
59 {assign var=pop value="Blocked"}
60 {elseif $errors_array[row][tmp] == "E"}
61 {assign var=pop value="Terminated in Error"}
62 {elseif $errors_array[row][tmp] == "e"}
63 {assign var=pop value="Non-fatal error"}
64 {elseif $errors_array[row][tmp] == "f"}
65 {assign var=pop value="Fatal error"}
66 {elseif $errors_array[row][tmp] == "D"}
67 {assign var=pop value="Verify Differences"}
68 {elseif $errors_array[row][tmp] == "A"}
69 {assign var=pop value="Canceled by the user"}
70 {elseif $errors_array[row][tmp] == "F"}
71 {assign var=pop value="Waiting on the File daemon"}
72 {elseif $errors_array[row][tmp] == "S"}
73 {assign var=pop value="Waiting on the Storage daemon"}
74 {elseif $errors_array[row][tmp] == "m"}
75 {assign var=pop value="Waiting for a new Volume to be mounted"}
76 {elseif $errors_array[row][tmp] == "M"}
77 {assign var=pop value="Waiting for a Mount"}
78 {elseif $errors_array[row][tmp] == "s"}
79 {assign var=pop value="Waiting for Storage resource"}
80 {elseif $errors_array[row][tmp] == "j"}
81 {assign var=pop value="Waiting for Job resource"}
82 {elseif $errors_array[row][tmp] == "c"}
83 {assign var=pop value="Waiting for Client resource"}
84 {elseif $errors_array[row][tmp] == "d"}
85 {assign var=pop value="Wating for Maximum jobs"}
86 {elseif $errors_array[row][tmp] == "t"}
87 {assign var=pop value="Waiting for Start Time"}
88 {elseif $errors_array[row][tmp] == "p"}
89 {assign var=pop value="Waiting for higher priority job to finish"}
91 {popup caption="Status detail" autostatus=yes fgcolor=red textcolor=yellow text="$pop"}
94 {if $smarty.section.tmp.iteration == 2}
95 <a href=report.php?default=1&server={$errors_array[row][tmp]} target="_blank">
97 {$errors_array[row][tmp]}
98 {if $smarty.section.row.iteration == 2}
110 </div> <!-- end div box -->
113 <p class="title">Detailled report</p>
115 <form method="get" action="report.php" target="_blank">
116 <table width="100%" cellpadding="0" cellspacing="3" border="0">
119 <td colspan="3" style="text-align: center; background-image: url('style/images/bg1.png'); font-size: 12px; font-weight: bold;">
125 <td class="label">{t}Select a job:{/t}</td>
127 <input type=hidden name="default" value="1">
129 {if $smarty.get.server != ""}
130 {html_options values=$smarty.get.server output=$smarty.get.server}
132 {html_options values=$total_name_jobs output=$total_name_jobs}
135 <input type=submit value="{t}go{/t}">
140 {* {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} *}
142 <tr class="tbl_header1">
143 <td><b>{t}Elapsed time{/t}</b></td>
144 <td><b>{t}Client{/t}</b></td>
145 <td><b>{t}Start Time{/t}</b></td>
146 <td><b>{t}End Time{/t}</b></td>
147 <td><b>{t}Type{/t}</b></td>
148 <td><b>{t}Pool{/t}</b></td>
149 <td><b>{t}Status{/t}</b></td>
151 {section name=job loop=$clients}
152 <tr class={cycle values="table3,table4"}>
153 {section name=row loop=$clients[job]}
154 <td align=left class="size_small">
155 {if $smarty.section.row.iteration == 2}
156 <a href=report.php?default=1&server={$clients[job][row]|escape:"url"} target="_blank">
158 {if $smarty.section.row.last == TRUE}
159 {if $clients[job][row] eq "T"}
160 <img src={#root#}/style/images/s_ok.gif>
162 <img src={#root#}/style/images/s_error.gif>
167 {if $smarty.section.row.iteration == 2}
180 <!-- end last_run_report.tpl -->