ACC SHELL
<div class="content-box" id="item128">
<!-- nadpis panelu start -->
<div class="content-box-header">
<h3 style="cursor: s-resize;">
<?php echo "Editace události - $detail->nazev" . ' ( '. datum($detail->datum). ' - ' . $detail->misto .' )' ; ?>
</h3>
</div>
<!-- nadpis panelu end -->
<!-- obsah panelu start -->
<div class="content-box-content" <?php echo $close; ?>>
<br />
<div id="fragment-1">
<br />
<form method="post" action="" name="1">
<fieldset class="column-left">
<label>Konečný výsledek zápasu</label>
<?php
$tymy = explode('-',$detail->nazev);
$skore = isset($detail->skore) ? explode(':', $detail->skore) : '0:0';
?>
<label><?php echo $tymy[0];?></label>
<input class="text-input small-input" id="skore" name="skore" type="text" value="<?php echo $skore[0]; ?>" />
<label><?php echo $tymy[1];?></label>
<input class="text-input small-input" id="skore1" name="skore1" type="text" value="<?php echo $skore[1]; ?>" />
<br /><br /><br />
<?php //NDebugger::dump($detail); ?>
<table>
<tr>
<th>Jméno hráče</th>
<th>Minuty</th>
<th>Góly</th>
<th>Červená karta</th>
<th>Žluté karty</th>
</tr>
<?php
$players = dibi::select('concat(prijmeni, " ", jmeno) jmeno, id, statistika')->from('katalog')->where('statistika=1')->fetchAll();
foreach ($players as $pl) {
echo '<tr>';
echo '<td>' . $pl->jmeno . '</td>';
$stats = dibi::select('minuty, goly, ck, zk')->from('zapis')->where('id_hrace=%i', $pl->id, ' AND id_zapasu=%i', $detail->id)->fetch();
if ($pl->statistika == 0) {
echo str_repeat('<tr></tr>', 4);
} else {
?>
<td><input class="text-input small-input" id="minuty" name="minuty[]" type="text" value="<?php echo isset($stats->minuty) ? $stats->minuty : 90; ?>" /></td>
<td><input class="text-input small-input" id="goly" name="goly[]" type="text" value="<?php echo isset($stats->goly) ? $stats->goly : 0; ?>" /></td>
<td><input class="text-input small-input" id="ck" name="ck[]" type="text" value="<?php echo isset($stats->ck) ? $stats->ck : 0; ?>" /></td>
<td><input class="text-input small-input" id="zk" name="zk[]" type="text" value="<?php echo isset($stats->zk) ? $stats->zk : 0; ?>" /></td>
<td><input class="text-input small-input" id="id_hrace" name="id_hrace[]" type="hidden" value="<?php echo isset($pl->id) ? $pl->id : 0; ?>" /></td>
<?php
}
echo '</tr>';
}
?>
</table>
</fieldset>
<div class="clear"></div><!-- End .clear -->
<input type="hidden" name="id_popisu" value="<?php echo $detail->id; ?>" />
<br /><br /><br />
<input class="button" type="submit" name="odeslat" value="Uložit" />
<input class="button" type="submit" name="odeslat_a_zavrit" value="Uložit a zavřít" />
</form>
<!-- konec panelu 1 -->
</div>
</div>
</div>
ACC SHELL 2018