当前位置: 首页>>代码示例>>PHP>>正文


PHP NTemplateHelpers类代码示例

本文整理汇总了PHP中NTemplateHelpers的典型用法代码示例。如果您正苦于以下问题:PHP NTemplateHelpers类的具体用法?PHP NTemplateHelpers怎么用?PHP NTemplateHelpers使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了NTemplateHelpers类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>&nbsp;</th><th>&nbsp;</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: ?>&nbsp;<?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'): ?>&nbsp;<?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


注:本文中的NTemplateHelpers类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。