~includeonce('../config.tmpl')
~includeonce('../lib/settings.tmpl')
~set('title',"~get('website_title'): Sondage")
~include('../site/header.tmpl')
~list(~get('database'),"SELECT id FROM poll_questions WHERE id=~integer(~get_filenamevar(1)) AND state=~get('state_ok')",'LD',~http_error(404))
~include('../box/submit.tmpl')
~list(~get('database'),
"SELECT poll_questions.id,
poll_questions.title
FROM poll_questions
WHERE state=~get('state_ok')
AND id < ~integer(~get_filenamevar(1))
ORDER BY id DESC
LIMIT ~getcnf('poll_questions_count_col_main', 10)",
"LM",'
~fld('title')
','LF','
Voir les votes précédents
')
~include('../site/sidebox.tmpl')
~include('one.txt', ~get_filenamevar(1))
~include("../site/news_comments.tmpl",~get_filenamevar(1),~get('res_type_poll'))
~include('../site/footer.tmpl')