space_poll.htm
4.54 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!--{eval
$_G[home_tpl_spacemenus][] = "<a href=\"home.php?mod=space&uid=$space[uid]&do=poll&view=me\">{lang they_poll}</a>";
}-->
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
<a href="home.php?mod=space&do=thread">{lang post}</a> <em>›</em>
<a href="home.php?mod=space&uid=$space[uid]&do=poll&view=me">{lang poll}</a>
</div>
</div>
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<div class="bm bw0">
<!--{if (!$_G['uid'] && !$space[uid]) || $space[self]}-->
<h1 class="mt"><img alt="poll" src="{IMGDIR}/pollsmall.gif" class="vm" /> {lang poll}</h1>
<!--{/if}-->
<!--{if $space[self]}-->
<ul class="tb cl">
<li$actives[we]><a href="home.php?mod=space&do=poll&view=we">{lang friend_poll}</a></li>
<li$actives[me]><a href="home.php?mod=space&do=poll&view=me">{lang my_poll}</a></li>
<!--{if $_G[group][allowpostpoll]}-->
<li class="o">
<!--{if $_G[setting][pollforumid]}-->
<a href="forum.php?mod=post&action=newthread&fid=$_G[setting][pollforumid]&special=1">{lang create_new_poll}</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=nav&special=1" onclick="showWindow('nav', this.href)">{lang create_new_poll}</a>
<!--{/if}-->
</li>
<!--{/if}-->
</ul>
<!--{else}-->
<!--{template home/space_menu}-->
<!--{/if}-->
<!--{if $_GET[view] == 'me'}-->
<p class="tbmu">
<a href="home.php?mod=space&do=poll&view=me"$filteractives[publish]>{lang my_create}</a><span class="pipe">|</span>
<a href="home.php?mod=space&do=poll&view=me&filter=join"$filteractives[join]>{lang my_join} </a>
</p>
<!--{/if}-->
<!--{if $userlist}-->
<p class="tbmu">
{lang view_by_friend}
<select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
<option value="">{lang all_friends}</option>
<!--{loop $userlist $value}-->
<option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>$value[fusername]</option>
<!--{/loop}-->
</select>
</p>
<!--{/if}-->
<!--{if $count}-->
<ul class="el pll">
<!--{loop $list $thread}-->
<li class="cl">
<div class="u z">
<a href="home.php?mod=space&uid=$thread[authorid]" class="avt" c="1" target="_blank"><!--{avatar($thread[authorid],small)}--></a>
<p class="mtn"><a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a></p>
</div>
<div class="s y">
<a href="forum.php?mod=viewthread&tid=$thread[tid]" class="joins" target="_blank">
<span>$thread[poll][voters]</span>{lang people_join}
</a>
<a href="forum.php?mod=viewthread&tid=$thread[tid]" class="go" target="_blank">{lang to_poll}</a>
</div>
<div class="c">
<h4 class="h"><a href="forum.php?mod=viewthread&tid=$thread[tid]" target="_blank">$thread[subject]</a></h4>
<ol>
<!--{loop $thread[poll][pollpreview] $key $value}-->
<li>$value</li>
<!--{/loop}-->
<li style="list-style-type: none;">
...
</li>
</ol>
<div class="mtn xg1">
$thread[dateline]
<span class="pipe">|</span>
{lang favorite} $thread['favtimes']
<span class="pipe">|</span>
{lang share} $thread['sharetimes']
<span class="pipe">|</span>
{lang hot} $thread['heats']
</div>
</div>
</li>
<!--{/loop}-->
</ul>
<!--{if $hiddennum}-->
<p class="mtm">{lang hide_poll}</p>
<!--{/if}-->
<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
<!--{else}-->
<div class="emp">{lang no_poll}</div>
<!--{/if}-->
</div>
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
</div>
<div class="appl">
<!--{subtemplate home/space_thread_nav}-->
<div class="drag">
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
</div>
</div>
</div>
<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<script type="text/javascript">
function fuidgoto(fuid) {
var parameter = fuid != '' ? '&fuid='+fuid : '';
window.location.href = 'home.php?mod=space&do=poll&view=we'+parameter;
}
</script>
<!--{template common/footer}-->