- Limited to last 10 used volumes in main dashboard
- Added last written information to the list
- Changed css class attribute in default.css
// Last 15 used volumes
$vol_list = array();
-$query = "SELECT DISTINCT Media.Volumename, Media.VolStatus, Job.JobId FROM Job ";
+$query = "SELECT DISTINCT Media.Volumename, Media.Lastwritten, Media.VolStatus, Job.JobId FROM Job ";
$query .= "LEFT JOIN JobMedia ON Job.JobId = JobMedia.JobId ";
$query .= "LEFT JOIN Media ON JobMedia.MediaId = Media.MediaId ";
$query .= "ORDER BY Job.JobId DESC ";
-$query .= "LIMIT 15 ";
+$query .= "LIMIT 10 ";
$result = $dbSql->db_link->query( $query );
.box table tr td
{
- padding: 2px;
+ padding: 3px;
font-size: 8pt;
height: 20px;
}
<tr>
<td class="tbl_header">Volume</td>
<td class="tbl_header">Status</td>
+ <td class="tbl_header">Last written</td>
<td class="tbl_header">Job Id</td>
</tr>
{foreach from=$volume_list item=vol}
<tr>
<td>{$vol.Volumename}</td>
<td>{$vol.VolStatus}</td>
+ <td>{$vol.Lastwritten}</td>
<td>{$vol.JobId}</td>
</tr>
{/foreach}