viewthread_poll.htm
2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div id="postmessage_$post[pid]" class="postmessage">$post[message]</div>
<div class="bt pd2">
<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" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div>
<!--{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}
</div>
<!--{if $_G[forum_thread][remaintime]}-->
<p>
{lang poll_count_down}:
<span class="xg1">
<!--{if $_G[forum_thread][remaintime][0]}-->$_G[forum_thread][remaintime][0] {lang days}<!--{/if}-->
<!--{if $_G[forum_thread][remaintime][1]}-->$_G[forum_thread][remaintime][1] {lang poll_hour}<!--{/if}-->
$_G[forum_thread][remaintime][2] {lang poll_minute}
</span>
</p>
<!--{elseif $expiration && $expirations < TIMESTAMP}-->
<p><strong>{lang poll_end}</strong></p>
<!--{/if}-->
<div>
<!--{loop $polloptions $key $option}-->
<p>
<!--{if $_G['group']['allowvote']}-->
<input type="$optiontype" id="option_$key" name="pollanswers[]" value="$option[polloptionid]" {if $_G['forum_thread']['is_archived']}disabled="disabled"{/if} />
<!--{/if}-->
<label for="option_$key">$key.$option[polloption]</label>
<!--{if !$visiblepoll}-->
$option[percent]% <em style="color:#$option[color]">($option[votes])</em>
<!--{/if}-->
</p>
<!--{/loop}-->
<!--{if $_G['group']['allowvote'] && !$_G['forum_thread']['is_archived']}-->
<input type="submit" name="pollsubmit" id="pollsubmit" value="{lang submit}" />
<!--{if $overt}-->
<span class="xg2">({lang poll_msg_overt})</span>
<!--{/if}-->
<!--{elseif !$allwvoteusergroup}-->
<!--{if !$_G['uid']}-->
<span class="xi1">{lang poll_msg_allwvote_user}</span>
<!--{else}-->
<span class="xi1">{lang poll_msg_allwvoteusergroup}</span>
<!--{/if}-->
<!--{elseif !$allowvotepolled}-->
<span class="xi1">{lang poll_msg_allowvotepolled}</span>
<!--{elseif !$allowvotethread}-->
<span class="xi1">{lang poll_msg_allowvotethread}</span>
<!--{/if}-->
</div>
</form>
</div>