<?php
session_start();
include "classes/html.class.php";

$html = new html("REPORTS");
$db = new db();

$monthly_reports = $db->query("SELECT DISTINCT `date` FROM `monthly_jobcard_assets_totals` WHERE 1 ORDER BY record_id DESC");

?>
<br>
<br>
<div class="center_3col">
<?php

while($monthly_report = $monthly_reports->fetch_assoc()) {
    $date = $monthly_report["date"];

    $html->block("monthly_asset_report.pdf.php?curr_date=$date", "$date");
}

?>
</div>