} ?> </tbody> </table> <?php } ?> <h3>List (Completed)</h3> <table> <thead> <tr><th>Document Number</th><th>Document Date</th><th>Issuer and Receiver</th><th style="width: 100px;">Status</th></tr> </thead> <tbody> <?php try { $productionEntries = Production_issue::findByStatus('completed', 10); foreach ($productionEntries as $productionEntry) { echo "<tr class=\"linkable\"><td class=\"docNumber\">" . $productionEntry->prepareDocNumber() . "</td>"; echo "<td>" . $productionEntry->prepareDocDate("j F Y") . "</td>"; echo "<td>" . $productionEntry->prepareIssuer() . "</td>"; echo "<td>" . $productionEntry->prepareStatus() . "</td></tr>"; } } catch (fExpectedException $e) { echo $e->printMessage(); } ?> </tbody> </table> </div> <?php $tmpl->place('footer');