function _lbd4121fe4d3_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } Latte\Macros\BlockMacrosRuntime::callBlockParent($_b, 'scripts', get_defined_vars()); ?> <script src="https://files.nette.org/sandbox/jush.js"></script> <script> jush.create_links = false; jush.highlight_tag('code'); $('code.jush').each(function(){ $(this).html($(this).html().replace(/\x7B[/$\w].*?\}/g, '<span class="jush-latte">$&</span>')) }); $('a[href^=#]').click(function(){ $('html,body').animate({ scrollTop: $($(this).attr('href')).show().offset().top - 5 }, 'fast'); return false; }); </script> <?php }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('cd2b4bcbad', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lbc0d8561432_head')) { function _lbc0d8561432_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lb3b1eb40925_scripts')) { function _lb3b1eb40925_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="//nette.github.io/resources/js/netteForms.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/main.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><?php if (isset($_b->blocks["title"])) { ob_start(); Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters()); echo $template->striptags(ob_get_clean()); ?> | <?php } ?> Nette Sandbox</title> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/style.css"> <link rel="shortcut icon" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /favicon.ico"> <meta name="viewport" content="width=device-width"> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <?php $iterations = 0; foreach ($flashes as $flash) { ?> <div<?php if ($_l->tmp = array_filter(array('flash', $flash->type))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php $iterations++; } ?> <?php Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> </body> </html> <?php }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('a8b00409a0', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lbe0c4c9a214_head')) { function _lbe0c4c9a214_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lb43d35ddcb9_scripts')) { function _lb43d35ddcb9_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <!-- jQuery --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /assets/js/jquery.js"></script> <!-- Nette Ajax --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/nette.ajax.js"></script> <!-- My Custome JavaScript --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/dp-js-functions.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="Roman Prchal"> <!-- Bootstrap Core CSS --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /assets/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/dp-css-format.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <style> <?php $iterations = 0; foreach ($categories as $c) { ?> .product-category-<?php echo Latte\Runtime\Filters::escapeCss($c->id); ?> { background-color: #<?php echo Latte\Runtime\Filters::escapeCss($c->color); ?> ;} <?php $iterations++; } ?> </style> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <?php Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> </body> </html> <?php }
function _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">×</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">×</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 render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('f999f7d00d', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lb20060456cc_head')) { function _lb20060456cc_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lb61e9ac7510_scripts')) { function _lb61e9ac7510_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <script src="//nette.github.io/resources/js/netteForms.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/main.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIMacros::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><?php if (isset($_b->blocks["title"])) { ob_start(); Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters()); echo $template->striptags(ob_get_clean()); ?> | <?php } ?> Prioritní systém</title> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/reset.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" media="screen, projection, tv" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/style.css"> <link rel="apple-touch-icon" sizes="57x57" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /images/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /images/apple-icon-60x60.png"> <link rel="icon" type="image/png" sizes="32x32" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /images/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /images/favicon-16x16.png"> <meta name="theme-color" content="#ffffff"> <meta name="viewport" content="width=device-width"> <meta name="author" content="Jakub Vitásek | jvitasek.cz"> <meta name="robots" content="noindex,nofollow"> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <?php $iterations = 0; foreach ($flashes as $flash) { ?> <div<?php if ($_l->tmp = array_filter(array('flash', $flash->type))) { echo ' class="' . Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT) . '"'; } ?> ><?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php $iterations++; } ?> <div class="container"> <nav class="navbar navbar-default"> <div class="container"> <ul class="nav navbar-nav"> <a class="navbar-brand logo" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT); ?> "></a> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Zakázky <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <?php if ($user->loggedIn) { ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Create:task"), ENT_COMPAT); ?> ">Nová zakázka</a></li> <?php } ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT); ?> ">Seznam zakázek</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Klienti <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <?php if ($user->loggedIn) { ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Create:client"), ENT_COMPAT); ?> ">Nový klient</a></li> <?php } ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Show:debtors"), ENT_COMPAT); ?> ">Seznam dlužníků</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Faktury <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <?php if ($user->loggedIn) { ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Create:invoice"), ENT_COMPAT); ?> ">Nová faktura</a></li> <?php } ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Show:invoices"), ENT_COMPAT); ?> ">Seznam faktur</a></li> </ul> </li> <?php if (!$user->loggedIn) { ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Sign:in"), ENT_COMPAT); ?> ">Přihlásit se</a></li> <?php } else { ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Sign:out"), ENT_COMPAT); ?> ">Odhlásit se</a></li> <p class="navbar-text navbar-right">(přihlášen jako <span class="username"><?php echo Latte\Runtime\Filters::escapeHtml($user->id, ENT_NOQUOTES); ?> </span>)</p> <?php } ?> </ul> </div> </nav> <?php Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> </div> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> </body> </html> <?php }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('8343d4f99c', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lbc85560104f_head')) { function _lbc85560104f_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lb8590400f0c_scripts')) { function _lb8590400f0c_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src='http://cdnjs.cloudflare.com/ajax/libs/velocity/0.2.1/jquery.velocity.min.js'></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <script src="//nette.github.io/resources/js/netteForms.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/main.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><?php if (isset($_b->blocks["title"])) { ob_start(); Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters()); echo $template->striptags(ob_get_clean()); ?> | <?php } ?> Orbinet Test</title> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/reset.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/style.css"> <link rel="shortcut icon" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /favicon.ico"> <meta name="viewport" content="width=device-width"> <meta name="robots" content="noindex,nofollow"> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <div class="container"> <nav> <ul class="nav nav-tabs"> <li role="presentation"<?php if ($_l->tmp = array_filter(array($presenter->isLinkCurrent('Homepage:*') ? 'active' : NULL))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT); ?> ">Seznam kategorií</a></li> <li role="presentation"<?php if ($_l->tmp = array_filter(array($presenter->isLinkCurrent('New:*') ? 'active' : NULL))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("New:default"), ENT_COMPAT); ?> ">Přidat kategorii</a></li> <li role="presentation"<?php if ($_l->tmp = array_filter(array($presenter->isLinkCurrent('Edit:*') ? 'active' : NULL))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Edit:default"), ENT_COMPAT); ?> ">Upravit kategorii</a></li> <li role="presentation"<?php if ($_l->tmp = array_filter(array($presenter->isLinkCurrent('Delete:*') ? 'active' : NULL))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Delete:default"), ENT_COMPAT); ?> ">Smazat kategorii</a></li> </ul> </nav> <?php $iterations = 0; foreach ($flashes as $flash) { ?> <div<?php if ($_l->tmp = array_filter(array('flash', $flash->type))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php $iterations++; } ?> <?php Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> </div> <footer class="footer"> <div class="container"> <p class="text-muted">Programátorský test pro Orbinet v Nette Frameworku | <a href="http://jvitasek.cz">jvitasek.cz</a></p> </div> </footer> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> </body> </html> <?php }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('f5b6502bd5', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lbb28c1c774b_head')) { function _lbb28c1c774b_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lb6e26bd3f5f_scripts')) { function _lb6e26bd3f5f_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <!-- jQuery --> <script type="text/javascript" src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /assets/js/jquery-1.11.3.min.js"></script> <!-- Nette Ajax --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/nette.ajax.js"></script> <!-- My Custome JavaScript --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/dp-js-functions.js"></script> <!-- Bootstrap Core JavaScript --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /assets/js/bootstrap.min.js"></script> <!-- Bootstrap Galleries --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /assets/js/jquery.blueimp-gallery.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /assets/js/bootstrap-image-gallery.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="Roman Prchal"> <title><?php if (isset($_b->blocks["title"])) { ob_start(); Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters()); echo $template->striptags(ob_get_clean()); ?> | <?php } echo Latte\Runtime\Filters::escapeHtml($systemName->value, ENT_NOQUOTES); ?> </title> <!-- Favicon --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /favicon.ico" rel="shortcut icon"> <!-- Bootstrap Core CSS --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /assets/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/dp-css-format.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <style> <?php $iterations = 0; foreach ($categories as $c) { ?> .product-category-<?php echo Latte\Runtime\Filters::escapeCss($c->id); ?> { background-color: #<?php echo Latte\Runtime\Filters::escapeCss($c->color); ?> ;} <?php $iterations++; } ?> </style> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT); ?> "><?php echo Latte\Runtime\Filters::escapeHtml($systemName->value, ENT_NOQUOTES); ?> </a> </div> <!-- Top Menu Items --> <ul class="nav navbar-right top-nav"> <?php if ($user->loggedIn) { ?> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-bell"> <?php $count = $alerts->count(); if ($count > 0) { ?> <?php echo Latte\Runtime\Filters::escapeHtml($count, ENT_NOQUOTES); ?> <?php } ?> </i> <b class="caret"></b></a> <ul class="dropdown-menu message-dropdown"> <?php ob_start(); $iterations = 0; foreach ($alerts as $alert) { ?> <li class="message-preview"> <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Alert:detail", array($alert->id)), ENT_COMPAT); ?> "> <div class="media"> <div class="media-body"> <h5 class="media-heading"> <strong> <?php echo Latte\Runtime\Filters::escapeHtml($alert->type_alert->name, ENT_NOQUOTES); ?> </strong> </h5> <p class="small text-muted"> <i class="fa fa-clock-o"></i> <?php echo Latte\Runtime\Filters::escapeHtml($template->mydate($alert->added), ENT_NOQUOTES); ?> <?php echo Latte\Runtime\Filters::escapeHtml($template->date($alert->added, 'H:i'), ENT_NOQUOTES); ?> </p> <p><?php echo Latte\Runtime\Filters::escapeHtml($template->truncate($alert->body, 55), ENT_NOQUOTES); ?> </p> </div> </div> </a> </li> <?php $iterations++; } ob_start(); ?> <li class="message-preview"> <div class="media"> <div class="media-body"> <p class="empty">Nemáte žádná nová upozornění.</p> </div> </div> </li> <?php if (isset($alert)) { ob_end_clean(); ob_end_flush(); } else { $_l->else = ob_get_contents(); ob_end_clean(); ob_end_clean(); echo $_l->else; } ?> <li class="message-footer"> <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Alert:alerts", array('unread')), ENT_COMPAT); ?> ">Zobrazit všechna upozornění</a> </li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php echo Latte\Runtime\Filters::escapeHtml($user->identity->name, ENT_NOQUOTES); ?> <b class="caret"></b></a> <ul class="dropdown-menu"> <li> <a data-toggle="modal" data-target="#profile_modal" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("User:myProfile"), ENT_COMPAT); ?> "> <i class="fa fa-fw fa-user"></i> Můj profil </a> </li> <li> <a data-toggle="modal" data-target="#password_modal" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("User:profilePhoto"), ENT_COMPAT); ?> "> <i class="fa fa-fw fa-photo"></i> Změnit foto </a> </li> <li> <a data-toggle="modal" data-target="#profilePhoto_modal" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("User:password"), ENT_COMPAT); ?> "> <i class="fa fa-fw fa-edit"></i> Změnit heslo </a> </li> <li class="divider"></li> <li> <a data-toggle="modal" data-target="#addProduct_modal" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:productAddEdit"), ENT_COMPAT); ?> "> <i class="fa fa-fw fa-plus"></i> Přidat aukci </a> </li> <li> <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:myProducts", array('rp')), ENT_COMPAT); ?> "> <i class="fa fa-fw fa-shopping-cart"></i> Moje aukce </a> </li> <?php if ($user->identity->roles[0] == 'Admin') { ?> <li> <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:categories"), ENT_COMPAT); ?> "> <i class="fa fa-fw fa-user-md"></i> Administrátor </a> </li> <?php } ?> <li class="divider"></li> <li> <a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("User:logout"), ENT_COMPAT); ?> "><i class="fa fa-fw fa-power-off"></i> Odhlásit se</a> </li> </ul> </li> <?php } else { ?> <li> <a data-toggle="modal" data-target="#login_modal" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("User:login"), ENT_COMPAT); ?> ">Přihlásit</a> </li> <li> <a data-toggle="modal" data-target="#register_modal" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("User:registration"), ENT_COMPAT); ?> ">Registrovat</a> </li> <?php } ?> </ul> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li> <a href="#">Podmínky</a> </li> <li> <a href="#">Kontakt</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav> <!-- Page Content --> <div class="container"> <div class="row"> <div class="col-md-3"> <p class="lead">Administrátor</p> <div class="list-group"> <a class="list-group-item <?php if ($_presenter->isLinkCurrent("Admin:categories")) { ?> active<?php } ?> " href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:categories"), ENT_COMPAT); ?> ">Kategorie</a> <a class="list-group-item <?php if ($_presenter->isLinkCurrent("Admin:durations")) { ?> active<?php } ?> " href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:durations"), ENT_COMPAT); ?> ">Trvání aukce</a> </div> </div> <div class="col-md-9"> <?php $iterations = 0; foreach ($flashes as $flash) { ?> <div<?php if ($_l->tmp = array_filter(array('flash', $flash->type))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php $iterations++; } Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> </div> </div> </div> <!-- /.container --> <div class="container"> <hr> <!-- Footer --> <footer> <div class="row"> <div class="col-lg-12"> <p>Copyright © <?php echo Latte\Runtime\Filters::escapeHtml($systemName->value, ENT_NOQUOTES); ?> <?php echo Latte\Runtime\Filters::escapeHtml(date('Y'), ENT_NOQUOTES); ?> </p> </div> </div> </footer> </div> <!-- /.container --> <!-- PopUp pomoci bootstrap, pro profile.latte --> <div id="profile_modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <!-- PopUp pomoci bootstrap, pro profilePhoto.latte --> <div id="profilePhoto_modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <!-- PopUp pomoci bootstrap, pro password.latte --> <div id="password_modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <!-- PopUp pomoci bootstrap, pro login.latte --> <div id="login_modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <!-- PopUp pomoci bootstrap, pro register.latte --> <div id="register_modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <!-- PopUp pomoci bootstrap, pro product.latte --> <div id="addProduct_modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <!-- PopUp pomoci bootstrap, pro product.latte --> <div id="product_modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Modal Header</h4> </div> <div class="modal-body"> <p>Some text in the modal.</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> </body> </html> <?php }
function _lbd79cecd677_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } Latte\Macros\BlockMacrosRuntime::callBlockParent($_b, 'scripts', get_defined_vars()); }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('d582719915', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lb0ca4b2fee4_head')) { function _lb0ca4b2fee4_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <title><?php if (isset($_b->blocks["title"])) { ob_start(); Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters()); echo $template->striptags(ob_get_clean()); ?> - <?php } ?> iSAM</title> <meta http-equiv="Content-Type" content="text/html" charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Language" content="cs"> <meta name="author" content="Jan Vencel"> <meta name=keywords lang="cs" content="iSAM, plavání, Blansko, ASKBl, Asociace, sportovních, klubů, plavci, závody, styly, časy, žebříčky, bodová, kalkulačka"> <meta name=description lang="cs" content="Internetová aplikace iSAM byla vytvořena pro plavecký oddíl ASK Blansko v rámci 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í."> <meta name="robots" content="index, follow"> <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> <link rel="shortcut icon" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /favicon.ico"> <script src="//nette.github.io/resources/js/netteForms.min.js"></script> <script type="text/javascript" src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/jquery-ui.min.js"></script> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/jquery-ui.min.css"> <!-- Bootstrap start --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/bootstrap-datepicker3.min.css" rel="stylesheet" media="screen"> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/bootstrap.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/bootstrap-datepicker.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/bootstrap-datepicker.cs.min.js"></script> <!-- Bootstrap end --> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/nette.ajax.js"></script> <script type="text/javascript" src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/main.js"></script> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/style.css"> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <div id="wrapper"> <div id="header"> <?php ob_start(); $_b->templates['d582719915']->renderChildTemplate('header.latte', get_defined_vars()); echo rtrim(ob_get_clean()); ?> </div> <div id="content" > <?php Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> </div> </div> <div id="footer"> <?php ob_start(); $_b->templates['d582719915']->renderChildTemplate('footer.latte', get_defined_vars()); echo rtrim(ob_get_clean()); ?> </div> </body> </html> <?php }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('e59a287907', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lbd7828afeac_head')) { function _lbd7828afeac_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lbd09266ade9_scripts')) { function _lbd09266ade9_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script src="//nette.github.io/resources/js/netteForms.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/main.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><?php if (isset($_b->blocks["title"])) { ob_start(); Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters()); echo $template->striptags(ob_get_clean()); ?> | <?php } ?> Nette Sandbox</title> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/reset.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/style.css"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="HandheldFriendly" content="true"> <meta name="author" content="Jakub Vitásek | jvitasek.cz"> <meta name="robots" content="noindex,nofollow"> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <?php $iterations = 0; foreach ($flashes as $flash) { ?> <div<?php if ($_l->tmp = array_filter(array('flash', $flash->type))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php $iterations++; } ?> <div class="container"> <nav> <a class="navbar-brand" href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT); ?> "><img class="logo" src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /images/logo.png"></a> <ul class="nav nav-tabs"> <li role="presentation"<?php if ($_l->tmp = array_filter(array($presenter->isLinkCurrent('Homepage:*') ? 'active' : NULL))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:default"), ENT_COMPAT); ?> ">Hlavní stránka</a></li> <li role="presentation"><a href="http://plavbyolomouc.cz">Zpět na Ololoď</a></li> </ul> </nav> <?php Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> </div> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> </body> </html> <?php }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('fa82f292d1', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lbc69549f2e4_head')) { function _lbc69549f2e4_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block title // if (!function_exists($_b->blocks['title'][] = '_lbddd418154e_title')) { function _lbddd418154e_title($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <h1>PCCF Office Automation!</h1> <?php } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lbf269a398f7_scripts')) { function _lbf269a398f7_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="//nette.github.io/resources/js/netteForms.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/main.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><?php if (isset($_b->blocks["title"])) { ob_start(); Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'title', $template->getParameters()); echo $template->striptags(ob_get_clean()); ?> | <?php } ?> Nette Sandbox</title> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/style.css"> <link rel="shortcut icon" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /favicon.ico"> <meta name="viewport" content="width=device-width"> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <div id="banner"> <?php call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars()); ?> </div> <nav id="menu"> <ul> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:default"), ENT_COMPAT); ?> ">Home</a></li> <li><a href="#">Master Setting</a> <ul> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:mailSetting"), ENT_COMPAT); ?> ">Mail Setting</a></li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:CurrencyFormat"), ENT_COMPAT); ?> ">Currency Setting</a></li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:DateTimeSetting"), ENT_COMPAT); ?> ">Date & Time Setting</a></li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:organization"), ENT_COMPAT); ?> ">Organization</a></li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:usertype"), ENT_COMPAT); ?> ">User Type</a></li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:wing"), ENT_COMPAT); ?> ">Wing</a></li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:section"), ENT_COMPAT); ?> ">Section</a></li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Master:designation"), ENT_COMPAT); ?> ">Designation</a></li> </ul> </li> </ul> </nav> <?php $iterations = 0; foreach ($flashes as $flash) { ?> <div<?php if ($_l->tmp = array_filter(array('flash', $flash->type))) { echo ' class="', Latte\Runtime\Filters::escapeHtml(implode(" ", array_unique($_l->tmp)), ENT_COMPAT), '"'; } ?> ><?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php $iterations++; } Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> </body> </html> <?php }
function render() { foreach ($this->params as $__k => $__v) { ${$__k} = $__v; } unset($__k, $__v); // prolog Latte\Macros\CoreMacros list($_b, $_g, $_l) = $template->initialize('e102c481a4', 'html'); // prolog Latte\Macros\BlockMacros // // block head // if (!function_exists($_b->blocks['head'][] = '_lb032a192421_head')) { function _lb032a192421_head($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } } } // // block scripts // if (!function_exists($_b->blocks['scripts'][] = '_lb9a4d6458be_scripts')) { function _lb9a4d6458be_scripts($_b, $_args) { foreach ($_args as $__k => $__v) { ${$__k} = $__v; } ?> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="//nette.github.io/resources/js/netteForms.min.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/main.js"></script> <script src="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /js/bootstrap.min.js"></script> <?php } } // // end of blocks // // template extending $_l->extends = empty($_g->extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL; $_g->extended = TRUE; if ($_l->extends) { ob_start(); } // prolog Nette\Bridges\ApplicationLatte\UIMacros // snippets support if (empty($_l->extends) && !empty($_control->snippetMode)) { return Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($_control, $_b, get_defined_vars()); } // // main template // ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>IIS FIT ZOO</title> <!--Vlastne --> <link rel="stylesheet" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/style.css"> <link rel="shortcut icon" href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /favicon.ico"> <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'> <meta name="viewport" content="width=device-width"> <!-- Bootstrap --> <link href="<?php echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::safeUrl($basePath), ENT_COMPAT); ?> /css/bootstrap.min.css" rel="stylesheet"> <?php if ($_l->extends) { ob_end_clean(); return $template->renderChildTemplate($_l->extends, get_defined_vars()); } call_user_func(reset($_b->blocks['head']), $_b, get_defined_vars()); ?> </head> <body> <!-- Navbar --> <?php if ($user->isLoggedIn()) { ?> <div class="navbar navbar-inverse menu" id="moj-navbar"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <span class="navbar-brand" id="logo-small">IIS ZOO FIT</span> </div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav menu-button"> <?php if ($user->identity->roles[0] == 'riaditeľ') { ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Zamestnanec:vypis"), ENT_COMPAT); ?> ">Zamestnanci</a><li> <?php } ?> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Umiestnenie:vypis"), ENT_COMPAT); ?> ">Umiestnenia</a><li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Druh:vypis"), ENT_COMPAT); ?> ">Druhy živočíchov</a><li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Zivocich:vypis"), ENT_COMPAT); ?> ">Živočíchy</a><li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Test:vypis"), ENT_COMPAT); ?> ">Testy</a><li> </ul> <ul class="nav navbar-nav menu-button navbar-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo Latte\Runtime\Filters::escapeHtml($user->identity->meno, ENT_NOQUOTES); ?> <span class="caret"></span></a> <ul class="dropdown-menu" id="mydropdown"> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Zamestnanec:viac", array($user->identity->id)), ENT_COMPAT); ?> ">Profil</a><li> <li><a href="<?php echo Latte\Runtime\Filters::escapeHtml($_control->link("Homepage:odhlasit"), ENT_COMPAT); ?> ">Odhlásiť</a><li> </ul> </li> </ul> </div> </div> </div> <?php } ?> <!-- Flash messages --> <?php $iterations = 0; foreach ($flashes as $flash) { ?> <div> <div class="container"> <?php if ($flash->type == "uspech") { ?> <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> <span class="sr-only">Error:</span> <?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php } else { ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <span class="sr-only">Error:</span> <?php echo Latte\Runtime\Filters::escapeHtml($flash->message, ENT_NOQUOTES); ?> </div> <?php } ?> </div> </div> <?php $iterations++; } ?> <!-- Obsah --> <div class="container"> <?php Latte\Macros\BlockMacrosRuntime::callBlock($_b, 'content', $template->getParameters()); ?> </div> <?php call_user_func(reset($_b->blocks['scripts']), $_b, get_defined_vars()); ?> <br> </body> </html> <?php }