</head>
<body>
-{popup_init src='./js/overlib.js'}
+{popup_init src='./external_packages/js/overlib.js'}
{include file=header.tpl}
-<a href="index.php">Back to main page</a>
-<div id="main_center">
+ <div id="nav">
+ <a href="index.php" title="Back to the dashboard">Dashboard</a> > Jobs list
+ </div>
+
+ <div id="main_center">
+
+ <!-- Last jobs -->
<div class="box">
- <p class="title">Last failed jobs (limited to 10)</p>
- <table>
+ <p class="title">Jobs report</p>
+ <!-- Filter jobs -->
+ <form action="jobs.php" method="post">
+ <table border="0">
+ <tr>
+ <td class="info" width="200">
+ {$total_jobs} jobs found
+ </td>
+ <td class="info" colspan="5" style="text-align: right;">
+ Jobs / Page
+ <select name="limit">
+ <option value="20">20
+ <option value="40">40
+ <option value="60">60
+ <option value="80">80
+ <option value="100">100
+ </select>
+ </td>
+ <td class="info" width="200">
+ Job Status
+ <select name="status">
+ {foreach from=$job_status item=status_label}
+ <option value="{$status_label}" {if $smarty.post.status == $status_label}Selected{/if}>{$status_label}
+<!--
+ <option value="waiting">Waiting
+ <option value="running">Running
+ <option value="completed">Completed
+ <option value="failed">Failed
+ <option value="canceled">Canceled
+-->
+ {/foreach}
+ </select>
+ </td>
+ <td class="info" width="120">
+ <input type="submit" value="Update" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="8"> </td>
+ </tr>
+ </table>
+ </form>
+
+ <table border="0">
<tr>
- <th>Status</th>
- <th>Job ID</th>
- <th>BackupJob</th>
- <th>Start Time</th>
- <th>End Time</th>
- <th>Elapsed time</th>
- <th>Level</th>
- <th>Pool</th>
+ <td class="info">Status</td>
+ <td class="info">Job ID</td>
+ <td class="info">BackupJob</td>
+ <td class="info">Start Time</td>
+ <td class="info">End Time</td>
+ <td class="info">Elapsed time</td>
+ <td class="info">Level</td>
+ <td class="info">Bytes</td>
+ <td class="info">Files</td>
+ <td class="info">Pool</td>
</tr>
- {foreach from=$failed_jobs item=job}
+ <!-- <div class="listbox"> -->
+ {foreach from=$last_jobs item=job}
<tr>
- <td> <img width="20px" src="style/images/s_error.gif" alt=""/> </td>
- <td>{$job.JobId}</td>
- <td>{$job.job_name}</td>
- <td>{$job.StartTime}</td>
- <td>{$job.EndTime}</td>
- <td>{$job.elapsed}</td>
- <td align="center">{$job.Level}</td>
- <td>{$job.pool_name}</td>
+ <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.Job_name}</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>
</tr>
{/foreach}
</table>
+ <!-- </div> --> <!-- end div class=listbox -->
</div>
- <div class="box">
- <p class="title">Last completed jobs</p>
- bkjlajkdjaf
- </div>
+
</div>
-{include file="footer.tpl"}
\ No newline at end of file
+{include file="footer.tpl"}