parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Код

Евгений Химич 09.07.2014 12:49

@years_1997[]
1997

@years_1989[]
1989

@visit_1997[]
$sections[^table::load[../_cfg/visit_1997.cfg]] 
^sections.menu{ ^visit_years_cell[] }

@visit_1989[]
$sections[^table::load[../_cfg/visit_1989.cfg]] 
^sections.menu{ ^visit_years_cell[] }

@visit_years_cell[] 
^if(!def $sections.uri){ 
<span>$sections.name<span class="sign">$sections.sign</span></span> }($sections.uri eq $request:uri){	
<span><span class="tr_active_list">$sections.name</span><span class="sign">$sections.sign</span></span> }{ 
<span><a href="$sections.uri" class="underline">$sections.name</a><span class="sign">$sections.sign</span></span> }

@visit_tab_yaers_1997[]
<p class="arhive_visit"><span class="bold">^years_1997[]:</span> ^visit_1997[]</p>

@visit_tab_yaers_1989[]
<p class="arhive_visit"><span class="bold">^years_1989[]:</span> ^visit_1989[]</p>
Вывожу через
^visit_tab_yaers_1997[]
^visit_tab_yaers_1989[]