@title[]
Конференции
@body[]
^if(def $form:code){
^connect[$connect_string]{
$konf[^table::sql{SELECT
ID, name, text, code
FROM
konf
WHERE code=$form:code}]}
^connect[$connect_string]{
$news[^table::sql{SELECT
ID, type, date, header, body, link
FROM
news
WHERE type='$form:code'}]}
^connect[$connect_string]{
$doc[^table::sql{SELECT
ID, text, link
FROM
konf_docs
WHERE code='$form:code'}]}
|
|
^konf.menu{
$konf.name^untaint{$konf.text}}
|
Объявления:
^news.menu{$news.date $news.header ^untaint{$news.body} $news.link}[
]
|
|
^connect[$connect_string]{
$gbook[^table::sql{SELECT
date, body, bodyadd, number
FROM
gbook
WHERE answer=1 AND number='$form:code'
ORDER BY date DESC}]}
Вопросы и ответы
^gbook.menu{Вопрос: $gbook.body Ответ: $gbook.bodyadd}[
]
|
|
}{
^connect[$connect_string]{
$konf[^table::sql{SELECT
ID, name, text, code
FROM
konf
ORDER BY name}]}
}