<input type="hidden" name="typ" value="foretag_reklamation"> <select name="nbr"> <option>Välj antal</option> <?php for ($i = 1; $i < 31; $i++) { print "<option value=\"{$i}\">{$i}</option>"; } ?> </select> <input type="submit" name="send" value="Skicka efter nya stegräknare"> </form> <?php $reclArray = Reclamation::listByForetag($fid); if (!empty($reclArray)) { ?> <br/> <br/> <h3>Reklamationer</h3> <table class="sortable sorted"> <tr> <th class="header">Datum</th> <th class="header">Antal</th> </tr> <?php foreach ($reclArray as $key => $value) {
public function getSumReclamations() { return Reclamation::sumReclByForetag($this->id); }