spacecp_poke.htm
8.31 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!--{template common/header}-->
<!--{subtemplate home/spacecp_poke_type}-->
<!--{if !$_G[inajax]}-->
<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">$_G[setting][navs][4][navname]</a> <em>›</em> {lang say_hi}</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<h1 class="mt"><img alt="poke" src="{STATICURL}image/feed/poke.gif" class="vm" /> {lang poke}</h1>
<ul class="tb cl">
<li$actives[poke]><a href="home.php?mod=spacecp&ac=poke">{lang poke_received}</a></li>
<li$actives[send]><a href="home.php?mod=spacecp&ac=poke&op=send">{lang say_hi}</a></li>
</ul>
<!--{/if}-->
<!--{if $op == 'send' || $op == 'reply'}-->
<!--{if $_G[inajax]}-->
<h3 class="flb">
<em id="return_$_GET[handlekey]">{lang say_hi}</em>
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
</h3>
<!--{/if}-->
<form method="post" autocomplete="off" id="pokeform_{$tospace[uid]}" name="pokeform_{$tospace[uid]}" action="home.php?mod=spacecp&ac=poke&op=$op&uid=$tospace[uid]" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_GET[handlekey]');"{/if}>
<input type="hidden" name="referer" value="{echo dreferer()}">
<input type="hidden" name="pokesubmit" value="true" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="from" value="$_GET[from]" />
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
<div class="c {if $_G[inajax]}altw{else}mtm{/if}">
<div class="mbm xs2">
<!--{if $tospace[uid]}-->
<a href="home.php?mod=space&uid=$tospace[uid]" class="avt avts"><!--{avatar($tospace[uid],small)}--></a>
{lang to} <strong>{$tospace[username]}</strong> {lang say_hi}:
<!--{else}-->
{lang username}: <input type="text" name="username" value="" class="px" />
<!--{/if}-->
</div>
<ul class="poke cl">
<!--{loop $icons $k $v}-->
<li><label for="poke_$k"><input type="radio" name="iconid" id="poke_$k" value="{$k}" {if $k==3}checked="checked"{/if} />{$v}</label></li>
<!--{/loop}-->
</ul>
<input type="text" name="note" id="note" value="" size="30" onkeydown="ctrlEnter(event, 'pokesubmit_btn', 1);" class="px" style="width: 337px;" />
<p class="mbm xg1">{lang max_text_poke_message}</p>
</div>
<p class="o{if $_G[inajax]} pns{/if}">
<button type="submit" name="pokesubmit_btn" id="pokesubmit_btn" value="true" class="pn pnc"><strong>{lang send}</strong></button>
</p>
</form>
<script type="text/javascript">
function succeedhandle_{$_GET[handlekey]}(url, msg, values) {
if(values['from'] == 'notice') {
deleteQueryNotice(values['uid'], 'pokeQuery');
}
showCreditPrompt();
}
</script>
<!--{elseif $op == 'view'}-->
<!--{loop $list $key $subvalue}-->
<p class="pbm mbm bbda">
<!--{if $subvalue[fromuid]==$space[uid]}-->{lang me}<!--{else}--><a href="home.php?mod=space&uid=$subvalue[fromuid]" class="xi2">{$value[fromusername]}</a><!--{/if}-->:
<span class="xw0">
<!--{if $subvalue[iconid]}-->{$icons[$subvalue[iconid]]}<!--{else}-->{lang say_hi}<!--{/if}-->
<!--{if $subvalue[note]}-->, {lang say}: $subvalue[note]<!--{/if}-->
<span class="xg1"><!--{date($subvalue[dateline],'n-j H:i')}--></span>
</span>
</p>
<!--{/loop}-->
<div class="pbn ptm xg1 xw0">
<a href="home.php?mod=spacecp&ac=poke&op=reply&uid=$value[uid]&handlekey=pokehk_{$value[uid]}" id="a_p_r_$value[uid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang back_to_say_hello}</a><span class="pipe">|</span>
<a href="home.php?mod=spacecp&ac=poke&op=ignore&uid=$value[uid]" id="a_p_i_$value[uid]" onclick="showWindow('pokeignore', this.href, 'get', 0);">{lang ignore}</a>
<!--{if !$value['isfriend']}--><span class="pipe">|</span><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$value[uid]&handlekey=addfriendhk_{$value[uid]}" id="a_friend_$value[uid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang add_friend}</a> <!--{/if}-->
</div>
<!--{elseif $op == 'ignore'}-->
<h3 class="flb">
<em id="return_$_GET[handlekey]">{lang lgnore_poke}</em>
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
</h3>
<form method="post" autocomplete="off" id="friendform_{$uid}" name="friendform_{$uid}" action="home.php?mod=spacecp&ac=poke&op=ignore&uid=$uid" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_GET[handlekey]');"{/if}>
<input type="hidden" name="referer" value="{echo dreferer()}">
<input type="hidden" name="ignoresubmit" value="true" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="from" value="$_GET[from]" />
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
<div class="c altw mtm mbm">{lang determine_lgnore_poke}</div>
<p class="o pns">
<button type="submit" name="ignoresubmit_btn" class="pn pnc" value="true"><strong>{lang determine}</strong></button>
</p>
</form>
<!--{else}-->
<p class="tbmu">{lang you_can_reply_ignore}<span class="pipe">|</span><a href="home.php?mod=spacecp&ac=poke&op=ignore" id="a_poke" onclick="showWindow('allignore', this.href, 'get', 0);">{lang ignore_all}</a></p>
<!--{if $list}-->
<div id="poke_ul" class="xld xlda">
<!--{loop $list $key $value}-->
<dl id="poke_$value[uid]" class="bbda cl">
<dd class="m avt"><a href="home.php?mod=space&uid=$value[uid]"><!--{avatar($value[uid],small)}--></a></dd>
<dt id="poke_td_$value[uid]">
<p class="mbm">
<a href="home.php?mod=space&uid=$value[fromuid]" class="xi2">{$value[fromusername]}</a>:
<span class="xw0">
<!--{if $value[iconid]}-->{$icons[$value[iconid]]}<!--{else}-->{lang say_hi}<!--{/if}-->
<!--{if $value[note]}-->, {lang say}: $value[note]<!--{/if}-->
<span class="xg1"><!--{date($value[dateline], 'n-j H:i')}--></span>
</span>
</p>
<div class="pbn ptm xg1 xw0 cl">
<div class="y"><a href="javascript:;" onclick="view_poke($value[uid]);">{lang see_all_poke}</a></div>
<a href="home.php?mod=spacecp&ac=poke&op=reply&uid=$value[uid]&handlekey=pokereply" id="a_p_r_$value[uid]" onclick="showWindow('pokereply', this.href, 'get', 0);">{lang back_to_say_hello}</a><span class="pipe">|</span>
<a href="home.php?mod=spacecp&ac=poke&op=ignore&uid=$value[uid]&handlekey=pokeignore" id="a_p_i_$value[uid]" onclick="showWindow('pokeignore', this.href, 'get', 0);">{lang ignore}</a>
<!--{if !$value['isfriend']}--><span class="pipe">|</span><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$value[uid]&handlekey=addfriendhk_{$value[uid]}" id="a_friend_$value[uid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang add_friend}</a> <!--{/if}-->
</div>
</dt>
</dl>
<!--{/loop}-->
</div>
<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
<script type="text/javascript">
function view_poke(uid) {
ajaxget('home.php?mod=spacecp&ac=poke&op=view&uid='+uid, 'poke_td_'+uid);
}
<!--{if $_GET[fuid]}-->
view_poke($_GET[fuid]);
<!--{/if}-->
</script>
<!--{else}-->
<div class="emp">{lang no_new_poke}</div>
<!--{/if}-->
<script type="text/javascript">
function succeedhandle_pokereply(url, msg, values) {
if(parseInt(values['uid'])) {
$('poke_'+values['uid']).style.display = "none";
}
showCreditPrompt();
}
function errorhandle_pokeignore(msg, values) {
if(parseInt(values['uid'])) {
$('poke_'+values['uid']).style.display = "none";
}
}
function errorhandle_allignore(msg, values) {
if($('poke_ul')) {
$('poke_ul').innerHTML = '<p class="emp">{lang ignore_all_poke}</p>';
}
}
</script>
<!--{/if}-->
<!--{if !$_G[inajax]}-->
</div>
</div>
<div class="appl">
<!--{subtemplate common/userabout}-->
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->