^macro_use[href.cfg] ^macro[header;ЛИterra-Литература] ^macro[menu;6]
  Литература  ^level[none; ^server[trush:andrew@localhost/literra; ^context[category; ^sql[select * from Literature] ^menu[ •• ^item[Category]  ] ] ] ] •• Авторы

Литература

^level[none; ^server[trush:andrew@localhost/literra; ^context[main; ^sql[select * from Literature where id=1]
^item[Category]
] ^context[new; ^sql[select * from Literature_main where CategoryID=^query[] order by id desc limit 0, 1] ^var[year;^left[^item[Today];4]] ^var[month;^mid[^item[Today];4;2]] ^var[day;^mid[^item[Today];6;2]] ] ^context[author; ^sql[select * from Literature_Author where id=^item[new;id_Author]] ]

^item[main;Description]



Новые публикации

^var[day].^var[month].^var[year]

^ifdef[^item[author;Picture_sm];^item[author;Name]
]

^item[author;Name] ^ifdef[^item[new;Name];
^item[new;Name] ]
^item[new;Describ]



Авторы


^context[tek; ^sql[select distinct id_Author as idd from Literature_main where CategoryID=^query[] order by id desc] ^menu[ ^context[author1; ^sql[select * from Literature_Author where id=^item[tek;idd]] ^context[text; ^sql[select * from Literature_main where id_Author=^item[author1;id] and CategoryID=^query[]] ] ] ] ]


] ] ^macro[footer]