本文整理汇总了PHP中NTemplateHelpers类的典型用法代码示例。如果您正苦于以下问题:PHP NTemplateHelpers类的具体用法?PHP NTemplateHelpers怎么用?PHP NTemplateHelpers使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NTemplateHelpers类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
if (!function_exists($_l->blocks['obsah'][] = '_lb73da57502c_obsah')) { function _lb73da57502c_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?><div>
<?php NFormMacros::renderFormBegin($form = $_form = (is_object("vyhledatOddilForm") ? "vyhledatOddilForm" : $_control["vyhledatOddilForm"]), array()) ;if ($form->hasErrors()): ?> <ul class="errors">
<?php $iterations = 0; foreach ($form->errors as $error): ?> <li><?php echo NTemplateHelpers::escapeHtml($error, ENT_NOQUOTES) ?></li>
<?php $iterations++; endforeach ?>
</ul>
<?php endif ?>
<table>
<tr >
<th><?php $_input = is_object("popis") ? "popis" : $_form["popis"]; if ($_label = $_input->getLabel()) echo $_label->addAttributes(array()) ?></th>
<td><?php $_input = (is_object("popis") ? "popis" : $_form["popis"]); echo $_input->getControl()->addAttributes(array()) ?></td>
<td><?php $_input = (is_object("send") ? "send" : $_form["send"]); echo $_input->getControl()->addAttributes(array()) ?></td>
</tr>
</table>
<?php $_input = is_object("id") ? "id" : $_form["id"]; if ($_label = $_input->getLabel()) echo $_label->addAttributes(array()) ;$_input = (is_object("id") ? "id" : $_form["id"]); echo $_input->getControl()->addAttributes(array()) ;NFormMacros::renderFormEnd($_form) ?>
</div>
<?php if (isset($oddily)): ?>
<div>
<table>
<?php $iterations = 0; foreach ($oddily as $oddil): ?>
<tr>
<td><a href="<?php echo htmlSpecialChars($_control->link("prehled", array($oddil['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($oddil['nazev'], ENT_NOQUOTES) ?></a></td>
</tr>
<?php $iterations++; endforeach ?>
</table>
</div>
<?php endif ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:32,代码来源:_Oddily.hledat.latte-3b2e54cf1de0dfd88a337d941c01d157.php
示例2: if
if (!function_exists($_l->blocks['content'][] = '_lb7a70701f43_content')) { function _lb7a70701f43_content($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("drobeckovaNavigace"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;call_user_func(reset($_l->blocks['title']), $_l, get_defined_vars()) ?>
<?php $_ctrl = $_control->getComponent("seznamClanku"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;$iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($akce) as $ak): if ($iterator->isFirst()): ?>
<div>
<h2>Akce</h2>
<ul>
<?php endif ?>
<li><a href="<?php echo htmlSpecialChars($_control->link("Kalendar:detail", array($ak['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($ak['nazev'], ENT_NOQUOTES) ?> (<?php echo NTemplateHelpers::escapeHtml($template->datumKonani($ak['od'], $ak['do']), ENT_NOQUOTES) ?>)</a></li>
<?php if ($iterator->isLast()): ?>
</ul>
</div>
<?php endif ;$iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ;$iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($oddily) as $oddil): if ($iterator->isFirst()): ?>
<div>
<h2>Oddíly</h2>
<ul>
<?php endif ?>
<li><a href="<?php echo htmlSpecialChars($_control->link("Adresar:oddil", array($oddil['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($oddil['nazev'], ENT_NOQUOTES) ?></a></li>
<?php if ($iterator->isLast()): ?>
</ul>
</div>
<?php endif ;$iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ;$iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($osoby) as $osoba): if ($iterator->isFirst()): ?>
<div>
<h2>Osoby</h2>
<ul>
<?php endif ?>
<li><a href="<?php echo htmlSpecialChars($_control->link("Osoby:default", array($osoba['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($osoba['jmeno'], ENT_NOQUOTES) ?> <?php echo NTemplateHelpers::escapeHtml($osoba['prijmeni'], ENT_NOQUOTES) ?></a></li>
<?php if ($iterator->isLast()): ?>
</ul>
</div>
<?php endif ;$iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:35,代码来源:_Vyhledat.default.latte-43c5c48c6948070790ef299f5dffd7a7.php
示例3: if
if (!function_exists($_l->blocks['obsah'][] = '_lb30b34e254e_obsah')) { function _lb30b34e254e_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?><table>
<tr>
<th class="vel25">Datum</th>
<th class="oddo">Sport</th>
<th class="width_auto">Název</th>
</tr>
<?php if ($seznam_akci): $iterations = 0; foreach ($seznam_akci as $akce): ?>
<tr>
<td><?php echo NTemplateHelpers::escapeHtml($template->datumKonani($akce['od'], $akce['do']), ENT_NOQUOTES) ?></td>
<td><?php echo NTemplateHelpers::escapeHtml($akce['sport'], ENT_NOQUOTES) ?></td>
<td><a href="<?php echo htmlSpecialChars($_control->link("detail", array($akce->id))) ?>
"><?php echo NTemplateHelpers::escapeHtml($akce->nazev, ENT_NOQUOTES) ?></a></td>
</tr>
<?php $iterations++; endforeach ;else: ?>
<tr><td colspan='2'>Nebyly nalezeny žádné akce.</td></tr>
<?php endif ?>
</table>
<?php if ($opravneni['add']): ?>
<div class="bottom_nav">
<a href="<?php echo htmlSpecialChars($_control->link("add")) ?>">Nová akce</a>
<a href="<?php echo htmlSpecialChars($_control->link("archiv")) ?>">Archiv</a>
</div>
<?php endif ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:25,代码来源:_Zavody.default.latte-ecc4676588e1808ddc9640ed33debe2a.php
示例4: array
if (!function_exists($_l->blocks['_k_prihlaseni'][] = '_lbfcd3fed6ce__k_prihlaseni')) { function _lbfcd3fed6ce__k_prihlaseni($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->validateControl('k_prihlaseni')
;NFormMacros::renderFormBegin($form = $_form = (is_object("sportyFiltrForm") ? "sportyFiltrForm" : $_control["sportyFiltrForm"]), array()) ?>
<table>
<tbody>
<tr>
<td><?php $_input = (is_object("sporty") ? "sporty" : $_form["sporty"]); echo $_input->getControl()->addAttributes(array()) ?></td>
<td><?php $_input = (is_object("send") ? "send" : $_form["send"]); echo $_input->getControl()->addAttributes(array()) ?></td>
</tr>
</tbody>
</table>
<?php NFormMacros::renderFormEnd($_form) ;$iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($k_prihlaseni) as $akce): if ($iterator->isFirst()): ?>
<table class="hover">
<tr>
<th>Datum</th><th class="oddo">Sport</th><th>Akce</th><th>Přihlášky do</th><th> </th><th> </th>
</tr>
<?php endif ?>
<tr>
<td><?php echo NTemplateHelpers::escapeHtml($template->datumKonani($akce['od'], $akce['do']), ENT_NOQUOTES) ?></td>
<td><?php echo NTemplateHelpers::escapeHtml($akce['sport'], ENT_NOQUOTES) ?></td>
<td><a href="<?php echo htmlSpecialChars($_control->link("info", array($akce['id'], $oddil))) ?>
"><?php echo NTemplateHelpers::escapeHtml($akce['nazev'], ENT_NOQUOTES) ?></a></td>
<td><?php echo NTemplateHelpers::escapeHtml($template->date($akce['uzavirka_prihlasek'], 'j.n.Y'), ENT_NOQUOTES) ?></td>
<td><?php if ($opravneni['prihlasky'] && $akce['elektronicke_prihlasky']): ?>
<a href="<?php echo htmlSpecialChars($_control->link("prihlasky", array($akce['id'], $oddil))) ?>
">přihlásit</a><?php endif ?></td>
<td><?php if ($akce['prihlaseno']): ?><img src="<?php echo htmlSpecialChars($basePath) ?>
/css/ico-ok.gif" alt="ano" title="přihlášeno <?php echo htmlSpecialChars($akce['prihlaseno']) ?>
osob" /><?php else: ?> <?php endif ?></td>
</tr>
<?php if ($iterator->isLast()): ?></table><?php endif ?>
<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:33,代码来源:_Zavody.prehledPrihlasek.latte-4eb7768ae9aeb8afdd20b8e74a097d2f.php
示例5: if
if (!function_exists($_l->blocks['content'][] = '_lb2616d84e8c_content')) { function _lb2616d84e8c_content($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("bocniMenu"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ?>
<div class="span9"><div class="inner">
<?php $iterations = 0; foreach ($flashes as $flash): ?> <div class="flash <?php echo htmlSpecialChars($flash->type) ?>
"><?php echo NTemplateHelpers::escapeHtml($flash->message, ENT_NOQUOTES) ?></div>
<?php $iterations++; endforeach ?>
<h1><?php call_user_func(reset($_l->blocks['sekce']), $_l, get_defined_vars()) ?></h1>
<?php call_user_func(reset($_l->blocks['obsah']), $_l, get_defined_vars()) ?>
</div></div>
<?php
}}
开发者ID:krecek,项目名称:nrsn,代码行数:12,代码来源:_Osoby.base.latte-9804d8f7054933195fcdf978bf4a4d6e.php
示例6: _lbc03d71fd18_content
function _lbc03d71fd18_content($_l, $_args)
{
extract($_args);
?>
<?php
if (trim($post->content) != "") {
?>
<section class="section content-section">
<div id="container" class="subpage wrapper onecolumn">
<div id="content" class="entry-content clearfix" role="main">
<div class="content-wrapper clearfix">
<header class="entry-title clearfix">
<h1><?php
echo NTemplateHelpers::escapeHtml($post->title, ENT_NOQUOTES);
?>
</h1>
<span class="breadcrumbs"><?php
echo NTemplateHelpers::escapeHtml(__('You are here:', 'ait'), ENT_NOQUOTES);
?>
<?php
echo WpLatteFunctions::breadcrumbs(array());
?>
</span>
</header>
<?php
echo $post->content;
?>
</div> <!-- /.content-wrapper -->
<?php
NCoreMacros::includeTemplate("comments.php", array('closeable' => $themeOptions->general->closeComments, 'defaultState' => $themeOptions->general->defaultPosition) + $template->getParams(), $_l->templates['d17l81i8rg'])->render();
?>
</div> <!-- /#content -->
</div> <!-- /#container -->
</section>
<?php
}
?>
<?php
}
开发者ID:ssuhss,项目名称:Begara,代码行数:53,代码来源:_Templates.page-fullwidth.php-320d66c0c68a4eb6b19b829e3bf2a65d.php
示例7: foreach
if (!function_exists($_l->blocks['obsah'][] = '_lb9e6af4e54f_obsah')) { function _lb9e6af4e54f_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?>Zvolte oddíl:
<?php $iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($seznam) as $id=>$oddil): if ($iterator->isFirst()): ?>
<ul><?php endif ?>
<li><a href="<?php echo htmlSpecialChars($_control->link("prava", array($id))) ?>
"><?php echo NTemplateHelpers::escapeHtml($oddil, ENT_NOQUOTES) ?> <?php if ($id): ?>
(<?php echo NTemplateHelpers::escapeHtml($id, ENT_NOQUOTES) ?>)<?php endif ?></a></li>
<?php if ($iterator->isLast()): ?></ul><?php endif ?>
<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:12,代码来源:_Zavody.pravaSelect.latte-2c42b3c9cfd04ac71340147f5fa2ea28.php
示例8: if
if (!function_exists($_l->blocks['obsah'][] = '_lb5c5b195f54_obsah')) { function _lb5c5b195f54_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?><h4>Zvolte oddíl</h4>
<?php if (!$oddily->count()): ?>Nemáte žádné oddíly pro přihlašování.<?php endif ?>
<?php $iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($oddily) as $id=>$oddil): if ($iterator->isFirst()): ?>
<ul><?php endif ?>
<li><a href="<?php echo htmlSpecialChars($_control->link("PrehledPrihlasek", array($id))) ?>
"><?php echo NTemplateHelpers::escapeHtml($oddil['nazev'], ENT_NOQUOTES) ?></a></li>
<?php if ($iterator->isLast()): ?></ul><?php endif ?>
<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:13,代码来源:_Zavody.oddilSelect.latte-22282831778f9c519d1a9d6a84da35d6.php
示例9: if
if (!function_exists($_l->blocks['content'][] = '_lb4c5a13178f_content')) { function _lb4c5a13178f_content($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("drobeckovaNavigace"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;call_user_func(reset($_l->blocks['title']), $_l, get_defined_vars()) ?>
<ul>
<?php $iterations = 0; foreach ($roky as $rok): ?>
<li><a href="<?php echo htmlSpecialChars($_control->link("Archiv:default", array($rok))) ?>
">Archiv článků <?php echo NTemplateHelpers::escapeHtml($rok, ENT_NOQUOTES) ?></a></li>
<?php $iterations++; endforeach ?>
</ul>
Zvolte rok, ve kterém byl článek vydán.
<?php
}}
开发者ID:krecek,项目名称:nrsn,代码行数:13,代码来源:_Archiv.roky.latte-74238ac3b0a2ba8155edd514971d95ce.php
示例10: if
if (!function_exists($_l->blocks['obsah'][] = '_lbdbe8a543b2_obsah')) { function _lbdbe8a543b2_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("hledatForm"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ?>
<table>
<?php $iterations = 0; foreach ($seznam_akci as $akce): ?>
<tr>
<td class="vel25"><?php echo NTemplateHelpers::escapeHtml($template->datumKonani($akce['od'], $akce['do']), ENT_NOQUOTES) ?></td>
<td class="oddo"><?php if ($akce['sport']=='XX'): ?> <?php else: echo NTemplateHelpers::escapeHtml($akce['sport'], ENT_NOQUOTES) ;endif ?></td>
<td class="width_auto"><a href="<?php echo htmlSpecialChars($_control->link("detail", array($akce['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($akce['nazev'], ENT_NOQUOTES) ?></a></td>
</tr>
<?php $iterations++; endforeach ?>
</table><?php
}}
开发者ID:krecek,项目名称:nrsn,代码行数:13,代码来源:_Zavody.hledat.latte-2739c585bd1e57a38c36e9a1d2af53d2.php
示例11: if
if (!function_exists($_l->blocks['content'][] = '_lb133add8b7b_content')) { function _lb133add8b7b_content($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("drobeckovaNavigace"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;call_user_func(reset($_l->blocks['title']), $_l, get_defined_vars()) ?>
<?php $iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($seznam_aplikaci) as $aplikace): if ($iterator->isFirst()): ?>
<ul><?php endif ?>
<li><a href="<?php echo htmlSpecialChars($_presenter->link($aplikace['url'])) ?>
"><?php echo NTemplateHelpers::escapeHtml($aplikace['nazev'], ENT_NOQUOTES) ?></a></li>
<?php if ($iterator->isLast()): ?></ul><?php endif ?>
<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
<?php
}}
开发者ID:krecek,项目名称:nrsn,代码行数:14,代码来源:_Aplikace.default.latte-33210d31a46885aca31ec8c2a3ff34eb.php
示例12: foreach
if (!function_exists($_l->blocks['content'][] = '_lb822c022f47_content')) { function _lb822c022f47_content($_l, $_args) { extract($_args)
;$iterations = 0; foreach ($flashes as $flash): ?><div class="flash <?php echo htmlSpecialChars($flash->type) ?>
"><?php echo NTemplateHelpers::escapeHtml($flash->message, ENT_NOQUOTES) ?></div>
<?php $iterations++; endforeach ?>
<div id="prihlasovani">
<h1>Přihlásit</h1>
<?php $_ctrl = $_control->getComponent("loginForm"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ?>
<div class="center">
<a href="<?php echo htmlSpecialChars($_control->link("Heslo:zapomenuteHeslo")) ?>
">Zapoměli jste heslo?</a>
</div>
<p>SVN Revision <?php echo NTemplateHelpers::escapeHtml($verze, ENT_NOQUOTES) ?></p>
</div>
<?php
}}
开发者ID:krecek,项目名称:nrsn,代码行数:15,代码来源:_Login.default.latte-b78e4e8cf778d77808c86c6a55cd465f.php
示例13: if
if (!function_exists($_l->blocks['obsah'][] = '_lb7da70f834c_obsah')) { function _lb7da70f834c_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("prehledPrav"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;if ($moznost_uprav): ?>
<?php NFormMacros::renderFormBegin($form = $_form = (is_object("priraditPravaForm") ? "priraditPravaForm" : $_control["priraditPravaForm"]), array()) ;if ($form->hasErrors()): ?> <ul class="errors">
<?php $iterations = 0; foreach ($form->errors as $error): ?> <li><?php echo NTemplateHelpers::escapeHtml($error, ENT_NOQUOTES) ?></li>
<?php $iterations++; endforeach ?>
</ul>
<?php endif ?>
<table>
<tr >
<th><?php $_input = is_object("popis") ? "popis" : $_form["popis"]; if ($_label = $_input->getLabel()) echo $_label->addAttributes(array()) ?></th>
<td><?php $_input = (is_object("popis") ? "popis" : $_form["popis"]); echo $_input->getControl()->addAttributes(array()) ?></td>
<td><?php $_input = (is_object("send") ? "send" : $_form["send"]); echo $_input->getControl()->addAttributes(array()) ?></td>
</tr>
</table>
<?php $_input = is_object("id") ? "id" : $_form["id"]; if ($_label = $_input->getLabel()) echo $_label->addAttributes(array()) ;$_input = (is_object("id") ? "id" : $_form["id"]); echo $_input->getControl()->addAttributes(array()) ;NFormMacros::renderFormEnd($_form) ;endif ;if (isset($osoby)): ?>
<div>
Vyberte osobu:
<table>
<?php $iterations = 0; foreach ($osoby as $osoba): ?>
<tr>
<td><a href="<?php echo htmlSpecialChars($_control->link("nastaveniPrav", array('osoba'=>$osoba['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($osoba['prijmeni'], ENT_NOQUOTES) ?> <?php echo NTemplateHelpers::escapeHtml($osoba['jmeno'], ENT_NOQUOTES) ?></a></td>
<td><?php echo NTemplateHelpers::escapeHtml($template->date($osoba['narozeni'], 'j.n.Y'), ENT_NOQUOTES) ?></td>
</tr>
<?php $iterations++; endforeach ?>
</table>
</div>
<?php endif ;if ($moznost_uprav): if (!$shodna_prava_banka): if ($oddil['id']==$id_individualni_clenove): ?>
<a onclick="if(!confirm('Všem individuálním členům budou nastavena práva pro jejich osobní účet v modulu BANKA. Opravdu provést?'))return false;" href="<?php echo htmlSpecialChars($_control->link("nastaveniPravProBankuIndividualni")) ?>
">Nastavit individuálním členům práva do modulu BANKA</a>
<?php else: ?>
<a onclick="if(!confirm('Všechna práva z modulu BANKA budou nahrazena právy z modulu ODDÍLY. Opravdu provést?'))return false;" href="<?php echo htmlSpecialChars($_control->link("nastaveniPravProBanku", array($oddil['id']))) ?>
">Překopírovat práva do modulu BANKA</a>
<?php endif ?>
<br />
<?php endif ;if (!$shodna_prava_zavody): ?>
<?php if ($oddil['id']==$id_individualni_clenove): ?>
<a onclick="if(!confirm('Všem individuálním členům budou nastavena práva pro modul ZÁVODY. Opravdu provést?'))return false;" href="<?php echo htmlSpecialChars($_control->link("nastaveniPravProZavodyIndividualni")) ?>
">Nastavit individuálním členům práva do modulu ZÁVODY</a>
<?php else: ?>
<a onclick="if(!confirm('Všechna práva z modulu ZÁVODY budou nahrazena právy z modulu ODDÍLY. Opravdu provést?'))return false;" href="<?php echo htmlSpecialChars($_control->link("nastaveniPravProZavody", array($oddil['id']))) ?>
">Překopírovat práva do modulu ZÁVODY</a>
<?php endif ;endif ;endif ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:48,代码来源:_Oddily.prava.latte-85fb3441367f5c18da72502c4265812c.php
示例14: if
if (!function_exists($_l->blocks['obsah'][] = '_lb6996967424_obsah')) { function _lb6996967424_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("prehledPrav"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;if ($moznost_uprav): $_ctrl = $_control->getComponent("priraditPravaForm"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;endif ;if (isset($osoby)): ?>
<div>
Vyberte osobu:
<table>
<?php $iterations = 0; foreach ($osoby as $osoba): ?>
<tr>
<td><a href="<?php echo htmlSpecialChars($_control->link("nastaveniPrav", array('osoba'=>$osoba['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($osoba['prijmeni'], ENT_NOQUOTES) ?> <?php echo NTemplateHelpers::escapeHtml($osoba['jmeno'], ENT_NOQUOTES) ?></a></td>
<td><?php echo NTemplateHelpers::escapeHtml($template->date($osoba['narozeni']('Y')), ENT_NOQUOTES) ?></td>
</tr>
<?php $iterations++; endforeach ?>
</table>
</div>
<?php endif ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:16,代码来源:_Zavody.prava.latte-d54210b623219ae93938a5a32a6c0a31.php
示例15: if
if (!function_exists($_l->blocks['content'][] = '_lb9e8108485e_content')) { function _lb9e8108485e_content($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;$_ctrl = $_control->getComponent("drobeckovaNavigace"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;call_user_func(reset($_l->blocks['title']), $_l, get_defined_vars()) ?>
<?php $_ctrl = $_control->getComponent("adresarFiltr"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;if (isset($oddily)): $iterations = 0; foreach ($oddily as $oddil): ?>
<div class="oddil">
<a href="<?php echo htmlSpecialChars($_control->link("Adresar:Oddil", array($oddil['id']))) ?>
"><h3><?php echo NTemplateHelpers::escapeHtml($oddil['nazev'], ENT_NOQUOTES) ?></h3></a>
<div>
<?php echo NTemplateHelpers::escapeHtml($oddil['ulice'], ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($oddil['psc'], ENT_NOQUOTES) ?> <?php echo NTemplateHelpers::escapeHtml($oddil['obec'], ENT_NOQUOTES) ?>
</div>
</div>
<?php $iterations++; endforeach ;endif ?>
<?php
}}
开发者ID:krecek,项目名称:nrsn,代码行数:17,代码来源:_Adresar.default.latte-96f64526a5ccd845ce4b44fb85356e3e.php
示例16: foreach
if (!function_exists($_l->blocks['obsah'][] = '_lba8ff32ad1e_obsah')) { function _lba8ff32ad1e_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;if (isset($podobne_osoby)): ?>
<div class="flash error">
Narozeni ve stejný den:
<ul>
<?php $iterations = 0; foreach ($podobne_osoby['narozeni'] as $podobna_osoba): ?>
<li>
<a href="<?php echo htmlSpecialChars($_control->link("prehled", array($podobna_osoba['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($podobna_osoba['jmeno'], ENT_NOQUOTES) ?>
<?php echo NTemplateHelpers::escapeHtml($podobna_osoba['prijmeni'], ENT_NOQUOTES) ?>
</a> <?php echo NTemplateHelpers::escapeHtml($template->date($podobna_osoba['narozeni'], 'j.n.Y'), ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($template->rodneCislo($podobna_osoba['rc']), ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($podobna_osoba['email'], ENT_NOQUOTES) ?>
,<?php echo NTemplateHelpers::escapeHtml($podobna_osoba['obec'], ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($podobna_osoba['poznamka'], ENT_NOQUOTES) ?>
</li>
<?php $iterations++; endforeach ?>
</ul>
</div>
<div class="flash error">
Se stejným jménem:
<ul>
<?php $iterations = 0; foreach ($podobne_osoby['jmeno'] as $podobna_osoba): ?>
<li>
<a href="<?php echo htmlSpecialChars($_control->link("prehled", array($podobna_osoba['id']))) ?>
"><?php echo NTemplateHelpers::escapeHtml($podobna_osoba['jmeno'], ENT_NOQUOTES) ?>
<?php echo NTemplateHelpers::escapeHtml($podobna_osoba['prijmeni'], ENT_NOQUOTES) ?>
</a> <?php echo NTemplateHelpers::escapeHtml($template->date($podobna_osoba['narozeni'], 'j.n.Y'), ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($template->rodneCislo($podobna_osoba['rc']), ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($podobna_osoba['email'], ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($podobna_osoba['obec'], ENT_NOQUOTES) ?>
, <?php echo NTemplateHelpers::escapeHtml($podobna_osoba['poznamka'], ENT_NOQUOTES) ?>
</li>
<?php $iterations++; endforeach ?>
</ul>
</div>
<?php endif ?>
<?php $_ctrl = $_control->getComponent("addOsobaForm"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:44,代码来源:_Osoby.add.latte-683aa96b6e5a29f780a2e11620f8bff8.php
示例17: htmlSpecialChars
if (!function_exists($_l->blocks['obsah'][] = '_lb6fc032ae8f_obsah')) { function _lb6fc032ae8f_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
;if ($existuji_vysledky): ?>
<img src="<?php echo htmlSpecialChars($basePath) ?>/css/result.png" alt="Výsledky jsou nahrány" title="Výsledky jsou nahrány" align="left" /> Elektronické výsledky těchto závodů jsou nahrány. Přejete-li si je změnit, je potřeba je nejprve smazat a nahrát upravenou verzi.
<div class="bottom_nav">
<a href="<?php echo htmlSpecialChars($_control->link("detail", array($akce->id))) ?>
">Zpět</a>
<a href="<?php echo htmlSpecialChars($_control->link("exportVysledku", array($akce->id))) ?>
">Stáhnout</a>
<a onclick="if(!confirm('Opravdu smazat výsledky?')) return false;" href="<?php echo htmlSpecialChars($_control->link("deleteVysledky", array($akce->id))) ?>
">Smazat</a>
</div>
<?php else: ?>
<div class="ico-info">
<!--<img src="<?php echo NTemplateHelpers::escapeHtmlComment($basePath) ?>/css/info-big.png" align="left">-->
Podporovány jsou výsledky jednotlivců a družstev ve sportech "Sportovní gymnastika mužů" a "Sportovní gymnastika žen". Nahrávaný soubor musí být ve formátu xlsx. Všechny kategorie musí být v jednom souboru, každá kategorie na vlastním listu. Název listu musí začínat číslem kategorie a podtržítkem ( _ ).
</div>
<br />
<?php $_ctrl = $_control->getComponent("nahratVysledkyForm"); if ($_ctrl instanceof IRenderable) $_ctrl->validateControl(); $_ctrl->render() ;endif ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:20,代码来源:_Zavody.vysledky.latte-effedbc1a5ae27d0678e78a149675dc3.php
示例18: foreach
if (!function_exists($_l->blocks['_seznamKategorii'][] = '_lb653377a01d__seznamKategorii')) { function _lb653377a01d__seznamKategorii($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->validateControl('seznamKategorii')
;$iterations = 0; foreach ($iterator = $_l->its[] = new NSmartCachingIterator($kategorie) as $id=>$kat): ?>
<span class="h3"><?php echo NTemplateHelpers::escapeHtml($kat['nazev'], ENT_NOQUOTES) ?></span>
<?php if ($opravneni['edit']): ?>
<a href="<?php echo htmlSpecialChars($_control->link("kategorieEdit", array($akce->id,$kat->id))) ?>
"><img src="<?php echo htmlSpecialChars($basePath) ?>/css/ico-edit.gif" alt="upravit" title="upravit kategorii" /></a>
<a class="ajax" data-confirm="Opravdu smazat kategorii? Případné přihlášky budou zrušeny a oddílům zaslána informace e-mailem." href="<?php echo htmlSpecialChars($_control->link("deleteKategorie!", array($akce->id,$kat->id))) ?>
"><img src="<?php echo htmlSpecialChars($basePath) ?>/css/ico-del.gif" alt="zrušit" title="zrušit kategorii" /></a>
<?php endif ?>
<table>
<tr><th class="left">pohlaví</th><td><?php if ($kat['pohlavi']=='M'): ?>muži<?php elseif ($kat['pohlavi']=='Z'): ?>
ženy<?php else: ?>bez omezení<?php endif ?></td></tr>
<tr><th class="left">určení</th><td><?php if ($kat['typ']=='R'): ?>registrovaní<?php elseif ($kat['typ']=='E'): ?>
evidovaní<?php else: ?>bez omezení<?php endif ?></td></tr>
<tr><th class="left">ročníky narození</th><td><?php echo NTemplateHelpers::escapeHtml($template->kategorieRocniky($kat['rocnik_od'], $kat['rocnik_do']), ENT_NOQUOTES) ?></td></tr>
<tr><th class="left">typ</th><td><?php if ($kat['druzstvo']==1): ?>soutěž jednotlivců<?php else: ?>
soutěž družstev (<?php echo NTemplateHelpers::escapeHtml($kat['druzstvo'], ENT_NOQUOTES) ?>
-členných)<?php if ($kat['detail_druzstva']): ?>: <?php echo NTemplateHelpers::escapeHtml($kat['detail_druzstva'], ENT_NOQUOTES) ;endif ;endif ?></td></tr>
<?php if ($kat['druzstvo']!=1): ?>
<tr><th class="left">povolené hostování</th><td><?php if ($kat['hostovani']=='A'): ?>
ano<?php else: ?>ne<?php endif ?></td></tr>
<?php endif ;if ($kat['omezeni_na_oddil']): ?>
<tr>
<td colspan="2">
<?php if ($kat['druzstvo']==1): ?>maximálně <?php echo NTemplateHelpers::escapeHtml($kat['omezeni_na_oddil'], ENT_NOQUOTES) ?>
<?php echo NTemplateHelpers::escapeHtml($template->sklonovaniOsoby($kat['omezeni_na_oddil']), ENT_NOQUOTES) ?>
z jednoho oddílu<?php endif ?>
<?php if ($kat['druzstvo']>1): ?>maximálně <?php echo NTemplateHelpers::escapeHtml($kat['omezeni_na_oddil'], ENT_NOQUOTES) ?>
<?php echo NTemplateHelpers::escapeHtml($template->sklonovaniDruzstva($kat['omezeni_na_oddil']), ENT_NOQUOTES) ?>
z jednoho oddílu<?php endif ?>
</td>
</tr>
<?php endif ?>
</table>
<?php if (!$iterator->isLast()): ?><br /> <?php endif ?>
<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ;
}}
开发者ID:krecek,项目名称:nrsn,代码行数:41,代码来源:_Zavody.kategorie.latte-4e8a8f51d3507499054f34d3c4e57627.php
示例19: _lbc44c940d35_content
function _lbc44c940d35_content($_l, $_args)
{
extract($_args);
?>
<?php
if (trim($post->content) != "") {
?>
<section class="section content-section">
<div id="container" class="subpage wrapper onecolumn">
<div id="content" class="entry-content clearfix" role="main">
<div class="content-wrapper clearfix">
<header class="entry-title clearfix">
<h1><?php
echo NTemplateHelpers::escapeHtml($post->title, ENT_NOQUOTES);
?>
</h1>
</header>
<div style="text-align:justify; font-size:16px">
<?php
echo $post->content;
?>
</div>
</div> <!-- /.content-wrapper -->
</div> <!-- /#content -->
</div> <!-- /#container -->
</section>
<?php
}
?>
<?php
}
开发者ID:ssuhss,项目名称:Begara,代码行数:41,代码来源:_Templates.page-quem-somos.php-14948573f5de399aa3cbb3c4f6bd3497.php
示例20: if
if (!function_exists($_l->blocks['obsah'][] = '_lb949fe1eedc_obsah')) { function _lb949fe1eedc_obsah($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?><table>
<tr>
<th>Datum</th>
<th>Sport</th>
<th>Název</th>
</tr>
<?php if ($seznam_akci): $iterations = 0; foreach ($seznam_akci as $akce): ?>
<tr>
<td><?php echo NTemplateHelpers::escapeHtml($template->datumKonani($akce['od'], $akce['do']), ENT_NOQUOTES) ?></td>
<td><?php echo NTemplateHelpers::escapeHtml($akce['sport'], ENT_NOQUOTES) ?></td>
<td><a href="<?php echo htmlSpecialChars($_control->link("detail", array($akce->id))) ?>
"><?php echo NTemplateHelpers::escapeHtml($akce->nazev, ENT_NOQUOTES) ?></a></td>
</tr>
<?php $iterations++; endforeach ;else: ?>
<tr><td colspan='2'>Nebyly nalezeny žádné archivované akce.</td></tr>
<?php endif ?>
</table><?php
}}
开发者ID:krecek,项目名称:nrsn,代码行数:21,代码来源:_Zavody.archiv.latte-eb60e924e65a1303d18eef070269aef2.php
注:本文中的NTemplateHelpers类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论