17 |
startnew => "startnew.html", |
startnew => "startnew.html", |
18 |
ttable => "topics-table.html", |
ttable => "topics-table.html", |
19 |
theader => "topics-header.html", |
theader => "topics-header.html", |
20 |
|
tlheader => "topics-list-header.html", |
21 |
trow => "topics-row.html", |
trow => "topics-row.html", |
22 |
|
tlrow => "topics-list-row.html", |
23 |
reply => "reply.html", |
reply => "reply.html", |
24 |
checkboxes => "checkboxes.html" |
checkboxes => "checkboxes.html" |
25 |
) |
) |
180 |
COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments>></a>", |
COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments>></a>", |
181 |
PHP_SELF => $PHP_SELF |
PHP_SELF => $PHP_SELF |
182 |
)); |
)); |
|
$tpl->parse(ROWS,".theader"); |
|
183 |
|
|
184 |
if (isset($t) && $t==$row[topic_id]) { |
if (isset($t) && $t==$row[topic_id]) { |
185 |
|
$tpl->parse(ROWS,".theader"); |
186 |
$sth2 = $dbh->prepare(" |
$sth2 = $dbh->prepare(" |
187 |
select poruke.id as id,sadrzaj as topic,level,thread_id,reply_id,full_name,poruke.datum as datum,poruke.analitical as poruka_analitical |
select poruke.id as id,sadrzaj as topic,level,thread_id,reply_id,full_name,poruke.datum as datum,poruke.analitical as poruka_analitical |
188 |
from poruke,osobe |
from poruke,osobe |
233 |
DATE => $row2[datum], |
DATE => $row2[datum], |
234 |
SADRZAJ => $topic |
SADRZAJ => $topic |
235 |
)); |
)); |
|
# $tpl->parse(ROWS,".theader"); |
|
236 |
$tpl->parse(ROWS,".trow"); |
$tpl->parse(ROWS,".trow"); |
237 |
} |
} |
238 |
} else { |
} else { |
239 |
// non-unroll topics |
// non-unroll topics (list) |
240 |
$tpl->assign( array( |
$tpl->assign( array( |
241 |
SADRZAJ => $row[sadrzaj], |
SADRZAJ => $row[sadrzaj], |
242 |
COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments>></a>" |
COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments>></a>" |
243 |
)); |
)); |
244 |
# $tpl->parse(ROWS,".theader"); |
$tpl->parse(ROWS,".tlheader"); |
245 |
$tpl->parse(ROWS,".trow"); |
$tpl->parse(ROWS,".tlrow"); |
246 |
} |
} |
247 |
|
|
248 |
} |
} |