Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
llo 21.01.2005 08:20 / 21.01.2005 08:21
Parser считает, что он задачу выполнил.@main[] ^header[] ^body[] ^footer[] # определение заголовка страниц ========================================== @header[] <html> <head> <title>Тестовый сайт Parser3</title> </head> <body bgcolor="#FAEBD7"> <table width="100%" border="0" bgcolor="#000000" cellspacing="1"> <tr bgcolor="#FFFFFF" height="60"> <td align="middle"> <font size="+2"> <b>^greeting[]</b></font> </td> </tr> </table> <br> # ======================================================================== # определение основной части страниц ===================================== @body[] ^navigation[] <table width="100%" height="65%" border="0" bgcolor="#000000" cellspacing="1"> <tr bgcolor="#ffffff" height="100%"> <td width="30%" valign="top" bgcolor="#EFEFEF"> <b>^body_additional[]</b> </td> <td width="70%" valign="top"> ^body_main[] </td> </tr> </table> <br> @navigation[] $sections[^table::load[/parser_cfg/sections.cfg]] <table width="100%" border="0" bgcolor="#000000" cellspacing="1"> <tr bgcolor="#FFFFFF"> ^sections.menu{ ^navigation_cell[] } </tr> </table> <br> @navigation_cell[] $cell_width[^eval(100\$sections)%] ^if($sections.uri eq $request:uri){ <td width="$cell_width" align="middle" bgcolor="#999999"> <nobr>$sections.name</nobr> </td> }{ <td width="$cell_width" align="middle"> <a href="$sections.uri"><nobr>$sections.name</nobr></a> </td> } # ======================================================================== # определение нижней части сраниц ======================================== @footer[] <table width="100%" border="0" bgcolor="#000000" cellspacing="0"> <tr> <td></td> </tr> </table> $now[^date::now[]] <font size="-3"> <center>Powered by Parser3<br>1997-$now.year</center> </font> </body> </html> # ========================================================================Код собран из материала Урока 2.