function _lb06c1f02a32_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
	<form class="form"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["deleteForm"], array('class' => NULL), FALSE);
                ?>
>
		<select class="form-control"<?php 
                $_input = $_form["category"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select>
		<br>
		<button class="btn btn-primary btn-lg btn-block"<?php 
                $_input = $_form["submit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
>Smazat</button>
	<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
<?php 
            }
            function _lb6c1e37b6f3_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                if (!$user->loggedIn) {
                    ?>
	<p>Pro přístup na tuto stránku se musíte <a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Sign:in"), ENT_COMPAT);
                    ?>
">přihlásit</a>.</p>
<?php 
                } else {
                    call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                    ?>
	<form<?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["invoiceForm"], array(), FALSE);
                    ?>
>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Soubor</span>
  			<input class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["userfile"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<select class="form-control"<?php 
                    $_input = $_form["zadavatel"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                    ?>
><?php 
                    echo $_input->getControl()->getHtml();
                    ?>
</select>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Cena (bez ,- Kč)...</span>
  			<input placeholder="Cena (bez ,- Kč)..." class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["cena"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<button class="btn btn-primary btn-lg btn-block"<?php 
                    $_input = $_form["submit"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                    ?>
>Odeslat</button>
	<?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                    ?>
</form>
<?php 
                }
            }
            function _lbf8eaadd74e_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                if (!$user->loggedIn) {
                    ?>
	<p>Pro přístup na tuto stránku se musíte <a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Sign:in"), ENT_COMPAT);
                    ?>
">přihlásit</a>.</p>
<?php 
                } else {
                    call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                    ?>
	<form class="form"<?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["clientForm"], array('class' => NULL), FALSE);
                    ?>
>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Jméno</span>
  			<input placeholder="Jméno klienta..." class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["jmeno"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Email</span>
  			<input placeholder="Email zakázky..." class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["email"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Telefon</span>
  			<input placeholder="Telefon na klienta..." class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["telefon"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<button class="btn btn-primary btn-lg btn-block"<?php 
                    $_input = $_form["submit"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                    ?>
>Odeslat</button>
	<?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                    ?>
</form>
<?php 
                }
            }
            function _lb809da94f43_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
	<form class="form"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["editForm"], array('class' => NULL), FALSE);
                ?>
>
		<label for="category">Vyberte kategorii, kterou chcete upravit:</label>
		<select onChange="copyText(this.options[this.selectedIndex].text, this.selectedIndex)" class="form-control" id="category"<?php 
                $_input = $_form["category"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('onChange' => NULL, 'class' => NULL, 'id' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Upravit název</span>
  			<input class="form-control" aria-describedby="basic-addon1" id="edit"<?php 
                $_input = $_form["edit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'aria-describedby' => NULL, 'id' => NULL))->attributes();
                ?>
>
		</div>
		<hr>
		<label for="parent">Vyberte nadřazenou kategorii <span class="optional">(nepovinné)</span>:</label>
		<select class="form-control" id="parent"<?php 
                $_input = $_form["parent"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'id' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select>
		<br>
		<button class="btn btn-primary btn-lg btn-block"<?php 
                $_input = $_form["submit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
>Odeslat</button>
	<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
<?php 
            }
            function _lbf8a2f4caff_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
	<form<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["signInForm"], array(), FALSE);
                ?>
>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Uživatelské jméno</span>
				<input placeholder="Uživatelské jméno..." class="form-control" aria-describedby="basic-addon1"<?php 
                $_input = $_form["username"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                ?>
>
		</div>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Heslo</span>
			<input placeholder="Heslo..." class="form-control" aria-describedby="basic-addon1"<?php 
                $_input = $_form["password"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                ?>
>
		</div>
		<br>
		<div class="checkbox">
			<label>
				<input<?php 
                $_input = $_form["remember"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->attributes();
                ?>
> Pamatovat si mě
			</label>
		</div>
		<br>
		<button class="btn btn-primary btn-lg btn-block"<?php 
                $_input = $_form["submit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
>Odeslat</button>
	<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
<?php 
            }
            function _lb97b37f2bf0_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>
	<form class="form"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["newForm"], array('class' => NULL), FALSE);
                ?>
>
		<select class="form-control"<?php 
                $_input = $_form["category"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Název kategorie</span>
  			<input class="form-control" aria-describedby="basic-addon1"<?php 
                $_input = $_form["title"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'aria-describedby' => NULL))->attributes();
                ?>
>
		</div>
		<br>
		<button class="btn btn-primary btn-lg btn-block"<?php 
                $_input = $_form["submit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
>Odeslat</button>
	<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
<?php 
            }
            function _lb87541ceb5e__ByDiscipline_lcm($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('ByDiscipline_lcm', FALSE);
                ?>
<script type="text/javascript">     
google.charts.setOnLoadCallback(drawByDiscipline_lcm_m_Table);
google.charts.setOnLoadCallback(drawByDiscipline_lcm_f_Table);    

    function drawByDiscipline_lcm_m_Table() {
        var data = new google.visualization.DataTable();
        data.addColumn('number', 'Pořadí');
        data.addColumn('string', 'Čas');
        data.addColumn('string', 'Příjmení');
        data.addColumn('string', 'Jméno');
        data.addColumn('string', 'Ročník');
        data.addColumn('string', 'Datum');
        data.addColumn('string', 'Závod');
        
<?php 
                if (isset($by_discipline_lcm_m_select)) {
                    $iterations = 0;
                    foreach ($by_discipline_lcm_m_select as $by_discipline_lcm_m_select) {
                        ?>
                data.addRow([<?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m_select->rank);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m_select->cas);
                        ?>
, 
                            <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m_select->prijmeni);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m_select->jmeno);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m_select->rocnik);
                        ?>
, 
                            <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m_select->datum);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m_select->zavod);
                        ?>
]);
<?php 
                        $iterations++;
                    }
                } else {
                    $iterations = 0;
                    foreach ($by_discipline_lcm_m as $by_discipline_lcm_m) {
                        ?>
            data.addRow([<?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m->rank);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m->cas);
                        ?>
, 
                    <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m->prijmeni);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m->jmeno);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m->rocnik);
                        ?>
, 
                    <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m->datum);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_m->zavod);
                        ?>
]);
<?php 
                        $iterations++;
                    }
                }
                ?>
        
            
        var cssClassNames = {          
            'tableCell': 'font10pt align_left',
        };    
        
        var options = {   
            pageSize: '10',
            width: '100%', 
            height: '100%',
            page: 'event',
            sort: 'disable',
            cssClassNames: cssClassNames
        }

        var table = new google.visualization.Table(document.getElementById('by_discipline_lcm_m_table'));
        table.draw(data, options);
    }
    
    function drawByDiscipline_lcm_f_Table() {
        var data = new google.visualization.DataTable();
        data.addColumn('number', 'Pořadí');
        data.addColumn('string', 'Čas');
        data.addColumn('string', 'Příjmení');
        data.addColumn('string', 'Jméno');
        data.addColumn('string', 'Ročník');
        data.addColumn('string', 'Datum');
        data.addColumn('string', 'Závod');
        
<?php 
                if (isset($by_discipline_lcm_f_select)) {
                    $iterations = 0;
                    foreach ($by_discipline_lcm_f_select as $by_discipline_lcm_f_select) {
                        ?>
                data.addRow([<?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f_select->rank);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f_select->cas);
                        ?>
, 
                            <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f_select->prijmeni);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f_select->jmeno);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f_select->rocnik);
                        ?>
, 
                            <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f_select->datum);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f_select->zavod);
                        ?>
]);
<?php 
                        $iterations++;
                    }
                } else {
                    $iterations = 0;
                    foreach ($by_discipline_lcm_f as $by_discipline_lcm_f) {
                        ?>
            data.addRow([<?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f->rank);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f->cas);
                        ?>
, 
                    <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f->prijmeni);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f->jmeno);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f->rocnik);
                        ?>
, 
                    <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f->datum);
                        ?>
, <?php 
                        echo Latte\Runtime\Filters::escapeJs($by_discipline_lcm_f->zavod);
                        ?>
]);
<?php 
                        $iterations++;
                    }
                }
                ?>
        
            
        var cssClassNames = {          
            'tableCell': 'font10pt align_left',
        };    
        
        var options = {   
            pageSize: '10',
            width: '100%', 
            height: '100%',
            page: 'event',
            sort: 'disable',
            cssClassNames: cssClassNames
        }

        var table = new google.visualization.Table(document.getElementById('by_discipline_lcm_f_table'));
        table.draw(data, options);
    }
</script>           
            <div class="panel-body">
                <div class="col-md-12 zero_padding">
                    <form class="form-horizontal ajax bottom7px"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["byDisciplineLCMForm"], array('class' => NULL), FALSE);
                ?>
>
                        <div class="panel panel-default">
                            <div class="panel-body"> 
                                <div class="col-md-3 zero_padding bottom7px">
                                    <div class="col-md-2 zero_padding"><label class="top7px">Styl:</label></div>    
                                    <div class="col-md-6 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>
                                </div>    
                                    <input type="submit" name="make" class="ajax button btn btn-default col-md-offset-8 col-md-1" value="Vytvořit">
                            </div>
                        </div>                               
                    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
                </div>   
                <div id="ByDiscipline-lcm_m" class="col-md-12 zero_padding bottom7px">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">Muži</h3>
                        </div>
                        <div class="panel-body zero_padding font10">
                            <div id="by_discipline_lcm_m_table" class="bottom7px"></div>
<?php 
                if (isset($stroke_lcm_select)) {
                    ?>
                                <a data-toggle="tooltip" data-placement="right" title="Tisk sestavy" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("exportByDiscipline!", array('lcm_m', $stroke_lcm_select)), ENT_COMPAT);
                    ?>
">    
                                    <span class="glyphicon glyphicon-print font18 leaderboards_print" aria-hidden="true"></span></a>  
<?php 
                } else {
                    ?>
                                 <a data-toggle="tooltip" data-placement="right" title="Tisk sestavy" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("exportByDiscipline!", array('lcm_m', $stroke_lcm)), ENT_COMPAT);
                    ?>
">    
                                    <span class="glyphicon glyphicon-print font18 leaderboards_print" aria-hidden="true"></span></a>  
<?php 
                }
                ?>
                        </div>
                    </div>
                </div>
                <div id="ByDiscipline-lcm_f" class="col-md-12 zero_padding">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">Ženy</h3>
                        </div>
                        <div class="panel-body zero_padding font10">
                            <div id="by_discipline_lcm_f_table" class="bottom7px"></div>
<?php 
                if (isset($stroke_lcm_select)) {
                    ?>
                                <a data-toggle="tooltip" data-placement="right" title="Tisk sestavy" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("exportByDiscipline!", array('lcm_f', $stroke_lcm_select)), ENT_COMPAT);
                    ?>
">    
                                    <span class="glyphicon glyphicon-print font18 leaderboards_print" aria-hidden="true"></span></a>  
<?php 
                } else {
                    ?>
                                 <a data-toggle="tooltip" data-placement="right" title="Tisk sestavy" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("exportByDiscipline!", array('lcm_f', $stroke_lcm)), ENT_COMPAT);
                    ?>
">    
                                    <span class="glyphicon glyphicon-print font18 leaderboards_print" aria-hidden="true"></span></a>  
<?php 
                }
                ?>
                        </div>
                    </div>
                </div>
            </div>         
<?php 
            }
            function _lb1635280e77__bid($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('bid', FALSE);
                ?>
        <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["bidForm"], array());
                ?>

 		  	<!--- Modal-header -->
			<div class="modal-header panel-heading">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
		        <h2 class="modal-title">Aukce</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-12 col-lg-12"> 
<?php 
                if ($product->id_type_auction == 1) {
                    ?>
		            		<table class="auction">
		            			<tr>
		            				<td>Název produktu:</td>
		            				<td><input type="text" class="form-control" value="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($product->name, ENT_COMPAT);
                    ?>
" readonly=""></td>
		            			</tr>
		            			<tr>
		            				<td>Cena produktu:</td>
		            				<td><input type="text" class="form-control" value="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($template->number($product->cost), ENT_COMPAT);
                    ?>
" readonly=""> Kč</td>
		            			</tr>
		            		</table>
<?php 
                } else {
                    ?>
		            		<table class="auction">
		            			<tr>
		            				<td>Název produktu:</td>
		            				<td><input type="text" class="form-control" value="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($product->name, ENT_COMPAT);
                    ?>
" readonly=""></td>
		            			</tr>
		            			<tr>
		            				<td>Současná cena:</td>
		            				<td>
		            					<div class="input-group">
											<input type="text" class="form-control" value="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($template->number($product->cost + $product->related('bid.id_product')->sum('deposit')), ENT_COMPAT);
                    ?>
" readonly="">
											<span class="input-group-addon">Kč</span>
										</div>
		            				</td>
		            			</tr>
		            			<tr>
		            				<td>Navýšit cenu o:</td>
		            				<td>
		            					<div class="input-group">
											<?php 
                    echo $_form["deposit"]->getControl();
                    ?>

											<span class="input-group-addon">Kč</span>
										</div>
		            				</td>
		            			</tr>
		            		</table>
<?php 
                }
                ?>
		            </div>
		       	</div>
			</div>
			<div class="hidden">
				<?php 
                echo $_form["id_product"]->getControl();
                ?>

			</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 
            }
            function _lbba8155613e__grid($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('grid', FALSE);
                $form->getElementPrototype()->class[] = 'ajax grido';
                $form->getElementPrototype()->{"data-grido-refresh-handler"} = $control->link("refresh!");
                $operation = $control->hasOperation();
                $actions = $control->hasActions() ? $control->getComponent(\Grido\Components\Actions\Action::ID)->getComponents() : array();
                $filters = $control->hasFilters() ? $form->getComponent(\Grido\Components\Filters\Filter::ID)->getComponents() : array();
                $filterRenderType = $control->getFilterRenderType();
                $columns = $control->getComponent(\Grido\Components\Columns\Column::ID)->getComponents();
                $columnCount = count($columns) + ($operation ? 1 : 0);
                $showActionsColumn = $actions || $filters && $filterRenderType == \Grido\Components\Filters\Filter::RENDER_INNER;
                $buttons = $form->getComponent('buttons');
                $buttons->getComponent('search')->getControlPrototype()->class[] = 'btn btn-default btn-sm search';
                $buttons->getComponent('reset')->getControlPrototype()->class[] = 'btn btn-default btn-sm reset';
                $form['count']->controlPrototype->class[] = 'form-control';
                $operation ? $form['operations']['operations']->controlPrototype->class[] = 'form-control' : NULL;
                ?>

<?php 
                $iterations = 0;
                foreach ($filters as $filter) {
                    $filter->controlPrototype->class[] = 'form-control';
                    $iterations++;
                }
                ?>

<?php 
                $iterations = 0;
                foreach ($actions as $action) {
                    $element = $action->getElementPrototype();
                    $element->class[] = 'btn btn-default btn-xs btn-mini';
                    if ($icon = $action->getOption('icon')) {
                        $element->setText(' ' . $action->getLabel());
                        $element->insert(0, \Nette\Utils\Html::el('i')->setClass(array("glyphicon glyphicon-{$icon} fa fa-{$icon} icon-{$icon}")));
                    }
                    $iterations++;
                }
                if ($form->getErrors()) {
                    $iterations = 0;
                    foreach ($form->getErrors() as $error) {
                        ?>
<ul>
    <li><?php 
                        echo Latte\Runtime\Filters::escapeHtml($error, ENT_NOQUOTES);
                        ?>
</li>
</ul>
<?php 
                        $iterations++;
                    }
                }
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["form"], array());
                ?>

<?php 
                if ($filterRenderType == \Grido\Components\Filters\Filter::RENDER_OUTER) {
                    call_user_func(reset($_b->blocks['outerFilter']), $_b, get_defined_vars());
                }
                ?>

<?php 
                call_user_func(reset($_b->blocks['table']), $_b, get_defined_vars());
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form);
                ?>

<?php 
            }
            function _lb424f28fce8_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ob_start();
                ?>
        <div class="flash">
            Zde se definují jednotlivé kategorie produktů. 
        </div>
            <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["adminDeleteCategoryForm"], array());
                ?>

                <div class="row category">
                    <!-- 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 
                }
                ?>
                    <!-- vykresleni tabulky -->
                    <table class="category">
                    <tr>
                        <th></th>
                        <th>Kategorie</th>
                        <th colspan="3">RGB barva</th>
                    </tr>
<?php 
                $iterations = 0;
                foreach ($cats as $cat) {
                    ?>
                            <tr>
                                <td>
                                    <?php 
                    $_input = is_object($cat->id) ? $cat->id : $_form[$cat->id];
                    echo $_input->getControl();
                    ?>

                                </td>
                                <td>
                                	<?php 
                    echo Latte\Runtime\Filters::escapeHtml($cat->name, ENT_NOQUOTES);
                    ?>

                                </td>
                                <td style="background: #<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($cat->color), ENT_COMPAT);
                    ?>
;">
                                </td>
                                <td>
                                    #<?php 
                    echo Latte\Runtime\Filters::escapeHtml($cat->color, ENT_NOQUOTES);
                    ?>

                                </td>
                                <td>	
                                	<a data-toggle="modal" data-target="#admin_reload" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:category", array($cat->id)), ENT_COMPAT);
                    ?>
">
                                        Upravit
                                    </a>
                                </td>
                            </tr>               
<?php 
                    $iterations++;
                }
                ?>
                    </table>   
                    <a data-toggle="modal" data-target="#admin_reload" class="btn btn-primary" href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:category"), ENT_COMPAT);
                ?>
">
                        Přidat novou
                    </a>   
                    <?php 
                echo $_form["send"]->getControl();
                ?>

                </div>
            <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form);
                ?>


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

<?php 
                ob_start();
                ?>
        <div class="row row-center">
        	Nemáte v systému žádné kategorie.
        </div>
    <?php 
                if (isset($cat)) {
                    ob_end_clean();
                    ob_end_flush();
                } else {
                    $_l->else = ob_get_contents();
                    ob_end_clean();
                    ob_end_clean();
                    echo $_l->else;
                }
                ?>

<?php 
            }
            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 
            }
            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 
            }
            function _lb75cf60604d__profile($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('profile', FALSE);
                ?>
		<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["userForm"], array());
                ?>

		  	<!--- Modal-header -->
			<div class="modal-header panel-heading">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
		        <h2 class="modal-title">Můj profil</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 "> 
		               	<table class="table table-my-grid">
			                <tbody>
			                    <tr>
			                        <td>Nick:</td>
			                        <td>
			                        	<input type="text" class="form-control" value="<?php 
                echo Latte\Runtime\Filters::escapeHtml($profile->nick, ENT_COMPAT);
                ?>
" readonly>
			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Celé jméno:</td>
			                        <td>
			                        	<?php 
                echo $_form["name"]->getControl();
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Datum registrace:</td>
			                        <td><input type="text" class="form-control" value="<?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($profile->registered_since, 'd/m/Y  H:i'), ENT_COMPAT);
                ?>
 hod." readonly></td>
			                    </tr>
			                    <tr>
			                        <td>Datum posl. přihlášení:</td>
			                        <td><input type="text" class="form-control" value="<?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($profile->last_login, 'd/m/Y  H:i'), ENT_COMPAT);
                ?>
 hod." readonly></td>
			                    </tr>
			                    <tr>
			                        <td>Pohlaví:</td>
			                        <td>
<?php 
                $iterations = 0;
                foreach ($form['id_gender']->items as $key => $label) {
                    ?>
							            <div class="col-xs-6">
								            <div class="reg-radio input-group">
								              	<span class="input-group-addon">
								                	<input<?php 
                    $_input = $_form["id_gender"];
                    echo $_input->getControlPart($key)->attributes();
                    ?>
>
								              	</span>
								              	<input type="text" value="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($label, ENT_COMPAT);
                    ?>
" class="form-control" readonly>
								            </div>
								        </div>
<?php 
                    $iterations++;
                }
                ?>
			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Adresa bydliště:</td>
			                        <td><?php 
                echo $_form["address"]->getControl();
                ?>
</td>
			                    </tr>
			                    <tr>
			                        <td>E-mail:</td>
			                        <td><?php 
                echo $_form["email"]->getControl();
                ?>
</td>
			                    </tr>
			                    <tr>
			                        <td>Telefonní číslo:</td>
			                        <td><?php 
                echo $_form["phone"]->getControl();
                ?>
</td>
			                    </tr>
			                </tbody>
		                </table>
		            </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 
            }
            function _lbf5bc8cff45__zobraz($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('zobraz', FALSE);
                ?>
        <div class="modal-content">    
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3>Detail plavce</h3>
            </div>
            <div class="modal-body">                
                    <div class="row">
                        <div class="col-md-12 zero_padding">
                        <div id="avatar" class="col-md-3">
                            <div id="avatar_img" class="col-md-12 zero_padding">
<?php 
                if ($avatar == NULL) {
                    if ($sex === 'M') {
                        ?>
                                    <img id="avatar_unknown_male" src="images/unknown_male.png" class="img-rounded">
<?php 
                    } else {
                        ?>
                                    <img id="avatar_unknown_female" src="images/unknown_female.png" class="img-rounded">                               
<?php 
                    }
                } else {
                    ?>
                                <img src="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($template->dataStream($avatar), ENT_COMPAT);
                    ?>
" class="img-rounded">
<?php 
                }
                ?>
                            </div>
                            
                        </div>                           
                        
<?php 
                if (isset($swimmers)) {
                    ?>
                        <div id="detail_info" class="col-md-8">
<?php 
                    $iterations = 0;
                    foreach ($swimmers as $swimmer) {
                        ?>
                                <h4><p><strong><?php 
                        echo Latte\Runtime\Filters::escapeHtml($swimmer->firstname, ENT_NOQUOTES);
                        ?>
 <?php 
                        echo Latte\Runtime\Filters::escapeHtml($swimmer->surname, ENT_NOQUOTES);
                        ?>
</strong></p></h4> 
                                
                                <table class="table table-condensed">
                                    <tr>
                                        <td><strong>Pohlaví:</strong></td>
                                        <td><?php 
                        if ($swimmer->sex === 'M') {
                            ?>
Muž<?php 
                        } else {
                            ?>
Žena<?php 
                        }
                        ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Ročník:</strong></td>
                                        <td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($swimmer->year, ENT_NOQUOTES);
                        ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Aktivita:</strong></td>
                                        <td><?php 
                        if ($swimmer->active === '1') {
                            ?>
Ano<?php 
                        } else {
                            ?>
Ne<?php 
                        }
                        ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Poprvé aktivní:</strong></td>
                                        <td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($template->date($first_activity, 'j. n. Y'), ENT_NOQUOTES);
                        ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Naposledy aktivní:</strong></td>
                                        <td><?php 
                        echo Latte\Runtime\Filters::escapeHtml($template->date($last_activity, 'j. n. Y'), ENT_NOQUOTES);
                        ?>
</td>
                                    </tr>
                                </table>    
                                    
<?php 
                        $iterations++;
                    }
                    ?>
                        </div>
<?php 
                }
                if ($user->loggedIn) {
                    ?>
                        <div id="upload_avatar" class="col-md-12">
<?php 
                    if ($avatar == NULL) {
                        ?>
                                <div class="new_avatar">
                                    <h4>Nahrát fotku</h4>                                                                  
                                    <form class="form-inline col-md-12 zero_padding"<?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["newAvatarForm"], array('class' => NULL), FALSE);
                        ?>
>                                        
                                        <div class="col-md-6 col-xs-8 zero_padding"><input type="file" class="form-control" placeholder="soubor.txt"<?php 
                        $_input = $_form["avatar_new"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                        ?>
></div>
                                        <button id="new_avatar_submit" type="submit" class="btn btn-default col-md-2"<?php 
                        $_input = $_form["upload_new"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL))->attributes();
                        ?>
>Uložit</button> 
                                    <?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                        ?>
</form>  
                                </div>
<?php 
                    } else {
                        ?>
                                <div class="change_avatar">
                                    <h4>Změnit fotku</h4> 
                                    <form class="form-inline col-md-12 zero_padding"<?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["changeAvatarForm"], array('class' => NULL), FALSE);
                        ?>
>                                       
                                        <div class="col-md-6 zero_padding"><input type="file" class="form-control" placeholder="soubor.txt"<?php 
                        $_input = $_form["avatar_change"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                        ?>
></div>
                                        <button id="change_avatar_submit" type="submit" class="btn btn-default col-md-2"<?php 
                        $_input = $_form["upload_change"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'type' => NULL, 'class' => NULL))->attributes();
                        ?>
>Uložit</button> 
                                    <?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                        ?>
</form>  
                                </div>    
<?php 
                    }
                    ?>
                        </div> 
<?php 
                }
                ?>
                        </div>                                          
                    </div>                 
<?php 
                if ($user->loggedIn) {
                    ?>
                    <div class="row">
                        
<?php 
                    if (isset($details)) {
                        ?>
                        <div id="more_info" class="col-md-12">
<?php 
                        $iterations = 0;
                        foreach ($details as $detail) {
                            ?>
                                <h4>Podrobnější informace</h4> 
                                <table class="table table-condensed">
                                    <tr>
                                        <td><strong>Rodné číslo:</strong></td>
                                        <td><?php 
                            echo Latte\Runtime\Filters::escapeHtml($detail->birth_number, ENT_NOQUOTES);
                            ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Datum narození:</strong></td>
                                        <td><?php 
                            echo Latte\Runtime\Filters::escapeHtml($detail->birth_date, ENT_NOQUOTES);
                            ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Ulice:</strong></td>
                                        <td><?php 
                            echo Latte\Runtime\Filters::escapeHtml($detail->street, ENT_NOQUOTES);
                            ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Město:</strong></td>
                                        <td><?php 
                            echo Latte\Runtime\Filters::escapeHtml($detail->city, ENT_NOQUOTES);
                            ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>PSČ:</strong></td>
                                        <td><?php 
                            echo Latte\Runtime\Filters::escapeHtml($detail->postal_code, ENT_NOQUOTES);
                            ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Telefon:</strong></td>
                                        <td><?php 
                            echo Latte\Runtime\Filters::escapeHtml($detail->phone, ENT_NOQUOTES);
                            ?>
</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Email:</strong></td>
                                        <td><?php 
                            echo Latte\Runtime\Filters::escapeHtml($detail->email, ENT_NOQUOTES);
                            ?>
</td>
                                    </tr>
                                </table>    
                                
<?php 
                            $iterations++;
                        }
                        ?>
                        </div>
<?php 
                    }
                    ?>
                    </div>
<?php 
                }
                ?>
                    
                                   
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Zavřít</button>
                <a class="btn btn-primary btn-md active" role="button" href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Statistics:stats", array($swimmer_id)), ENT_COMPAT);
                ?>
">Statistiky</a>
            </div>
        </div>
<?php 
            }
            function _lbe67f738358__registration($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('registration', FALSE);
                ?>
    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["userForm"], array());
                ?>

        <!--- Modal-header -->
		<div class="modal-header panel-heading">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
	    	<h2 class="modal-title">Registrace</h2>
		</div>
		<!-- Modal-body -->
		<div class="modal-body panel-body">
			<div class="row pad-input-2s">
	            <!-- 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 
                }
                ?>
	            <!-- vykresleni formu -->
	            <div class="mar-input input-group col-xs-12">
	                <span class="input-group-addon" id="reg-nick" style="width: 8em">Nick</span>
	                <?php 
                echo $_form["nick"]->getControl();
                ?>

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

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

	            </div>
	           	<div class="mar-input input-group col-xs-12">
	                <span class="input-group-addon" id="reg-name" style="width: 8em">Celé jméno</span>
	                <?php 
                echo $_form["name"]->getControl();
                ?>

	            </div>
	           	<!-- radio gender -->
	            <div class="mar-input-2x row">
<?php 
                $iterations = 0;
                foreach ($form['id_gender']->items as $key => $label) {
                    ?>
		            <div class="col-xs-6">
			            <div class="reg-radio input-group">
			              	<span class="input-group-addon">
			                	<input<?php 
                    $_input = $_form["id_gender"];
                    echo $_input->getControlPart($key)->attributes();
                    ?>
>
			              	</span>
			              	<input type="text" value="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($label, ENT_COMPAT);
                    ?>
" class="form-control" readonly>
			            </div>
			        </div>
<?php 
                    $iterations++;
                }
                ?>
		        </div>
		        <!-- / radio gender -->
	           	<div class="mar-input input-group col-xs-12">
	                <span class="input-group-addon" id="reg-address" style="width: 8em">Adresa</span>
	                <?php 
                echo $_form["address"]->getControl();
                ?>

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

	            </div>
	           	<div class="input-group col-xs-12">
	                <span class="input-group-addon" id="reg-email" style="width: 8em">E-mail</span>
	                <?php 
                echo $_form["email"]->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 
            }
            function _lb14066de27c__profile($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('profile', FALSE);
                ?>
		<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["userForm"], array());
                ?>

				<div class="row">
		            <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 "> 
		               	<table class="table table-my-grid profile-table">
			                <tbody>
			                    <tr>
			                        <td>Celé jméno:</td>
			                        <td>
			                        	<?php 
                echo Latte\Runtime\Filters::escapeHtml($profile->name, ENT_NOQUOTES);
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Datum registrace:</td>
			                        <td>
			                        	<?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($profile->registered_since, 'd/m/Y,  H:i \\h\\o\\d.'), ENT_NOQUOTES);
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Datum posl. přihlášení:</td>
			                        <td>
			                        	<?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($profile->last_login, 'd/m/Y,  H:i \\h\\o\\d.'), ENT_NOQUOTES);
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Pohlaví:</td>
			                        <td>
			          					<?php 
                echo Latte\Runtime\Filters::escapeHtml($profile->gender->name, ENT_NOQUOTES);
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Adresa bydliště:</td>
			                        <td><?php 
                echo Latte\Runtime\Filters::escapeHtml($profile->address, ENT_NOQUOTES);
                ?>
</td>
			                    </tr>
			                    <tr>
			                        <td>E-mail:</td>
			                        <td><?php 
                echo Latte\Runtime\Filters::escapeHtml($profile->email, ENT_NOQUOTES);
                ?>
</td>
			                    </tr>
			                    <tr>
			                        <td>Telefonní číslo:</td>
			                        <td><?php 
                echo Latte\Runtime\Filters::escapeHtml($profile->phone, ENT_NOQUOTES);
                ?>
</td>
			                    </tr>
			                </tbody>
		                </table>
		            </div>
		       	</div>
		<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form);
                ?>

<?php 
            }
            function _lb1ad3d844af_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="admin_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">
                <div><p><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT);
                    ?>
">Úvodní stránka</a><span> ❯ </span>O programu</p></div>
            </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="admin_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="admin_content" class="container-fluid">
    <div id="admin_box" class="container"> 
        
    <div id="about-panel" class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title font18">Představení aplikace iSAM</h3>
        </div>
        <div class="panel-body">
            
            <h5><strong>Motivace</strong></h5>
            <p class="bottom30px">Internetová aplikace iSAM byla vytvořena pro plavecký oddíl ASK Blansko v rámci mojí bakalářské práce na škole VUT FIT. 
                Aplikace by měla sloužit jak plavcům a trenérům z oddílu, tak široké veřejnosti zajímající se o blanenské plavání.
                iSAM je možné ovládat jak ze stolního počítače nebo notebooku, tak z tabletu a mobilu.</p>          
            
            <h5><strong>Databáze</strong></h5>
            <p class="bottom30px">Aplikace uživatelům umožňuje nahlížet do oddílové databáze, jejíž historie sahá do roku 2006. Od té doby se všichni plavci, 
                závody a výkony evidují. Dnes databáze výkonů zaplavaných na závodech čítá přes čtrnáct tisíc záznamů. iSAM dokáže tyto data 
                přehledně zobrazit a vytvořit z nich zajímavé statistiky.</p>
            
            <h5><strong>Hlavní nabídka</strong></h5>
            <p class="bottom30px">Záložky <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Swimmers:swimmers"), ENT_COMPAT);
                ?>
">Plavci</a>, <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Events:events"), ENT_COMPAT);
                ?>
">Závody</a> a <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Times:times"), ENT_COMPAT);
                ?>
">Časy</a> nabízí 
                přímý pohled do databázových tabulek. Data lze vybírat a třídit podle různých kritérií. 
                Data lze také exportovat do textového formátu CSV pro další zpracování (např. v Excelu) nebo do PDF k tisku. Při exportu do PDF si lze zvolit, které sloupce 
                tabulky Vás zajímají a ty se potom objeví ve výsledném dokumentu. U každého plavce v tabulce plavců je možné zobrazit kartu detailu 
                nebo statistiky. Detail obsahuje fotku a základní informace o plavci. Stránka statistiky zahrnuje devět různých grafů a výpis 
                závodů, kterých se plavec zúčastnil. Grafy jsou tvořeny dynamicky podle aktuálního stavu databáze. Grafy jsou také interaktivní, 
                tzn. při kliknutí na bod, sloupec nebo osu se zobrazí popisek nebo jiné info. Podobným způsobem jako v tabulce plavců tak i v 
                tabulce závodů je možné u každého závodu zobrazit seznam účastníků. Položka <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Strokes:strokes"), ENT_COMPAT);
                ?>
">Styly</a> je mírně odlišná 
                od předchozích třech a obsahuje výpis všech disciplín bazénového plavání. Ke každé disciplíně je možné zobrazit aktuální světové, 
                české a oddílové rekordy. Jejich hodnoty jsou zobrazeny tak, aby se daly jednoduše porovnávat. Následuje položka 
                <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Leaderboards:leaderboards"), ENT_COMPAT);
                ?>
">Žebříčky</a>, kde jsou tři typy oddílových žebříčků. 
                Ke každému typu je záložka pro krátký a dlouhý bazén. Všechny uvedené žebříčky je možné exportovat do PDF. Poslední položkou 
                nabídky je <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("PointsCalculator:calculator"), ENT_COMPAT);
                ?>
">Bodová kalkulačka</a>, která umožňuje vypočítat bodovou hodnotu Vámi zadaného 
                času nebo naopak. Kalkulačka k výpočtu 
                potřebuje znát ročník FINA bodů, pohlaví, typ bazénu a disciplínu.</p>
            
            <h5><strong>Pro trenéry</strong></h5>
            <p>Trenérům a hlavnímu trenérovi poskytuje iSAM mírně rozšířenou funkcionalitu. Mohou vytvářet nebo mazat plavce a závody. Smazat 
                záznam z databáze jde jenom tehdy, když plavec nebo závod nefiguruje v tabulce časů. Dále mohou trenéři přidávat, doplňovat nebo 
                měnit záznam o aktivitě a osobní údaje každého plavce. Také mohou upravovat hodnoty českých rekorů. Na kartě detailu plavce se 
                trenérům zobrazí navíc plavcova adresa, rodné číslo, datum narození, telefonní číslo a emailová adresa. Trenéři zde také mohou 
                měnit fotku plavce. Hlavní trenér bude mít možnost společně s administrátorem obsluhovat import výsledků v textové podobě, které 
                se nachází na stránkách Českého svazu plaveckých sportů. Import se odehrává v záložce <a href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("ImportTime:importTime"), ENT_COMPAT);
                ?>
">Import výsledků</a> kde 
                je potřeba vytvořit nový závod, 
                vybrat jeho identifikátor a nahrát textový soubor s výsledky. Aplikace potom provede kontrolu souboru a zobrazí načtené řádky do 
                tabulky. Pokud se v importovaných datech nachází chyby, je nutné je ve vstupním souboru opravit. Jinak je možné provést import do 
                tabulky časů.</p>
            <p>Trenéři, kteří mají zájem o vytvoření učtu v aplikaci, nechť mi napíší email na adresu <a href="mailto:#">jan.vencel.jv@gmail.com</a>.</p>
            <p class="text-right zero_margin"><em>Jan Vencel</em></p>
        </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>            
<?php 
            }
            function _lbe30e9e5efc_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ob_start();
                ?>
        <div class="flash">
            Zde se definují jednotlivé doby trvání aukce. Tyto doby pak smí uživatelé aukčního systému využívat. 
        </div>
            <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["adminDeleteDurationForm"], array());
                ?>

                <div class="row dur">
                    <!-- 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 
                }
                ?>
                    <!-- vykresleni tabulky -->
                    <table class="dur">
                    <tr>
                        <th></th>
                        <th>Název</th>
                        <th colspan="3">Doba trvání</th>
                    </tr>
<?php 
                $iterations = 0;
                foreach ($durs as $d) {
                    ?>
                            <tr>
                                <td>
                                    <?php 
                    $_input = is_object($d->id) ? $d->id : $_form[$d->id];
                    echo $_input->getControl();
                    ?>

                                </td>
                                <td>
                                	<?php 
                    echo Latte\Runtime\Filters::escapeHtml($d->name, ENT_NOQUOTES);
                    ?>

                                </td>
                                <td>
                                    <?php 
                    echo Latte\Runtime\Filters::escapeHtml($d->duration_days, ENT_NOQUOTES);
                    ?>
 dní
                                </td>
                                <td>	
                                	<a data-toggle="modal" data-target="#admin_reload" href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:duration", array($d->id)), ENT_COMPAT);
                    ?>
">
                                        Upravit
                                    </a>
                                </td>
                            </tr>               
<?php 
                    $iterations++;
                }
                ?>
                    </table>   
                    <a data-toggle="modal" data-target="#admin_reload" class="btn btn-primary" href="<?php 
                echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:duration"), ENT_COMPAT);
                ?>
">
                        Přidat novou
                    </a>   
                    <?php 
                echo $_form["send"]->getControl();
                ?>

                </div>
            <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form);
                ?>


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

<?php 
                ob_start();
                ?>
        <div class="row row-center">
        	Nemáte v systému žádné časy.
        </div>
    <?php 
                if (isset($d)) {
                    ob_end_clean();
                    ob_end_flush();
                } else {
                    $_l->else = ob_get_contents();
                    ob_end_clean();
                    ob_end_clean();
                    echo $_l->else;
                }
                ?>

<?php 
            }
            function _lbf9cbdc4af8_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                if (!$user->loggedIn) {
                    ?>
	<p>Pro přístup na tuto stránku se musíte <a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Sign:in"), ENT_COMPAT);
                    ?>
">přihlásit</a>.</p>
<?php 
                } else {
                    call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                    ?>
	<form class="form"<?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["taskForm"], array('class' => NULL), FALSE);
                    ?>
>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Zadáno</span>
  			<input class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["zadano"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<select class="form-control"<?php 
                    $_input = $_form["zadavatel"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                    ?>
><?php 
                    echo $_input->getControl()->getHtml();
                    ?>
</select>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Popis</span>
  			<input placeholder="Popis zakázky..." class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["popis"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Deadline</span>
  			<input class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["deadline"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		<select class="form-control"<?php 
                    $_input = $_form["firma"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                    ?>
><?php 
                    echo $_input->getControl()->getHtml();
                    ?>
</select>
		<br>
		<div class="input-group">
			<span class="input-group-addon" id="basic-addon1">Honorář (bez ,- Kč)</span>
  			<input placeholder="Honorář (bez ,- Kč)..." class="form-control" aria-describedby="basic-addon1"<?php 
                    $_input = $_form["honorar"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('placeholder' => NULL, 'class' => NULL, 'aria-describedby' => NULL))->attributes();
                    ?>
>
		</div>
		<br>
		Dokončeno?<br>
		<label class="radio-inline"><input type="radio" value="1" checked<?php 
                    $_input = $_form["dokonceno"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'value' => NULL, 'checked' => NULL))->attributes();
                    ?>
>Ano</label>
		<label class="radio-inline"><input type="radio" value="0"<?php 
                    $_input = $_form["dokonceno"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'value' => NULL))->attributes();
                    ?>
>Ne</label>
		<br>
		Zaplaceno?<br>
		<label class="radio-inline"><input type="radio" value="1" checked<?php 
                    $_input = $_form["zaplaceno"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'value' => NULL, 'checked' => NULL))->attributes();
                    ?>
>Ano</label>
		<label class="radio-inline"><input type="radio" value="0"<?php 
                    $_input = $_form["zaplaceno"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'value' => NULL))->attributes();
                    ?>
>Ne</label>
		<br><br>
		Priorita<br>
		<input type="range" min="0" max="10" value="0"<?php 
                    $_input = $_form["priorita"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'min' => NULL, 'max' => NULL, 'value' => NULL))->attributes();
                    ?>
><br>
		<button type="submit" class="btn btn-primary btn-lg btn-block"<?php 
                    $_input = $_form["submit"];
                    echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                    ?>
>Odeslat</button>
	<?php 
                    echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                    ?>
</form>
<?php 
                }
            }
            function _lb676e4974bd_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
                ?>

	<p>Pro přihlášení na tuto plavbu od Vás potřebujeme nějaké informace. Vyplňte prosím formulář níže 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 finální potvrzující email, rekapitulující rezervaci.</p>

	<form<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["bookForm"], array(), FALSE);
                ?>
>
		<div class="row">
			<div class="col-md-2">
				<label for="jmeno">Jméno</label><br>
				<input<?php 
                $_input = $_form["jmeno"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->attributes();
                ?>
>
			</div>
			<div class="col-md-2">
				<label for="prijmeni">Příjmení</label><br>
				<input<?php 
                $_input = $_form["prijmeni"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->attributes();
                ?>
>
			</div>
		</div>
		<div class="row">
			<div class="col-md-2">
				<label for="telefon">Telefon</label><br>
				<input<?php 
                $_input = $_form["telefon"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->attributes();
                ?>
>
			</div>
			<div class="col-md-2">
				<label for="email">Email</label><br>
				<input<?php 
                $_input = $_form["email"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->attributes();
                ?>
>
			</div>
		</div>
		<label for="count">Počet lidí</label><br>
		<input class="count"<?php 
                $_input = $_form["count"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
><br>
		<input value="Odeslat"<?php 
                $_input = $_form["submit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('value' => NULL))->attributes();
                ?>
>
		<input value="<?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($date, 'Y-m-d'), ENT_COMPAT);
                ?>
 <?php 
                echo Latte\Runtime\Filters::escapeHtml($template->date($template->replace($time, '-', ':'), 'H:i:s'), ENT_COMPAT);
                ?>
"<?php 
                $_input = $_form["timestamp"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('value' => NULL))->attributes();
                ?>
>
	<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
<?php 
            }
            function _lb3b8b7f79ab_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="imp_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>Import výsledků</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="imp_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>  
<?php 
                if ($user->loggedIn) {
                    if ($user->isInRole('admin') or $user->isInRole('head_coach')) {
                        ?>
<div id="imp_times_content" class="container-fluid">
   <div class="container"> 
    <form class="form-inline"<?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["importTimeForm"], array('class' => NULL), FALSE);
                        ?>
>         
        <div id="import-time_panel" class="panel panel-default col-md-12 zero_padding bottom7px">
            <div class="panel-heading main-panel_heading">
                <h3 class="panel-title font18">Volba vstupních dat</h3>
            </div>
            <div class="panel-body">
                
                <div class="col-md-3">
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Nový závod</h3>
                        </div>
                        <div class="panel-body">
                            <p class="zero_margin">Nejprve vložte závod do <a href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("Events:events"), ENT_COMPAT);
                        ?>
">tabulky závodů.</a></p>
                        </div>
                    </div>
                </div>    
                
                <div class="col-md-1 arrow-right font18">
                    <span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span>
                </div>
                
                <div class="col-md-3">
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Identifikátor závodu</h3>
                        </div>
                        <div class="panel-body">
                            <div class="form-group"><select class="form-control"<?php 
                        $_input = $_form["event_id"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                        ?>
><?php 
                        echo $_input->getControl()->getHtml();
                        ?>
</select></div>
                        </div>
                    </div>
                </div>    
                
                <div class="col-md-1 arrow-right font18">
                    <span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span>
                </div>
                
                <div class="col-md-4">
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Soubor s výsledky</h3>
                        </div>
                        <div class="panel-body">
                            <p>Výsledky stahujte <a href="http://www.statistikaplavani.cz/vyber.php?pxb=2&pxc=0&pxid=0">zde</a> ve formátu txt.</p>
                            <div id="imp-times_file" class="form-group"><input type="file" class="form-control" placeholder="soubor.txt"<?php 
                        $_input = $_form["file"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                        ?>
></div>
                        </div>
                    </div>
                </div> 
                    
                <div id="import_time_check" class="col-md-offset-10 col-md-2">                
                    <button type="submit" class="btn btn-default col-md-offset-2 col-md-10"<?php 
                        $_input = $_form["check"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>Zkontrolovat</button>                 
                </div>               
            </div>
        </div>      
        
<?php 
                        if (isset($data)) {
                            ?>
        <div id="import-times-tab_panel" class="panel panel-default col-md-12 zero_padding bottom15px">
            <div class="panel-heading main-panel_heading">
                <h3 class="panel-title">Výpis kontrolní tabulky</h3>
            </div>
            <div class="panel-body">
                <div id="imp_times_tab">
                    <div id="imp_times_tab_head">    
                        <div class="row">
                           <div class="col-md-12">                     
                              <table class="table"> 
                                    <tr>
                                        <td id="import_tab_head_eventID"><span><strong>ID závodu</strong></span></td> 
                                        <td id="import_tab_head_strokeID"><span><strong>ID stylu</strong></span></td>
                                        <td id="import_tab_head_swimmerID"><span><strong>ID plavce</strong></span></td>
                                        <td id="import_tab_head_time"><span><strong>Čas</strong></span></td>
                                        <td id="import_tab_head_rank"><span><strong>Umístění</strong></span></td>
                                        <td id="import_tab_head_point"><span><strong>Body</strong></span></td>
                                    </tr>   
                              </table>
                           </div>
                        </div> 
                    </div>             
                    <div class="row zero_margin">        
                        <div id="imp_times_tab_content" class="col-md-12 bottom7px">
                            <table class="table table-bordered"> 
                                <tr id="alt_tab_head">
                                              <td><span><strong>ID závodu</strong></span></td> 
                                              <td><span><strong>ID stylu</strong></span></td>
                                              <td><span><strong>ID plavce</strong></span></td>
                                              <td><span><strong>Čas</strong></span></td>
                                              <td><span><strong>Umístění</strong></span></td>             
                                              <td><span><strong>Body</strong></span></td>
                                </tr> 
<?php 
                            $iterations = 0;
                            foreach ($data as $j => $row) {
                                ?>
                                    <tr id="<?php 
                                echo Latte\Runtime\Filters::escapeHtml($j, ENT_COMPAT);
                                ?>
">
                                        <td id="import_tab_eventID"><?php 
                                echo Latte\Runtime\Filters::escapeHtml($row->id_event, ENT_NOQUOTES);
                                ?>
</td> 
                                        <td <?php 
                                if (strpos($row->id_stroke, 'E#') !== false) {
                                    ?>
class="import_error" <?php 
                                }
                                ?>
 id="import_tab_strokeID"><?php 
                                echo Latte\Runtime\Filters::escapeHtml($row->id_stroke, ENT_NOQUOTES);
                                ?>
</td>
                                        <td <?php 
                                if (strpos($row->id_swimmer, 'E#') !== false) {
                                    ?>
class="import_error"<?php 
                                }
                                ?>
 id="import_tab_swimmerID"><?php 
                                echo Latte\Runtime\Filters::escapeHtml($row->id_swimmer, ENT_NOQUOTES);
                                ?>
</td>
                                        <td <?php 
                                if (strpos($row->time, 'E#') !== false) {
                                    echo '"', Latte\Runtime\Filters::escapeHtml(str_replace('E#', '', $row->time), ENT_COMPAT), '"';
                                    ?>
 class="import_error"<?php 
                                }
                                ?>
 id="import_tab_time"><?php 
                                echo Latte\Runtime\Filters::escapeHtml($row->time, ENT_NOQUOTES);
                                ?>
</td>
                                        <td <?php 
                                if (strpos($row->rank, 'E#') !== false) {
                                    ?>
class="import_error"<?php 
                                }
                                ?>
 id="import_tab_rank"><?php 
                                if ($row->rank === 'PÚŠ') {
                                    ?>
<abbr title="První úsek štafety"><?php 
                                    echo Latte\Runtime\Filters::escapeHtml($row->rank, ENT_NOQUOTES);
                                    ?>
</abbr><?php 
                                } else {
                                    echo Latte\Runtime\Filters::escapeHtml($row->rank, ENT_NOQUOTES);
                                }
                                ?>
</td>
                                        <td id="import_tab_point"><?php 
                                echo Latte\Runtime\Filters::escapeHtml($row->point, ENT_NOQUOTES);
                                ?>
</td>
                                    </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: <?php 
                            if (isset($status)) {
                                ?>
<strong><?php 
                                echo Latte\Runtime\Filters::escapeHtml($status['recnum'], ENT_NOQUOTES);
                                ?>
</strong><?php 
                            }
                            ?>
</p></div>
                            <div class="col-md-5 zero_padding"><?php 
                            if (isset($status)) {
                                ?>
<p class="zero_margin <?php 
                                if ($status['errnum'] != 0) {
                                    ?>
text-danger<?php 
                                } else {
                                    ?>
text-success<?php 
                                }
                                ?>
">Počet chybných položek: <strong><?php 
                                echo Latte\Runtime\Filters::escapeHtml($status['errnum'], ENT_NOQUOTES);
                                ?>
</strong> <?php 
                                if ($status['errnum'] != 0) {
                                    ?>
(uvozeny znakem E#)<?php 
                                }
                                ?>
</p><p><?php 
                                if ($status['errnum'] != 0) {
                                    ?>
Opravte chyby v textovém souboru a zkuste to znovu.<?php 
                                } else {
                                    ?>
Vše připraveno k importu.</p><?php 
                                }
                            }
                            ?>
</div>
                            <div><button type="submit" class="btn btn-default col-md-offset-1 col-md-2" <?php 
                            if (isset($sm_import_status, $status)) {
                                if ($sm_import_status === FALSE or $status['recnum'] === 0 or $status['errnum'] > 0 or $status['fileok'] === FALSE) {
                                    ?>
disabled<?php 
                                }
                            } else {
                                ?>
disabled<?php 
                            }
                            $_input = $_form["import"];
                            echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'disabled' => NULL))->attributes();
                            ?>
>Importovat</button></div>
                        </div>
                    </div> 
                        
                </div>
            </div>
        </div>              
<?php 
                        }
                        ?>
    <?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                        ?>
</form> 
  </div>  
</div>
<?php 
                    } else {
                        ?>
        <p>Tuto stránku může zobrazit pouze administrátor a hlavní trenér.</p>
<?php 
                    }
                } else {
                    ?>
    <p>Tuto stránku může zobrazit pouze přihlášený uživatel.</p>
<?php 
                }
                ?>

<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 
            }
            function _lbdbdeb250ac__password($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('password', FALSE);
                ?>
	    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["passwordForm"], 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 hesla</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 
                }
                ?>
			        	<div class="col-md-12">
						    <!-- vykresleni formu -->
						    <table class="table table-my-grid">
				                <tbody>
				                    <tr>
				                        <td>Současné heslo:</td>
				                        <td>
				                        	<?php 
                echo $_form["oldpassword"]->getControl();
                ?>

				                        </td>
				                    </tr>
				                    <tr>
				                        <td>Nové heslo:</td>
				                        <td>
				                        	<?php 
                echo $_form["password"]->getControl();
                ?>

				                        </td>
				                    </tr>
				                    <tr>
				                        <td>Nové heslo znovu:</td>
				                        <td>
				                        	<?php 
                echo $_form["password2"]->getControl();
                ?>

				                        </td>
				                    </tr>
				                </tbody>
				            </table>
				        </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 
            }
            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 
            }
            function _lb89cc03a1d3__product($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('product', FALSE);
                ?>
        <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["productForm"], array());
                ?>

 		  	<!--- Modal-header -->
			<div class="modal-header panel-heading">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
		        <h2 class="modal-title">Produkt</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-12 col-lg-12"> 
		               	<table class="table table-prod-information table-my-grid">
			                <tbody>
			                 	<tr>
			                        <td>Název:</td>
			                        <td>
			                        	<?php 
                echo $_form["name"]->getControl();
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Kategorie:</td>
			                        <td>
			                        	<?php 
                echo $_form["id_category"]->getControl();
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Fotografie:</td>
			                        <td>
			                        	<?php 
                echo $_form["img"]->getControl();
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Popis:</td>
			                        <td>
			                        	<?php 
                echo $_form["description"]->getControl();
                ?>

			                        </td>
			                    </tr>
			                 	<tr>
			                        <td>Typ aukce:</td>
			                        <td>
			                        	<?php 
                echo $_form["id_type_auction"]->getControl();
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Doba trvání aukce:</td>
			                        <td>
			                        	<?php 
                echo $_form["id_duration_auction"]->getControl();
                ?>

			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Cena:</td>
			                        <td>
										<div class="input-group">
											<?php 
                echo $_form["cost"]->getControl();
                ?>

											<span class="input-group-addon">Kč</span>
										</div>
			                        </td>
			                    </tr>
			                    <tr>
			                        <td>Minimální příhoz:</td>
			                        <td>
			                        	<div class="input-group">
											<?php 
                echo $_form["min_bid"]->getControl();
                ?>

											<span class="input-group-addon">Kč</span>
										</div>
			                        </td>
			                    </tr>
			                </tbody>
		                </table>
		            </div>
		       	</div>
			</div>
			<div class="hidden">
				<?php 
                echo $_form["id"]->getControl();
                ?>

			</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 
            }
            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 
            }
            function _lb1ec11947bf_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
<div id="admin_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">
                <div><p><a href="<?php 
                    echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT);
                    ?>
">Úvodní stránka</a><span> ❯ </span>Správa</p></div>
            </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="admin_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>  

<?php 
                if ($user->loggedIn) {
                    if ($user->isInRole('admin')) {
                        ?>

<div id="admin_content" class="container-fluid">
    <div id="admin_box" class="container"> 
        
        <div id="recalculate-points_panel" class="col-md-6 bottom7px">
            <div class="panel panel-default col-md-12 zero_padding zero_margin">
                <div class="panel-heading main-panel_heading">
                    <h3 class="panel-title font18">Přepočet bodů</h3>
                </div>
                <div class="panel-body">
                    <p>Aplikace počítá s rokem <?php 
                        if (isset($actual_year)) {
                            echo Latte\Runtime\Filters::escapeHtml($actual_year, ENT_NOQUOTES);
                            ?>
.<?php 
                        }
                        ?>
</p>
                    <form class="form"<?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["pointsRecalculateForm"], array('class' => NULL), FALSE);
                        ?>
>
                        <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>
                        <button type="upload" id="recalculate_button" data-loading-text="Pracuji..." autocomplete="off" class="btn btn-default top7px"<?php 
                        $_input = $_form["recalculate"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'id' => NULL, 'data-loading-text' => NULL, 'autocomplete' => NULL, 'class' => NULL))->attributes();
                        ?>
>Přepočítat</button>
                    <?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                        ?>
</form>
                </div>
            </div>
        </div>    
        
        <div id="bt-upload_panel" class="panel panel-default col-md-6 zero_padding bottom7px">
            <div class="panel-heading main-panel_heading">
                <h3 class="panel-title font18">Vkládání základních časů ze souboru</h3>
            </div>
            <div class="panel-body">
                <p>Základní časy stahujte <a href="http://archives.fina.org/H2O/index.php?option=com_content&view=article&id=1373&Itemid=641">zde</a>.</p>
                <form class="form"<?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["btUploadForm"], array('class' => NULL), FALSE);
                        ?>
>
                    <input type="file" class="form-control" placeholder="soubor.txt"<?php 
                        $_input = $_form["file"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL, 'placeholder' => NULL))->attributes();
                        ?>
>
                    <button type="upload" class="btn btn-default top7px"<?php 
                        $_input = $_form["upload"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>Nahrát</button>
                <?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                        ?>
</form>
            </div>
        </div>
        
        
        
        <div id="register-form_panel" class="col-md-6 bottom7px">
            <div class="panel panel-default zero_margin">
                <div class="panel-heading main-panel_heading do_borders">
                    <h3 class="panel-title font18">
                        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#register-form_panel" href="#register-form_collapse" aria-expanded="false" aria-controls="collapseOne">
                            Registrační formulář
                        </a>
                    </h3>
                </div>
                <div id="register-form_collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                <div class="panel-body">
                    <form class="form-horizontal"<?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["registerForm"], array('class' => NULL), FALSE);
                        ?>
>
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Uživatelské jméno</h3>
                        </div>
                        <div class="panel-body">
                            <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 class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Jméno</h3>
                        </div>
                        <div class="panel-body">
                            <input type="text" class="form-control"<?php 
                        $_input = $_form["firstname"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>
                        </div>
                    </div>
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Příjmení</h3>
                        </div>
                        <div class="panel-body">
                            <input type="text" class="form-control"<?php 
                        $_input = $_form["surname"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>
                        </div>
                    </div>
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Email</h3>
                        </div>
                        <div class="panel-body">
                            <input type="email" class="form-control"<?php 
                        $_input = $_form["email"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>
                        </div>
                    </div>
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Telefon</h3>
                        </div>
                        <div class="panel-body">
                            <input type="tel" class="form-control"<?php 
                        $_input = $_form["phone"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>
                        </div>
                    </div>
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Heslo</h3>
                        </div>
                        <div class="panel-body">
                            <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 class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Heslo znovu</h3>
                        </div>
                        <div class="panel-body">
                            <input type="password" class="form-control"<?php 
                        $_input = $_form["password2"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>
                        </div>
                    </div>
                    <div class="panel panel-default bottom7px">
                        <div class="panel-heading">
                            <h3 class="panel-title">Role</h3>
                        </div>
                        <div class="panel-body">
                            <select class="form-control"<?php 
                        $_input = $_form["role"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                        ?>
><?php 
                        echo $_input->getControl()->getHtml();
                        ?>
</select>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-default col-md-offset-9 col-md-3"<?php 
                        $_input = $_form["register"];
                        echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('type' => NULL, 'class' => NULL))->attributes();
                        ?>
>Registrovat</button>
                    <?php 
                        echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                        ?>
</form>
                </div>
                </div>    
            </div>
        </div> 
                    
        <div class="col-md-6 zero_padding bottom7px">
            <a class="btn btn-default" href="<?php 
                        echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:out"), ENT_COMPAT);
                        ?>
">Odhlásit</a>
        </div>
                          

      <script>
        $('#recalculate_button').on('click', function () {
          var $btn = $(this).button('loading');  
          setTimeout(function(){
             $btn.button('reset');   
            }, 200000000);  
          
        
          
        });
      </script>            
                                            
</div>
</div>
<?php 
                    }
                } else {
                    ?>
    <p>Tuto stránku může zobrazit pouze administrátor.</p>
<?php 
                }
                ?>

<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 
            }
            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 
            }
            function _lb9cdc1f329c_content($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                ?>
	<div id="editCategoryDialog" class="modal fade" role="dialog">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">×</button>
					<h4 class="modal-title">Upravit kategorii</h4>
				</div>
				<div class="modal-body">
					<form class="form"<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["editForm"], array('class' => NULL), FALSE);
                ?>
>
						<div class="input-group">
							<span class="input-group-addon" id="basic-addon1">Upravit název</span>
							<input class="form-control" aria-describedby="basic-addon1" id="edit"<?php 
                $_input = $_form["edit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'aria-describedby' => NULL, 'id' => NULL))->attributes();
                ?>
>
						</div>
						<hr>
						<label for="parent">Vyberte nadřazenou kategorii <span class="optional">(nepovinné)</span>:</label>
						<select class="form-control" id="parent"<?php 
                $_input = $_form["parent"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL, 'id' => NULL))->attributes();
                ?>
><?php 
                echo $_input->getControl()->getHtml();
                ?>
</select>
						<br>
						<button class="btn btn-primary btn-lg btn-block"<?php 
                $_input = $_form["submit"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('class' => NULL))->attributes();
                ?>
>Odeslat</button>
						<input id="cat_id" value=""<?php 
                $_input = $_form["cat_id"];
                echo $_input->{method_exists($_input, 'getControlPart') ? 'getControlPart' : 'getControl'}()->addAttributes(array('id' => NULL, 'value' => NULL))->attributes();
                ?>
>
					<?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form, FALSE);
                ?>
</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">Zavřít</button>
				</div>
			</div>
		</div>
	</div>

<?php 
                call_user_func(reset($_b->blocks['categories']), $_b, get_defined_vars());
            }
            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 
            }
            function _lb459b8caa25__adminCategory($_b, $_args)
            {
                foreach ($_args as $__k => $__v) {
                    ${$__k} = $__v;
                }
                $_control->redrawControl('adminCategory', FALSE);
                ?>
	    <?php 
                echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["adminCategoryForm"], array());
                ?>

			<!--- Modal-header -->
			<div class="modal-header panel-heading">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
		    	<h2 class="modal-title">Kategorie</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 
                }
                ?>
			        	<div class="col-md-12">
						    <!-- vykresleni formu -->
						    <table class="table table-my-grid">
				                <tbody>
				                    <tr>
				                        <td>Název:</td>
				                        <td>
				                        	<?php 
                echo $_form["name"]->getControl();
                ?>

				                        </td>
				                    </tr>
				                    <tr>
				                        <td>RGB barva:</td>
				                        <td>
				                    		<div class="mar-input input-group">
							        			<span class="input-group-addon" style="width: 4em">#</span>
							        			<?php 
                echo $_form["color"]->getControl();
                ?>

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

				<?php 
                if ($id != null) {
                    echo $_form["btndelete"]->getControl();
                }
                ?>

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

<?php 
            }