viewthread_poll.htm 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <div id="postmessage_$post[pid]" class="postmessage">$post[message]</div>
  2. <div class="bt pd2">
  3. <form id="poll" name="poll" method="post" autocomplete="off" action="forum.php?mod=misc&action=votepoll&fid=$_G[fid]&tid=$_G[tid]&pollsubmit=yes{if $_GET[from]}&from=$_GET[from]{/if}&quickforward=yes&mobile=2" >
  4. <input type="hidden" name="formhash" value="{FORMHASH}" />
  5. <div>
  6. <!--{if $multiple}--><strong>{lang poll_multiple}{lang thread_poll}</strong><!--{if $maxchoices}-->: ( {lang poll_more_than} )<!--{/if}--><!--{else}--><strong>{lang poll_single}{lang thread_poll}</strong><!--{/if}--><!--{if $visiblepoll && $_G['group']['allowvote']}--> , {lang poll_after_result}<!--{/if}-->, {lang poll_voterscount}
  7. </div>
  8. <!--{if $_G[forum_thread][remaintime]}-->
  9. <p>
  10. {lang poll_count_down}:
  11. <span class="xg1">
  12. <!--{if $_G[forum_thread][remaintime][0]}-->$_G[forum_thread][remaintime][0] {lang days}<!--{/if}-->
  13. <!--{if $_G[forum_thread][remaintime][1]}-->$_G[forum_thread][remaintime][1] {lang poll_hour}<!--{/if}-->
  14. $_G[forum_thread][remaintime][2] {lang poll_minute}
  15. </span>
  16. </p>
  17. <!--{elseif $expiration && $expirations < TIMESTAMP}-->
  18. <p><strong>{lang poll_end}</strong></p>
  19. <!--{/if}-->
  20. <div>
  21. <!--{loop $polloptions $key $option}-->
  22. <p>
  23. <!--{if $_G['group']['allowvote']}-->
  24. <input type="$optiontype" id="option_$key" name="pollanswers[]" value="$option[polloptionid]" {if $_G['forum_thread']['is_archived']}disabled="disabled"{/if} />
  25. <!--{/if}-->
  26. <label for="option_$key">$key.$option[polloption]</label>
  27. <!--{if !$visiblepoll}-->
  28. $option[percent]% <em style="color:#$option[color]">($option[votes])</em>
  29. <!--{/if}-->
  30. </p>
  31. <!--{/loop}-->
  32. <!--{if $_G['group']['allowvote'] && !$_G['forum_thread']['is_archived']}-->
  33. <input type="submit" name="pollsubmit" id="pollsubmit" value="{lang submit}" />
  34. <!--{if $overt}-->
  35. <span class="xg2">({lang poll_msg_overt})</span>
  36. <!--{/if}-->
  37. <!--{elseif !$allwvoteusergroup}-->
  38. <!--{if !$_G['uid']}-->
  39. <span class="xi1">{lang poll_msg_allwvote_user}</span>
  40. <!--{else}-->
  41. <span class="xi1">{lang poll_msg_allwvoteusergroup}</span>
  42. <!--{/if}-->
  43. <!--{elseif !$allowvotepolled}-->
  44. <span class="xi1">{lang poll_msg_allowvotepolled}</span>
  45. <!--{elseif !$allowvotethread}-->
  46. <span class="xi1">{lang poll_msg_allowvotethread}</span>
  47. <!--{/if}-->
  48. </div>
  49. </form>
  50. </div>