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

Галереи

^level[none; ^server[trush:andrew@localhost/literra; ^context[main; ^sql[select * from Gallery where id=^query[]]
^item[Category]
] ^context[new; ^sql[select * from Gallery_main where Category=^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 Gallery_Author where id=^item[new;id_Author]] ]


Новые галереи

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

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

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



Авторы


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


] ] ^macro[footer]