$ php_poll = new pollcomment ();

sondaj php_poll->

/ * întrebare */
echo $ php_poll-> get_poll_question (2);


/ * sondaj */
$ php_poll-> set_template_set ("simplu");
$ php_poll-> set_max_bar_length (125);
$ php_poll-> set_max_bar_height (10);
echo $ php_poll-> poll_process (2);


/ * construiți formularul */
$ php_poll-> set_template ("poll_form");
$ php_poll-> set_form_error (matrice (
"name" => "Vă rugăm să introduceți numele dvs.",
// "email" => "Trebuie să specificați adresa de e-mail.",

"message" => "Trebuie să specificați un mesaj."
"captcha" => "Trebuie să specificați cheia corectă."
));
$ html_form = $ php_poll-> comentariu_proces (2);


/ * comentarii la sondaj */
$ php_poll-> set_template ("poll_comment");
$ php_poll-> set_comments_per_page (5);
$ php_poll-> set_date_format ("d/m/Y H: i");
$ php_poll-> data_order_by ("timp", "desc");
echo $ php_poll-> view_poll_comments (2);
echo $ php_poll-> get_comment_pages (2);