<?php if (!empty($this->sale)) { $d = date('d-m-Y'); echo '<div class="style11">'; echo '<b>Tänane päev on: </b>' . etDate($d) . '<div class="lBreak"></div>'; echo '<b>Uus müük</b><div class="lBreak"></div>'; echo '</div>'; } ?> <form name='insertSale' id='insertSale' method='post' action='<?php echo URL; ?> index/add'> <label for='chooseProduct'>Vali toode</label> <select id='chooseProduct' name='type'> <?php foreach ($this->productListVI as $k => $v) { echo '<option value="' . $v['name'] . '">' . $v['name'] . '</option>'; } ?> </select> <label for='price'>Sisesta hind:</label><input type='text' id='price' class='styledForm' size='10' name='price'>€ <br> <br> <div class="lBreak"></div> <label for='method'>Makseviis:</label> <select name='method' id='method'> <option value='cash'>Sulas</option>
if (isset($this->pastMonthResult) == '') { echo ''; } else { echo '<h4>Eelmise kuu</h4>'; countMessage($this->pastMonthResult); if (is_array($this->pastMonthResult)) { foreach ($this->pastMonthResult as $k => $v) { echo '<tr>'; echo '<td>' . $c7++ . '</td>'; echo '<td>' . etDate($v['date']) . ', ' . $v['time'] . '</td>'; echo '<td>' . $v['type'] . '</td>'; echo '<td>' . $v['price'] . '€</td>'; echo '</tr>'; } } foreach ($this->pastMonthSumResult as $key => $value) { echo '<tr>'; echo '<td><b>Kuupäev: </b>' . etDate($value['sum_date']) . '</td>'; echo '<td><b>Kaardimakse: </b>' . $value['card_payment'] . '€</td>'; echo '<td><b>Sularaha: </b>' . $value['cash_payment'] . '€</td>'; echo '<td><b>Summa kokku: </b> ' . $value['total_sum'] . '€</td>'; echo '</tr>'; } } ?> </table>