function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('371b8f6e14', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbc66ea69680_content')) {
            function _lbc66ea69680_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<h1>Nový příspěvek</h1>

<?php 
                $_l->tmp = $_control->getComponent("postForm");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>

<?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
        //
        ?>

<?php 
        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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('13aafea9de', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block footer
        //
        if (!function_exists($_b->blocks['footer'][] = '_lb7d6a6c2ffa_footer')) {
            function _lb7d6a6c2ffa_footer($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="footer">        
    <div class="row zero_margin">
        <p class="text-center">Copyright © 2016 | Jan Vencel</p>
    </div>
</div>  

<?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
        //
        ?>

<?php 
        if ($_l->extends) {
            ob_end_clean();
            return $template->renderChildTemplate($_l->extends, get_defined_vars());
        }
        call_user_func(reset($_b->blocks['footer']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('ffd722e94f', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbe048e04e45_content')) {
            function _lbe048e04e45_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<div class="alert alert-danger alert-dismissible" role="alert">	
	    <span class="sr-only">Error:</span>
	    <h2 class="text-center"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> Nesprávne meno alebo heslo! <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:prihlasenie"), ENT_COMPAT);
                ?>
">Späť na prihlásenie</a></h2>
	</div>
<?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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('2111bb0158', 'html');
        // 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
        //
        ?>
<link rel="stylesheet" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/css/frontend.css">
<div class="content_box">
<?php 
        $_l->tmp = $_control->getComponent("registrationForm");
        if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
            $_l->tmp->redrawControl(NULL, FALSE);
        }
        $_l->tmp->render();
        ?>
	<a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Front:Auth:registration"), ENT_COMPAT);
        ?>
">Registrácia</a>
</div>
<?php 
        $iterations = 0;
        foreach ($flashes as $flash) {
            ?>
<div class="flash <?php 
            echo Latte\Runtime\Filters::escapeHtml($flash->type, ENT_COMPAT);
            ?>
"><?php 
            echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES);
            ?>
</div><?php 
            $iterations++;
        }
    }
 function render()
 {
     foreach ($this->params as $__k => $__v) {
         ${$__k} = $__v;
     }
     unset($__k, $__v);
     // prolog Latte\Macros\CoreMacros
     list($_b, $_g, $_l) = $template->initialize('0c3f416faa', 'html');
     // 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
     //
 }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('d17bc2447d', 'html');
        // 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
        //
        ?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Ololoď – potvrzení rezervace</title>
</head>
<body>
	<h2>Rezervace na plavbu <?php 
        echo Latte\Runtime\Filters::escapeHtml($date, ENT_NOQUOTES);
        ?>
 v <?php 
        echo Latte\Runtime\Filters::escapeHtml($time, ENT_NOQUOTES);
        ?>
</h2>
	<p>Přihlásili jste se na plavbu na Ololoďi. Pro potvrzení vaší rezervace prosím klikněte na tento odkaz:</p>
	<p><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($conf_url), ENT_COMPAT);
        ?>
" target="_blank"><?php 
        echo Latte\Runtime\Filters::escapeHtml($conf_url, ENT_NOQUOTES);
        ?>
</a></p>
	<p>Pokud o tuto plavbu nemáte již zájem nebo tento email nepatří vám, rezervaci prosím nepotvrzujte.</p>
	<b>Ololoď – plavby Olomouc</b><br>
	<a href="http://plavbyolomouc.cz" target="_blank">http://plavbyolomouc.cz</a><br>
</body>
</html><?php 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('361b2d137b', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbdfa5afb3d6_content')) {
            function _lbdfa5afb3d6_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="times_head" >
    <div class="container">    
        <div id="navigation" class="row">
<?php 
                if (count($flashes) !== 0) {
                    $iterations = 0;
                    foreach ($flashes as $flash) {
                        ?>
            <div<?php 
                        if ($_l->tmp = array_filter(array('flash', $flash->type, 'zero-padding'))) {
                            echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"';
                        }
                        ?>
>
                <strong>
                    <i><p style="padding-left:0px;" class="container">
                            <?php 
                        if ($flash->type === 'success') {
                            ?>
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'error') {
                            ?>
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'warning') {
                            ?>
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'info') {
                            ?>
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                                <?php 
                        echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES);
                        ?>

                        </p>
                    </i>
                </strong>
            </div>
<?php 
                        $iterations++;
                    }
                } else {
                    ?>
            <div class="col-xs-8 col-md-8 zero_padding">
                <p><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT);
                    ?>
">Úvodní stránka</a><span> ❯ </span>Časy</p>
            </div>
<?php 
                    if ($user->loggedIn) {
                        ?>
                <div id="prihlasen" class="">           
                    <p>Přihlášen: <strong><?php 
                        echo Latte\Runtime\Filters::escapeHtml($user->getIdentity()->username, ENT_NOQUOTES);
                        ?>
</strong></p>
                </div>                
<?php 
                    } else {
                        ?>
                <div id="neprihlasen" class="">           
                    <p>Nepřihlášen</p>
                </div>
<?php 
                    }
                }
                ?>
            
        </div>    
    </div>
    <div id="times_h2" class="row">
       <div class="col-md-12 text-center">
<?php 
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
       </div>
    </div> 
</div>  

<div id="times_content" class="container-fluid"> 
  <div class="container">   
  <div id="selectingOptionForm">
    <form class="form-inline"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["selectingOptionForm"], array('class' => NULL), FALSE);
                ?>
>        
            <div id="select-sort_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
                <div class="panel-heading main-panel_heading do_borders">
                    <h3 class="panel-title font18">
                        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#select-sort_panel" href="#select-sort_panel_collapse" aria-expanded="false" aria-controls="collapseOne">
                            Možnosti výběru a třídění dat
                        </a>
                    </h3>
                </div>
                <div id="select-sort_panel_collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                <div class="panel-body">
                    <div class="col-md-6">
                        <div class="panel panel-default">
                            <div class="panel-heading ">
                                <h3 class="panel-title">Výběrová kritéria</h3>                           
                            </div>                      
                            <div class="panel-body">
                                <div><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op0');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op0']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value0" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel0" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel0');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel0']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date0" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 

                                <div id="select1"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op1');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op1']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value1" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel1" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel1');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel1']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date1" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 

                                <div id="select2"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op2');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op2']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value2" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel2" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel2');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel2']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date2" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 

                                <div id="select3"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op3');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op3']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value3" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel3" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel3');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel3']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date3" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 

                                <div id="select4"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col4"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op4');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op4']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value4" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value4"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel4" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel4');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel4']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date4" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date4"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 

                                <div id="select5"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col5"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op5');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op5']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value5" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value5"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel5" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel5');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel5']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date5" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date5"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 
                                
                                <div id="select6"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col6"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op6');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op6']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value6" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value6"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel6" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel6');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel6']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date6" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date6"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 

                                <div id="select7"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col7"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op7');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op7']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value7" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value7"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel7" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel7');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel7']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date7" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date7"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 

                                <div id="select8"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col8"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op8');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op8']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value8" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value8"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel8" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel8');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel8']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date8" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date8"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 
                                
                                <p id="select_alert" class="hidden">Toto je maximální počet</p>
                                <a id="btn_add_select" class="btn btn-xs col-md-offset-11 col-md-1" data-toggle="tooltip" data-placement="top" title="Přidat další">
                                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">Třídící kritéria</h4>                           
                            </div>
                            <div class="panel-body">
                                <div><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col9"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord9"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort1"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col10"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord10"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort2"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col11"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord11"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort3"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col12"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord12"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div> 
                                
                                <div id="sort4"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col13"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord13"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div> 

                                <div id="sort5"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col14"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord14"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort6"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col15"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord15"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort7"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col16"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord16"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>  

                                <p id="sort_alert" class="hidden">Toto je maximální počet</p>
                                <a id="btn_add_sort" class="btn btn-xs col-md-offset-11 col-md-1" data-toggle="tooltip" data-placement="top" title="Přidat další">
                                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
                            </div>    
                        </div>
                    </div>
                    <div class="row zero_margin" >
                        <div class="col-md-12">
                           
                               <div class="col-md-offset-7 col-md-3 form-group zero_padding">Max. počet načtených řádků <select class="form-control"<?php 
                $_input = $_form["result_max"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                               <button type="submit" id="apply" class="ajax btn btn-default col-md-offset-1 col-md-1"<?php 
                $_input = $_form["show"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'id' => NULL, 'class' => NULL))->attributes();
                ?>
>Aplikovat</button>   
                          
                       </div>
                   </div>
                </div>
                </div>
            </div>
<div id="<?php 
                echo $_control->getSnippetId('SelectingOption_tab');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_SelectingOption_tab']), $_b, $template->getParameters());
                ?>
</div>            <div id="export_panel" class="panel panel-default col-md-12 zero_padding bottom15px">
                <div class="panel-heading main-panel_heading do_borders">
                    <h3 class="panel-title font18">
                        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#export_panel" href="#export_panel_collapse" aria-expanded="false" aria-controls="collapseOne">
                            Možnosti exportu dat
                        </a>
                    </h3>
                </div>
                <div id="export_panel_collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                <div class="panel-body">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div id="export_panel_csv" class="panel-body">
                                <div class="col-md-2 zero_padding"><h4 class="font16">Export do CSV</h4></div>
                                <div class="col-md-10 zero_padding" >
                                    <div id="export_csv_box_content" class="col-md-12">
                                        <div class="col-md-offset-5 col-md-6 zero_padding">
                                            <div id="checkbox_col_head" class="checkbox col-md-offset-8 col-md-4"><label><input id="input_col_head" type="checkbox"<?php 
                $_input = $_form["head"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>S hlavičkou</label></div>
                                        </div>                           
                                        <button id="export_csv_button" type="submit" class="btn btn-sm col-md-1"<?php 
                $_input = $_form["exp_csv"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL))->attributes();
                ?>
>Stáhnout</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel panel-default zero_margin">
                            <div id="export_panel_pdf" class="panel-body">
                                <div class="col-md-2 zero_padding"><h4 class="font16">Export do PDF</h4></div>
                                <div class="col-md-10 zero_padding" >
                                    <div id="export_pdf_box_content" class="col-md-12">
                                        <div class=" col-md-11 zero_padding">
                                            <div id="time_checkbox_col_zahrnout" class="col-md-2"><label>Zahrnout:</label></div>
                                            <div id="time_checkbox_col_surname" class="checkbox "><label><input id="input_col_surname" type="checkbox"<?php 
                $_input = $_form["time_col_surname"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
><span>Příjmení</span></label></div>
                                            <div id="time_checkbox_col_firstname" class="checkbox "><label><input id="input_col_firstname" type="checkbox"<?php 
                $_input = $_form["time_col_firstname"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Jméno</label></div>
                                            <div id="time_checkbox_col_stroke" class="checkbox "><label><input id="input_col_stroke" type="checkbox"<?php 
                $_input = $_form["time_col_stroke"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Styl</label></div>
                                            <div id="time_checkbox_col_rank" class="checkbox "><label><input id="input_col_rank" type="checkbox"<?php 
                $_input = $_form["time_col_rank"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Umístění</label></div>
                                            <div id="time_checkbox_col_time" class="checkbox "><label><input id="input_col_time" type="checkbox"<?php 
                $_input = $_form["time_col_time"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Čas</label></div>
                                            <div id="time_checkbox_col_point" class="checkbox "><label><input id="input_col_point" type="checkbox"<?php 
                $_input = $_form["time_col_point"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Body</label></div>
                                            <div id="time_checkbox_col_date" class="checkbox "><label><input id="input_col_date" type="checkbox"<?php 
                $_input = $_form["time_col_date"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Datum</label></div>
                                            <div id="time_checkbox_col_event" class="checkbox "><label><input id="input_col_event" type="checkbox"<?php 
                $_input = $_form["time_col_event"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Závod</label></div>
                                        </div>  
                                        <button id="export_pdf_button" type="submit" class="btn btn-sm  col-md-1"<?php 
                $_input = $_form["exp_pdf"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL))->attributes();
                ?>
>Náhled</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
            </div>       
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
  </div>
 </div>                              
</div>   
                                
<div class="modal fade" id="signin_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-sm" role="document">
    <form class="form-horizontal"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["signInForm"], array('class' => NULL), FALSE);
                ?>
>  
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">Přihlásit se</h4>
        </div>
        <div class="modal-body">
            <div id="user-name_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Uživatelské jméno</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="text" class="form-control"<?php 
                $_input = $_form["username"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                </div>
            </div>
                
            <div id="password_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Heslo</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="password" class="form-control"<?php 
                $_input = $_form["password"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                 </div>
            </div>
            
            <div id="signin_remember" class=" checkbox zero_padding">
                <label><input type="checkbox"<?php 
                $_input = $_form["remember"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL))->attributes();
                ?>
>Pamatuj si mě</label>
                <span class="glyphicon glyphicon-info-sign font16" data-toggle="tooltip" data-placement="top" title="Nezaškrtnuto - odhlášení po 20 minutách nebo uzavření prohlížeče. Zašktnuto - odhlášení za 14 dnů" aria-hidden="true"></span>
            </div>
                               
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button> 
        <button type="submit" class="btn btn-primary"<?php 
                $_input = $_form["signin"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>Přihlásit</button>
      </div>
    </div>
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>    
  </div>
</div> 
            
<script>
<?php 
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col0', array('input' => 'col0', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col1', array('input' => 'col1', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col2', array('input' => 'col2', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col3', array('input' => 'col3', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col4', array('input' => 'col4', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col5', array('input' => 'col5', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col6', array('input' => 'col6', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col7', array('input' => 'col7', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col8', array('input' => 'col8', 'link' => 'firstChange') + $template->getParameters());
                ?>
</script>



<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lb89cd99d8e3_title')) {
            function _lb89cd99d8e3_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
          <h2>Přehled časů</h2>
<?php 
            }
        }
        //
        // block _snippet_op0
        //
        if (!function_exists($_b->blocks['_snippet_op0'][] = '_lbf21e852051__snippet_op0')) {
            function _lbf21e852051__snippet_op0($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op0', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel0
        //
        if (!function_exists($_b->blocks['_snippet_sel0'][] = '_lb25eb9d9bf2__snippet_sel0')) {
            function _lb25eb9d9bf2__snippet_sel0($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel0', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op1
        //
        if (!function_exists($_b->blocks['_snippet_op1'][] = '_lbd1979e8a59__snippet_op1')) {
            function _lbd1979e8a59__snippet_op1($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op1', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel1
        //
        if (!function_exists($_b->blocks['_snippet_sel1'][] = '_lb717fe2b298__snippet_sel1')) {
            function _lb717fe2b298__snippet_sel1($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel1', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op2
        //
        if (!function_exists($_b->blocks['_snippet_op2'][] = '_lb6ec48c5395__snippet_op2')) {
            function _lb6ec48c5395__snippet_op2($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op2', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel2
        //
        if (!function_exists($_b->blocks['_snippet_sel2'][] = '_lb00efaf0e46__snippet_sel2')) {
            function _lb00efaf0e46__snippet_sel2($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel2', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op3
        //
        if (!function_exists($_b->blocks['_snippet_op3'][] = '_lbc79cb6a22f__snippet_op3')) {
            function _lbc79cb6a22f__snippet_op3($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op3', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel3
        //
        if (!function_exists($_b->blocks['_snippet_sel3'][] = '_lbfebc893cec__snippet_sel3')) {
            function _lbfebc893cec__snippet_sel3($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel3', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op4
        //
        if (!function_exists($_b->blocks['_snippet_op4'][] = '_lb3dfbf74c2e__snippet_op4')) {
            function _lb3dfbf74c2e__snippet_op4($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op4', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator4"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel4
        //
        if (!function_exists($_b->blocks['_snippet_sel4'][] = '_lb4102a0ed60__snippet_sel4')) {
            function _lb4102a0ed60__snippet_sel4($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel4', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel4"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op5
        //
        if (!function_exists($_b->blocks['_snippet_op5'][] = '_lb0bcea39302__snippet_op5')) {
            function _lb0bcea39302__snippet_op5($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op5', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator5"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel5
        //
        if (!function_exists($_b->blocks['_snippet_sel5'][] = '_lbb20beb99cc__snippet_sel5')) {
            function _lbb20beb99cc__snippet_sel5($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel5', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel5"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op6
        //
        if (!function_exists($_b->blocks['_snippet_op6'][] = '_lbc96148dc20__snippet_op6')) {
            function _lbc96148dc20__snippet_op6($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op6', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator6"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel6
        //
        if (!function_exists($_b->blocks['_snippet_sel6'][] = '_lbd6b60b2731__snippet_sel6')) {
            function _lbd6b60b2731__snippet_sel6($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel6', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel6"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op7
        //
        if (!function_exists($_b->blocks['_snippet_op7'][] = '_lbb1f631bb27__snippet_op7')) {
            function _lbb1f631bb27__snippet_op7($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op7', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator7"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel7
        //
        if (!function_exists($_b->blocks['_snippet_sel7'][] = '_lb113a7ae772__snippet_sel7')) {
            function _lb113a7ae772__snippet_sel7($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel7', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel7"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op8
        //
        if (!function_exists($_b->blocks['_snippet_op8'][] = '_lbde0c89408d__snippet_op8')) {
            function _lbde0c89408d__snippet_op8($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op8', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator8"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel8
        //
        if (!function_exists($_b->blocks['_snippet_sel8'][] = '_lbde6ac4f8e6__snippet_sel8')) {
            function _lbde6ac4f8e6__snippet_sel8($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel8', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel8"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _SelectingOption_tab
        //
        if (!function_exists($_b->blocks['_SelectingOption_tab'][] = '_lb20160d2b2c__SelectingOption_tab')) {
            function _lb20160d2b2c__SelectingOption_tab($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('SelectingOption_tab', FALSE);
                ?>
            <div id="table_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
                <div class="panel-heading main-panel_heading">
                    <h3 class="panel-title font18">Výpis tabulky časů</h3>
                </div>
                <div class="panel-body">
                    <div id="times_tab">
                        <div id="times_tab_head">    
                            <div class="row">
                               <div class="col-md-12">
                                  <table class="table"> 
                                            <tr>
                                              <td id="times_tab_head_surname"><span><strong>Příjmení</strong></span></td> 
                                              <td id="times_tab_head_firstname"><span><strong>Jméno</strong></span></td>
                                              <td id="times_tab_head_stroke"><span><strong>Styl</strong></span></td>
                                              <td id="times_tab_head_rank"><span><strong>Umístění</strong></span></td> 
                                              <td id="times_tab_head_time"><span><strong>Čas</strong></span></td>                                
                                              <td id="times_tab_head_point"><span><strong>Body</strong></span></td>
                                              <td id="times_tab_head_date"><span><strong>Datum</strong></span></td>
                                              <td id="times_tab_head_event"><span><strong>Závod</strong></span></td>
                                            </tr>   
                                  </table>
                               </div>
                            </div> 
                        </div>        
                        <div class="row zero_margin">        
                            <div id="times_tab_content" class="col-md-12 bottom7px">
<div id="<?php 
                echo $_control->getSnippetId('load_next');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_load_next']), $_b, $template->getParameters());
                ?>
</div>                            </div>                        
                        </div>
                         <div id="times_tab-info_panel" class="panel panel-default">
                                <div class="panel-body">
                                   <div class="col-md-4 zero_padding"><p class="zero_margin">Počet všech záznamů v tabulce: <strong><?php 
                echo Latte\Runtime\Filters::escapeHtml($times_all_rowcount, ENT_NOQUOTES);
                ?>
</strong></p></div>
                                  <?php 
                if (isset($times_select)) {
                    ?>
<div class="col-md-8 zero_padding"><p class="zero_margin">Počet vybraných záznamů: <strong><?php 
                    echo Latte\Runtime\Filters::escapeHtml($times_select->getRowCount(), ENT_NOQUOTES);
                    ?>
</strong></p></div><?php 
                }
                ?>

                                </div>
                            </div>      
                    </div>
                </div>
            </div>
<?php 
            }
        }
        //
        // block _load_next
        //
        if (!function_exists($_b->blocks['_load_next'][] = '_lb08dd0eea49__load_next')) {
            function _lb08dd0eea49__load_next($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('load_next', FALSE);
                ?>
                                <table class="table table-bordered">
                                    <tr id="alt_tab_head">
                                              <td><span><strong>Příjmení</strong></span></td> 
                                              <td><span><strong>Jméno</strong></span></td>
                                              <td><span><strong>Styl</strong></span></td>
                                              <td><span><strong>Umístění</strong></span></td> 
                                              <td><span><strong>Čas</strong></span></td>                                
                                              <td><span><strong>Body</strong></span></td>
                                              <td><span><strong>Datum</strong></span></td>
                                              <td id="tab_head_name"><span><strong>Závod</strong></span></td>
                                    </tr> 
<?php 
                if (isset($times_select)) {
                    if ($times_select->getRowCount() > 0) {
                        $iterations = 0;
                        foreach ($times_select as $i => $time_select) {
                            ?>
                                                <tr id="<?php 
                            echo Latte\Runtime\Filters::escapeHtml($i, ENT_COMPAT);
                            ?>
">
                                                  <td id="times_tab_surname"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_select->surname, ENT_NOQUOTES);
                            ?>
</td> 
                                                  <td id="times_tab_firstname"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_select->firstname, ENT_NOQUOTES);
                            ?>
</td>                                     
                                                  <td id="times_tab_stroke"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_select->id_stroke, ENT_NOQUOTES);
                            ?>
</td>
                                                  <td id="times_tab_rank"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_select->rank, ENT_NOQUOTES);
                            ?>
</td>
                                                  <td id="times_tab_time"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_select->time, ENT_NOQUOTES);
                            ?>
</td>                                     
                                                  <td id="times_tab_point"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_select->point, ENT_NOQUOTES);
                            ?>
</td>
                                                  <td id="times_tab_date"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($template->date($time_select->date, 'j.n.Y'), ENT_NOQUOTES);
                            ?>
</td> 
                                                  <td id="times_tab_event"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_select->name, ENT_NOQUOTES);
                            ?>
</td>
                                                </tr>  
<?php 
                            $iterations++;
                        }
                    } else {
                        ?>
                                            <tr><td class="col-md-6 text-center">Zadaným kritériím neodpovídá žádný záznam v tabulce</td></tr>
<?php 
                    }
                } else {
                    if (isset($times_next)) {
                        $iterations = 0;
                        foreach ($times_next as $row_num => $time_next) {
                            ?>
                                            <tr id="<?php 
                            echo Latte\Runtime\Filters::escapeHtml($row_num, ENT_COMPAT);
                            ?>
">
                                              <td id="times_tab_surname"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_next->surname, ENT_NOQUOTES);
                            ?>
</td> 
                                              <td id="times_tab_firstname"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_next->firstname, ENT_NOQUOTES);
                            ?>
</td>                                     
                                              <td id="times_tab_stroke"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_next->id_stroke, ENT_NOQUOTES);
                            ?>
</td>
                                              <td id="times_tab_rank"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_next->rank, ENT_NOQUOTES);
                            ?>
</td>
                                              <td id="times_tab_time"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_next->time, ENT_NOQUOTES);
                            ?>
</td>                                 
                                              <td id="times_tab_point"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_next->point, ENT_NOQUOTES);
                            ?>
</td>
                                              <td id="times_tab_date"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($template->date($time_next->date, 'j.n.Y'), ENT_NOQUOTES);
                            ?>
</td> 
                                              <td id="times_tab_event"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_next->name, ENT_NOQUOTES);
                            ?>
</td>
                                            </tr>          
<?php 
                            $iterations++;
                        }
                        ?>
                                            <tr><td colspan="8" class="text-center"><a class="ajax" href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("loadNext!", array($row_num)), ENT_COMPAT);
                        ?>
">Zobrazit dalších 10 záznamů</a></td></tr>
<?php 
                    } else {
                        $iterations = 0;
                        foreach ($times_all as $row_num => $time_all) {
                            ?>
                                            <tr id="<?php 
                            echo Latte\Runtime\Filters::escapeHtml($row_num, ENT_COMPAT);
                            ?>
">
                                              <td id="times_tab_surname"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_all->surname, ENT_NOQUOTES);
                            ?>
</td> 
                                              <td id="times_tab_firstname"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_all->firstname, ENT_NOQUOTES);
                            ?>
</td>                                     
                                              <td id="times_tab_stroke"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_all->id_stroke, ENT_NOQUOTES);
                            ?>
</td>
                                              <td id="times_tab_rank"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_all->rank, ENT_NOQUOTES);
                            ?>
</td>
                                              <td id="times_tab_time"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_all->time, ENT_NOQUOTES);
                            ?>
</td>                                 
                                              <td id="times_tab_point"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_all->point, ENT_NOQUOTES);
                            ?>
</td>
                                              <td id="times_tab_date"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($template->date($time_all->date, 'j.n.Y'), ENT_NOQUOTES);
                            ?>
</td> 
                                              <td id="times_tab_event"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($time_all->name, ENT_NOQUOTES);
                            ?>
</td>
                                            </tr>          
<?php 
                            $iterations++;
                        }
                        ?>
                                            <tr><td colspan="8" class="text-center"><a class="ajax" href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("loadNext!", array($row_num)), ENT_COMPAT);
                        ?>
">Zobrazit dalších 10 záznamů</a></td></tr>
<?php 
                    }
                }
                ?>
                                </table>
<?php 
            }
        }
        //
        // block jsCallback_col0
        //
        if (!function_exists($_b->blocks['jsCallback_col0'][] = '_lbbfdf31f54d_jsCallback_col0')) {
            function _lbbfdf31f54d_jsCallback_col0($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 0,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col1
        //
        if (!function_exists($_b->blocks['jsCallback_col1'][] = '_lbc88998450d_jsCallback_col1')) {
            function _lbc88998450d_jsCallback_col1($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 1,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col2
        //
        if (!function_exists($_b->blocks['jsCallback_col2'][] = '_lb69c312f584_jsCallback_col2')) {
            function _lb69c312f584_jsCallback_col2($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 2,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col3
        //
        if (!function_exists($_b->blocks['jsCallback_col3'][] = '_lbee8b21490a_jsCallback_col3')) {
            function _lbee8b21490a_jsCallback_col3($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 3,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col4
        //
        if (!function_exists($_b->blocks['jsCallback_col4'][] = '_lb7149a0650c_jsCallback_col4')) {
            function _lb7149a0650c_jsCallback_col4($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 4,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col5
        //
        if (!function_exists($_b->blocks['jsCallback_col5'][] = '_lba251c16961_jsCallback_col5')) {
            function _lba251c16961_jsCallback_col5($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 5,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col6
        //
        if (!function_exists($_b->blocks['jsCallback_col6'][] = '_lb7c11c823aa_jsCallback_col6')) {
            function _lb7c11c823aa_jsCallback_col6($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 6,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col7
        //
        if (!function_exists($_b->blocks['jsCallback_col7'][] = '_lbbae7210e4c_jsCallback_col7')) {
            function _lbbae7210e4c_jsCallback_col7($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 7,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col8
        //
        if (!function_exists($_b->blocks['jsCallback_col8'][] = '_lb688bbe15f3_jsCallback_col8')) {
            function _lb688bbe15f3_jsCallback_col8($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 8,
        }
    });
});
<?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
        //
        ?>

<?php 
        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 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('c48ae6e543', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbc00fc491c9_content')) {
            function _lbc00fc491c9_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="banner">
<?php 
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
</div>

<div id="content">
	<h2>You have successfully created your Nette Framework project.</h2>

	<div class="boxes">
		<div>
			<h2><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH4AAAB4CAMAAAADpLanAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAt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Hh+v7LpNf/aIAOpT4dQtEq4clIhvS1A2CtWkaqQBfMqCfETJb2gI1WQTB4hBXviODim+q7btXX0OaRvAfSRonEnxPEzqsaYtSUvqCTo4/HoTra4Y0jMh/qn89Ch2PEgNkq7cZzfjMsvqX09DxeLYBXbYIjch/3le+H4KKN3g+AS/91/zjfr/PP4pCgxt4em3oKFp9mGesLMsk/4KO/+v6n/H/DQCV6b9EBK/5yAAAAABJRU5ErkJggg==" alt="">Explore<br> source<br> codes</h2>
			<p>See source code of <a href="#template">this page template</a>, <a href="#layout">layout template</a> and
			<a href="#presenter">corresponding presenter</a>. And feel free to modify them!</p>
		</div>

		<div>
			<h2><a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/adminer/"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABVCAYAAADaKbMjAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAE3RJREFUeNrsnAl0HPV9x79z7aHVuStpZVu2ZBvbso1twIEGAtgUCASatAmENH0Umr7i53CkbfJylJC06d33KI+kTR+p05QW0pCXlBIgNTZQSh/lSGzsYBtfEnYMklar1bFa7Wp35+rv/59ZaXY0u/Kx9q6Lxu/n3Zm9Zj7z/R3/339GgmmamF/OfBHnEcyDnAc5D3J+mQc5D3Ie5PtrkROJEc8XBEEoPA2TLSfT34d8JLI+stHChlJ1t1zmS+4h+wZZZF5vmCJ7lOwL9vPZwhseTri3BcmOkHWKYvU8n535Ghx1MYgryPpnKdK9r+TRHCJ77vMpVTsYVdWg6yyaCFWjxqKbI8QVRHbU5jNazrVvJ24comFYivD7/ZAk6ZwCZftumuwAzKpCzOdVZLM5etQgioIT5vfIfsMFsmhnP2o7FgIBPxoaGt7XgTEYlMmCSKczZGmnOrtnlT+FWGTbKvao6wbq60PzKcZeQqE6GMTEwUl3caMYWfwZXuIIlGTGxschy3JVnEvgMVLlcRK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3nOs+PcxhPp8uXLv04x7isbLroYicQwdv7HNiiJp6Elj1sXpk4c5zWkKCu8iWE0yuMTI/l//u6P3vn7r35nP7twm13tFnQAFFwA5rrVzA1oulvlKFEqYYKr5DFdQ0P3+2cBLEhdsR+nXT8QCIjNzc0nurq6gjfffDP2v30IiYGjeOz+C9AWSkObyEBmV4U1+JBVjVf7Die3XfJ7L2+3vyvk+E7R4+SdlPs4DsRwwSzUSbprm+nxGcO1zSjxPt1j3fT6DFOk7BELJI94kVUU5euapgU3bdqEDBXNNDBEIqniinsP44HbmnD7JxvGY8cy39z6wK7v/ecbcXYraj1Z1BV/JMe60yTX+2SXm7rNa7vm2i55vM909BNMRxgzHI+lQoc7vJju2ON1QJIDqkExVKYi9ERbW1tw/fr16O/v55fRsT8dGwwGxzJZfevBA3tftAGEHN/jDtySa5voEZdFj3golHArw+O54ar/SqlqLkV6qdB9UnhLolSGFl1xUiOIf0aPn5ZlOU4mhEIhgQD6/H7/jkQi8Rejo6NMgXUe3+dlmOM5SoA0SzRXTY8kcDJx0B0ivEKAWSIcFEEsdUBeGdtwHRRcKpM8EoZz3SuZCGVAiSViI+ZwMaNM5naDLvVes4Ty4Zg9ML3KirnWTY+Dm2u7WOZ7S5U44ikkmzMpjcptP9kThrlAVmKp1T9mdlZHN/8nwACSOOpOPD/YFAAAAABJRU5ErkJggg==" alt="">Manage<br> database<br> tables</a></h2>
			<p>Manage your database using pre-installed <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/adminer/">tool Adminer</a> with an easy to use GUI.<p>
		</div>

		<div>
			<h2><a href="https://doc.nette.org/quickstart"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABVCAYAAAD0bJKxAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACudJREFUeNrMXG1sFMcZfvfu7ECw7+xDaQL+AApE1B+EJLapSNs4QIh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5izj9bBjtFF+r9106a1YH5B8XHcZ6rDLNwddLPN35iBXOMCVFySjgFRD/TLX3+vcMA+dnJwEO7Mz4PhcT6Gwtb5v/P5mrpVGzMPkclMywwMS63dW0CGrba0bMnFSx0fHR803P/NGNRA1mchzW4f2Zrn7DKIBqvc4wCv/XDmhAc+15bUmeYJzcmi4ynBcVkdPOB57Y04HY8wr1UtKlzvnDOs6FcmUCrgWNgt+98LDvuQixwBFz3nZFtRPUIgw4ASJHBKsB+UvfcAjvCybH/gxGD2Fz3gpphjwNn3BbcZibmkJMdk/1MKZhekMSigpXn/FxXKiupzmVIqwP5l/KLDRTJiB0WegSBuAL33TET7XI+k6p1AAigEAGAodM2C3mlBgmMywlbZAjjrqtSTobEvKwsaGgMhQFPd56b/CzAArAe2YDJd4I4AAAAASUVORK5CYII=" alt="">Read<br> Quick-start<br> tutorial</a></h2>
			<p>If you are exploring Nette Framework for the first time, you should read the
			<a href="https://doc.nette.org/quickstart">Quick Start</a>, <a href="https://doc.nette.org">documentation</a>,
			<a href="https://pla.nette.org">tutorials</a> and <a href="https://forum.nette.org">forum</a>.</p>
		</div>
	</div>

	<h2>We hope you enjoy this framework!</h2>

	<section id="template">
		<h2>This page template located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($presenter->template->getFile(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->replacere(file_get_contents($presenter->template->getFile()), '#[\\w+/]{60,}#', '…'), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>

	<section id="layout">
		<h2>Layout template located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($template->getName(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush"><?php 
                echo Latte\Runtime\Filters::escapeHtml(file_get_contents($template->getName()), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>

	<section id="presenter">
		<h2>Current presenter located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($presenter->getReflection()->getFileName(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush-php"><?php 
                echo Latte\Runtime\Filters::escapeHtml(file_get_contents($presenter->getReflection()->getFileName()), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>
</div>
<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lbb08eedff19_title')) {
            function _lbb08eedff19_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<h1>Congratulations!</h1>
<?php 
            }
        }
        //
        // block scripts
        //
        if (!function_exists($_b->blocks['scripts'][] = '_lb063ce025a2_scripts')) {
            function _lb063ce025a2_scripts($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                Latte\Macros\BlockMacrosRuntime::callBlockParent($_b, 'scripts', get_defined_vars());
                ?>
<script src="https://files.nette.org/sandbox/jush.js"></script>
<script>
	jush.create_links = false;
	jush.highlight_tag('code');
	$('code.jush').each(function(){ $(this).html($(this).html().replace(/\x7B[/$\w].*?\}/g, '<span class="jush-latte">$&</span>')) });

	$('a[href^=#]').click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr('href')).show().offset().top - 5 }, 'fast');
		return false;
	});
</script>
<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lb709760077e_head')) {
            function _lb709760077e_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<style>
	html { overflow-y: scroll; }
	body { font: 14px/1.65 Verdana, "Geneva CE", lucida, sans-serif; background: #3484d2; color: #333; margin: 38px auto; max-width: 940px; min-width: 420px; }

	h1, h2 { font: normal 150%/1.3 Georgia, "New York CE", utopia, serif; color: #1e5eb6; -webkit-text-stroke: 1px rgba(0,0,0,0); }

	img { border: none; }

	a { color: #006aeb; padding: 3px 1px; }

	a:hover, a:active, a:focus { background-color: #006aeb; text-decoration: none; color: white; }

	#banner { border-radius: 12px 12px 0 0; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAB5CAMAAADPursXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGBQTFRFD1CRDkqFDTlmDkF1D06NDT1tDTNZDk2KEFWaDTZgDkiCDTtpDT5wDkZ/DTBVEFacEFOWD1KUDTRcDTFWDkV9DkR7DkN4DkByDTVeDC9TDThjDTxrDkeADkuIDTRbDC9SbsUaggAAAEdJREFUeNqkwYURgAAQA7DH3d3335LSKyxAYpf9vWCpnYbf01qcOdFVXc14w4BznNTjkQfsscAdU3b4wIh9fDVYc4zV8xZgAAYaCMI6vPgLAAAAAElFTkSuQmCC); }
	#banner h1 { color: white; font-size: 50px; line-height: 121px; margin: 0; padding-left: 4%; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIEAAAA5CAMAAAAm57h6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGBQTFRFZ5bIDDJYx8fH9fX11tbWSniovLy9DTpnhrPlMmCQ6+vr/Pz8D0J24+TkWW6Dipusoa24PllztL/L0djfcoedw8vULklkz8/P3d7fIT5a5+fn5+rsCilI8PDwn8z9////dMWpAgAAACB0Uk5T/////////////////////////////////////////wBcXBvtAAAGaklEQVR42uxYa3eqOhAFEQMaIWBEUIr//1/eeWTyAGzPWvf025lam+zMY2eSTKDZ+y9IHuQb6INkfyP4TD/8Zxf6RQYcJ5Ut9IsMJIRCScPHUP57DGYfC0UPCaMI+jUGLphWurHtvbjYeQ5QDdDrYiknv8tAt/3twjLxGsTQMP/mKvB87UWknykHMXRj6M8ZxJt3ZwFXu5tT0PtwjWOgjYdszGD/cGTbCpLvn6XdMaUGH+2SuxQMXx6ahMEnr8IgcrlPIVZQMQEdMn5y+zCCjgztmicMZEyFQxy3xYM/YyocOn0LiyBQHy1Ckq/UPGIQjWtW4Ka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K85bOVxgE3bpnqHRzPbVCmBsPugvw/EeUsxA+VjDAh2SaxTl7plMXjTDisMTvp02kBb8xPjXEO4IrUnJx2iuT0Fwfo7d6eVNHwomwgyXGqHH9Q87uo410TFIU3bdFSs8sZI/MHdedYE+9Y5hsI/tXF8uu4mu4EClpiriMEAsYfZV0sw6axtbTeJC7hqp6ZpWvgd/EWMiggDOnlsB6LLe1iZu5cXfEZSTiUeyMMTRp5H130Kpnief4Q+mvOTavRipPLkxWrevmrNKzVmu9VcQ8r/jyl+f3tHDLbCl+c3mI7gPfMfPfr3Rv8qF17sdKS3RRz4fq9xwHag99Yj4+HN1aGkyKAEpa8YETWxVwkaQaK/1aPP3/yP5v+Xfwz+MVgx4KcHvWq6TqIi/dDW+uPQblvvM6gXEO2bpdNT9ZIJg3KpdejrhdR4QMsvByqXpXIeYm8aHKCTfQbowelBE/SU4IvMoITg9OUYlD4H4DWDbpZxN6swUqnW3sCkxll8ZBCTcUy1rjIhDUFgoFqqwECWB5oLMHMpYW5ZpTfeltIn9+cc+BzWlUw6y3AOWaVWOXjjpJeyqjkQ2ADslyT2BoujP9VEzPbibcLKgXEm9hlJWUX7oBatkjjoXQbRPsj+OAeZcwZJD3GqrIQNJssV50Djxltcsrar4LyhiaTjx31QLzosqXjGKIveZVABy8ptDNmJPj/ijUyq6vNp1FFTR+fM55N3e71Eq+C3COhl/tDgno1Oo3ij01j7DbxTkdLiJLXmvapU35Ua/f62Cm0r0n8CDAD34uoT7llrPAAAAABJRU5ErkJggg==) no-repeat 95%; text-shadow: 1px 1px 0 rgba(0, 0, 0, .9); }
	@media (max-width: 600px) {
		#banner h1 { background: none; }
	}

	#content { background: white; border: 1px solid #eff4f7; border-radius: 0 0 12px 12px; padding: 10px 4%; overflow: hidden; }
	#content > h2 { font-size: 130%; color: #666; clear: both; padding: 1.2em 0; margin: 0; }

	h2 span { color: #87A7D5; }
	h2 a { text-decoration: none; background: transparent; }

	.boxes { -webkit-justify-content: space-between; justify-content: space-between; display: -webkit-flex; display: flex; margin-right: -2em; }
	.boxes > div { background: #f0f0f0; border: 1px solid #e6e6e6; border-radius: 5px; margin-right: 2em; }
	.boxes h2 { text-align: right; margin: 1em; }
	.boxes img { float: left; }
	.boxes p { clear: both; margin: 1em; }
	.boxes p a { color: #006aeb; background: #f7f7f7; padding: 1px 3px; border-radius: 3px; text-decoration: none; box-shadow: 0 2px 5px rgba(0, 0, 0, .10); }
	.boxes p a:hover, .boxes p a:active, .boxes p a:focus { color: white; background-color: #006aeb; }
	.boxes > div:nth-child(3n - 2) h2 { color: #00a6e5; }
	.boxes > div:nth-child(3n - 2) img { margin: -1em -1em 0 -1em; }
	.boxes > div:nth-child(3n - 1) h2 a { color: #db8e34; background: transparent; }
	.boxes > div:nth-child(3n) h2 a { color: #578404; background: transparent; }
	@media (max-width: 760px) {
		.boxes { -webkit-flex-direction: column; flex-direction: column; }
		.boxes > div { margin-bottom: 1em; }
		.boxes h2 br { display: none; }
	}

	section { display: none; }

	pre { font-size: 12px; line-height: 1.4; padding: 10px; margin: 1.3em 0; overflow: auto; max-height: 500px; background: #F1F5FB; border-radius: 5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }

	.jush-com, .jush-php_doc { color: #929292; }
	.jush-tag, .jush-tag_js { color: #6A8527; font-weight: bold; }
	.jush-att { color: #8CA315 }
	.jush-att_quo { color: #448CCB; font-weight: bold; }
	.jush-php_var { color: #d59401; font-weight: bold; }
	.jush-php_apo { color: green; }
	.jush-php_new { font-weight: bold; }
	.jush-php_fun { color: #254DB3; }
	.jush-js, .jush-css { color: #333333; }
	.jush-css_val { color: #448CCB; }
	.jush-clr { color: #007800; }
	.jush a { color: inherit; background: transparent; }
	.jush-latte { color: #D59401; font-weight: bold }
</style>
<?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['scripts']), $_b, get_defined_vars());
        ?>


<?php 
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('4456b62faa', 'html');
        // 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
        //
        ?>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<link rel="stylesheet" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/css/backend.css">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/css/menu.css" type="text/css">

<div id='cssmenu'>
<ul>
   <li><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:Homepage:"), ENT_COMPAT);
        ?>
"><span>Home</span></a></li>
<?php 
        if ($user->isInRole(1)) {
            ?>
   <li><a href="<?php 
            echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:User:default"), ENT_COMPAT);
            ?>
">Užívatelia</a></li>
<?php 
        }
        if ($user->isInRole(1)) {
            ?>
   <li class='active has-sub'><a href="<?php 
            echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:Car:default"), ENT_COMPAT);
            ?>
">Vozidlá</a></li>
<?php 
        }
        ?>
   <li><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:Product:default"), ENT_COMPAT);
        ?>
">Produkt</a></li>
   <li><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Front:Homepage:"), ENT_COMPAT);
        ?>
">Prejsť na web</a></li>
   <li class='last'><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Front:Auth:out"), ENT_COMPAT);
        ?>
">Odhlásiť</a></li>
</ul>
</div>
<div class="content_box">
<?php 
        $_l->tmp = $_control->getComponent("driverForm");
        if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
            $_l->tmp->redrawControl(NULL, FALSE);
        }
        $_l->tmp->render();
        ?>
</div><?php 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('6d59d80b63', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb3a9e44849c_content')) {
            function _lb3a9e44849c_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="<?php 
                echo $_control->getSnippetId('profileImage');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_profileImage']), $_b, $template->getParameters());
                ?>
</div><?php 
            }
        }
        //
        // block _profileImage
        //
        if (!function_exists($_b->blocks['_profileImage'][] = '_lb68231fdbb0__profileImage')) {
            function _lb68231fdbb0__profileImage($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('profileImage', FALSE);
                ?>
		<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["uploadProfilePhotoForm"], array());
                ?>

		  	<!--- Modal-header -->
			<div class="modal-header panel-heading">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
		        <h2 class="modal-title">Změna profilové fotografie</h2>
			</div>
			<!-- Modal-body -->
			<div class="modal-body panel-body">
				<div class="row">
				    <!-- vykreslení chyb -->
<?php 
                if ($form->hasErrors()) {
                    ?>
			        <ul class="errors">
<?php 
                    $iterations = 0;
                    foreach ($form->errors as $error) {
                        ?>
			            <li><?php 
                        echo Latte\Runtime\Filters::escapeHtml($error, ENT_NOQUOTES);
                        ?>
</li>
<?php 
                        $iterations++;
                    }
                    ?>
			        </ul> 
<?php 
                }
                ?>
		            <div class="col-md-3 col-lg-3 " align="center"> 
<?php 
                if ($profile->photo == null) {
                    ?>
		            		<img alt="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($profile->nick, ENT_COMPAT);
                    ?>
" src="<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                    ?>
/images/web/icons/user_<?php 
                    if ($profile->id_gender == 2) {
                        ?>
fe<?php 
                    }
                    ?>
male.png" class="img-circle img-responsive"> 
<?php 
                } else {
                    ?>
		            		<img alt="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($profile->nick, ENT_COMPAT);
                    ?>
" src="<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                    ?>
/images/profiles/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($profile->id), ENT_COMPAT);
                    ?>
_<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($profile->photo), ENT_COMPAT);
                    ?>
" class="img-circle img-responsive"> 
<?php 
                }
                ?>
		            </div>
		            <div class=" col-md-9 col-lg-9 "> 
		                <?php 
                echo $_form["img"]->getControl();
                ?>

		            </div>
		       	</div>
			</div>
			<!-- Modal footer -->
			<div class="modal-footer panel-footer">
				<?php 
                echo $_form["send"]->getControl();
                ?>

			  	<input type="button" class="btn btn-default" data-dismiss="modal" value="Zavřít">
			</div>
		<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form);
                ?>

<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lbbdc68574cd_head')) {
            function _lbbdc68574cd_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<style>
	ul.errors { margin: 0 1em 1em 1em;}
</style>
<?php 
            }
        }
        //
        // end of blocks
        //
        // template extending
        $_l->extends = "../@layout-modal.latte";
        $_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
        //
        ?>

<?php 
        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['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('7a4ab84198', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb35184ebe03_content')) {
            function _lb35184ebe03_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="events_head" >
    <div class="container">    
        <div id="navigation" class="row">
<?php 
                if (count($flashes) !== 0) {
                    $iterations = 0;
                    foreach ($flashes as $flash) {
                        ?>
            <div<?php 
                        if ($_l->tmp = array_filter(array('flash', $flash->type, 'zero-padding'))) {
                            echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"';
                        }
                        ?>
>
                <strong>
                    <i><p style="padding-left:0px;" class="container">
                            <?php 
                        if ($flash->type === 'success') {
                            ?>
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'error') {
                            ?>
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'warning') {
                            ?>
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'info') {
                            ?>
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                                <?php 
                        echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES);
                        ?>

                        </p>
                    </i>
                </strong>
            </div>
<?php 
                        $iterations++;
                    }
                } else {
                    ?>
            <div class="col-xs-8 col-md-8 zero_padding">
                <p><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT);
                    ?>
">Úvodní stránka</a><span> ❯ </span>Závody</p>
            </div>
<?php 
                    if ($user->loggedIn) {
                        ?>
                <div id="prihlasen" class="">           
                    <p>Přihlášen: <strong><?php 
                        echo Latte\Runtime\Filters::escapeHtml($user->getIdentity()->username, ENT_NOQUOTES);
                        ?>
</strong></p>
                </div>                
<?php 
                    } else {
                        ?>
                <div id="neprihlasen" class="">           
                    <p>Nepřihlášen</p>
                </div>
<?php 
                    }
                }
                ?>
            
        </div>    
    </div>
    <div id="zavody_h2" class="row">
       <div class="col-md-12 text-center">
<?php 
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
       </div>
    </div> 
</div>
            
<div id="events_content" class="container-fluid">
 <div class="container">   
  <div id="selectingOptionForm">
    <form class="form-inline"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["selectingOptionForm"], array('class' => NULL), FALSE);
                ?>
> 
            <div id="select-sort_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
                <div class="panel-heading main-panel_heading do_borders">
                    <h3 class="panel-title font18">
                        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#select-sort_panel" href="#select-sort_panel_collapse" aria-expanded="false" aria-controls="collapseOne">
                            Možnosti výběru a třídění dat
                        </a>
                    </h3>
                </div>
                <div id="select-sort_panel_collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                <div class="panel-body">
                    <div class="col-md-7">
                        <div class="panel panel-default">
                            <div class="panel-heading ">
                                <h3 class="panel-title">Výběrová kritéria</h3>                           
                            </div>                      
                            <div class="panel-body">
                                <div><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op0');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op0']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value0" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel0" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel0');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel0']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date0" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div> 
                                
                                <div id="select1"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op1');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op1']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value1" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel1" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel1');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel1']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date1" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div>

                                <div id="select2"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op2');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op2']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value2" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel2" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel2');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel2']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date2" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div>

                                <div id="select3"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_op3');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_op3']), $_b, $template->getParameters());
                ?>
</div></div>
                                <div id="value3" class="form-group"><input type="text" class="form-control" placeholder="Hodnota"<?php 
                $_input = $_form["value3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                ?>
></div>
                                <div id="value_sel3" class="form-group"><div id="<?php 
                echo $_control->getSnippetId('snippet_sel3');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_snippet_sel3']), $_b, $template->getParameters());
                ?>
</div></div>           
                                <div id="value_date3" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                $_input = $_form["value_date3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                ?>
></div><br><br></div>       

                                <p id="select_alert" class="hidden">Toto je maximální počet</p>
                                <a id="btn_add_select" class="btn btn-xs col-md-offset-11 col-md-1" data-toggle="tooltip" data-placement="top" title="Přidat další">
                                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">Třídící kritéria</h4>                           
                            </div>
                            <div class="panel-body">
                                <div><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col9"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord9"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort1"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col10"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord10"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort2"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col11"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord11"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>

                                <div id="sort3"><div class="form-group"><select class="form-control"<?php 
                $_input = $_form["col12"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                                <div class="form-group"><select class="form-control"<?php 
                $_input = $_form["ord12"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div><br><br></div>                        

                                <p id="sort_alert" class="hidden">Toto je maximální počet</p>
                                <a id="btn_add_sort" class="btn btn-xs col-md-offset-11 col-md-1" data-toggle="tooltip" data-placement="top" title="Přidat další">
                                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
                            </div>    
                        </div>
                    </div>
                    <div class="row zero_margin" >
                        <div class="col-md-12">                                                        
                               <button type="submit" id="apply" class="ajax btn btn-default col-md-offset-11 col-md-1"<?php 
                $_input = $_form["show"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'id' => NULL, 'class' => NULL))->attributes();
                ?>
>Aplikovat</button>                            
                       </div>
                   </div>
                </div>
                </div>
            </div>
<div id="<?php 
                echo $_control->getSnippetId('SelectingOption_tab');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_SelectingOption_tab']), $_b, $template->getParameters());
                ?>
</div>            <div id="export_panel" class="panel panel-default col-md-12 zero_padding <?php 
                if ($user->loggedIn) {
                    ?>
bottom7px<?php 
                } else {
                    ?>
bottom15px<?php 
                }
                ?>
">
                <div class="panel-heading main-panel_heading do_borders">
                    <h3 class="panel-title font18">
                        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#export_panel" href="#export_panel_collapse" aria-expanded="false" aria-controls="collapseOne">
                            Možnosti exportu dat
                        </a>
                    </h3>
                </div>
                <div id="export_panel_collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                <div class="panel-body">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div id="export_panel_csv" class="panel-body">
                                <div class="col-md-2 zero_padding"><h4 class="font16">Export do CSV</h4></div>
                                <div class="col-md-10 zero_padding" >
                                    <div id="export_csv_box_content" class="col-md-12">
                                        <div class="col-md-offset-5 col-md-6 zero_padding">
                                            <div id="checkbox_col_head" class="checkbox col-md-offset-8 col-md-4"><label><input id="input_col_head" type="checkbox"<?php 
                $_input = $_form["head"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>S hlavičkou</label></div>
                                        </div>                           
                                        <button id="export_csv_button" type="submit" class="btn btn-sm col-md-1"<?php 
                $_input = $_form["exp_csv"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL))->attributes();
                ?>
>Stáhnout</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel panel-default zero_margin">
                            <div id="export_panel_pdf" class="panel-body">
                                <div class="col-md-2 zero_padding"><h4 class="font16">Export do PDF</h4></div>
                                <div class="col-md-10 zero_padding" >
                                    <div id="export_pdf_box_content" class="col-md-12">
                                        <div class="col-md-offset-2 col-md-9 zero_padding">
                                            <div id="checkbox_col_zahrnout" class="col-md-offset-2 col-md-2"><label>Zahrnout:</label></div>
                                            <div id="checkbox_col_date" class="checkbox col-md-2"><label><input id="input_col_date" type="checkbox"<?php 
                $_input = $_form["col_date"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
><span>Datum</span></label></div>
                                            <div id="checkbox_col_name" class="checkbox col-md-2"><label><input id="input_col_name" type="checkbox"<?php 
                $_input = $_form["col_name"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Název</label></div>
                                            <div id="checkbox_col_note" class="checkbox col-md-2"><label><input id="input_col_note" type="checkbox"<?php 
                $_input = $_form["col_note"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Trvání</label></div>
                                            <div id="checkbox_col_lcm" class="checkbox col-md-2"><label><input id="input_col_lcm" type="checkbox"<?php 
                $_input = $_form["col_lcm"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL))->attributes();
                ?>
>Bazén</label></div>

                                        </div>  
                                        <button id="export_pdf_button" type="submit" class="btn btn-sm  col-md-1"<?php 
                $_input = $_form["exp_pdf"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL))->attributes();
                ?>
>Náhled</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
            </div>
       
        <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>   
                
<?php 
                if ($user->loggedIn) {
                    ?>
            <div id="input_panel" class="panel panel-default col-md-12 zero_padding">
                <div class="panel-heading main-panel_heading do_borders">
                    <h3 class="panel-title font18">
                        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#input_panel" href="#input_panel_collapse" aria-expanded="false" aria-controls="collapseOne">
                            Ruční vkládání do tabulky
                        </a>
                    </h3>
                </div>
                <div id="input_panel_collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                <div class="panel-body">
                    <div class="col-md-12">
                    <form class="form-inline"<?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["eventInputForm"], array('class' => NULL), FALSE);
                    ?>
>
                        <div class="panel panel-default bottom7px">
                            <div class="panel-body">
                                <div id="eventInput_checkbox">
                                    <label id="oneday"><input type="checkbox"<?php 
                    $_input = $_form["oneday"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL))->attributes();
                    ?>
>Jednodenní</label>
                                </div>
                                <div class="row zero_margin"> 
                                    <div class="col-md-12 zero_padding">            
                                        <div id="eventInput_date_div" class="form-group"><input id="eventInput_date" type="text" class="form-control" placeholder="Datum" readonly<?php 
                    $_input = $_form["date"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                    ?>
></div>
                                        <div class="form-group" id="eventInput_id">                    
                                            <input type="text" class="form-control" placeholder="Identifikátor"<?php 
                    $_input = $_form["id"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                    ?>
>
                                        </div>
                                        <div class="form-group" id="eventInput_name">                    
                                            <input type="text" class="form-control" placeholder="Název"<?php 
                    $_input = $_form["name"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                    ?>
>
                                        </div>
                                        <div class="input-daterange input-group" id="datepicker_since-to">
                                            <input id="datepicker_since" type="text"  class="input-sm form-control"  placeholder="Trvání - od" readonly<?php 
                    $_input = $_form["since"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                    ?>
>                    
                                            <input id="datepicker_to" type="text"  class="input-sm form-control"  placeholder="Trvání - do" readonly<?php 
                    $_input = $_form["to"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL, 'placeholder' => NULL, 'readonly' => NULL))->attributes();
                    ?>
>
                                        </div>
                                        <div class="form-group" id="eventInput_lcm">                     
                                            <select class="form-control"<?php 
                    $_input = $_form["lcm"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                    ?>
><?php 
                    echo $_input->getControl()->getHtml();
                    ?>
</select>
                                        </div>
                                        
                                    </div>
                                </div>
                            </div>              
                        </div>
                        <button type="submit" class="btn btn-default col-md-offset-11 col-md-1" id="eventInput_submit"<?php 
                    $_input = $_form["add"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'id' => NULL))->attributes();
                    ?>
>Vložit</button>
                    <?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                    ?>
</form> 
                    </div>
                </div>
                </div>
            </div>
<?php 
                }
                ?>
  </div>
 </div> 
</div>  
  
<div class="modal fade" id="members_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-md" role="document">   
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">Zúčastnění plavci</h4>
        </div>
        <div class="modal-body">
<div id="<?php 
                echo $_control->getSnippetId('members');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_members']), $_b, $template->getParameters());
                ?>
</div>        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button> 
        </div>
    </div>  
  </div>
</div> 
        
<div class="modal fade" id="signin_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-sm" role="document">
    <form class="form-horizontal"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["signInForm"], array('class' => NULL), FALSE);
                ?>
>  
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">Přihlásit se</h4>
        </div>
        <div class="modal-body">
            <div id="user-name_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Uživatelské jméno</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="text" class="form-control"<?php 
                $_input = $_form["username"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                </div>
            </div>
                
            <div id="password_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Heslo</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="password" class="form-control"<?php 
                $_input = $_form["password"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                 </div>
            </div>
            
            <div id="signin_remember" class=" checkbox zero_padding">
                <label><input type="checkbox"<?php 
                $_input = $_form["remember"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL))->attributes();
                ?>
>Pamatuj si mě</label>
                <span class="glyphicon glyphicon-info-sign font16" data-toggle="tooltip" data-placement="top" title="Nezaškrtnuto - odhlášení po 20 minutách nebo uzavření prohlížeče. Zašktnuto - odhlášení za 14 dnů" aria-hidden="true"></span>
            </div>
                               
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button> 
        <button type="submit" class="btn btn-primary"<?php 
                $_input = $_form["signin"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>Přihlásit</button>
      </div>
    </div>
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>    
  </div>
</div>
        
<script>
<?php 
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col0', array('input' => 'col0', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col1', array('input' => 'col1', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col2', array('input' => 'col2', 'link' => 'firstChange') + $template->getParameters());
                Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'jsCallback_col3', array('input' => 'col3', 'link' => 'firstChange') + $template->getParameters());
                ?>
</script>



<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lb1cb99f808d_title')) {
            function _lb1cb99f808d_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
          <h2>Přehled závodů</h2>
<?php 
            }
        }
        //
        // block _snippet_op0
        //
        if (!function_exists($_b->blocks['_snippet_op0'][] = '_lb512db73557__snippet_op0')) {
            function _lb512db73557__snippet_op0($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op0', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel0
        //
        if (!function_exists($_b->blocks['_snippet_sel0'][] = '_lb757b0d1aab__snippet_sel0')) {
            function _lb757b0d1aab__snippet_sel0($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel0', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel0"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op1
        //
        if (!function_exists($_b->blocks['_snippet_op1'][] = '_lb9dc0c3556b__snippet_op1')) {
            function _lb9dc0c3556b__snippet_op1($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op1', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel1
        //
        if (!function_exists($_b->blocks['_snippet_sel1'][] = '_lb3299e3a1d8__snippet_sel1')) {
            function _lb3299e3a1d8__snippet_sel1($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel1', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel1"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op2
        //
        if (!function_exists($_b->blocks['_snippet_op2'][] = '_lbd0a2957be9__snippet_op2')) {
            function _lbd0a2957be9__snippet_op2($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op2', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel2
        //
        if (!function_exists($_b->blocks['_snippet_sel2'][] = '_lb915d2e514b__snippet_sel2')) {
            function _lb915d2e514b__snippet_sel2($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel2', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel2"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_op3
        //
        if (!function_exists($_b->blocks['_snippet_op3'][] = '_lb5f3d5a3f29__snippet_op3')) {
            function _lb5f3d5a3f29__snippet_op3($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_op3', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["operator3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _snippet_sel3
        //
        if (!function_exists($_b->blocks['_snippet_sel3'][] = '_lb1324d9f12a__snippet_sel3')) {
            function _lb1324d9f12a__snippet_sel3($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('snippet_sel3', FALSE);
                ?>
<select class="form-control"<?php 
                $_input = $_form["value_sel3"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select><?php 
            }
        }
        //
        // block _SelectingOption_tab
        //
        if (!function_exists($_b->blocks['_SelectingOption_tab'][] = '_lba41d595b46__SelectingOption_tab')) {
            function _lba41d595b46__SelectingOption_tab($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('SelectingOption_tab', FALSE);
                ?>
            <div id="table_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
                <div class="panel-heading main-panel_heading">
                    <h3 class="panel-title font18">Výpis tabulky závodů</h3>
                </div>
                <div class="panel-body">
                    <div id="events_tab">
                        <div id="events_tab_head">    
                            <div class="row">
                               <div class="col-md-12">                     
                                  <table class="table"> 
                                            <tr>
                                              <td id="tab_head_date"><span><strong>Datum</strong></span></td> 
                                              <td id="tab_head_name"><span><strong>Název</strong></span></td>
                                              <td id="tab_head_note"><span><strong>Trvání</strong></span></td>
                                              <td id="tab_head_lcm"><span><strong>Bazén</strong></span></td>
                                              <td id="tab_head_members"><span><strong>Plavci</strong></span></td>
                                              <?php 
                if ($user->loggedIn) {
                    ?>
<td id="tab_head_delete"><span><strong>Smazat</strong></span></td><?php 
                }
                ?>

                                            </tr>   
                                  </table>
                               </div>
                            </div> 
                        </div>        
                        <div class="row zero_margin">        
                            <div id="events_tab_content" class="col-md-12 bottom7px">
                                <table class="table table-bordered"> 
                                    <tr id="alt_tab_head">
                                              <td><span><strong>Datum</strong></span></td> 
                                              <td id="tab_head_name"><span><strong>Název</strong></span></td>
                                              <td><span><strong>Trvání</strong></span></td>
                                              <td><span><strong>Bazén</strong></span></td>
                                              <td><span><strong>Plavci</strong></span></td>             
                                              <?php 
                if ($user->loggedIn) {
                    ?>
<td><span><strong>Smaz.</strong></span></td><?php 
                }
                ?>

                                    </tr> 
<?php 
                if (isset($events_select)) {
                    if ($events_select->getRowCount() > 0) {
                        $iterations = 0;
                        foreach ($events_select as $i => $event_select) {
                            ?>
                                                <tr id="<?php 
                            echo Latte\Runtime\Filters::escapeHtml($event_select->id, ENT_COMPAT);
                            ?>
">
                                                  <td id="tab_date"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($template->date($event_select->date, 'j.n.Y'), ENT_NOQUOTES);
                            ?>
</td> 
                                                  <td id="tab_name"><?php 
                            echo Latte\Runtime\Filters::escapeHtml($event_select->name, ENT_NOQUOTES);
                            ?>
</td>
                                                  <td id="tab_note"><?php 
                            if ($event_select->note === '') {
                                ?>
1 den<?php 
                            } else {
                                echo Latte\Runtime\Filters::escapeHtml($event_select->note, ENT_NOQUOTES);
                            }
                            ?>
</td>
                                                  <td id="tab_lcm"><?php 
                            if ($event_select->lcm === '1') {
                                ?>
50m<?php 
                            } else {
                                ?>
25m<?php 
                            }
                            ?>
</td>
                                                  <td id="tab_members"><a class="ajax" onclick="showMembers()" data-toggle="tooltip" data-placement="top" title="Zúčastnění plavci" href="<?php 
                            echo Latte\Runtime\Filters::escapeHtml($_control->link("showMembers!", array($event_select->id)), ENT_COMPAT);
                            ?>
">
                                                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                    <span id="glyphicon_user_middle" class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span></a></td> 
                                                  <?php 
                            if ($user->loggedIn) {
                                ?>
<td id="tab_delete"><a role="button" class="btn btn-xs" data-toggle="tooltip" data-placement="top" title="Vymazat závod" href="<?php 
                                echo Latte\Runtime\Filters::escapeHtml($_control->link("deleteRow!", array($event_select->id)), ENT_COMPAT);
                                ?>
">
                                                        <span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a></td><?php 
                            }
                            ?>

                                                </tr>  
<?php 
                            $iterations++;
                        }
                    } else {
                        ?>
                                            <tr><td class="col-md-6 text-center">Zadaným kritériím neodpovídá žádný záznam v tabulce</td></tr>
<?php 
                    }
                } else {
                    $iterations = 0;
                    foreach ($events_all as $j => $event_all) {
                        ?>
                                        <tr id="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($event_all->id, ENT_COMPAT);
                        ?>
">
                                          <td id="tab_date"><?php 
                        echo Latte\Runtime\Filters::escapeHtml($template->date($event_all->date, 'j.n.Y'), ENT_NOQUOTES);
                        ?>
</td> 
                                          <td id="tab_name"><?php 
                        echo Latte\Runtime\Filters::escapeHtml($event_all->name, ENT_NOQUOTES);
                        ?>
</td>
                                          <td id="tab_note"><?php 
                        if ($event_all->note === '') {
                            ?>
1 den<?php 
                        } else {
                            echo Latte\Runtime\Filters::escapeHtml($event_all->note, ENT_NOQUOTES);
                        }
                        ?>
</td>
                                          <td id="tab_lcm"><?php 
                        if ($event_all->lcm === '1') {
                            ?>
50m<?php 
                        } else {
                            ?>
25m<?php 
                        }
                        ?>
</td>
                                          <td id="tab_members"><a class="ajax" onclick="showMembers()" data-toggle="tooltip" data-placement="top" title="Zúčastnění plavci" href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("showMembers!", array($event_all->id)), ENT_COMPAT);
                        ?>
">
                                                <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                <span id="glyphicon_user_middle" class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                <span class="glyphicon glyphicon-user" aria-hidden="true"></span></a></td> 
                                          <?php 
                        if ($user->loggedIn) {
                            ?>
<td id="tab_delete"><a role="button" class="btn btn-xs" data-toggle="tooltip" data-placement="top" title="Vymazat závod" href="<?php 
                            echo Latte\Runtime\Filters::escapeHtml($_control->link("deleteRow!", array($event_all->id)), ENT_COMPAT);
                            ?>
">
                                                <span id="glyphicon_trash" class="glyphicon glyphicon-trash" aria-hidden="true"></span></a></td><?php 
                        }
                        ?>

                                        </tr>          
<?php 
                        $iterations++;
                    }
                }
                ?>
                                </table>
                            </div>                                                  
                        </div>
                          <div id="tab-info_panel" class="panel panel-default">
                                <div class="panel-body">
                                    <div class="col-md-4 zero_padding"><p class="zero_margin">Počet všech záznamů v tabulce: <strong><?php 
                echo Latte\Runtime\Filters::escapeHtml($events_all->getRowCount(), ENT_NOQUOTES);
                ?>
</strong></p></div>
                                    <?php 
                if (isset($events_select)) {
                    ?>
<div class="col-md-8 zero_padding"><p class="zero_margin">Počet vybraných záznamů: <strong><?php 
                    echo Latte\Runtime\Filters::escapeHtml($events_select->getRowCount(), ENT_NOQUOTES);
                    ?>
</strong></p></div><?php 
                }
                ?>

                                </div>
                            </div>           
                    </div>                                
                </div>
            </div>
<?php 
            }
        }
        //
        // block _members
        //
        if (!function_exists($_b->blocks['_members'][] = '_lb454b167819__members')) {
            function _lb454b167819__members($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('members', FALSE);
                if (isset($event)) {
                    ?>
                    <div>                                   
                        <p>Závodů <strong><?php 
                    echo Latte\Runtime\Filters::escapeHtml($event, ENT_NOQUOTES);
                    ?>
</strong> se zúčastnili tito plavci: 
<?php 
                    $iterations = 0;
                    foreach ($iterator = $_l->its[] = new Latte\Runtime\CachingIterator($members) as $j => $member) {
                        if ($iterator->last) {
                            ?>
                                <strong><?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->firstname, ENT_NOQUOTES);
                            ?>
 <?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->surname, ENT_NOQUOTES);
                            ?>
</strong>                                       
<?php 
                        } else {
                            ?>
                                <strong><?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->firstname, ENT_NOQUOTES);
                            ?>
 <?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->surname, ENT_NOQUOTES);
                            ?>
, </strong>
<?php 
                        }
                        $iterations++;
                    }
                    array_pop($_l->its);
                    $iterator = end($_l->its);
                    ?>
                        </p>                                
                    </div>
<?php 
                }
            }
        }
        //
        // block jsCallback_col0
        //
        if (!function_exists($_b->blocks['jsCallback_col0'][] = '_lb0bc79c363e_jsCallback_col0')) {
            function _lb0bc79c363e_jsCallback_col0($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 0,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col1
        //
        if (!function_exists($_b->blocks['jsCallback_col1'][] = '_lb799c838576_jsCallback_col1')) {
            function _lb799c838576_jsCallback_col1($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 1,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col2
        //
        if (!function_exists($_b->blocks['jsCallback_col2'][] = '_lb958f354316_jsCallback_col2')) {
            function _lb958f354316_jsCallback_col2($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 2,
        }
    });
});
<?php 
            }
        }
        //
        // block jsCallback_col3
        //
        if (!function_exists($_b->blocks['jsCallback_col3'][] = '_lba3c167e2e8_jsCallback_col3')) {
            function _lba3c167e2e8_jsCallback_col3($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
$('#<?php 
                echo Latte\Runtime\Filters::escapeHtml($control["selectingOptionForm"][$input]->htmlId, ENT_NOQUOTES);
                ?>
').on('change', function() {
    $.nette.ajax({
        type: 'GET',
        url: '<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("{$link}!"), ENT_NOQUOTES);
                ?>
',
        data: {
            'value': $(this).val(),
            'num': 3,
        }
    });
});
<?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
        //
        ?>

<?php 
        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 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('2ceb52993d', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb229b074331_content')) {
            function _lb229b074331_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="content">
	<h2>Manage User Type</h2>
	<div class="boxes">		
<?php 
                $_l->tmp = $_control->getComponent("usertype");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>
	</div>
<?php 
                if ($datas) {
                    ?>
	<table id="data_table" border="1">
		<tr>
			<th>#</th>
			<th>User Type</th>
			<th>Created</th>
			<th>Action</th>
			<th>Edit</th>
			<th>Delete</th>
		</tr>
<?php 
                    $iterations = 0;
                    foreach ($datas as $data) {
                        ?>
		<tr>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml(++$cnt, ENT_NOQUOTES);
                        ?>
</td>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($data->name, ENT_NOQUOTES);
                        ?>
</td>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($template->date($data->created, 'd/m/Y'), ENT_NOQUOTES);
                        ?>
</td>
			<td><a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("usertypeAction", array($data->id)), ENT_COMPAT);
                        ?>
"><?php 
                        echo Latte\Runtime\Filters::escapeHtml($data->is_enable == 1 ? 'Disable' : 'Enable', ENT_NOQUOTES);
                        ?>
</a></td>
			<td><a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("usertypeEdit", array($data->id)), ENT_COMPAT);
                        ?>
">Edit</a></td>
			<td><a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("usertypeDelete", array($data->id)), ENT_COMPAT);
                        ?>
">Delete</a></td>			
		</tr>
<?php 
                        $iterations++;
                    }
                    ?>
	</table>		
<?php 
                }
                ?>
</div>
<?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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('3137cf8c9f', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbc8250e2c14_content')) {
            function _lbc8250e2c14_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<h2>Administrácia</h2>

<?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
        //
        ?>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<link rel="stylesheet" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/css/backend.css">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/css/menu.css" type="text/css">
<div id='cssmenu'>
<ul>
   <li class='active has-sub'><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:Homepage:"), ENT_COMPAT);
        ?>
"><span>Home</span></a></li>
<?php 
        if ($user->isInRole(1)) {
            ?>
   <li><a href="<?php 
            echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:User:default"), ENT_COMPAT);
            ?>
">Užívatelia</a></li>
<?php 
        }
        if ($user->isInRole(1)) {
            ?>
   <li><a href="<?php 
            echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:Car:default"), ENT_COMPAT);
            ?>
">Vozidlá</a></li>
<?php 
        }
        ?>
   <li><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:Product:default"), ENT_COMPAT);
        ?>
">Produkt</a></li>
   <li><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Front:Homepage:"), ENT_COMPAT);
        ?>
">Prejsť na web</a></li>
   <li class='last'><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link(":Front:Auth:out"), ENT_COMPAT);
        ?>
">Odhlásiť</a></li>
</ul>
</div>

<?php 
        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 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('a6d9799ef5', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbd2683a82ae_content')) {
            function _lbd2683a82ae_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div class="row">
	<div class="col-md-1">
		<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal1">
		  Editovať
		</button>
		<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
		  <div class="modal-dialog" role="document">
		    <div class="modal-content">
		      <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		        <h4 class="modal-title" id="myModalLabel">Editovať</h4>
		      </div>
		      <div class="modal-body">
<?php 
                $_l->tmp = $_control->getComponent("editovatForm");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>
		      </div>
		    </div>
		  </div>
		</div>
	</div>
	<div class="col-md-1">
<?php 
                $_l->tmp = $_control->getComponent("vymazatButton");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>
	</div>
</div>





<h3>Základné informácie:</h3>
<strong>Identifikačné číslo:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->IDZivocicha, ENT_NOQUOTES);
                ?>
 <br>
<strong>Meno:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->meno, ENT_NOQUOTES);
                ?>
 <br>
<strong>Dátum Narodenia:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->datumNarodenia, ENT_NOQUOTES);
                ?>
 <br>
<strong>Dátum úmrtia:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->datumUmrtia, ENT_NOQUOTES);
                ?>
 <br>
<strong>Trieda:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->trieda, ENT_NOQUOTES);
                ?>
 <br>
<strong>Rad:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->rad, ENT_NOQUOTES);
                ?>
 <br>
<strong>Čelaď:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->celad, ENT_NOQUOTES);
                ?>
 <br>
<strong>Rod:</strong> <?php 
                echo Latte\Runtime\Filters::escapeHtml($zivocich->rod, ENT_NOQUOTES);
                ?>
 <br>
<strong>Druh:</strong> <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Druh:viac", array($druh->IDDruhuZivocicha)), ENT_COMPAT);
                ?>
"><?php 
                echo Latte\Runtime\Filters::escapeHtml($druh->nazov, ENT_NOQUOTES);
                ?>
</a> <br>
<strong>Umiestnenie:</strong> <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Umiestnenie:viac", array($umiestnenie->IDUmiestnenia)), ENT_COMPAT);
                ?>
"><?php 
                echo Latte\Runtime\Filters::escapeHtml($umiestnenie->nazov, ENT_NOQUOTES);
                ?>
</a> <br>






<h3>O tohoto živočícha sa stará:</h3>
<table class="table table-bordered table-hover">
	<tr>
	    <th>Zamestnanec</th>
	    <th></th>
	</tr>
<?php 
                $iterations = 0;
                foreach ($zamestnanci as $zamestnanec) {
                    ?>
	<tr>
		<td><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Zamestnanec:viac", array($zamestnanec->RodneCislo)), ENT_COMPAT);
                    ?>
"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($zamestnanec->meno, ENT_NOQUOTES);
                    ?>
 <?php 
                    echo Latte\Runtime\Filters::escapeHtml($zamestnanec->priezvisko, ENT_NOQUOTES);
                    ?>
</a></td>
		<td>
<?php 
                    if ($user->identity->roles[0] == 'riaditeľ' || $user->id == $zamestnanec->RodneCislo) {
                        $_l->tmp = $_control->getComponent("odstranitStaraSaButton-{$zamestnanec->RodneCislo}");
                        if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                            $_l->tmp->redrawControl(NULL, FALSE);
                        }
                        $_l->tmp->render();
                    }
                    ?>
		</td>
	</tr>
<?php 
                    $iterations++;
                }
                ?>
</table>

<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal3">
	Priradiť zamestnanca
</button>
<div class="modal fade" id="modal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
			    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			    <h4 class="modal-title" id="myModalLabel2">Priradiť zamestnanca</h4>
			</div>
			     <div class="modal-body">
<?php 
                $_l->tmp = $_control->getComponent("pridatStaraSa");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>
			    </div>
		</div>
	</div>
</div>








<h3>Bol testovaný:</h3>
<table class="table table-bordered table-hover">
	<tr>
	    <th>Zamestnanec, ktorý test vykonal</th>
	    <th>Hmotnosť živočícha</th>
	    <th>Rozmer živočícha</th>
	    <th>Dátum Testu</th>
	</tr>
<?php 
                $iterations = 0;
                foreach ($testy as $test) {
                    ?>
	<tr>
		<td><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Zamestnanec:viac", array($test->RodneCislo)), ENT_COMPAT);
                    ?>
"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($test->meno, ENT_NOQUOTES);
                    ?>
 <?php 
                    echo Latte\Runtime\Filters::escapeHtml($test->priezvisko, ENT_NOQUOTES);
                    ?>
</a></td> 
		<td><?php 
                    echo Latte\Runtime\Filters::escapeHtml($test->hmotnostZivocicha, ENT_NOQUOTES);
                    ?>
</td> 
		<td><?php 
                    echo Latte\Runtime\Filters::escapeHtml($test->rozmerZivocicha, ENT_NOQUOTES);
                    ?>
</td> 
		<td><?php 
                    echo Latte\Runtime\Filters::escapeHtml($test->datumTestu, ENT_NOQUOTES);
                    ?>
</td>
	</tr>
<?php 
                    $iterations++;
                }
                ?>
</table>
<a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Test:vypis"), ENT_COMPAT);
                ?>
" class="btn btn-primary">Pridať test</a>

<?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
        //
        ?>

<?php 
        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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('fee7f4c046', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb4baec9a9e2_content')) {
            function _lb4baec9a9e2_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
        <div class="row row-center row-header">
            <ul class="pagination">
                <li <?php 
                if ($id == 'rp') {
                    ?>
class="active"<?php 
                }
                ?>
>
                    <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array('rp')), ENT_COMPAT);
                ?>
">Probíhající prodeje</a>
                </li>
                <li <?php 
                if ($id == 'ep') {
                    ?>
class="active"<?php 
                }
                ?>
>
                    <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array('ep')), ENT_COMPAT);
                ?>
">Proběhlé prodeje</a>
                </li>
                <li <?php 
                if ($id == 'rk') {
                    ?>
class="active"<?php 
                }
                ?>
>
                    <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array('rk')), ENT_COMPAT);
                ?>
">Probíhající koupě</a>
                </li>
                <li <?php 
                if ($id == 'ek') {
                    ?>
class="active"<?php 
                }
                ?>
>
                    <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array('ek')), ENT_COMPAT);
                ?>
">Proběhlé koupě</a>
                </li>
            </ul>            
        </div>  
<?php 
                ob_start();
                ?>
        <div class="row">
<?php 
                $iterations = 0;
                foreach ($products as $p) {
                    ?>
                <div class="col-sm-4 col-lg-4 col-md-4">
                    <div class="product product-category-<?php 
                    echo Latte\Runtime\Filters::escapeHtml($p->id_category, ENT_COMPAT);
                    ?>
">
                        <h4 class="pull-left">
<?php 
                    if ($id == 'rp') {
                        if ($p->related('bid.id_product')->count() > 0) {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/119.png" title="Produkt má zájemce."> 
<?php 
                        } else {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/120.png" title="O produkt zatím nikdo neprojevil zájem."> 
<?php 
                        }
                    } elseif ($id == 'ep') {
                        if ($p->related('bid.id_product')->count() > 0) {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/119.png" title="Produkt byl prodán."> 
<?php 
                        } else {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/120.png" title="Produkt nebyl prodán."> 
<?php 
                        }
                    } elseif ($id == 'rk') {
                        if ($p->related('bid.id_product')->order('id DESC')->fetch()->id_user == $user->id) {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/119.png" title="Vaše nabídka zatím nebyla přehozena."> 
<?php 
                        } else {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/120.png" title="Vaše nabídka byla přehozena."> 
<?php 
                        }
                    } else {
                        if ($p->related('bid.id_product')->order('id DESC')->fetch()->id_user == $user->id) {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/119.png" title="Tuto aukci jste vyhrál<?php 
                            if ($user->identity->id_gender != 1) {
                                ?>
a<?php 
                            }
                            ?>
."> 
<?php 
                        } else {
                            ?>
                                    <img src="<?php 
                            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                            ?>
/images/icons/black/120.png" title="Tuto aukci jste nevyhrál<?php 
                            if ($user->identity->id_gender != 1) {
                                ?>
a<?php 
                            }
                            ?>
."> 
<?php 
                        }
                    }
                    ?>
  
                        </h4>
                        <h4 class="pull-right"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($template->number($p->cost + $p->related('bid.id_product')->sum('deposit')), ENT_NOQUOTES);
                    ?>
 Kč</h4>
<?php 
                    if ($img = $p->related('image.id_product')->fetch()) {
                        $img = $p->related('image.id_product')->order('order DESC')->fetch();
                        ?>
                            <div class="image" style="background-image: url(<?php 
                        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($basePath), ENT_COMPAT);
                        ?>
/images/products/<?php 
                        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($p->id), ENT_COMPAT);
                        ?>
_<?php 
                        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($img->id), ENT_COMPAT);
                        ?>
_<?php 
                        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($img->name), ENT_COMPAT);
                        ?>
.<?php 
                        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($img->extension), ENT_COMPAT);
                        ?>
);  background-position: 50% 0%; background-size: 242px auto; background-repeat: no-repeat;"></div>
<?php 
                    } else {
                        ?>
                            <div class="image">
                                <img src="<?php 
                        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                        ?>
/images/products/default.png" alt="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($p->name, ENT_COMPAT);
                        ?>
">
                            </div>
<?php 
                    }
                    ?>
                        <div class="caption">
                            <h4>
                                <a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:product", array($p->id)), ENT_COMPAT);
                    ?>
"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($p->name, ENT_NOQUOTES);
                    ?>
</a>
                            </h4>
                            <p><?php 
                    echo Latte\Runtime\Filters::escapeHtml($template->truncate($p->description, 85), ENT_NOQUOTES);
                    ?>
</p>
                        </div>
                    </div>
                </div>
<?php 
                    $iterations++;
                }
                ?>
        </div>
        <!-- Pagination -->
        <div class="row row-center">
            <ul class="pagination">
                <li>
                    <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array($id, 1)), ENT_COMPAT);
                ?>
">&laquo;</a>
                </li>
<?php 
                for ($i = max(1, $paginator->page - 2); $i <= $paginator->page - 1; $i++) {
                    ?>
                    <li>
                        <a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array($id, $i)), ENT_COMPAT);
                    ?>
"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($i, ENT_NOQUOTES);
                    ?>
</a>
                    </li>
<?php 
                }
                ?>
                <li class="active">
                    <a href="#"><?php 
                echo Latte\Runtime\Filters::escapeHtml($paginator->page, ENT_NOQUOTES);
                ?>
</a>
                </li>
<?php 
                for ($i = $paginator->page + 1; $i <= min($paginator->page + 2, $paginator->getPageCount()); $i++) {
                    ?>
                    <li>
                        <a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array($id, $i)), ENT_COMPAT);
                    ?>
"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($i, ENT_NOQUOTES);
                    ?>
</a>
                    </li>
<?php 
                }
                ?>
                <li>
                    <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array($id, $paginator->getLastPage())), ENT_COMPAT);
                ?>
">&raquo;</a>
                </li>
            </ul>
        </div>
<?php 
                ob_start();
                ?>
        <div class="row row-center">
<?php 
                if ($id == null) {
                    ?>
                Nebyly nalezeny žádné produkty.
<?php 
                } else {
                    ?>
                V této kategorii nebyly nalezeny žádné produkty.
<?php 
                }
                ?>
        </div>
    <?php 
                if (isset($p)) {
                    ob_end_clean();
                    ob_end_flush();
                } else {
                    $_l->else = ob_get_contents();
                    ob_end_clean();
                    ob_end_clean();
                    echo $_l->else;
                }
                ?>


<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lbd741884690_head')) {
            function _lbd741884690_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<style>
		.caption { overflow: hidden; padding: 9px; color: #333;}
		h4, h4 a, h4 a:hover { white-space: nowrap; color: #222;}
		h4.pull-right { margin-right: 9px;}
        h4.pull-left { margin-left: 9px;}
        h4.pull-left img { height: 18px; width: auto; cursor: pointer;}
        .product { 
            display: block; 
            vertical-align: middle; 
            padding: 2px; 
            border-radius: 0px;
            margin: 0.6em; 
            box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7); 
            border: none; 
            height: 260px; 
            text-align: left;
        }
        .product .image { width: 100%; height: 100px; margin: 0; padding: 0; margin-top: 1.2em; overflow-y: hidden;}
        .product .image img { width: 100%; margin: 0; padding: 0; border: 0;}
        .row-center { text-align: center; padding: 1em;}
        .row-header { padding-top: 0;}
        .row-header ul.pagination { margin-top: 0;}
        .row-header .pagination>li>a, .row-header .pagination>li>span { color: #555; width: 150px;}
        .row-header .pagination>li.active>a, .row-header .pagination>li.active>span { color: #fff;}
	</style>
<?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());
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
        ?>

<?php 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('ccf3931c7c', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb666fc4dca6_content')) {
            function _lb666fc4dca6_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<div class="row">
<?php 
                if ($user->identity->roles[0] == 'riaditeľ') {
                    ?>
			<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal1">
			  Pridať výbeh
			</button>
			<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
			  <div class="modal-dialog" role="document">
			    <div class="modal-content">
			      <div class="modal-header">
			        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			        <h4 class="modal-title" id="myModalLabel">Pridať výbeh</h4>
			      </div>
			      <div class="modal-body">
<?php 
                    $_l->tmp = $_control->getComponent("vytvoritVybehForm");
                    if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                        $_l->tmp->redrawControl(NULL, FALSE);
                    }
                    $_l->tmp->render();
                    ?>
			      </div>
			    </div>
			  </div>
			</div>

			<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal2">
			  Pridať klietku
			</button>
			<div class="modal fade" id="modal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
			  <div class="modal-dialog" role="document">
			    <div class="modal-content">
			      <div class="modal-header">
			        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			        <h4 class="modal-title" id="myModalLabel2">Pridať klietku</h4>
			      </div>
			      <div class="modal-body">
<?php 
                    $_l->tmp = $_control->getComponent("vytvoritKliektuForm");
                    if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                        $_l->tmp->redrawControl(NULL, FALSE);
                    }
                    $_l->tmp->render();
                    ?>
			      </div>
			    </div>
			  </div>
			</div>
<?php 
                }
                ?>

		<a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Umiestnenie:vypis"), ENT_COMPAT);
                ?>
" class="btn btn-success">Vypísať všetky</a>
	</div>





	<div class="row">
		<table class="table table-bordered table-hover">
		    <tr>
		        <th>Identifikačné číslo</th>
		        <th>Názov</th>
		        <th></th>
		    </tr>
<?php 
                $iterations = 0;
                foreach ($umiestnenia as $umiestnenie) {
                    ?>
		    <tr>
		        <td><?php 
                    echo Latte\Runtime\Filters::escapeHtml($umiestnenie->IDUmiestnenia, ENT_NOQUOTES);
                    ?>
</td>
		        <td><?php 
                    echo Latte\Runtime\Filters::escapeHtml($umiestnenie->nazov, ENT_NOQUOTES);
                    ?>
</td>
		        <td><?php 
                    $_l->tmp = $_control->getComponent("viacButton-{$umiestnenie->IDUmiestnenia}");
                    if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                        $_l->tmp->redrawControl(NULL, FALSE);
                    }
                    $_l->tmp->render();
                    ?>
</td>
		    </tr>
<?php 
                    $iterations++;
                }
                ?>
		</table>
	</div>
<?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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('9afc04d01a', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbb5c3a5478c_content')) {
            function _lbb5c3a5478c_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="<?php 
                echo $_control->getSnippetId('photoDelete');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_photoDelete']), $_b, $template->getParameters());
                ?>
</div><?php 
            }
        }
        //
        // block _photoDelete
        //
        if (!function_exists($_b->blocks['_photoDelete'][] = '_lb635f555bcc__photoDelete')) {
            function _lb635f555bcc__photoDelete($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('photoDelete', FALSE);
                ?>
        <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["photoDeleteForm"], array());
                ?>

 		  	<!--- Modal-header -->
			<div class="modal-header panel-heading">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
		        <h2 class="modal-title">Mazání fotografií</h2>
			</div>
			<!-- Modal-body -->
			<div class="modal-body panel-body">
				<div class="row" id="content">
				    <!-- vykreslení chyb -->
<?php 
                if ($form->hasErrors()) {
                    ?>
			        <ul class="errors">
<?php 
                    $iterations = 0;
                    foreach ($form->errors as $error) {
                        ?>
			            <li><?php 
                        echo Latte\Runtime\Filters::escapeHtml($error, ENT_NOQUOTES);
                        ?>
</li>
<?php 
                        $iterations++;
                    }
                    ?>
			        </ul> 
<?php 
                }
                ?>
		            <div class="col-md-12 col-lg-12"> 
		               	<table id="photos_delete">
<?php 
                $iterations = 0;
                foreach ($photos as $photo) {
                    ?>
								<tr class="required">
								    <td><?php 
                    $_input = is_object($photo->id) ? $photo->id : $_form[$photo->id];
                    echo $_input->getControl();
                    ?>
</td>
								    <td style="background-image: url(../../images/products/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($product->id), ENT_COMPAT);
                    ?>
_<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($photo->id), ENT_COMPAT);
                    ?>
_<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($photo->name), ENT_COMPAT);
                    ?>
.<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($photo->extension), ENT_COMPAT);
                    ?>
);  background-position: 50% 0%; background-size: auto 120px; background-repeat: no-repeat;">
								    	<img class="icon-selected" src="../../images/icons/blue//118.png">
								    </td>
								</tr>
<?php 
                    $iterations++;
                }
                ?>
						</table>
						<div class="hidden">
							<?php 
                echo $_form["id_product"]->getControl();
                ?>

						</div>
		            </div>
		       	</div>
			</div>
			<!-- Modal footer -->
			<div class="modal-footer panel-footer">
				<?php 
                echo $_form["send"]->getControl();
                ?>

			  	<input type="button" class="btn btn-default" data-dismiss="modal" value="Zavřít">
			</div>       
        <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form);
                ?>

<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lb7ac135034e_head')) {
            function _lb7ac135034e_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<style>
    div.flash, ul.errors { margin: 0 1em 1em 1em;}
    div.hidden { display: none;}
<?php 
                if (isset($product)) {
                    ?>
    .panel-heading { background: #<?php 
                    echo Latte\Runtime\Filters::escapeCss($product->category->color);
                    ?>
; }
<?php 
                }
                ?>
    h2.modal-title { color: #222;}

    #content table { margin: 1em auto;}
    #content td img { width: 120px; margin: 0; padding: 0; border: 0;}
    #content tr td:first-child { display:none; border-radius: 10px 0 0 10px;}
    #content input { cursor: pointer;}
    #content table tr { display: inline-block; margin: 2px; }
    #content table tr td { vertical-align: middle; text-align: center; padding: 0; width: 137px; height: 137px; }
    #content table tr.required { cursor: pointer; }
    #content table tr.required td input { vertical-align: middle; }
    #content img.icon-selected {
    	width: 50px;
    	display: none;
    }
</style>
<?php 
            }
        }
        //
        // end of blocks
        //
        // template extending
        $_l->extends = "../@layout-modal.latte";
        $_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
        //
        ?>

<?php 
        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['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('e22d181036', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbd4656386f1_content')) {
            function _lbd4656386f1_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                if (count($flashes) !== 0) {
                    $iterations = 0;
                    foreach ($flashes as $flash) {
                        ?>
            <div<?php 
                        if ($_l->tmp = array_filter(array('flash', $flash->type, 'zero-padding', 'container-fluid'))) {
                            echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"';
                        }
                        ?>
>
                <strong>
                    <i><p style="padding-top:2px;" class="container">
                            <?php 
                        if ($flash->type === 'success') {
                            ?>
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'error') {
                            ?>
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'warning') {
                            ?>
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'info') {
                            ?>
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                                <?php 
                        echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES);
                        ?>

                        </p>
                    </i>
                </strong>
            </div>
<?php 
                        $iterations++;
                    }
                }
                ?>
            
<div id="social" class="container">
        <div class="col-md-offset-11 col-md-1 col-xs-offset-10 col-xs-2 zero_padding">
            <div id="social_facebook" class="col-md-6 col-xs-6">
                <a href="https://www.facebook.com/plavani.blansko/" data-toggle="tooltip" data-placement="bottom" title="Stránka oddílu na Facebooku"></a>
            </div>
            <div id="social_web" class="col-md-6 col-xs-6">
                <a href="http://ask-plavani.webnode.cz/" data-toggle="tooltip" data-placement="bottom" title="Internetové stránky oddílu"></a>
            </div>
        </div>            
    </div>             
            
<div id="content_inside_default" class="container">   
    
    <div class="row zero_margin" id="oddil_nazev">
        <div class="col-md-12">
            <h1 class="text-center">Plavecký oddíl ASK Blansko</h1>
        </div>
    </div> 
    <div class="row zero_margin" id="logo_large">
        <div class="col-md-12">
            <img src="images/logo_large.png"  alt="ASKBl_Logo_large">
        </div>
    </div> 
    <div class="row zero_margin" id="app_nazev">
        <div class="col-md-offset-3 col-md-9">
        <h2 class="col-md-8 text-center">iSAM - Správce oddílové databáze</h2>
        </div>
    </div>
    <br><br>
    <div class="row zero_margin" id="popis">
        <div class="col-md-offset-1 col-md-10">
        <h3 class=" text-center">Internetová aplikace iSAM - Internet Swimmming Administrative Manager je
            informační systém pro plavce, rodiče, trenéry a obecně pro všechny příznivce 
            blanenského plavání.</h3>
        </div>
    </div>  
</div>

<div class="modal fade" id="signin_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-sm" role="document">
    <form class="form-horizontal"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["signInForm"], array('class' => NULL), FALSE);
                ?>
>  
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">Přihlásit se</h4>
        </div>
        <div class="modal-body">
            <div id="user-name_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Uživatelské jméno</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="text" class="form-control"<?php 
                $_input = $_form["username"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                </div>
            </div>
                
            <div id="password_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Heslo</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="password" class="form-control"<?php 
                $_input = $_form["password"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                 </div>
            </div>
            
            <div id="signin_remember" class=" checkbox zero_padding">
                <label><input type="checkbox"<?php 
                $_input = $_form["remember"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL))->attributes();
                ?>
>Pamatuj si mě</label>
                <span class="glyphicon glyphicon-info-sign font16" data-toggle="tooltip" data-placement="top" title="Nezaškrtnuto - odhlášení po 20 minutách nebo uzavření prohlížeče. Zašktnuto - odhlášení za 14 dnů" aria-hidden="true"></span>
            </div>
                               
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button> 
        <button type="submit" class="btn btn-primary"<?php 
                $_input = $_form["signin"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>Přihlásit</button>
      </div>
    </div>
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>    
  </div>
</div>
    
<?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
        //
        ?>

<?php 
        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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('d9db5f0ca4', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb980562ddc4_content')) {
            function _lb980562ddc4_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="<?php 
                echo $_control->getSnippetId('sign');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_sign']), $_b, $template->getParameters());
                ?>
</div><?php 
            }
        }
        //
        // block _sign
        //
        if (!function_exists($_b->blocks['_sign'][] = '_lb68cbcaaf7d__sign')) {
            function _lb68cbcaaf7d__sign($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('sign', FALSE);
                ?>
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["signInForm"], array());
                ?>

    	<!--- Modal-header -->
		<div class="modal-header panel-heading">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
	    	<h2 class="modal-title">Přihlášení</h2>
		</div>
		<!-- Modal-body -->
		<div class="modal-body panel-body">
			<div class="row">
		        <div class="left-panel col-md-12">
		        	<!-- vykreslení chyb -->
<?php 
                if ($form->hasErrors()) {
                    ?>
				    <ul class="errors">
<?php 
                    $iterations = 0;
                    foreach ($form->errors as $error) {
                        ?>
				        <li><?php 
                        echo Latte\Runtime\Filters::escapeHtml($error, ENT_NOQUOTES);
                        ?>
</li>
<?php 
                        $iterations++;
                    }
                    ?>
				    </ul> 
<?php 
                }
                ?>
		        	<img class="col-md-4" src="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/images/web/icons/user_success.png" style="max-width: 100%">
		        	<div class="col-md-8 mar-input">
		        		Po úspěšném přihlášení do systému se budete moci účastnit jednotlivých aukcí, nové aukce zakládat a mnoho dalšího. 
		        	</div>
		        	<div class="col-md-8">
					    <!-- vykresleni formu -->
					    <div class="mar-input input-group col-xs-12">
					       	<span class="input-group-addon" id="login-username" style="width: 8em">Nick</span>
					        <?php 
                echo $_form["username"]->getControl();
                ?>

					    </div>
					    <div class="mar-input input-group col-xs-12">
					        <span class="input-group-addon" id="login-password" style="width: 8em">Heslo</span>
					        <?php 
                echo $_form["password"]->getControl();
                ?>

					    </div>
					    <div class="input-group col-xs-12">
					    	<?php 
                echo $_form["remember"]->getControl();
                ?>

					    </div>
			        </div>
		        </div>
	        </div>
        </div>
        <!-- Modal footer -->
		<div class="modal-footer panel-footer">
			<?php 
                echo $_form["send"]->getControl();
                ?>

		  	<input type="button" class="btn btn-default" data-dismiss="modal" value="Zavřít">
		</div>
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form);
                ?>

<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lb841e155f9f_head')) {
            function _lb841e155f9f_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<style>
	div.mar-input { margin-bottom: 1em;}
	label { color: #555; font-weight: normal;}
	input[type=checkbox] { float: left; margin-right: 5px;}
</style>
<?php 
            }
        }
        //
        // end of blocks
        //
        // template extending
        $_l->extends = "../@layout-modal.latte";
        $_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
        //
        ?>

<?php 
        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['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('52894965bd', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbd20bf6aae7_content')) {
            function _lbd20bf6aae7_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<script type="text/javascript">  
    google.charts.load('current', {'language': 'cs', 'packages':['corechart']});
</script>    

<div id="swimmers_head" >
    <div class="container">    
        <div id="navigation" class="row">
            
<?php 
                if (count($flashes) !== 0) {
                    $iterations = 0;
                    foreach ($flashes as $flash) {
                        ?>
            <div<?php 
                        if ($_l->tmp = array_filter(array('flash', $flash->type, 'zero-padding'))) {
                            echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"';
                        }
                        ?>
>
                <strong>
                    <i><p style="padding-left:0px;" class="container">
                            <?php 
                        if ($flash->type === 'success') {
                            ?>
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'error') {
                            ?>
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'warning') {
                            ?>
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                            <?php 
                        if ($flash->type === 'info') {
                            ?>
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span><?php 
                        }
                        ?>

                                <?php 
                        echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES);
                        ?>

                        </p>
                    </i>
                </strong>
            </div>
<?php 
                        $iterations++;
                    }
                } else {
                    ?>
            <div class="col-xs-8 col-md-8 zero_padding">
                <p><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT);
                    ?>
">Úvodní stránka</a><span> ❯ </span><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Swimmers:swimmers"), ENT_COMPAT);
                    ?>
">Plavci</a><span> ❯ </span>Statistiky</p>
            </div>
<?php 
                    if ($user->loggedIn) {
                        ?>
                <div id="prihlasen" class="">           
                    <p>Přihlášen: <strong><?php 
                        echo Latte\Runtime\Filters::escapeHtml($user->getIdentity()->username, ENT_NOQUOTES);
                        ?>
</strong></p>
                </div>                
<?php 
                    } else {
                        ?>
                <div id="neprihlasen" class="">           
                    <p>Nepřihlášen</p>
                </div>
<?php 
                    }
                }
                ?>
        </div>    
    </div>
    <div id="plavci_h2" class="row">
       <div class="col-md-12 text-center">
<?php 
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
       </div>
    </div> 
</div>
        
<div id="stats_content" class="container-fluid">        
  <div class="container">    
    <div class="panel panel-default col-md-12 zero_padding bottom7px">
        <div class="panel-body">
            <div><h3 class="zero_margin text-center"><?php 
                echo Latte\Runtime\Filters::escapeHtml($swimmer_name->firstname, ENT_NOQUOTES);
                ?>
 <?php 
                echo Latte\Runtime\Filters::escapeHtml($swimmer_name->surname, ENT_NOQUOTES);
                ?>
</h3></div>
        </div>
    </div>
    
<div id="<?php 
                echo $_control->getSnippetId('GlobalPerformance');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_GlobalPerformance']), $_b, $template->getParameters());
                ?>
</div>
<div id="<?php 
                echo $_control->getSnippetId('YearPerformance');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_YearPerformance']), $_b, $template->getParameters());
                ?>
</div>
    <div id="stroke-count" class="col-md-6">    
        <div id="stroke-count_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
            <div class="panel-heading main-panel_heading">
                <h3 class="panel-title font18">Četnost jednotlivých stylů a distancí</h3>
            </div>
            <div class="panel-body">
                <div id="SC_chart" class="col-md-12 zero_padding">
                    <div id="stroke-count_piechart" ></div>
                </div>
            </div>
        </div> 
    </div>  
        
       
    <div id="course-count_panel" class="panel panel-default col-md-6 zero_padding bottom7px">
        <div class="panel-heading main-panel_heading">
            <h3 class="panel-title font18">Počet závodů na krátkém a dlouhém bazénu</h3>
        </div>
        <div class="panel-body">
            <div id="CC_chart" class="col-md-12 zero_padding">
                <div id="course-count_piechart" ></div>
            </div>
        </div>
    </div> 
        
    <div id="table_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
                <div class="panel-heading main-panel_heading">
                    <h3 class="panel-title font18">Seznam závodů, kterých se plavec zúčastnil</h3>
                </div>
                <div class="panel-body">
                    <div id="events_tab">
                        <div id="events_tab_head">    
                            <div class="row">
                               <div class="col-md-12">                     
                                  <table class="table"> 
                                            <tr>
                                              <td id="tab_head_date"><span><strong>Datum</strong></span></td> 
                                              <td id="tab_head_name"><span><strong>Název</strong></span></td>
                                              <td id="tab_head_note"><span><strong>Trvání</strong></span></td>
                                              <td id="tab_head_lcm"><span><strong>Bazén</strong></span></td>
                                              <td id="tab_head_members"><span><strong>Plavci</strong></span></td>
                                              <?php 
                if ($user->loggedIn) {
                    ?>
<td id="tab_head_delete"><span><strong>Smazat</strong></span></td><?php 
                }
                ?>

                                            </tr>   
                                  </table>
                               </div>
                            </div> 
                        </div>        
                        <div class="row zero_margin">        
                            <div id="events_tab_content" class="col-md-12">
                                <table class="table table-bordered"> 
                                    <tr id="alt_tab_head">
                                              <td><span><strong>Datum</strong></span></td> 
                                              <td id="tab_head_name"><span><strong>Název</strong></span></td>
                                              <td><span><strong>Trvání</strong></span></td>
                                              <td><span><strong>Bazén</strong></span></td>
                                              <td><span><strong>Plavci</strong></span></td>                                                          
                                    </tr> 
<?php 
                if (isset($events_participated)) {
                    $iterations = 0;
                    foreach ($events_participated as $i => $event_participated) {
                        ?>
                                                <tr id="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($event_participated->id, ENT_COMPAT);
                        ?>
">
                                                  <td id="tab_date"><?php 
                        echo Latte\Runtime\Filters::escapeHtml($template->date($event_participated->date, 'j.n.Y'), ENT_NOQUOTES);
                        ?>
</td> 
                                                  <td id="tab_name"><?php 
                        echo Latte\Runtime\Filters::escapeHtml($event_participated->name, ENT_NOQUOTES);
                        ?>
</td>
                                                  <td id="tab_note"><?php 
                        if ($event_participated->note === '') {
                            ?>
1 den<?php 
                        } else {
                            echo Latte\Runtime\Filters::escapeHtml($event_participated->note, ENT_NOQUOTES);
                        }
                        ?>
</td>
                                                  <td id="tab_lcm"><?php 
                        if ($event_participated->lcm === '1') {
                            ?>
50m<?php 
                        } else {
                            ?>
25m<?php 
                        }
                        ?>
</td>
                                                  <td id="tab_members"><a class="ajax" onclick="showMembers()" data-toggle="tooltip" data-placement="top" title="Zúčastnění plavci" href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("showMembers!", array($event_participated->id)), ENT_COMPAT);
                        ?>
">
                                                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                    <span id="glyphicon_user_middle" class="glyphicon glyphicon-user" aria-hidden="true"></span>
                                                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span></a></td>                                                 
                                                </tr>  
<?php 
                        $iterations++;
                    }
                }
                ?>
                                </table>
                            </div>                                       
                        </div>
                    </div>                                
                </div>
    </div>                
    
    
    <div id="event-count" class="col-md-6">     
        <div id="event-count_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
            <div class="panel-heading main-panel_heading">
                <h3 class="panel-title font18">Počty závodů v jednotlivých letech</h3>
            </div>
            <div class="panel-body">
                <div id="EC_chart" class="col-md-12 zero_padding">
                    <div id="event-count_columnchart" class="bottom7px"></div>
                </div>
                <div class="panel panel-default zero_margin col-md-12 zero_padding top7px">
                    <div class="panel-body">
                        Celkem: <strong><?php 
                echo Latte\Runtime\Filters::escapeHtml($event_count_global, ENT_NOQUOTES);
                ?>
</strong>
                    </div>
                </div>
            </div>
        </div> 
    </div>                
        
    <div id="start-count_panel" class="panel panel-default col-md-6 zero_padding bottom7px">
        <div class="panel-heading main-panel_heading">
            <h3 class="panel-title font18">Počty startů v jednotlivých letech</h3>
        </div>
        <div class="panel-body">
            <div id="STC_chart" class="col-md-12 zero_padding">
                <div id="start-count_columnchart" class="bottom7px"></div>
            </div>
            <div class="panel panel-default zero_margin col-md-12 zero_padding top7px">
                <div class="panel-body">
                    Celkem: <strong><?php 
                echo Latte\Runtime\Filters::escapeHtml($start_count_global, ENT_NOQUOTES);
                ?>
</strong>
                </div>
            </div>
        </div>
    </div>

<div id="<?php 
                echo $_control->getSnippetId('AveragePoints');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_AveragePoints']), $_b, $template->getParameters());
                ?>
</div>
    <div id="points_global" class="col-md-6 zero_padding">
        <div id="points-global_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
            <div class="panel-heading main-panel_heading">
                <h3 class="panel-title font18">Maximální počet bodů v každé disciplíně</h3>
            </div>
            <div class="panel-body"> 
                <div id="PG_chart" class="col-md-12 zero_padding">
                    <div id="points-global_columnchart"></div>  
                </div>
                <div class="panel panel-default zero_margin col-md-12 zero_padding top7px">
                    <div class="panel-body">
                        Průměrná výkonostní úroveň: <strong><?php 
                echo Latte\Runtime\Filters::escapeHtml($average_rating, ENT_NOQUOTES);
                ?>
</strong>
                    </div>
                </div>
            </div>
        </div> 
    </div> 

    <div id="distance_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
        <div class="panel-heading main-panel_heading">
            <h3 class="panel-title font18">Uplavaná vzdálenost na závodech (v metrech)</h3>
        </div>
        <div class="panel-body">
            <div id="D_chart" class="col-md-12 zero_padding">
                <div id="distance_columnchart" class="bottom7px"></div>
            </div>
            <div class="panel panel-default zero_margin col-md-12 zero_padding top7px">
                <div class="panel-body">
                    <div class="col-md-6">Celkem: <strong><?php 
                echo Latte\Runtime\Filters::escapeHtml($distance_global, ENT_NOQUOTES);
                ?>
m</strong></div>                   
                </div>
            </div>               
        </div>
    </div>
                    
        
</div>              
</div>


<script type="text/javascript">     
    google.charts.setOnLoadCallback(drawStrokeCountChart);
    google.charts.setOnLoadCallback(drawEventCountChart);
    google.charts.setOnLoadCallback(drawCourseCountChart);
    google.charts.setOnLoadCallback(drawStartCountChart);
    google.charts.setOnLoadCallback(drawPointsGlobalChart);
    google.charts.setOnLoadCallback(drawDistanceChart);

    
    function drawStrokeCountChart() 
    {            
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Styl');
        data.addColumn('number', 'Četnost');    
        
<?php 
                $iterations = 0;
                foreach ($stroke_count_all as $stroke => $count) {
                    ?>
            data.addRow([<?php 
                    echo Latte\Runtime\Filters::escapeJs($stroke);
                    ?>
, <?php 
                    echo Latte\Runtime\Filters::escapeJs($count);
                    ?>
]);
<?php 
                    $iterations++;
                }
                ?>
        
        var options = {       
            height: 350,
            is3D: true,
            width: 546,
            chartArea: {
                left:60,top:20,width:'90%',height:'90%'
            }
        };

        var chart = new google.visualization.PieChart(document.getElementById('stroke-count_piechart'));
        chart.draw(data, options);      
    }
    
    function drawEventCountChart() 
    {            
        var data = new google.visualization.DataTable();
        data.addColumn('datetime', 'Rok');
        data.addColumn('number', 'Počet');    
        
<?php 
                $iterations = 0;
                foreach ($event_count_byYear as $year => $count) {
                    ?>
            data.addRow([new Date(<?php 
                    echo Latte\Runtime\Filters::escapeJs($year);
                    ?>
, 5, 5, 0, 0, 0, 0), <?php 
                    echo Latte\Runtime\Filters::escapeJs($count);
                    ?>
]);
<?php 
                    $iterations++;
                }
                ?>
            
        var timeFormatter = new google.visualization.DateFormat({
            pattern: "yyyy"
        });
        timeFormatter.format(data, 0);    
        
        var options = {       
            height: 350,
            legend:{
                position: 'top'},
            width: 546,
            legend: { position: "none" },
            chartArea: {
                left:65,top:40,width:'80%',height:'80%'
            },
            hAxis: {
                format: 'yyyy',
            }
        };

        var chart = new google.visualization.ColumnChart(document.getElementById('event-count_columnchart'));
        chart.draw(data, options);      
    }
    
    function drawCourseCountChart() 
    {            
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Bazén');
        data.addColumn('number', 'Četnost');    
        
<?php 
                $iterations = 0;
                foreach ($course_count as $course => $count) {
                    ?>
            data.addRow([<?php 
                    echo Latte\Runtime\Filters::escapeJs($course);
                    ?>
, <?php 
                    echo Latte\Runtime\Filters::escapeJs($count);
                    ?>
]);
<?php 
                    $iterations++;
                }
                ?>
        
        var options = {       
            height: 350,
            is3D: true,
            width: 555,
            chartArea: {
                left:60,top:20,width:'90%',height:'90%'
            }
        };

        var chart = new google.visualization.PieChart(document.getElementById('course-count_piechart'));
        chart.draw(data, options);    
    }
    
    function drawStartCountChart() 
    {            
        var data = new google.visualization.DataTable();
        data.addColumn('datetime', 'Rok');
        data.addColumn('number', 'Počet');    
        
<?php 
                $iterations = 0;
                foreach ($start_count_byYear as $year => $count) {
                    ?>
            data.addRow([new Date(<?php 
                    echo Latte\Runtime\Filters::escapeJs($year);
                    ?>
, 5, 5, 0, 0, 0, 0), <?php 
                    echo Latte\Runtime\Filters::escapeJs($count);
                    ?>
]);
<?php 
                    $iterations++;
                }
                ?>
            
        var timeFormatter = new google.visualization.DateFormat({
            pattern: "yyyy"
        });
        timeFormatter.format(data, 0);    
        
        var options = {       
            height: 350,
            legend:{
                position: 'top'},
            width: 555,
            legend: { position: "none" },
            chartArea: {
                left:65,top:40,width:'80%',height:'80%'
            },
            hAxis: {
                format: 'yyyy',
            }
        };

        var chart = new google.visualization.ColumnChart(document.getElementById('start-count_columnchart'));
        chart.draw(data, options);      
    }
    
    function drawPointsGlobalChart() 
    {            
         var data = new google.visualization.DataTable();
        data.addColumn('string', '');
        data.addColumn('number', '');
        data.addColumn({ type: 'string', role: 'style' });
        
<?php 
                $iterations = 0;
                foreach ($points_global as $stroke => $points) {
                    ?>
            data.addRow([<?php 
                    echo Latte\Runtime\Filters::escapeJs($stroke);
                    ?>
, <?php 
                    echo Latte\Runtime\Filters::escapeJs($points);
                    ?>
, "#"+((1<<24)*Math.random()|0).toString(16)]);
<?php 
                    $iterations++;
                }
                ?>
       
        var options = {       
            height: 385,         
            width: 555,
            vAxis:{
                minValue:0,
                maxValue: 1000
            },
            bar: { groupWidth: "80%" },
            legend: { position: "none" },
            chartArea: {
                left:45,top:45,width:'90%',height:'75%'
            },         
        };

        var chart = new google.visualization.ColumnChart(document.getElementById('points-global_columnchart'));
        chart.draw(data, options);      
    }
    
    function drawDistanceChart() 
    {            
         var data = new google.visualization.DataTable();
        data.addColumn('string', '');
        data.addColumn('number', '');
        data.addColumn({ type: 'string', role: 'style' });
        
        
<?php 
                $iterations = 0;
                foreach ($distance_byStroke as $stroke => $distance) {
                    ?>
            data.addRow([<?php 
                    echo Latte\Runtime\Filters::escapeJs($stroke);
                    ?>
, <?php 
                    echo Latte\Runtime\Filters::escapeJs($distance);
                    ?>
, "#"+((1<<24)*Math.random()|0).toString(16)]);
<?php 
                    $iterations++;
                }
                ?>
       
        var options = {       
            height: 350,
            legend:{
                position: 'top'},
            width: 1140,
            legend: { position: "none" },
            bar: { groupWidth: "90%" },
            chartArea: {
                left:65,top:40,width:'92%',height:'70%'
            },         
        };

        var chart = new google.visualization.ColumnChart(document.getElementById('distance_columnchart'));
        
        chart.draw(data, options);        
    }              
</script>

<div class="modal fade" id="signin_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-sm" role="document">
    <form class="form-horizontal"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["signInForm"], array('class' => NULL), FALSE);
                ?>
>  
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">Přihlásit se</h4>
        </div>
        <div class="modal-body">
            <div id="user-name_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Uživatelské jméno</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="text" class="form-control"<?php 
                $_input = $_form["username"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                </div>
            </div>
                
            <div id="password_panel" class="panel panel-primary bottom7px">
                <div class="panel-heading">
                    <h3 class="panel-title">Heslo</h3>
                </div>
                <div class="panel-body">
                    <div>
                        <input type="password" class="form-control"<?php 
                $_input = $_form["password"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>
                    </div>
                 </div>
            </div>
            
            <div id="signin_remember" class=" checkbox zero_padding">
                <label><input type="checkbox"<?php 
                $_input = $_form["remember"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL))->attributes();
                ?>
>Pamatuj si mě</label>
                <span class="glyphicon glyphicon-info-sign font16" data-toggle="tooltip" data-placement="top" title="Nezaškrtnuto - odhlášení po 20 minutách nebo uzavření prohlížeče. Zašktnuto - odhlášení za 14 dnů" aria-hidden="true"></span>
            </div>
                               
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button> 
        <button type="submit" class="btn btn-primary"<?php 
                $_input = $_form["signin"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                ?>
>Přihlásit</button>
      </div>
    </div>
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>    
  </div>
</div>

<div class="modal fade" id="members_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-md" role="document">   
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">Zúčastnění plavci</h4>
        </div>
        <div class="modal-body">
<div id="<?php 
                echo $_control->getSnippetId('members');
                ?>
"><?php 
                call_user_func(reset($_b->blocks['_members']), $_b, $template->getParameters());
                ?>
</div>        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button> 
        </div>
    </div>  
  </div>
</div> 
        
<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lba90f7e0171_title')) {
            function _lba90f7e0171_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
          <h2>Statistiky</h2>
<?php 
            }
        }
        //
        // block _GlobalPerformance
        //
        if (!function_exists($_b->blocks['_GlobalPerformance'][] = '_lbf6605ddd45__GlobalPerformance')) {
            function _lbf6605ddd45__GlobalPerformance($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('GlobalPerformance', FALSE);
                ?>
<script type="text/javascript">  
    google.charts.setOnLoadCallback(drawGlobalPerformanceChart);
    
    function drawGlobalPerformanceChart() 
    {   
    
<?php 
                if (isset($GP_years_scm_select)) {
                    ?>
        var GP_years_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_years_scm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var GP_years_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_years_scm);
                    ?>
;
<?php 
                }
                ?>
    
    for (var j = 0; j < GP_years_scm.length; j++) { 
        GP_years_scm[j] = String(GP_years_scm[j]);
    }   
      
<?php 
                if (isset($GP_years_lcm_select)) {
                    ?>
        var GP_years_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_years_lcm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var GP_years_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_years_lcm);
                    ?>
;
<?php 
                }
                ?>
    
    for (var j = 0; j < GP_years_lcm.length; j++) { 
        GP_years_lcm[j] = String(GP_years_lcm[j]);
    }
    
<?php 
                if (isset($GP_times_scm_select)) {
                    ?>
        var GP_times_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_times_scm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var GP_times_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_times_scm);
                    ?>
;
<?php 
                }
                ?>
        
<?php 
                if (isset($GP_times_lcm_select)) {
                    ?>
        var GP_times_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_times_lcm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var GP_times_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($GP_times_lcm);
                    ?>
;
<?php 
                }
                ?>
       
        var data_scm = new google.visualization.DataTable();
        data_scm.addColumn('string', 'Rok');
        data_scm.addColumn('datetime', '25m');
    
        for (var i = 0; i < GP_years_scm.length; i++) {         
            data_scm.addRow([GP_years_scm[i], new Date(2014, 5, 5, 0, GP_times_scm[i][0], GP_times_scm[i][1], GP_times_scm[i][2])]);
        }   
        
        var data_lcm = new google.visualization.DataTable();
        data_lcm.addColumn('string', 'Rok');
        data_lcm.addColumn('datetime', '50m');
   
        for (var i = 0; i < GP_years_lcm.length; i++) {         
            data_lcm.addRow([GP_years_lcm[i], new Date(2014, 5, 5, 0, GP_times_lcm[i][0], GP_times_lcm[i][1], GP_times_lcm[i][2])]);
        }
        
        var joinedData = google.visualization.data.join(data_scm, data_lcm, 'full', [[0, 0]], [1], [1]);
        
        var timeFormatter = new google.visualization.DateFormat({
            pattern: "m:ss,SS"
        });
        timeFormatter.format(joinedData, 1);
        timeFormatter.format(joinedData, 2);
        var options = {           
         
            curveType: 'function',
            legend: { position: 'right' },
            vAxis: {
                title:'Čas',
                format: 'm:ss,00',
                direction: -1,            
            },
              hAxis: {
                title:'Rok',
            },    
            pointSize: 4,                 
            height: 350,
            width: 950,
            interpolateNulls: true,                      
        };
        var chart = new google.visualization.LineChart(document.getElementById('GlobalPerformance_curve_chart'));
        chart.draw(joinedData, options);
    }
</script>
            
    <div id="time-progress_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
        <div class="panel-heading main-panel_heading">
            <h3 class="panel-title font18">Výkonnost v průběhu let</h3>
        </div>
        <div class="panel-body">
            <div class="col-md-2 zero_padding stroke_choosing">
                <form class="form-horizontal ajax"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["globalPerformanceForm"], array('class' => NULL), FALSE);
                ?>
>
                <div class="panel panel-default bottom7px">
                    <div class="panel-body">                       
                            <div class="col-md-3 zero_padding"><label class="top7px">Styl:</label></div>    
                            <div class="col-md-9 zero_padding"><select class="form-control"<?php 
                $_input = $_form["stroke"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>    
                            <input type="submit" name="make" class="ajax button btn btn-default col-md-offset-6 col-md-6 top7px" value="Vytvořit">
                    </div>
                </div>                        
                <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
                
            </div>    
            <div id="GP_chart" class="col-md-10 zero_padding">
                <div id="GlobalPerformance_curve_chart" ></div>
            </div>    
        </div>
    </div>
<?php 
            }
        }
        //
        // block _YearPerformance
        //
        if (!function_exists($_b->blocks['_YearPerformance'][] = '_lb0b606e913d__YearPerformance')) {
            function _lb0b606e913d__YearPerformance($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('YearPerformance', FALSE);
                ?>
<script type="text/javascript">  
    google.charts.setOnLoadCallback(drawYearPerformanceChart);
    
    function drawYearPerformanceChart() 
    {   
    
<?php 
                if (isset($YP_years_scm_select)) {
                    ?>
        var YP_years_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_years_scm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var YP_years_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_years_scm);
                    ?>
;
<?php 
                }
                ?>
    
    
      
<?php 
                if (isset($YP_years_lcm_select)) {
                    ?>
        var YP_years_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_years_lcm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var YP_years_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_years_lcm);
                    ?>
;
<?php 
                }
                ?>
    
    
    
<?php 
                if (isset($YP_times_scm_select)) {
                    ?>
        var YP_times_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_times_scm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var YP_times_scm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_times_scm);
                    ?>
;
<?php 
                }
                ?>
        
<?php 
                if (isset($YP_times_lcm_select)) {
                    ?>
        var YP_times_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_times_lcm_select);
                    ?>
;
<?php 
                } else {
                    ?>
        var YP_times_lcm = <?php 
                    echo Latte\Runtime\Filters::escapeJs($YP_times_lcm);
                    ?>
;
<?php 
                }
                ?>
       
        var data_scm = new google.visualization.DataTable();
        data_scm.addColumn('date', 'Rok');
        data_scm.addColumn('datetime', '25m');
    
        for (var i = 0; i < YP_years_scm.length; i++) {         
            data_scm.addRow([new Date(YP_years_scm[i][2], YP_years_scm[i][1], YP_years_scm[i][0]), new Date(2014, 5, 5, 0, YP_times_scm[i][0], YP_times_scm[i][1], YP_times_scm[i][2])]);
        }  
        
        var data_lcm = new google.visualization.DataTable();
        data_lcm.addColumn('date', 'Rok');
        data_lcm.addColumn('datetime', '50m');
   
        for (var i = 0; i < YP_years_lcm.length; i++) {         
            data_lcm.addRow([new Date(YP_years_lcm[i][2], YP_years_lcm[i][1], YP_years_lcm[i][0]), new Date(2014, 5, 5, 0, YP_times_lcm[i][0], YP_times_lcm[i][1], YP_times_lcm[i][2])]);
        }
      
        
        var joinedData = google.visualization.data.join(data_scm, data_lcm, 'full', [[0, 0]], [1], [1]);       
        
        var timeFormatter = new google.visualization.DateFormat({
            pattern: "m:ss,SS"
        });
        timeFormatter.format(joinedData, 1);
        timeFormatter.format(joinedData, 2);
        var options = {           
         
            curveType: 'function',
            legend: { position: 'right' },
            annotations: {
    boxStyle: {
      // Color of the box outline.
      stroke: '#000',
  },},
            vAxis: {
                title:'Čas',
                format: 'm:ss,00',
                direction: -1,            
            },
              hAxis: {
                title:'Datum',
                format: 'dd. MM.',
            },    
            pointSize: 4,                 
            height: 350,
            width: 950,
            interpolateNulls: true,                      
        };
        var chart = new google.visualization.LineChart(document.getElementById('YearPerformance_curve_chart'));
        chart.draw(joinedData, options);
    }
</script>

    <div id="year-performance_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
        <div class="panel-heading main-panel_heading">
            <h3 class="panel-title font18">Výkonnost v konkrétním roce</h3>
        </div>
        <div class="panel-body">
            <div class="col-md-2 zero_padding stroke_choosing">
                <form class="form-horizontal ajax"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["yearPerformanceForm"], array('class' => NULL), FALSE);
                ?>
>
                <div class="panel panel-default bottom7px">
                    <div class="panel-body">                       
                            <div class="col-md-3 zero_padding"><label class="top7px">Styl:</label></div>    
                            <div class="col-md-9 zero_padding bottom7px"><select class="form-control"<?php 
                $_input = $_form["stroke"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div> 
                            <div class="col-md-3 zero_padding"><label class="top7px">Rok:</label></div>    
                            <div class="col-md-9 zero_padding"><select class="form-control"<?php 
                $_input = $_form["year"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>
                            <input type="submit" name="make" class="ajax button btn btn-default col-md-offset-6 col-md-6 top7px" value="Vytvořit">
                    </div>                  
                </div>                           
                <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
                
            </div>   
            <div id="YP_chart" class="col-md-10 zero_padding">
                <div id="YearPerformance_curve_chart" ></div>
            </div>    
        </div>
    </div>  
<?php 
            }
        }
        //
        // block _AveragePoints
        //
        if (!function_exists($_b->blocks['_AveragePoints'][] = '_lb7bcae44929__AveragePoints')) {
            function _lb7bcae44929__AveragePoints($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('AveragePoints', FALSE);
                ?>
<script type="text/javascript">
    google.charts.setOnLoadCallback(drawAveragePointsChart); 
 
    function drawAveragePointsChart() 
    {            
<?php 
                if (isset($average_points_select)) {
                    ?>
            var data = google.visualization.arrayToDataTable([
                ["Popis", "Body", { role: "style" } ],
                ["Plavcovo maximum", <?php 
                    echo Latte\Runtime\Filters::escapeJs($max_points_select);
                    ?>
, "gold"], 
                ["Průměr", <?php 
                    echo Latte\Runtime\Filters::escapeJs($average_points_select);
                    ?>
, "silver"],
            ]); 
<?php 
                } else {
                    ?>
            var data = google.visualization.arrayToDataTable([
                ["Popis", "Body", { role: "style" } ],
                ["Plavcovo maximum", <?php 
                    echo Latte\Runtime\Filters::escapeJs($max_points);
                    ?>
, "gold"], 
                ["Průměr", <?php 
                    echo Latte\Runtime\Filters::escapeJs($average_points);
                    ?>
, "silver"],
            ]); 
<?php 
                }
                ?>
        
        var options = {       
            height: 350,
            width: 546,
            vAxis:{
                minValue:0,
                maxValue: 1000
            },
            legend: { position: "none" },
            chartArea: {
                left:65,top:40,width:'80%',height:'80%'
            },
         
        };

        var chart = new google.visualization.ColumnChart(document.getElementById('average-points_columnchart'));
        chart.draw(data, options);      
    }
</script>    
    
    <div id="average_points" class="col-md-6">
        <div id="average-points_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
            <div class="panel-heading main-panel_heading">
                <h3 class="panel-title font18">Srovnání maximálního bodového výkonu s oddílovým průměrem</h3>
            </div>
            <div class="panel-body">
                <div class="col-md-12 zero_padding">
                    <form class="form-horizontal ajax"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["averagePointsForm"], array('class' => NULL), FALSE);
                ?>
>
                    <div class="panel panel-default bottom7px">
                        <div class="panel-body">                       
                                <div class="col-md-1 zero_padding"><label class="top7px">Styl:</label></div>    
                                <div class="col-md-3 zero_padding"><select class="form-control"<?php 
                $_input = $_form["stroke"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select></div>   
                                <input type="submit" name="make" class="ajax button btn btn-default col-md-offset-6 col-md-2 top7px" value="Vytvořit">
                        </div>
                    </div>                               
                    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>

                </div>
                <div id="AP_chart" class="col-md-12 zero_padding">
                    <div id="average-points_columnchart"></div> 
                </div>
            </div>
        </div> 
    </div>    
<?php 
            }
        }
        //
        // block _members
        //
        if (!function_exists($_b->blocks['_members'][] = '_lbcefc0338aa__members')) {
            function _lbcefc0338aa__members($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('members', FALSE);
                if (isset($event)) {
                    ?>
                    <div>                                   
                        <p>Závodů <strong><?php 
                    echo Latte\Runtime\Filters::escapeHtml($event, ENT_NOQUOTES);
                    ?>
</strong> se zúčastnili tito plavci: 
<?php 
                    $iterations = 0;
                    foreach ($iterator = $_l->its[] = new Latte\Runtime\CachingIterator($members) as $j => $member) {
                        if ($iterator->last) {
                            ?>
                                <strong><?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->firstname, ENT_NOQUOTES);
                            ?>
 <?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->surname, ENT_NOQUOTES);
                            ?>
</strong>                                       
<?php 
                        } else {
                            ?>
                                <strong><?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->firstname, ENT_NOQUOTES);
                            ?>
 <?php 
                            echo Latte\Runtime\Filters::escapeHtml($member->surname, ENT_NOQUOTES);
                            ?>
, </strong>
<?php 
                        }
                        $iterations++;
                    }
                    array_pop($_l->its);
                    $iterator = end($_l->its);
                    ?>
                        </p>                                
                    </div>
<?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
        //
        ?>

<?php 
        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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('e49f516e58', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb3d3f439f5d_content')) {
            function _lb3d3f439f5d_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="content">
	<h2>Manage Currency Format</h2>
	<div class="boxes">		
<?php 
                $_l->tmp = $_control->getComponent("currencyFormat");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>
	</div>
<?php 
                if ($datas) {
                    ?>
	<table id="data_table" border="1">
		<tr>
			<th>#</th>
			<th>Currency Name</th>
			<th>Symbol</th>
			<th>Appearance</th>
			<th>Created</th>
			<th>Edit</th>
			<th>Delete</th>
		</tr>
<?php 
                    $iterations = 0;
                    foreach ($datas as $data) {
                        ?>
		<tr>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml(++$cnt, ENT_NOQUOTES);
                        ?>
</td>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($data->currency_name, ENT_NOQUOTES);
                        ?>
</td>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($data->symbol, ENT_NOQUOTES);
                        ?>
</td>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($data->appearance, ENT_NOQUOTES);
                        ?>
</td>
			<td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($template->date($data->created, 'd-m-Y'), ENT_NOQUOTES);
                        ?>
</td>
			<td>
				<a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("currencyFormatEdit", array($data->master_currency_format_id)), ENT_COMPAT);
                        ?>
">Edit</a>
			</td>
			<td>
				<a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("currencyFormatDelete", array($data->master_currency_format_id)), ENT_COMPAT);
                        ?>
">Delete</a>
			</td>			
		</tr>
<?php 
                        $iterations++;
                    }
                    ?>
	</table>		
<?php 
                }
                ?>
</div>
<?php 
            }
        }
        //
        // block scripts
        //
        if (!function_exists($_b->blocks['scripts'][] = '_lb6a707565d8_scripts')) {
            function _lb6a707565d8_scripts($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                Latte\Macros\BlockMacrosRuntime::callBlockParent($_b, 'scripts', get_defined_vars());
                ?>
<script src="https://files.nette.org/sandbox/jush.js"></script>
<script>
	jush.create_links = false;
	jush.highlight_tag('code');
	$('code.jush').each(function(){ $(this).html($(this).html().replace(/\x7B[/$\w].*?\}/g, '<span class="jush-latte">$&</span>')) });

	$('a[href^=#]').click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr('href')).show().offset().top - 5 }, 'fast');
		return false;
	});
</script>
<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lb0ec6c13bf1_head')) {
            function _lb0ec6c13bf1_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
            }
        }
        //
        // 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['scripts']), $_b, get_defined_vars());
        ?>



<?php 
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('f6fa7f1c8c', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb5553f1d232_content')) {
            function _lb5553f1d232_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                if ($user->loggedIn) {
                    ?>
<div>
	<a style="text-align: right;" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link(":Admin:Homepage:"), ENT_COMPAT);
                    ?>
">administrácia</a>
</div>
<?php 
                }
                if (!$user->loggedIn) {
                    ?>
<div>
	<a style="text-align: right;" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link(":Front:Auth:login"), ENT_COMPAT);
                    ?>
">prihlásenie</a>
</div>
<?php 
                }
                ?>
<div id="banner">
<?php 
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
</div>
<div class="btn">
	aa
</div>
<div id="content">
	<h2>You have successfully created your Nette Framework project.</h2>
	<div>
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam efficitur sapien sit amet placerat egestas. Integer sit amet mattis odio. Vivamus egestas dui est, eu lacinia lorem maximus nec. Nullam efficitur tincidunt justo, ac congue justo. Nam erat tortor, vulputate ut lacus ut, semper convallis odio. Donec consequat convallis facilisis. Aliquam vitae euismod urna, eu porta magna. Nulla non eros ac velit hendrerit pellentesque. Sed quis semper sem, vel viverra ipsum. Duis eget porttitor ante, eget varius dolor. Quisque vel tortor scelerisque, imperdiet lorem vitae, vulputate urna. Nunc hendrerit, lacus eget viverra ultricies, ex odio lacinia dolor, in interdum neque turpis ut nisl.

Nullam interdum tellus dolor, et luctus urna semper eget. Cras pulvinar condimentum erat, finibus consectetur sem sodales ac. Suspendisse nisi purus, ullamcorper vitae viverra non, interdum non velit. Fusce in nisi elit. Sed neque odio, porttitor sit amet pellentesque non, dapibus ac augue. Phasellus vitae semper erat. Duis tincidunt enim in lectus vulputate luctus. Sed condimentum velit dui, eu cursus nunc tristique eget.

Vivamus elit sapien, consequat sollicitudin pharetra vel, eleifend non est. Maecenas blandit arcu id mattis faucibus. Proin nisi augue, pellentesque id neque in, lobortis scelerisque dui. Morbi sollicitudin tempus enim a aliquet. Phasellus maximus feugiat lorem, id auctor leo venenatis sit amet. Cras eget blandit ligula. Etiam nec erat quam. Suspendisse et dictum orci. Donec ut finibus lacus. Aenean vitae ipsum vitae est dapibus interdum ac vitae enim.

Vestibulum id tortor quis nulla porttitor vehicula eget vitae justo. Phasellus elit tellus, euismod id ex id, hendrerit tincidunt est. Fusce nec massa mi. Sed in lorem leo. Nullam semper risus vitae diam tincidunt egestas. Donec ut faucibus ante. Morbi varius nisl at dui tincidunt, at aliquet nisi faucibus. In ac fermentum ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque eu fermentum sapien, at condimentum nulla. Sed a neque at arcu porta tempus in vel arcu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In nec sapien ut sem facilisis iaculis. Ut felis eros, sodales eu nibh nec, hendrerit finibus leo. Praesent mauris elit, tristique vitae semper non, porttitor nec velit. Vivamus molestie erat a sapien commodo imperdiet.

Nam dignissim est id ex mollis, eu vestibulum mi consequat. Cras purus neque, lacinia eget convallis ac, rhoncus quis urna. Suspendisse tincidunt ac metus in accumsan. Mauris mattis finibus felis. Aenean mattis dapibus suscipit. Suspendisse vitae tortor vitae diam porttitor maximus. Phasellus vel purus dolor. Aliquam ut iaculis magna, nec euismod est. Phasellus a faucibus lectus, eu elementum mauris.

Donec mollis tellus volutpat urna ultricies, sit amet pharetra magna fringilla. Mauris nibh elit, sagittis et augue et, pretium tristique nulla. Quisque sagittis non tellus sed lacinia. Nulla sapien mi, tempor vel elementum vitae, tincidunt non justo. Donec varius in ligula at congue. Duis sed nisl semper, iaculis turpis at, pharetra quam. In non suscipit nisl. Donec convallis est ac pulvinar blandit. Aenean porta risus eu est pretium laoreet. Vestibulum ac rutrum magna.

Vivamus luctus vulputate hendrerit. Donec consectetur, lectus ac suscipit sodales, libero velit ultricies libero, a dapibus est turpis a risus. Praesent et erat est. In porttitor neque lorem, sed tristique lectus commodo euismod. Praesent eget volutpat urna. Etiam convallis blandit ante, ac lacinia augue tempor id. Etiam vestibulum lectus a lectus gravida tincidunt. Fusce turpis ligula, iaculis quis commodo a, posuere id lectus. Pellentesque et arcu nisl. Nam imperdiet velit magna, ac lobortis ex hendrerit eget. Donec nisi nulla, auctor ut mauris a, dignissim condimentum augue. In quis tincidunt nibh. Maecenas vehicula interdum mi.

Interdum et malesuada fames ac ante ipsum primis in faucibus. Ut nulla purus, dictum et odio ut, vulputate suscipit nisl. Proin sit amet lectus enim. Vivamus vel vestibulum libero. Suspendisse sagittis augue nec fringilla consequat. Praesent interdum, lorem et cursus pretium, quam mauris auctor erat, nec fermentum elit mauris vitae tellus. Vivamus quis blandit urna, vel sagittis arcu. Donec tincidunt nibh tempus nulla faucibus semper. Aenean sed elit fermentum, convallis diam interdum, condimentum ligula. Etiam semper scelerisque augue eget vehicula. Sed suscipit blandit purus rutrum tristique. Mauris et nulla id odio pharetra lobortis ac sed nibh. Quisque fermentum et odio eget scelerisque. Donec vitae tincidunt odio, nec mollis sapien.

Curabitur non nisi tempus mauris lacinia consectetur. Fusce finibus rutrum nisi eu mattis. Aliquam justo ipsum, tempor nec magna eget, volutpat aliquet magna. Duis sit amet gravida urna. In ut euismod nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin commodo mi in erat tincidunt, quis eleifend mi accumsan. In eu porttitor ex. Aenean eget eleifend felis. Aenean sagittis imperdiet mi. Cras a nisi maximus, ultricies lorem eu, placerat eros. Morbi auctor velit ac lacus pulvinar semper. Duis tortor elit, pellentesque nec nibh ac, lacinia lobortis lectus. Duis consequat nisi erat, eget lacinia diam sollicitudin pellentesque. Vestibulum ac leo vestibulum, fermentum ex ut, tincidunt neque.

Mauris ultricies nisl arcu, ut euismod ipsum congue sed. Donec cursus urna vitae enim pharetra blandit. Donec id auctor lacus, eu maximus est. Nullam hendrerit elit sapien. Phasellus ultrices libero vel condimentum commodo. Donec volutpat semper nibh viverra suscipit. Donec eget nisl sem.

Cras mauris tellus, finibus at ultrices a, feugiat nec nibh. Ut eget nunc hendrerit massa facilisis fringilla. Fusce luctus libero non molestie elementum. Sed quam risus, tristique vitae tempor eget, dignissim id mi. Sed aliquam pharetra hendrerit. Maecenas at urna nunc. Sed ultrices, lectus in condimentum tincidunt, tellus mauris lobortis mi, sed sollicitudin risus mi id urna. Fusce ultrices, dui vel interdum eleifend, nisi leo auctor elit, ut vulputate quam odio quis mi. Integer dapibus pulvinar faucibus. In imperdiet iaculis velit, et malesuada sem convallis et. Duis rhoncus at nisi ac porta. Nam nec ullamcorper tellus.

Sed sollicitudin arcu lacus, sed dictum eros faucibus interdum. Suspendisse accumsan eget nibh quis sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce pellentesque urna ex, in euismod orci varius sed. Vestibulum eget pharetra dui. Curabitur sed justo in leo tempor feugiat ornare vel mi. Aenean vel eros turpis. Cras vestibulum nec dui ac ultrices. Aliquam ac maximus erat, quis maximus augue. Quisque egestas venenatis mollis. Etiam ut viverra erat. Sed rutrum enim sed ipsum accumsan feugiat. Proin sit amet libero ac ipsum aliquam consequat sed id lorem. Maecenas facilisis convallis velit eu gravida. Aliquam convallis, magna a finibus ultrices, leo tellus posuere felis, eu vehicula ante tortor convallis mi. Morbi at massa placerat, consectetur risus in, faucibus ante.

Mauris a fermentum magna. Fusce est nulla, posuere ac ante non, vestibulum lobortis eros. Aliquam tortor lectus, vulputate sed tristique a, interdum id eros. Aenean dolor dolor, volutpat vitae iaculis vitae, lobortis vitae odio. Donec ut pharetra diam. Duis bibendum augue sit amet odio luctus mollis. Mauris sit amet felis ultricies, dignissim diam ac, laoreet orci. Sed in ante vulputate, pulvinar est ut, lacinia ligula.

Ut quis neque velit. Suspendisse tempor, felis et viverra malesuada, dolor purus egestas nibh, vel ultricies ligula nibh sit amet dui. Mauris vulputate dui eu dolor fermentum congue. Ut id neque massa. Nunc scelerisque nisi eget elit semper consectetur. Aliquam interdum luctus dui, vitae posuere lorem posuere ac. Nam feugiat dui tortor, non sodales felis varius eget. Curabitur in orci risus. In leo est, egestas vel auctor eu, blandit vitae risus.

Aliquam sit amet rutrum nunc, a blandit nulla. Morbi vel arcu ac tortor maximus posuere. Praesent placerat magna mi, sit amet cursus orci consequat sed. Duis eleifend odio vel ligula lobortis, sit amet consequat erat tincidunt. Quisque ligula erat, volutpat venenatis finibus auctor, tempor eget enim. Pellentesque iaculis et nibh ac varius. Phasellus ut dolor feugiat, egestas nisi ac, aliquet dui. Phasellus fermentum sagittis dui nec dictum. Suspendisse et fringilla nisi. Mauris sit amet est quis metus egestas dictum. Donec lobortis arcu ut velit placerat, eu eleifend massa dignissim. Curabitur euismod libero ut turpis placerat tincidunt. Suspendisse potenti. Integer sed tortor eu lacus varius finibus. Proin sed maximus turpis.

Nullam porta sem in sodales aliquam. Vestibulum vulputate leo elit, quis aliquet neque hendrerit a. Morbi ac posuere est, a vehicula sapien. Proin bibendum semper purus. Duis sapien ligula, pellentesque tincidunt nisl id, consectetur mattis justo. Proin in porta ante. Nam rutrum, nunc a cursus dapibus, metus leo pulvinar purus, a sollicitudin sem odio non lectus. Nulla eget ipsum at nisl tincidunt sagittis. Proin eget iaculis orci, id volutpat arcu. Maecenas dignissim auctor leo ut lobortis. Nullam vitae nunc sit amet augue interdum luctus. Suspendisse varius molestie massa. Donec sagittis mauris eget ipsum cursus sagittis. 

	</div>

	<section id="template">
		<h2>This page template located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($presenter->template->getFile(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->replacere(file_get_contents($presenter->template->getFile()), '#[\\w+/]{60,}#', '…'), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>

	<section id="layout">
		<h2>Layout template located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($template->getName(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush"><?php 
                echo Latte\Runtime\Filters::escapeHtml(file_get_contents($template->getName()), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>

	<section id="presenter">
		<h2>Current presenter located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($presenter->getReflection()->getFileName(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush-php"><?php 
                echo Latte\Runtime\Filters::escapeHtml(file_get_contents($presenter->getReflection()->getFileName()), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>
</div>
<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lbb710fea7b6_title')) {
            function _lbb710fea7b6_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<h1>L-Trans</h1>
<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lb7712cbb3d6_head')) {
            function _lb7712cbb3d6_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<style>
	html { overflow-y: scroll; }
	body { font: 14px/1.65 Verdana, "Geneva CE", lucida, sans-serif; background: #ffffff; color: #333; margin: 38px auto; max-width: 940px; min-width: 420px; }

	h1, h2 { font: normal 150%/1.3 Georgia, "New York CE", utopia, serif; color: #1e5eb6; -webkit-text-stroke: 1px rgba(0,0,0,0); }

	img { border: none; }

	a { color: #006aeb; padding: 3px 1px; }

	a:hover, a:active, a:focus { background-color: #006aeb; text-decoration: none; color: white; }

	#banner { border-radius: 12px 12px 0 0; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAB5CAMAAADPursXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGBQTFRFD1CRDkqFDTlmDkF1D06NDT1tDTNZDk2KEFWaDTZgDkiCDTtpDT5wDkZ/DTBVEFacEFOWD1KUDTRcDTFWDkV9DkR7DkN4DkByDTVeDC9TDThjDTxrDkeADkuIDTRbDC9SbsUaggAAAEdJREFUeNqkwYURgAAQA7DH3d3335LSKyxAYpf9vWCpnYbf01qcOdFVXc14w4BznNTjkQfsscAdU3b4wIh9fDVYc4zV8xZgAAYaCMI6vPgLAAAAAElFTkSuQmCC); }
	#banner h1 { color: white; font-size: 50px; line-height: 121px; margin: 0; padding-left: 4%; }
	@media (max-width: 600px) {
		#banner h1 { background: none; }
	}

	#content { background: white; border: 2px solid #929292; border-radius: 0 0 12px 12px; padding: 10px 4%; overflow: hidden; }
	#content > h2 { font-size: 130%; color: #666; clear: both; padding: 1.2em 0; margin: 0; }

	h2 span { color: #87A7D5; }
	h2 a { text-decoration: none; background: transparent; }

	.boxes { -webkit-justify-content: space-between; justify-content: space-between; display: -webkit-flex; display: flex; margin-right: -2em; }
	.boxes > div { background: #f0f0f0; border: 1px solid #e6e6e6; border-radius: 5px; -webkit-flex: 1; flex: 1; margin-right: 2em; }
	.boxes h2 { text-align: right; margin: 1em; }
	.boxes img { float: left; }
	.boxes p { clear: both; margin: 1em; }
	.boxes p a { color: #006aeb; background: #f7f7f7; padding: 1px 3px; border-radius: 3px; text-decoration: none; box-shadow: 0 2px 5px rgba(0, 0, 0, .10); }
	.boxes p a:hover, .boxes p a:active, .boxes p a:focus { color: white; background-color: #006aeb; }
	.boxes > div:nth-child(3n - 2) h2 { color: #00a6e5; }
	.boxes > div:nth-child(3n - 2) img { margin: -1em -1em 0 -1em; }
	.boxes > div:nth-child(3n - 1) h2 a { color: #db8e34; background: transparent; }
	.boxes > div:nth-child(3n) h2 a { color: #578404; background: transparent; }
	@media (max-width: 760px) {
		.boxes { -webkit-flex-direction: column; flex-direction: column; }
		.boxes > div { margin-bottom: 1em; flex-basis: auto; }
		.boxes h2 br { display: none; }
	}

	section { display: none; }

	pre { font-size: 12px; line-height: 1.4; padding: 10px; margin: 1.3em 0; overflow: auto; max-height: 500px; background: #F1F5FB; border-radius: 5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }

	.jush-com, .jush-php_doc { color: #929292; }
	.jush-tag, .jush-tag_js { color: #6A8527; font-weight: bold; }
	.jush-att { color: #8CA315 }
	.jush-att_quo { color: #448CCB; font-weight: bold; }
	.jush-php_var { color: #d59401; font-weight: bold; }
	.jush-php_apo { color: green; }
	.jush-php_new { font-weight: bold; }
	.jush-php_fun { color: #254DB3; }
	.jush-js, .jush-css { color: #333333; }
	.jush-css_val { color: #448CCB; }
	.jush-clr { color: #007800; }
	.jush a { color: inherit; background: transparent; }
	.jush-latte { color: #D59401; font-weight: bold }
</style>
<?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());
        ?>



<script src="https://files.nette.org/sandbox/jush.js"></script>
<script>
	jush.create_links = false;
	jush.highlight_tag('code');
	$('code.jush').each(function(){ $(this).html($(this).html().replace(/\x7B[/$\w].*?\}/g, '<span class="jush-latte">$&</span>')) });

	$('a[href^=#]').click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr('href')).show().offset().top - 5 }, 'fast');
		return false;
	});
</script>



<?php 
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('304896e338', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb0a9c453fde_content')) {
            function _lb0a9c453fde_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<p><a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT);
                ?>
">← zpět na výpis příspěvků</a></p>

	<div class="date"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($post->created_at, 'F j, Y'), ENT_NOQUOTES);
                ?>
</div>

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

	<div class="post"><?php 
                echo Latte\Runtime\Filters::escapeHtml($post->content, ENT_NOQUOTES);
                ?>
</div>

<?php 
                if ($user->loggedIn) {
                    ?>
	<a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("edit", array($post->id)), ENT_COMPAT);
                    ?>
">Upravit příspěvek</a>
<?php 
                }
                ?>

	<hr>

<?php 
                $_l->tmp = $_control->getComponent("commentForm");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>
	<hr>

	<h2>Komentáře</h2>

	<div class="comments">
<?php 
                $iterations = 0;
                foreach ($comments as $comment) {
                    ?>
			<p><b><?php 
                    if ($_l->ifs[] = $comment->email) {
                        ?>
<a href="mailto:<?php 
                        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($comment->email), ENT_COMPAT);
                        ?>
"><?php 
                    }
                    echo Latte\Runtime\Filters::escapeHtml($comment->name, ENT_NOQUOTES);
                    if (array_pop($_l->ifs)) {
                        ?>
</a><?php 
                    }
                    ?>
</b> napsal:</p>
			<div><?php 
                    echo Latte\Runtime\Filters::escapeHtml($comment->content, ENT_NOQUOTES);
                    ?>
</div>
<?php 
                    $iterations++;
                }
                ?>
	</div>

<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lbcde551e6ec_title')) {
            function _lbcde551e6ec_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<h1><?php 
                echo Latte\Runtime\Filters::escapeHtml($post->title, ENT_NOQUOTES);
                ?>
</h1>
<?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
        //
        ?>

<?php 
        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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('79dd52bcfe', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lba70c7a7678_content')) {
            function _lba70c7a7678_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="banner">
<?php 
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
</div>
<div id="content">
	<h2>Manage Post</h2>
	<div class="boxes">		
<?php 
                $_l->tmp = $_control->getComponent("currencyFormat");
                if ($_l->tmp instanceof Nette\Application\UI\IRenderable) {
                    $_l->tmp->redrawControl(NULL, FALSE);
                }
                $_l->tmp->render();
                ?>
	</div>
<?php 
                $iterations = 0;
                foreach ($posts as $post) {
                    ?>
	<div class="data">
	    <h2><?php 
                    echo Latte\Runtime\Filters::escapeHtml($post->title, ENT_NOQUOTES);
                    ?>
 <a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("CurrencyFormatEdit", array($post->post_id)), ENT_COMPAT);
                    ?>
">(Edit)</a></h2>
	    <div class="date"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($template->date($post->created, 'd-m-Y'), ENT_NOQUOTES);
                    ?>
</div>
	    <div><?php 
                    echo Latte\Runtime\Filters::escapeHtml($post->content, ENT_NOQUOTES);
                    ?>
</div>
	</div>
<?php 
                    $iterations++;
                }
                ?>
	<section id="template">
		<h2>This page template located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($presenter->template->getFile(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->replacere(file_get_contents($presenter->template->getFile()), '#[\\w+/]{60,}#', '…'), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>

	<section id="layout">
		<h2>Layout template located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($template->getName(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush"><?php 
                echo Latte\Runtime\Filters::escapeHtml(file_get_contents($template->getName()), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>

	<section id="presenter">
		<h2>Current presenter located at <span><?php 
                echo Latte\Runtime\Filters::escapeHtml(strstr($presenter->getReflection()->getFileName(), 'app'), ENT_NOQUOTES);
                ?>
</span></h2>

		<pre><code class="jush-php"><?php 
                echo Latte\Runtime\Filters::escapeHtml(file_get_contents($presenter->getReflection()->getFileName()), ENT_NOQUOTES);
                ?>
</code></pre>
	</section>
</div>
<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lb3d833997d4_title')) {
            function _lb3d833997d4_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<h1>PCCF Office Automation!</h1>
<?php 
            }
        }
        //
        // block scripts
        //
        if (!function_exists($_b->blocks['scripts'][] = '_lbd8260ddc1e_scripts')) {
            function _lbd8260ddc1e_scripts($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                Latte\Macros\BlockMacrosRuntime::callBlockParent($_b, 'scripts', get_defined_vars());
                ?>
<script src="https://files.nette.org/sandbox/jush.js"></script>
<script>
	jush.create_links = false;
	jush.highlight_tag('code');
	$('code.jush').each(function(){ $(this).html($(this).html().replace(/\x7B[/$\w].*?\}/g, '<span class="jush-latte">$&</span>')) });

	$('a[href^=#]').click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr('href')).show().offset().top - 5 }, 'fast');
		return false;
	});
</script>
<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lb19a60f0e9c_head')) {
            function _lb19a60f0e9c_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<style>
	html { overflow-y: scroll; }
	body { font: 14px/1.65 Verdana, "Geneva CE", lucida, sans-serif; background: #3484d2; color: #333; margin: 38px auto; max-width: 940px; min-width: 420px; }

	h1, h2 { font: normal 150%/1.3 Georgia, "New York CE", utopia, serif; color: #1e5eb6; -webkit-text-stroke: 1px rgba(0,0,0,0); }

	img { border: none; }

	a { color: #006aeb; padding: 3px 1px; }

	a:hover, a:active, a:focus { background-color: #006aeb; text-decoration: none; color: white; }

	#banner { border-radius: 12px 12px 0 0; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAB5CAMAAADPursXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGBQTFRFD1CRDkqFDTlmDkF1D06NDT1tDTNZDk2KEFWaDTZgDkiCDTtpDT5wDkZ/DTBVEFacEFOWD1KUDTRcDTFWDkV9DkR7DkN4DkByDTVeDC9TDThjDTxrDkeADkuIDTRbDC9SbsUaggAAAEdJREFUeNqkwYURgAAQA7DH3d3335LSKyxAYpf9vWCpnYbf01qcOdFVXc14w4BznNTjkQfsscAdU3b4wIh9fDVYc4zV8xZgAAYaCMI6vPgLAAAAAElFTkSuQmCC); }
	#banner h1 { color: white; font-size: 50px; line-height: 121px; margin: 0; padding-left: 4%; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIEAAAA5CAMAAAAm57h6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGBQTFRFZ5bIDDJYx8fH9fX11tbWSniovLy9DTpnhrPlMmCQ6+vr/Pz8D0J24+TkWW6Dipusoa24PllztL/L0djfcoedw8vULklkz8/P3d7fIT5a5+fn5+rsCilI8PDwn8z9////dMWpAgAAACB0Uk5T/////////////////////////////////////////wBcXBvtAAAGaklEQVR42uxYa3eqOhAFEQMaIWBEUIr//1/eeWTyA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n8CDAD34uoT7llrPAAAAABJRU5ErkJggg==) no-repeat 95%; text-shadow: 1px 1px 0 rgba(0, 0, 0, .9); }
	@media (max-width: 600px) {
		#banner h1 { background: none; }
	}

	#content { background: white; border: 1px solid #eff4f7; border-radius: 0 0 12px 12px; padding: 10px 4%; overflow: hidden; }
	#content > h2 { font-size: 130%; color: #666; clear: both; padding: 1.2em 0; margin: 0; }

	h2 span { color: #87A7D5; }
	h2 a { text-decoration: none; background: transparent; }

	.boxes { -webkit-justify-content: space-between; justify-content: space-between; display: -webkit-flex; display: flex; margin-right: -2em; }
	.boxes > div { background: #f0f0f0; border: 1px solid #e6e6e6; border-radius: 5px; -webkit-flex: 1; flex: 1; margin-right: 2em; }
	.boxes h2 { text-align: right; margin: 1em; }
	.boxes img { float: left; }
	.boxes p { clear: both; margin: 1em; }
	.boxes p a { color: #006aeb; background: #f7f7f7; padding: 1px 3px; border-radius: 3px; text-decoration: none; box-shadow: 0 2px 5px rgba(0, 0, 0, .10); }
	.boxes p a:hover, .boxes p a:active, .boxes p a:focus { color: white; background-color: #006aeb; }
	.boxes > div:nth-child(3n - 2) h2 { color: #00a6e5; }
	.boxes > div:nth-child(3n - 2) img { margin: -1em -1em 0 -1em; }
	.boxes > div:nth-child(3n - 1) h2 a { color: #db8e34; background: transparent; }
	.boxes > div:nth-child(3n) h2 a { color: #578404; background: transparent; }
	@media (max-width: 760px) {
		.boxes { -webkit-flex-direction: column; flex-direction: column; }
		.boxes > div { margin-bottom: 1em; flex-basis: auto; }
		.boxes h2 br { display: none; }
	}

	section { display: none; }

	pre { font-size: 12px; line-height: 1.4; padding: 10px; margin: 1.3em 0; overflow: auto; max-height: 500px; background: #F1F5FB; border-radius: 5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }

	.jush-com, .jush-php_doc { color: #929292; }
	.jush-tag, .jush-tag_js { color: #6A8527; font-weight: bold; }
	.jush-att { color: #8CA315 }
	.jush-att_quo { color: #448CCB; font-weight: bold; }
	.jush-php_var { color: #d59401; font-weight: bold; }
	.jush-php_apo { color: green; }
	.jush-php_new { font-weight: bold; }
	.jush-php_fun { color: #254DB3; }
	.jush-js, .jush-css { color: #333333; }
	.jush-css_val { color: #448CCB; }
	.jush-clr { color: #007800; }
	.jush a { color: inherit; background: transparent; }
	.jush-latte { color: #D59401; font-weight: bold }
</style>
<?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['scripts']), $_b, get_defined_vars());
        ?>


<?php 
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('59ff41810b', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lbcea1722ece_content')) {
            function _lbcea1722ece_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div class="row">
		<div class="col-md-6">
<?php 
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
			<table class="table table-striped uvod">
				<thead>
					<th>Datum</th>
					<th>Den</th>
					<th>Vyplouváme v</th>
				</thead>
<?php 
                $iterations = 0;
                foreach ($sails as $sail) {
                    ?>
				<tr>
					<td><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Plavba:casy", array($sail['date_url'])), ENT_COMPAT);
                    ?>
"><?php 
                    echo Latte\Runtime\Filters::escapeHtml($sail['date'], ENT_NOQUOTES);
                    ?>
</a></td>
					<td><?php 
                    echo Latte\Runtime\Filters::escapeHtml($sail['day_of_the_week'], ENT_NOQUOTES);
                    ?>
</td>
					<td><?php 
                    echo Latte\Runtime\Filters::escapeHtml($sail['sail_times'], ENT_NOQUOTES);
                    ?>
</td>
				</tr>
<?php 
                    $iterations++;
                }
                ?>
			</table>
		</div>
		<div class="col-md-6 uvodnik">
			<h3>O rezervacích</h3>
			<p>V rámci této podstránky se můžete zarezervovat na jednotlivé časy plaveb v dané dny. Vlevo vidíte
			seznam všech plaveb až do konce sezóny. Plavby v týdnu se konají v časech 14:55, 16:00 a 17:00. Plavby
			o víkendu zase od 10:00 do 17:00 po hodině.</p>
			<p>Jakmile si vyberete termín, stačí kliknout na datum plavby a dostanete se do výběru času plavby. Tam 
			rovněž najdete další instrukce. Nyní stačí kliknout na požadovaný čas v levém sloupečku tabulky a dostanete
			se na finální podstránku, kde můžete provést rezervaci pod svým jménem.</p>
			<p>Pokud je na plavbě volné místo, číslo obsazenosti je zbarveno <b class="ok">zeleně</b>. Pokud již na plavbě
			není místo, zmizí proklik na rezervaci a číslo obsazenosti se zbarví <b class="full">červeně</b>. Pokud je
			obsazenost nižší než 5, loď nevyplouvá. Nebojte se ale, že přijdete a nepojedeme – jestliže se zarezervujete,
			dáme Vám o tom, že se plavba nekoná, včas vědět telefonicky či emailem.</p>
			<p>Pro přihlášení na plavbu od Vás také potřebujeme nějaké informace. Vyplníte formulář na finální stránce a bude
			Vám zaslán email, který potvrdíte kliknutím na odkaz v něm. V případě úspěšného ověření Vám přijde potvrzující email,
			rekapitulující rezervaci.</p>
			<a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/images/rezervace-img1.jpg"><img src="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/images/rezervace-img1.jpg" width="100%" height="100%" title="Rezervace – Ololoď" alt="Rezervace – Ololoď"></a>
		</div>
	</div>
<?php 
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lbf81aed74c9_title')) {
            function _lbf81aed74c9_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
			<h3>Výběr plavby</h3>
<?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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('274dc4da1b', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb1aad256519_content')) {
            function _lb1aad256519_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="content">
	<h2>Welcome to PCCF</h2>
	<div class="boxes" style="min-height:300px;">		
		
	</div>	
</div>
<?php 
            }
        }
        //
        // block scripts
        //
        if (!function_exists($_b->blocks['scripts'][] = '_lb6a9eb66a64_scripts')) {
            function _lb6a9eb66a64_scripts($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                Latte\Macros\BlockMacrosRuntime::callBlockParent($_b, 'scripts', get_defined_vars());
                ?>
<script src="https://files.nette.org/sandbox/jush.js"></script>
<script>
	jush.create_links = false;
	jush.highlight_tag('code');
	$('code.jush').each(function(){ $(this).html($(this).html().replace(/\x7B[/$\w].*?\}/g, '<span class="jush-latte">$&</span>')) });

	$('a[href^=#]').click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr('href')).show().offset().top - 5 }, 'fast');
		return false;
	});
</script>
<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lbb3fdce2865_head')) {
            function _lbb3fdce2865_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
            }
        }
        //
        // 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['scripts']), $_b, get_defined_vars());
        ?>



<?php 
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('a8b00409a0', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lbe0c4c9a214_head')) {
            function _lbe0c4c9a214_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
            }
        }
        //
        // block scripts
        //
        if (!function_exists($_b->blocks['scripts'][] = '_lb43d35ddcb9_scripts')) {
            function _lb43d35ddcb9_scripts($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<!-- jQuery -->
    <script src="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/assets/js/jquery.js"></script>

    <!-- Nette Ajax -->
    <script src="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/js/nette.ajax.js"></script>

    <!-- My Custome JavaScript -->
    <script src="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/js/dp-js-functions.js"></script>
    
<?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
        //
        ?>
<!DOCTYPE html>
<html>
<head>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Roman Prchal">

	<!-- Bootstrap Core CSS -->
    <link href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/css/dp-css-format.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <style>
<?php 
        $iterations = 0;
        foreach ($categories as $c) {
            ?>
            .product-category-<?php 
            echo Latte\Runtime\Filters::escapeCss($c->id);
            ?>
 { background-color: #<?php 
            echo Latte\Runtime\Filters::escapeCss($c->color);
            ?>
;}
<?php 
            $iterations++;
        }
        ?>
    </style>

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

</head>

<body>

<?php 
        Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters());
        ?>


<?php 
        call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars());
        ?>
</body>
</html>
<?php 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('b239da844b', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb267e52d1b4_content')) {
            function _lb267e52d1b4_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                if ($times['passed']) {
                    ?>
		<p>Na proběhlé plavby už se bohužel přihlásit nemůžete. Leda, že byste měli stroj času :)</p>
		<img width="100%" height="100%" src="<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                    ?>
/images/delorean.jpg" title="Back to Future" alt="Back to Future">
<?php 
                } else {
                    ?>
		<p>Zde se nachází seznam možných časů poznávacích plaveb, které se po naplnění uskuteční ve Vámi vybraném dni.
		Stačí kliknout na požadovaný čas v levém sloupečku tabulky a dostanete se na stránku,
		kde můžete provést rezervaci.</p><p>Pokud je na plavbě volné místo, číslo obsazenosti je zbarveno <b class="ok">zeleně</b>.
		Pokud již na plavbě není místo, zmizí proklik na rezervaci a číslo obsazenosti se zbarví <b class="full">červeně</b>.</p>
		<p>Pokud je obsazenost nižší než 5, loď nevyplouvá. Nebojte se ale, že přijdete a nepojedeme – jestliže se zarezervujete, dáme
		Vám o tom, že se plavba nekoná, včas vědět telefonicky či emailem.</p>

		<table class="table table-striped">
			<thead>
				<th>Čas</th>
				<th>Obsazenost</th>
			</thead>
<?php 
                    $iterations = 0;
                    foreach ($times['times'] as $time) {
                        ?>
			<tr>
				<td><?php 
                        if ($_l->ifs[] = $time['obsazenost'] != $max && $time['passed'] == false) {
                            ?>
<a href="<?php 
                            echo Latte\Runtime\Filters::escapeHtml($_control->link("Plavba:rezervovat", array($times['date'], $time['time_url'])), ENT_COMPAT);
                            ?>
"><?php 
                        }
                        echo Latte\Runtime\Filters::escapeHtml($time['time'], ENT_NOQUOTES);
                        if (array_pop($_l->ifs)) {
                            ?>
</a><?php 
                        }
                        ?>
</td>
				<td><b class="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($time['obsazenost'] == $max ? 'full' : 'ok', ENT_COMPAT);
                        ?>
"><?php 
                        echo Latte\Runtime\Filters::escapeHtml($time['obsazenost'], ENT_NOQUOTES);
                        ?>
</b>/<?php 
                        echo Latte\Runtime\Filters::escapeHtml($max, ENT_NOQUOTES);
                        ?>
</td>
			</tr>
<?php 
                        $iterations++;
                    }
                    ?>
		</table>
<?php 
                }
            }
        }
        //
        // block title
        //
        if (!function_exists($_b->blocks['title'][] = '_lb9fb59ad8f6_title')) {
            function _lb9fb59ad8f6_title($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<h2>Plavba <?php 
                echo Latte\Runtime\Filters::escapeHtml($times['date'], ENT_NOQUOTES);
                ?>
 (<?php 
                echo Latte\Runtime\Filters::escapeHtml($template->lower($times['day_of_the_week']), ENT_NOQUOTES);
                ?>
)</h2>
<?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());
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('cd2b4bcbad', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lbc0d8561432_head')) {
            function _lbc0d8561432_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
            }
        }
        //
        // block scripts
        //
        if (!function_exists($_b->blocks['scripts'][] = '_lb3b1eb40925_scripts')) {
            function _lb3b1eb40925_scripts($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
	<script src="//nette.github.io/resources/js/netteForms.min.js"></script>
	<script src="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/js/main.js"></script>
<?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
        //
        ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title><?php 
        if (isset($_b->blocks["title"])) {
            ob_start();
            Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters());
            echo $template->striptags(ob_get_clean());
            ?>
 | <?php 
        }
        ?>
Nette Sandbox</title>

	<link rel="stylesheet" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/css/style.css">
	<link rel="shortcut icon" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
        ?>
/favicon.ico">
	<meta name="viewport" content="width=device-width">
	<?php 
        if ($_l->extends) {
            ob_end_clean();
            return $template->renderChildTemplate($_l->extends, get_defined_vars());
        }
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
        ?>

</head>

<body>
<?php 
        $iterations = 0;
        foreach ($flashes as $flash) {
            ?>
	<div<?php 
            if ($_l->tmp = array_filter(array('flash', $flash->type))) {
                echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"';
            }
            ?>
><?php 
            echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES);
            ?>
</div>
<?php 
            $iterations++;
        }
        ?>

<?php 
        Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters());
        ?>

<?php 
        call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars());
        ?>
</body>
</html>
<?php 
    }
    function render()
    {
        foreach ($this->params as $__k => $__v) {
            ${$__k} = $__v;
        }
        unset($__k, $__v);
        // prolog Latte\Macros\CoreMacros
        list($_b, $_g, $_l) = $template->initialize('69d0e4a7e5', 'html');
        // prolog Latte\Macros\BlockMacros
        //
        // block content
        //
        if (!function_exists($_b->blocks['content'][] = '_lb18920efd08_content')) {
            function _lb18920efd08_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
                <div class="row" id="product">
                    <div class="col-sm-12 col-lg-12 col-md-12">
                        <div class="product-detail product-category-<?php 
                echo Latte\Runtime\Filters::escapeHtml($product->id_category, ENT_COMPAT);
                ?>
">
                            <div class="product-header">
                                <h2>
                        			<?php 
                echo Latte\Runtime\Filters::escapeHtml($product->name, ENT_NOQUOTES);
                ?>

<?php 
                if ($product->expire <= $now && $product->related('bid.id_product')->count() > 0) {
                    ?>
                                        / PRODÁNO
<?php 
                }
                if ($user->loggedIn && $user->id == $product->id_user) {
                    ?>
                                        <a data-toggle="modal" data-target="#product_edit_modal" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:productAddEdit", array($product->id)), ENT_COMPAT);
                    ?>
">
                                            Upravit produkt
                                        </a>
                                        <a data-toggle="modal" data-target="#product_delete_modal" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:productDelete", array($product->id)), ENT_COMPAT);
                    ?>
">
                                            Smazat produkt
                                        </a>
<?php 
                }
                ?>
                            	</h2>
                                <div class="pub">
                                    Publikoval: <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("User:profile", array($product->id_user)), ENT_COMPAT);
                ?>
"><?php 
                echo Latte\Runtime\Filters::escapeHtml($product->user->name, ENT_NOQUOTES);
                ?>
</a>
                                </div>
                            </div>
                            <div class="product-category">
                                Kategorie: <?php 
                echo Latte\Runtime\Filters::escapeHtml($product->category->name, ENT_NOQUOTES);
                ?>

                            </div>
                            <div class="product-galery">
                                <h3>
                                    Fotografie
<?php 
                if ($user->loggedIn && $user->id == $product->id_user) {
                    ?>
                                        <a data-toggle="modal" data-target="#photo_edit_modal" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:photoEdit", array($product->id)), ENT_COMPAT);
                    ?>
">
                                            Změnit hlavní fotografii
                                        </a>
                                        <a data-toggle="modal" data-target="#photo_delete_modal" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:photoDelete", array($product->id)), ENT_COMPAT);
                    ?>
">
                                            Smazat fotografii
                                        </a>
<?php 
                }
                ?>
                                </h3>
<?php 
                ob_start();
                ?>
                                <div id="links">
<?php 
                $i = 0;
                $iterations = 0;
                foreach ($product->related('image.id_product') as $img) {
                    ?>
                                    <a href="../../images/products/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($product->id), ENT_COMPAT);
                    ?>
_<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($img->id), ENT_COMPAT);
                    ?>
_<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($img->name), ENT_COMPAT);
                    ?>
.<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($img->extension), ENT_COMPAT);
                    ?>
" title="Obrázek <?php 
                    echo Latte\Runtime\Filters::escapeHtml(++$i, ENT_COMPAT);
                    ?>
 z <?php 
                    echo Latte\Runtime\Filters::escapeHtml($product->related('image.id_product')->count(), ENT_COMPAT);
                    ?>
" data-gallery>
                                        <img src="../../images/products/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($product->id), ENT_COMPAT);
                    ?>
_<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($img->id), ENT_COMPAT);
                    ?>
_<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($img->name), ENT_COMPAT);
                    ?>
.<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($img->extension), ENT_COMPAT);
                    ?>
">
                                    </a>
<?php 
                    $iterations++;
                }
                ?>
                                </div>
<?php 
                ob_start();
                ?>
                                    <div>
                                        K tomuto produktu zatím nebyla nahrána žádná fotografie.
                                    </div>
                                <?php 
                if (isset($img)) {
                    ob_end_clean();
                    ob_end_flush();
                } else {
                    $_l->else = ob_get_contents();
                    ob_end_clean();
                    ob_end_clean();
                    echo $_l->else;
                }
                ?>

                            </div>
                            <div class="row product-info">
                                <div class="col-sm-6 col-md-5">
                                    <h3>
                                        Informace
                                    </h3>
                                    <table>
                                        <tr>
                                            <td>ID aukce:</td>
                                            <td><?php 
                echo Latte\Runtime\Filters::escapeHtml($product->id, ENT_NOQUOTES);
                ?>
</td>
                                        </tr>
                                        <tr>
                                            <td>Typ aukce:</td>
                                            <td title="<?php 
                echo Latte\Runtime\Filters::escapeHtml($product->type_auction->description, ENT_COMPAT);
                ?>
"><?php 
                echo Latte\Runtime\Filters::escapeHtml($product->type_auction->name, ENT_NOQUOTES);
                ?>
</td>
                                        </tr>
                                        <tr>
                                            <td>Začátek aukce:</td>
                                            <td><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($product->added, 'd/m/Y, h:i \\h\\o\\d.'), ENT_NOQUOTES);
                ?>
</td>
                                        </tr>
                                        <tr>
                                            <td>Konec aukce:</td>
                                            <td><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($product->expire, 'd/m/Y, h:i \\h\\o\\d.'), ENT_NOQUOTES);
                ?>
</td>
                                        </tr> 
                                        <tr>
<?php 
                if ($product->id_type_auction == 1) {
                    ?>
                                                <td>Výherce aukce:</td>
                                                <td>
<?php 
                    if ($product->related('bid.id_product')->count() > 0) {
                        $bid = $product->related('bid.id_product')->order('id DESC')->fetch();
                        ?>
                                                        <a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("User:profile", array($bid->id_user)), ENT_COMPAT);
                        ?>
">
                                                            <?php 
                        echo Latte\Runtime\Filters::escapeHtml($bid->user->name, ENT_NOQUOTES);
                        ?>

                                                        </a>
<?php 
                    } else {
                        ?>
                                                        -
<?php 
                    }
                    ?>
                                                </td>
<?php 
                } else {
                    ?>
                                                <td>
<?php 
                    if ($product->expire > $now) {
                        ?>
                                                        Nejvyšší nabídka:
<?php 
                    } else {
                        ?>
                                                        Výherce aukce:
<?php 
                    }
                    ?>
                                                </td>
                                                <td>
<?php 
                    if ($product->related('bid.id_product')->count() > 0) {
                        $bid = $product->related('bid.id_product')->order('id DESC')->fetch();
                        ?>
                                                        <a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("User:profile", array($bid->id_user)), ENT_COMPAT);
                        ?>
">
                                                            <?php 
                        echo Latte\Runtime\Filters::escapeHtml($bid->user->name, ENT_NOQUOTES);
                        ?>

                                                        </a>
<?php 
                    } else {
                        ?>
                                                        -
<?php 
                    }
                    ?>
                                                </td>   
<?php 
                }
                ?>
                                        </tr> 
                                    </table>
                                </div>
                                <div class="col-sm-6 col-md-7">
                                    <h3>
                                        Popis
                                    </h3>
                                    <p>
                                        <?php 
                echo Latte\Runtime\Filters::escapeHtml($product->description, ENT_NOQUOTES);
                ?>

                                    </p>
                                </div>
                            </div>
                            <div class="product-prize">
<?php 
                if ($product->expire > $now && $product->id_user != $user->id) {
                    ?>
                                    <a data-toggle="modal" class="btn" data-target="#auction_bid" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Auction:bid", array($product->id)), ENT_COMPAT);
                    ?>
">
<?php 
                    if ($product->id_type_auction == 1) {
                        ?>
                                            Koupit
<?php 
                    } else {
                        ?>
                                            Přihodit
<?php 
                    }
                    ?>
                                    </a>  
<?php 
                }
                ?>
                                <div class="input-group">
                                    <span class="input-group-addon">Cena</span>
                                    <input readonly="" type="text" class="form-control" name="value" value="<?php 
                echo Latte\Runtime\Filters::escapeHtml($template->number($product->cost + $product->related('bid.id_product')->sum('deposit')), ENT_COMPAT);
                ?>
 Kč"> 
                                </div>
                            </div>
                        </div>
                    </div>                       
                </div>

                <!-- PopUp pomoci bootstrap, pro productAddEdit.latte -->
                <div id="product_edit_modal" class="modal fade" role="dialog">
                    <div class="modal-dialog">
                        <div class="modal-content">
                        </div>
                    </div>
                </div>

                <!-- PopUp pomoci bootstrap, pro productDelete.latte -->
                <div id="product_delete_modal" class="modal fade" role="dialog">
                    <div class="modal-dialog">
                        <div class="modal-content">
                        </div>
                    </div>
                </div>

                <!-- PopUp pomoci bootstrap, pro photoEdit.latte -->
                <div id="photo_edit_modal" class="modal fade" role="dialog">
                    <div class="modal-dialog">
                        <div class="modal-content">
                        </div>
                    </div>
                </div>

                <!-- PopUp pomoci bootstrap, pro photoDelete.latte -->
                <div id="photo_delete_modal" class="modal fade" role="dialog">
                    <div class="modal-dialog">
                        <div class="modal-content">
                        </div>
                    </div>
                </div>

                <!-- PopUp pomoci bootstrap, pro bid.latte -->
                <div id="auction_bid" class="modal fade" role="dialog">
                    <div class="modal-dialog">
                        <div class="modal-content">
                        </div>
                    </div>
                </div>

                <!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->
                <div id="blueimp-gallery" class="blueimp-gallery">
                    <!-- The container for the modal slides -->
                    <div class="slides"></div>
                    <!-- Controls for the borderless lightbox -->
                    <h3 class="title"></h3>
                    <a class="prev">‹</a>
                    <a class="next">›</a>
                    <a class="close">×</a>
                    <a class="play-pause"></a>
                    <ol class="indicator"></ol>
                    <!-- The modal dialog, which will be used to wrap the lightbox content -->
                    <div class="modal fade">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" aria-hidden="true">&times;</button>
                                    <h4 class="modal-title"></h4>
                                </div>
                                <div class="modal-body next"></div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default pull-left prev">
                                        <i class="glyphicon glyphicon-chevron-left"></i>
                                        Zpět
                                    </button>
                                    <button type="button" class="btn btn-primary next">
                                        Další
                                        <i class="glyphicon glyphicon-chevron-right"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

<?php 
            }
        }
        //
        // block head
        //
        if (!function_exists($_b->blocks['head'][] = '_lb1af9f19163_head')) {
            function _lb1af9f19163_head($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
    <link rel="stylesheet" href="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/assets/css/blueimp-gallery.min.css">
    <link rel="stylesheet" href="<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT);
                ?>
/assets/css/bootstrap-image-gallery.css">
	<style>
        .product-info .col-md-5, .product-info .col-md-7 { margin: 0; padding: 0;}
        .product-info table { margin: .5em 0 0 0; }
        .product-info table td { padding: 3px 6px;}
        .product-info table td:first-child { padding-left: 0;}
		.product-info p { overflow: hidden; padding: .5em 0 0 0; margin: 0;}
		h2, h3 { white-space: nowrap; color: #222;}
        .product-detail { height: auto; box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7); border: none; font-size: 15px; padding: 1em; border-radius: 0px;}
        .product-detail h2 { font-size: 25px; font-weight: 700; margin: 0.5em 0 0 0;}
        .product-detail h2 a, .product-detail h2 a:hover, .product-detail h3 a, .product-detail h3 a:hover { font-size: 13px; padding: 0 0.2em; font-weight: normal; text-decoration: underline;}
        .product-detail h2 a:hover, .product-detail h3 a:hover { text-decoration: none;}
        .product-detail h3 { font-size: 20px; font-weight: 700; padding: 0; margin: 1em 0 0 0;}
        .product-detail div { margin: 0.5em 0 0 0; }
        .product-prize div.input-group span.input-group-addon { width: 7em; font-weight: 700; background: #EEE; border-color: #333;}
        .product-prize input[type=text], .product-prize input[type=submit], .product-prize a{ background: transparent; color: #333; border-color: #333;}
        .product-prize input[type=submit], .product-prize a {
            font-weight: 700;
        }
        .product-prize input[type=submit]:hover, .product-prize a:hover { 
            background: #eee;
            text-decoration: none;
        }
<?php 
                if ($product->expire > $now && $product->id_user != $user->id) {
                    ?>
            .product-prize .input-group { float: left; margin: 0 .5em 0 0;}
<?php 
                }
                ?>
        .product-prize { padding: 1em 0;}
        .product-header { border-bottom: 1px solid #666;}
        .product-header, .product-galery, .product-description { 
            padding: 0 0 1em 0; 
            margin: 0 0 1em 0;
        }
        #links { margin: 0;}
        #links a, #links a:hover { display: inline-block; }
        #links img { max-height: 100px; margin-top: 1em; width: auto;}
        div.hidden { display: none;}
	</style>
<?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
        //
        ?>

<?php 
        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());
        call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars());
        ?>

<?php 
    }