<?php
// source: C:\wamp\www\bpzk2\app\AdminModule/templates/Stenata/list.latte

class Templateb5aa16d47d5fc2872ad7fbabe1598710 extends Latte\Template {
function render() {
foreach ($this->params as $__k => $__v) $$__k = $__v; unset($__k, $__v);
// prolog Latte\Macros\CoreMacros
list($_b, $_g, $_l) = $template->initialize('0c79d04c32', 'html')
;
// prolog Latte\Macros\BlockMacros
//
// block content
//
if (!function_exists($_b->blocks['content'][] = '_lba948e99739_content')) { function _lba948e99739_content($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?><h1>Štěňata</h1>
<div class="stenata">
    <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Stenata:addAktualni"), ENT_COMPAT) ?>
">Přidat aktuální vrh</a> <br>
    <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Stenata:addOcekavany"), ENT_COMPAT) ?>
">Přidat očekávaný vrh</a> <br>
    <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Stenata:addPlan"), ENT_COMPAT) ?>
">Přidat chovatelský plán</a> <br>
    <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Stenata:archivVrhu"), ENT_COMPAT) ?>
">Archiv vrhů</a> 

    <h3>Aktuální vrhy:</h3>
    <table>
        <tr><th>Chovatelská stanice</th><th>Spojení</th><th>Datum vrhu</th><th class="pocstenat">Počet štěňat (psi + fenky)</th><th>Kontakt</th></tr>
<?php $iterations = 0; foreach ($aktualni as $akt) { ?>
            <tr><td><?php if ($akt->www !=null) { ?><a href="http://<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($akt->www), ENT_COMPAT) ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($akt->stanice, ENT_NOQUOTES) ?></a> <?php } else { ?>
 <?php echo Latte\Runtime\Filters::escapeHtml($akt->stanice, ENT_NOQUOTES) ?> <?php } ?></td>
                <td><?php echo Latte\Runtime\Filters::escapeHtml($akt->otec, ENT_NOQUOTES) ?>
<br><?php echo Latte\Runtime\Filters::escapeHtml($akt->matka, ENT_NOQUOTES) ?></td><td><?php echo Latte\Runtime\Filters::escapeHtml($akt->datum_vrhu, ENT_NOQUOTES) ?>
</td><td><?php echo Latte\Runtime\Filters::escapeHtml($akt->pocet_stenat, ENT_NOQUOTES) ?></td>
                <td><?php echo $akt->kontakt ?></td>
                <td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Stenata:editAktualni", array($akt->id)), ENT_COMPAT) ?>
">Upravit</a></td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("archivovatVrh!", array($akt->id)), ENT_COMPAT) ?>
">Archivovat</a></td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("deleteVrh!", array($akt->id)), ENT_COMPAT) ?>
">Smazat</a></td>
            </tr>
<?php $iterations++; } ?>
    </table>

    <h3>Očekávané vrhy:</h3>
    <table>
        <tr><th>Chovatelská stanice</th><th>Spojení</th><th>Očekávané datum vrhu</th><th>Kontakt</th></tr>
<?php $iterations = 0; foreach ($ocekavane as $ocek) { ?>
            <tr><td><?php if ($ocek->www !=null) { ?><a href="http://<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($ocek->www), ENT_COMPAT) ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($ocek->stanice, ENT_NOQUOTES) ?></a> <?php } else { ?>
 <?php echo Latte\Runtime\Filters::escapeHtml($ocek->stanice, ENT_NOQUOTES) ?> <?php } ?></td>
                <td><?php echo Latte\Runtime\Filters::escapeHtml($ocek->otec, ENT_NOQUOTES) ?>
<br><?php echo Latte\Runtime\Filters::escapeHtml($ocek->matka, ENT_NOQUOTES) ?></td><td><?php echo Latte\Runtime\Filters::escapeHtml($ocek->datum_vrhu, ENT_NOQUOTES) ?></td>
                <td>
                    <?php echo $ocek->kontakt ?>

                </td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Stenata:editOcekavany", array($ocek->id)), ENT_COMPAT) ?>
">Upravit</a></td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("pridatDoAktualnich!", array($ocek->id)), ENT_COMPAT) ?>
">Přesunout do aktuálních</a></td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("deleteVrh!", array($ocek->id)), ENT_COMPAT) ?>
">Smazat</a></td></tr>
<?php $iterations++; } ?>
    </table>

    <h3>Chovatelské plány:</h3>
    <table>
        <tr><th>Chovatelská stanice</th><th>Kontakt</th></tr>
<?php $iterations = 0; foreach ($plany as $ocek) { ?>
            <tr><td><?php if ($ocek->www !=null) { ?><a href="http://<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($ocek->www), ENT_COMPAT) ?>
"><?php echo Latte\Runtime\Filters::escapeHtml($ocek->stanice, ENT_NOQUOTES) ?></a> <?php } else { ?>
 <?php echo Latte\Runtime\Filters::escapeHtml($ocek->stanice, ENT_NOQUOTES) ?> <?php } ?></td>

                <td>
                    <?php echo $ocek->kontakt ?>

                </td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Stenata:editPlan", array($ocek->id)), ENT_COMPAT) ?>
">Upravit</a></td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("vytvorAktualni!", array($ocek->stanice,$ocek->www,$ocek->kontakt)), ENT_COMPAT) ?>
">Vytvořit aktuální</a></td>
                <td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("vytvorOcekavany!", array($ocek->stanice,$ocek->www,$ocek->kontakt)), ENT_COMPAT) ?>
">Vytvořit očekávaný</a></td><td class="noborder"><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("deleteVrh!", array($ocek->id)), ENT_COMPAT) ?>
">Smazat</a></td></tr>
<?php $iterations++; } ?>
    </table>
</div> 
<?php
}}

//
// block breadcrumb
//
if (!function_exists($_b->blocks['breadcrumb'][] = '_lb5c96694f84_breadcrumb')) { function _lb5c96694f84_breadcrumb($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?>&nbsp;&nbsp; > &nbsp;&nbsp; Chovní psi  &nbsp;&nbsp; > &nbsp;&nbsp; Štěňata
<?php
}}

//
// end of blocks
//

// template extending

$_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE;

if ($_l->extends) { ob_start();}

// prolog Nette\Bridges\ApplicationLatte\UIMacros

// snippets support
if (empty($_l->extends) && !empty($_control->snippetMode)) {
	return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars());
}

//
// main template
//
if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); }
call_user_func(reset($_b->blocks['content']), $_b, get_defined_vars())  ?>

<?php call_user_func(reset($_b->blocks['breadcrumb']), $_b, get_defined_vars()) ; 
}}