| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 1 | public function tt_grid_bokföring(): string { |
|
| 38 | 1 | $datum = date("Y-m-d H:i"); |
|
| 39 | 1 | $tabelldata = $this->tt_hämta_bokföring(); |
|
| 40 | 1 | return <<< EOT |
|
| 41 | 1 | <table id="tt_bokföringstabell" class="omgångstabell"> |
|
| 42 | 1 | <caption>Senast spelade | Visa antal: <input id="tt_visa_antal_bokföringar" class="nummer_litet" type="number" value="{$this->tt->visa_antal_bokf}"></caption> |
|
| 43 | <tr class="match"> |
||
| 44 | <th>#</th> |
||
| 45 | <th>Datum</th> |
||
| 46 | <th>Omgång</th> |
||
| 47 | <th>Insats</th> |
||
| 48 | <th>Rätt</th> |
||
| 49 | <th colspan="2">Vinst</th> |
||
| 50 | </tr> |
||
| 51 | 1 | $tabelldata |
|
| 52 | </table> |
||
| 53 | <form method="post" action="/#modulflikar-TT"> |
||
| 54 | <table> |
||
| 55 | <tr class="odds"> |
||
| 56 | <td><input type="hidden" name="tt_spara_bokföring">Ny</td> |
||
| 57 | 1 | <td><input type="text" name="datum" value="$datum"></td> |
|
| 58 | 1 | <td><input type="text" size="5" name="omgång" value="{$this->tt->omgång}"></td> |
|
| 59 | 1 | <td><input type="text" size="5" name="insats" value="{$this->tt->antal_rader}"></td> |
|
| 60 | 1 | <td><button type="submit">Bokför {$this->tt->omgång}</button></td> |
|
| 61 | </tr> |
||
| 67 |