\r
if( ! PEAR::isError( $result ) )\r
{\r
- while( $job = $result->fetchRow( DB_FETCHMODE_ASSOC ) ) {\r
+ while( $job = $result->fetchRow( DB_FETCHMODE_ASSOC ) )
+ {
+ // Job level description
$job['Level'] = $joblevel[ $job['Level'] ];
+
+ // Job execution execution time
$job['ElapsedTime'] = TimeUtils::Get_Elapsed_Time( $job['StartTime'], $job['EndTime'] );
+
+ // odd and even row
+ if( count($jobs) % 2)
+ $job['row_class'] = 'odd';
+
array_push( $jobs, $job);\r
}
}else\r
</tr>\r
{foreach from=$jobs item=job}\r
<tr>\r
- <td>{$job.JobId}</td>\r
- <td>{$job.Level}</td>\r
- <td>{$job.JobFiles}</td>\r
- <td>{$job.JobBytes}</td>\r
- <td>{$job.StartTime}</td>
- <td>{$job.EndTime}</td>\r
- <td>{$job.ElapsedTime}</td>
+ <td class="{$job.row_class}">{$job.JobId}</td>
+ <td class="{$job.row_class}">{$job.Level}</td>
+ <td class="{$job.row_class}">{$job.JobFiles}</td>
+ <td class="{$job.row_class}">{$job.JobBytes}</td>
+ <td class="{$job.row_class}">{$job.StartTime}</td>
+ <td class="{$job.row_class}">{$job.EndTime}</td>
+ <td class="{$job.row_class}">{$job.ElapsedTime}</td>
</tr>\r
{/foreach}\r
</table>\r