{include file='header_new.tpl'} {* $Id: polls.tpl 59 2009-02-13 03:25:54Z john $ *}
{* JAVASCRIPT *} {lang_javascript ids=2500028,2500034,2500114,2500115} {* POLL RESULTS TEMPLATE *} {* DISPLAY PAGINATION MENU IF APPLICABLE *} {if $maxpage > 1}
{if $p != 1} « {lang_print id=182} {else} « {lang_print id=182} {/if}  |  {if $p_start==$p_end} {lang_sprintf id=2500035 1=$p_start 2=$total_polls} {else} {lang_sprintf id=2500036 1=$p_start 2=$p_end 3=$total_polls} {/if}  |  {if $p != $maxpage} {lang_print id=183} » {else} {lang_print id=183} » {/if}

{/if} {* SHOW THIS USERS POLLS *} {section name=polls_loop loop=$polls} {if $polls[polls_loop]->poll_info.poll_viewonly} {/if} {if $smarty.section.polls_loop.first != true}
 
{/if} {* SHOW THIS POLL *}
{* TITLE AND DESCRIPTION *}
{capture name=totalVotesCode}{$polls[polls_loop]->poll_info.poll_totalvotes}{/capture} {lang_sprintf id=2500029 1=$datetime->cdate("`$setting.setting_dateformat`", $datetime->timezone("`$polls[polls_loop]->poll_info.poll_datecreated`", $global_timezone))} {lang_sprintf id=2500028 1=$smarty.capture.totalVotesCode}, {lang_sprintf id=507 1=$total_comments}, {lang_sprintf id=2500122 1=$polls[polls_loop]->poll_info.poll_views}
{$polls[polls_loop]->poll_info.poll_desc|choptext:120:"
"}
{* RESULTS *} {* OPTIONS *}
{counter start=-1 print=0} {section name=options_loop loop=$polls[polls_loop]->poll_info.poll_options}
{/section}
{* VOTE OR VIEW *}
{if $user->level_info.level_poll_allow & 2}{lang_print id=2500030} |{/if} {lang_print id=2500032}
{* GO BACK TO OPTIONS *}

{/section} {* DISPLAY PAGINATION MENU IF APPLICABLE *} {if $maxpage > 1}
{if $p != 1} « {lang_print id=182} {else} « {lang_print id=182} {/if}  |  {if $p_start==$p_end} {lang_sprintf id=2500035 1=$p_start 2=$total_polls} {else} {lang_sprintf id=2500036 1=$p_start 2=$p_end 3=$total_polls} {/if}  |  {if $p != $maxpage} {lang_print id=183} » {else} {lang_print id=183} » {/if}

{/if} {include file='footer.tpl'}