$meilleursujet = str_replace("°", "'", $meilleursujet); // Show best choice if ($nbofcheckbox >= 2) { $vote_str = $langs->trans('votes'); print '<p class="affichageresultats">' . "\n"; if (isset($meilleurecolonne) && $compteursujet == "1") { print '<img src="' . dol_buildpath('/opensurvey/img/medaille.png', 1) . '"> ' . $langs->trans('TheBestChoice') . ": <b>" . $meilleursujet . "</b> " . $langs->trans('with') . " <b>{$meilleurecolonne} </b>" . $vote_str . ".\n"; } elseif (isset($meilleurecolonne)) { print '<img src="' . dol_buildpath('/opensurvey/img/medaille.png', 1) . '"> ' . $langs->trans('TheBestChoices') . ": <b>" . $meilleursujet . "</b> " . $langs->trans('with') . " <b>{$meilleurecolonne} </b>" . $vote_str . ".\n"; } print '</p><br>' . "\n"; } } print '<br>'; // Comment list $comments = $object->getComments(); if ($comments) { print "<br><b>" . $langs->trans("CommentsOfVoters") . ":</b><br>\n"; foreach ($comments as $obj) { print '<div class="comment"><span class="usercomment">'; if (in_array($obj->usercomment, $listofvoters)) { print '<a href="' . $_SERVER["PHP_SELF"] . '?deletecomment=' . $obj->id_comment . '&sondage=' . $numsondage . '"> ' . img_picto('', 'delete.png') . '</a> '; } print dol_htmlentities($obj->usercomment) . ':</span> <span class="comment">' . dol_nl2br(dol_htmlentities($obj->comment)) . "</span></div>"; } } // Form to add comment if ($object->allow_comments) { print '<div class="addcomment">' . $langs->trans("AddACommentForPoll") . "<br>\n"; print '<textarea name="comment" rows="2" cols="60"></textarea><br>' . "\n"; print $langs->trans("Name") . ': ';