public function Get_BackupJob_Names()
{
- $query = "SELECT Name FROM Job GROUP BY Name";
+ $query = "SELECT job.name FROM job GROUP BY job.name";
$backupjobs = array();
$result = $this->db_link->query( $query );
if (PEAR::isError( $result ) ) {
- die("Unable to get BackupJobs list from catalog" );
+ $this->TriggerDBError("Unable to get BackupJobs list from catalog", $result );
}else{
- while( $backupjob = $result->fetchRow( DB_FETCHMODE_ASSOC ) ) {
- array_push( $backupjobs, $backupjob["Name"] );
+ while( $backupjob = $result->fetchRow() ) {
+ array_push( $backupjobs, $backupjob["name"] );
}
return $backupjobs;
}
while( $job = $jobsresult->fetchRow( DB_FETCHMODE_ASSOC ) ) {
// Determine icon for job status
- switch( $job['JobStatus'] ) {
+ switch( $job['jobstatus'] ) {
case J_RUNNING:
$job['Job_icon'] = "running.png";
break;
$job['Job_classe'] = 'odd';
// Elapsed time for the job
- $start = $job['StartTime'];
- $end = $job['EndTime'];
+ $start = $job['starttime'];
+ $end = $job['endtime'];
// Job execution execution time
$job['elapsed_time'] = CTimeUtils::Get_Elapsed_Time( $start, $end);
// Job Level
- $job['Level'] = $job_level[ $job['Level'] ];
+ $job['Level'] = $job_level[ $job['level'] ];
// Job Size
- $job['JobBytes'] = CUtils::Get_Human_Size( $job['JobBytes'] );
+ $job['JobBytes'] = CUtils::Get_Human_Size( $job['jobbytes'] );
array_push( $last_jobs, $job);
}
<td width="50" class="{$job.Job_classe}">
<img width="20" src="style/images/{$job.Job_icon}" alt="" title="{$job.JobStatusLong}" />
</td>
- <td class="{$job.Job_classe}">{$job.JobId}</td>
+ <td class="{$job.Job_classe}">{$job.jobid}</td>
<td class="{$job.Job_classe}">
- <a href="backupjob-report.php?backupjob_name={$job.Job_name}">{$job.Job_name}</a>
+ <a href="backupjob-report.php?backupjob_name={$job.Job_name}">{$job.job_name}</a>
</td>
- <td class="{$job.Job_classe}">{$job.StartTime}</td>
- <td class="{$job.Job_classe}">{$job.EndTime}</td>
+ <td class="{$job.Job_classe}">{$job.starttime}</td>
+ <td class="{$job.Job_classe}">{$job.endtime}</td>
<td class="{$job.Job_classe}">{$job.elapsed_time}</td>
- <td class="{$job.Job_classe}">{$job.Level}</td>
- <td class="{$job.Job_classe}">{$job.JobBytes}</td>
- <td class="{$job.Job_classe}">{$job.JobFiles}</td>
- <td class="{$job.Job_classe}">{$job.Pool_name}</td>
+ <td class="{$job.Job_classe}">{$job.level}</td>
+ <td class="{$job.Job_classe}">{$job.jobbytes}</td>
+ <td class="{$job.Job_classe}">{$job.jobfiles}</td>
+ <td class="{$job.Job_classe}">{$job.pool_name}</td>
</tr>
{/foreach}
</table>