^server[trush:andrew@localhost/image2; ^level[none; ^ifdef[^query[]; ^context[quer; ^lsplit[^query[];&] ] ^context[name; ^sql[select * from Illustration_name where id=^item[quer;0]] ] Имидж: ^item[name;Name]
^eq[^item[name;id_Article];0; ^eq[^item[name;id_Menu_Point];0;

^item[name;Name]

;

^item[name;Name]

] ;

^item[name;Name]

]
Имидж
^var[blok;8] ^ifdef[^item[name;Description]; ] ^context[photos; ^sql[select count(*) as kol from Illustration where id_name=^item[quer;0]] ^var[vsego;^item[kol]] ^rem[Менюха с постраничностью] ^var[allpages;^eval[(^var[vsego]-1)/blok]] ^cmp[^var[vsego];^var[blok]; ; ;^var[allpages;+;1]] ^var[first;^eval[^item[quer;1]*blok-blok]] ^cmp[^item[kol];^eval[^item[quer;1]*blok]; ^var[last;^eval[^item[kol]-1]]; ^var[last;^eval[^item[kol]-1]]; ^var[last;^eval[^item[quer;1]*blok-1]] ] ] ^context[photos1; ^sql[select * from Illustration where id_name=^item[quer;0]] ^shift[^var[first]] ^var[lefft;0] ^for[i;^var[first];^var[last]; ^switch[^var[lefft]; ^case[0; ^var[lefft;1] ] ^case[1; ^var[lefft;0] ] ] ^shift[+1] ]
^item[name;Description]
^for[i;1;allpages; ^cmp[^var[i];^var[allpages]; [ ^eval[i*blok-blok+1]-^eval[i*blok] ]; [ ^eval[allpages*blok-blok+1]-^var[vsego] ]; [ ^eval[i*blok-blok+1]-^eval[i*blok] ] ] ]
] ; В данном виде эта страница не может быть отображена ] ] ]