12345678910111213141516171819202122 |
- {% extends "base.html.twig" %} {% block main %}
- <a href="/orders/' . $args['client'] . '/create">Create order</a>'
- <h1>ORDERS LIST FOR CLIENT . $a['firstname'] . . $a['lastname'] .</h1>
- <hr />
- <table>
- " else // alle klanten
- <h1>ORDERS LIST FOR ALL CLIENTS</h1>
- <hr />
- <table></table>
- </table>
-
- while ($row = $res->fetchArray(SQLITE3_ASSOC)) {
- // maak hier een deftige tabel van
- <tr><td> . <a href=\"/order/" . $row['id'] . "\"> . $row["reference"] . </a> . $row['subtotal'] . . $row['vat'] . . $row['total'] . </td></tr>
- }
-
- </table>
- <hr/>
-
- <a href="/customers">Back to customer list</a> <a href="/orders">Back to order list</a>
-
- {% endblock %}
|