Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
nreg 17.12.2007 15:59
вобщем немного подумав разобрался, но проблему так и не решил, получается так что у меня условие должно соответстовать двум критериям.$id_information[obj_id=75 and id_info=10]id_info - это ID объекта который формируется из главного меню (каждый пункт меню имеет свой ID это он и есть in_info)
^connect[$connect_string]{$photo[^table::sql{select id, obj_id, id_info, comment, photo, big from photo where $id_information}]} $kol[^photo.count[]] $scroller[^scroller::create[ $.path_param[no] $.table_count[$kol] $.number_per_section[4] $.section_per_page[7] $.type[page_end] $.r_selector[] $.l_selector[] $.divider[] $.r_divider[] $.l_divider[] ] ] <center>Всего $kol фотографий<br><br> <table width=10% border=0 cellspacing="1" cellpadding="3" bgcolor=orange> <tr> ^photo.menu{ ^if(^photo.line[] >= $scroller.record_number && ^photo.line[] <= ($scroller.record_number + $scroller.number_per_section - 1)){ <td bgcolor=ffffff width=100%><img src=/info/images/$photo.id_info'$photo.obj_id/$photo.photo> <br>^if(def $photo.big){<A href=/info/images/$photo.id_info'$photo.obj_id/$photo.big target=blank>увеличить</A>} <br>$photo.id_info - $photo.obj_id - $photo.id} </td>} </tr> </table> ^scroller.draw[]</center>