space_click.htm
2.26 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
<table cellpadding="0" cellspacing="0" class="atd">
<tr>
<!--{eval $clicknum = 0;}-->
<!--{loop $clicks $key $value}-->
<!--{eval $clicknum = $clicknum + $value['clicknum'];}-->
<!--{eval $value['height'] = $maxclicknum?intval($value['clicknum']*50/$maxclicknum):0;}-->
<td>
<a href="home.php?mod=spacecp&ac=click&op=add&clickid=$key&idtype=$idtype&id=$id&hash=$hash&handlekey=clickhandle" id="click_{$idtype}_{$id}_{$key}" onclick="{if $_G[uid]}ajaxmenu(this);{else}showWindow(this.id, this.href);{/if}doane(event);">
<!--{if $value[clicknum]}-->
<div class="atdc">
<div class="ac{$value[classid]}" style="height:{$value[height]}px;">
<em>{$value[clicknum]}</em>
</div>
</div>
<!--{/if}-->
<img src="{STATICURL}image/click/$value[icon]" alt="" /><br />$value[name]
</a>
</td>
<!--{/loop}-->
</tr>
</table>
<script type="text/javascript">
function errorhandle_clickhandle(message, values) {
if(values['id']) {
showCreditPrompt();
show_click(values['idtype'], values['id'], values['clickid']);
}
}
</script>
<!--{if $clickuserlist}-->
<h3 class="mbm xs1">
{lang position_friend} (<a href="javascript:;" onclick="show_click('$idtype', '$id', '$key')">$clicknum {lang person}</a>)
<!--{if $_G[magic][anonymous]}-->
<img src="{STATICURL}image/magic/anonymous.small.gif" alt="anonymous" class="vm" />
<a id="a_magic_anonymous" href="home.php?mod=magic&mid=anonymous&idtype=$idtype&id=$id" onclick="ajaxmenu(event,this.id, 1)" class="xg1">{$_G[magic][anonymous]}</a>
<!--{/if}-->
</h3>
<div id="trace_div" class="xs1">
<ul id="trace_ul" class="ml mls cl">
<!--{loop $clickuserlist $value}-->
<li>
<!--{if $value[username]}-->
<div class="avt"><a href="home.php?mod=space&uid=$value[uid]" target="_blank" title="$value[clickname]"><!--{avatar($value[uid], 'small')}--></a></div>
<p><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]" target="_blank">$value[username]</a></p>
<!--{else}-->
<div class="avt"><img src="{STATICURL}image/magic/hidden.gif" alt="$value[clickname]" /></div>
<p>{lang anonymity}</p>
<!--{/if}-->
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{if $click_multi}--><div class="pgs cl mtm">$click_multi</div><!--{/if}-->