if( ! PEAR::isError( $result ) )\r
{\r
while( $job = $result->fetchRow( DB_FETCHMODE_ASSOC ) ) {\r
- $job['Level'] = $joblevel[ $job['Level'] ];\r
+ $job['Level'] = $joblevel[ $job['Level'] ];
+ $job['ElapsedTime'] = TimeUtils::Get_Elapsed_Time( $job['StartTime'], $job['EndTime'] );
array_push( $jobs, $job);\r
}
}else\r
<div class="box">\r
<p class="title">Last jobs</p>\r
\r
- <table border="1">
+ <table>
<tr>\r
<td class="tbl_header" width="60">Job Id</td>
<td class="tbl_header" width="60">Level</td>
<td class="tbl_header" width="70">Bytes</td>
<td class="tbl_header" width="80">Start time</td>
<td class="tbl_header" width="80">End time</td>
+ <td class="tbl_header" width="80">Elapsed time</td>
</tr>\r
{foreach from=$jobs item=job}\r
<tr>\r
<td>{$job.JobBytes}</td>\r
<td>{$job.StartTime}</td>
<td>{$job.EndTime}</td>\r
+ <td>{$job.ElapsedTime}</td>
</tr>\r
{/foreach}\r
</table>\r