^macro_use[href.cfg] ^macro[header;ЛИterra-Литература] ^macro[menu;8] ^level[none; ^server[trush:andrew@localhost/literra; ^context[title; ^sql[select * from Theatre_main where id=^query[]]

^item[Name]

^ifdef[^item[Photo_Small]; ] ^item[About_Short]

подробнее...

]

репертуар
статьи
^var[kol_rep;2] ^context[repertuar; ^sql[select * from Theatre_Page where id_Theatre=^query[] and Repertuar=1 order by id desc limit 0,^var[kol_rep]] ] ^context[kol_rep; ^sql[select count(*) as kol from Theatre_Page where id_Theatre=^query[] and Repertuar=1] ^cmp[^item[kol];^var[kol_rep];;;

архив] ^eq[^item[kol];0;Пока нет репертура] ]




    ^context[performance; ^sql[select count(*) as kol from Theatre_Performance where id_Theatre=^query[]] ^eq[^item[kol];0;;
  • Спектакли
  • ] ] ^context[actor; ^sql[select count(*) as kol from Theatre_Actor where id_Theatre=^query[]] ^eq[^item[kol];0;;
  • Коллектив театра
  • ] ] ^context[festival; ^sql[select count(*) as kol from Theatre_Com_Festival where id_Theatre=^query[]] ^eq[^item[kol];0;;
  • Фестивали
  • ] ]
^var[kol_art;2] ^var[kol_news;3]
    ^context[article; ^sql[select * from Theatre_Page where id_Theatre=^query[] and Repertuar=0 order by id desc limit 0,^var[kol_art]] ^menu[
  • ^item[Name]
  • ] ] ^context[news; ^eq[^query[];3; ^sql[select * from news where Category=20 and Add_To_Theatre=1 order by id desc limit 0,^var[kol_news]] ; ^eq[^query[];10; ^sql[select * from news where Category=50 and Add_To_Theatre=1 order by id desc limit 0,^var[kol_news]] ; ^sql[select * from news where Category=^eval[^query[]+27] and Add_To_Theatre=1 order by id desc limit 0,^var[kol_news]] ] ] ^menu[
  • ^item[Title]
  • ] ]
^context[kol_art; ^sql[select count(*) as kol from Theatre_Page where id_Theatre=^query[] and Repertuar=0] ^cmp[^item[kol];^var[kol_art];;;

все статьи] ]


^context[photo; ^sql[select * from Theatre_Page where id_Theatre=^query[]] ^var[i;0] ^menu[ ^ifdef[^item[Photo]; ^eq[^var[i];0;
^item[alt] ^var[i;1] ] ] ] ] ] ] ^macro[footer]