{include file=header.tpl}

<div id="nav">
  <a href="index.php" title="{t}Back to the dashboard{/t}">{t}Dashboard{/t}</a> > Jobs list
</div>

<div id="main_center">
  
  <!-- Last jobs -->  
  <div class="box">
	<p class="title">{t}Jobs report{/t}</p>
	<!-- Filter jobs -->
	<h4>Filter jobs</h4>
	<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" width="160">
			{t}Jobs / Page{/t}
			{html_options name=jobs_per_page options=$jobs_per_page selected=$jobs_per_page_selected onChange="submit();"}
		</td>
		<td class="info" width="160">
			{t}Job status{/t}
			{html_options name=status values=$job_status options=$job_status selected=$job_status_filter onChange="submit();"}
		</td>
	  </tr>
	</table>
	</form>
	
	<h4>Jobs result</h4>
	<table border="0">
	  <tr>
		<td class="tbl_header">{t}Status{/t}</td>
		<td class="tbl_header">{t}Job ID{/t}</td>
		<td class="tbl_header">{t}Name{/t}</td>
		<td class="tbl_header">{t}Type{/t}</td>
		<td class="tbl_header">{t}Start Time{/t}</td>
		<td class="tbl_header">{t}End Time{/t}</td>
		<td class="tbl_header">{t}Elapsed time{/t}</td>
		<td class="tbl_header">{t}Level{/t}</td>
		<td class="tbl_header">{t}Bytes{/t}</td>
		<td class="tbl_header">{t}Files{/t}</td>
		<td class="tbl_header">{t}Pool{/t}</td>
	  </tr>
	<!-- <div class="listbox"> -->
	  {foreach from=$last_jobs item=job}
	  <tr>
		<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}">
			<a href="backupjob-report.php?backupjob_name={$job.job_name}">{$job.job_name}</a>
		</td>
		<td class="{$job.Job_classe}">{$job.type}</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>

{include file="footer.tpl"}
