: \'); } function saveEntities() { document.forms.postmodify.question.value = document.forms.postmodify.question.value.replace(/&#/g, "&#"); for (i in document.forms.postmodify) if (document.forms.postmodify[i].name.indexOf("options") == 0) document.forms.postmodify[i].value = document.forms.postmodify[i].value.replace(/&#/g, "&#"); } // ]]>'; // Start the main poll form. echo '
', theme_linktree(), '
' . $context['page_title'] . '
'; if (!empty($context['poll_error']['messages'])) echo ' '; echo ' '; if ($context['can_moderate_poll']) echo ' '; else echo ' '; echo ' '; // If this is an edit, we can allow them to reset the vote counts. if ($context['is_edit']) echo ' '; echo '
', $context['is_edit'] ? $txt['error_while_editing_poll'] : $txt['error_while_adding_poll'], ':
', empty($context['poll_error']['messages']) ? '' : implode('
', $context['poll_error']['messages']), '
' . $txt['smf21'] . ':
'; foreach ($context['choices'] as $choice) { echo ' : '; // Does this option have a vote count yet, or is it new? if ($choice['votes'] != -1) echo ' (', $choice['votes'], ' ', $txt['smf42'], ')'; if (!$choice['is_last']) echo '
'; } echo ' (', $txt['poll_add_option'], ')
', $txt['poll_options'], ': ', $txt['poll_options5'], '
', $txt['poll_options1a'], ' ', $txt['poll_options1b'], '
', $txt['poll_options'], ': ' . $txt['poll_options2'] . '
' . $txt['poll_options3'] . '
' . $txt['poll_options4'] . '

' . $txt['smf40'] . ': ' . $txt['smf41'] . '

' . $txt['smf16'] . '

'; } ?>