Current Path : /data/web/virtuals/51568/virtual/www/subdom/srps/src/runtime/latte/ |
Current File : /data/web/virtuals/51568/virtual/www/subdom/srps/src/runtime/latte/src-views-xmlPolozky.latte--5c9579ac30.php |
<?php use Latte\Runtime as LR; /** source: /data/web/virtuals/51568/virtual/www/subdom/srps/src/views/xmlPolozky.latte */ final class Template5c9579ac30 extends Latte\Runtime\Template { public function main(): array { extract($this->params); echo '<table id="table-polozkyvypisu" class="table table-striped table-bordered w-100" data-idvypis="'; echo LR\Filters::escapeHtmlAttr($idvypis) /* line 1 */; echo '"> <thead class="sticky-top top-0 "> <tr> <th class="table-primary">částka</th> <th class="table-primary">jméno účtu</th> <th class="table-primary">zpráva</th> <th class="table-primary">VS</th> <th class="table-success">RČ - žáci</th> <th class="table-primary">editace</th> </tr> </thead> '; $iterations = 0; foreach ($pohyby as $pohyb) /* line 14 */ { echo ' <tr> <td class="text-end pe-3">'; echo LR\Filters::escapeHtmlText(($this->filters->number)($pohyb->castka, 2, ',', ' ')) /* line 16 */; echo '</td> <td class="pe-3">'; echo LR\Filters::escapeHtmlText($pohyb->jmenoplatce) /* line 18 */; echo '</td> <td class="pe-3">'; echo LR\Filters::escapeHtmlText($pohyb->zprava) /* line 19 */; echo '</td> <td class="text-end pe-3 '; if (!$pohyb->rodne_cislo) /* line 20 */ { echo ' table-danger '; } echo '">'; echo LR\Filters::escapeHtmlText($pohyb->VS) /* line 20 */; echo '</td> <td class="pe-3 '; if (($pohyb->rodne_cislo !== $pohyb->VS) && $pohyb->rodne_cislo) /* line 21 */ { echo ' table-warning'; } echo '">'; echo LR\Filters::escapeHtmlText($pohyb->rodne_cislo) /* line 21 */; echo '</td> <td class="text-center" style="padding-top: 3px; padding-bottom: 3px;"> '; if (!$pohyb->rodne_cislo) /* line 23 */ { echo ' <button id="xml-btn-sparuj-'; echo LR\Filters::escapeHtmlAttr($pohyb->id) /* line 24 */; echo '-0" class="btn btn-primary btn-sm rounded-0">Spáruj</button> '; } else /* line 25 */ { echo ' <button id="xml-btn-edit-'; echo LR\Filters::escapeHtmlAttr($pohyb->id) /* line 26 */; echo '-'; echo LR\Filters::escapeHtmlAttr($pohyb->idzaci) /* line 26 */; echo '" class="btn btn-outline-secondary btn-sm rounded-0">Změň</button> '; } echo ' </td> </tr> '; $iterations++; } echo '</table> <script> $("[id^=xml-btn]").on(\'click\', function() { let polozka = $(this).attr(\'id\').split(\'-\'), data = { akce: polozka[2], idpolozky: polozka[3], idzakabyl: polozka[4], idakce: $("#content-vypisy").data("idakce"), //idvypis: $("#table-polozkyvypisu").data("idvypis"), } //console.table(data) $.ajax({ url: "/vypisy-sparovat-dlg", type: \'get\', data: { \'data\': JSON.stringify(data) }, success: function(result) { $("#vypisy-dlg").html(result); $("#vypisy-sparovat-dlg").modal(\'show\'); }, }); }) </script>'; return get_defined_vars(); } public function prepare(): void { extract($this->params); if (!$this->getReferringTemplate() || $this->getReferenceType() === "extends") { foreach (array_intersect_key(['pohyb' => '14'], $this->params) as $ʟ_v => $ʟ_l) { trigger_error("Variable \$$ʟ_v overwritten in foreach on line $ʟ_l"); } } } }