space_pm.htm
3.84 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
<!--{eval $_G['home_tpl_titles'] = array('{lang pm}');}-->
<!--{template common/header}-->
<!--{if in_array($filter, array('privatepm')) || in_array($_GET[subop], array('view'))}-->
<!--{if in_array($filter, array('privatepm'))}-->
<!-- header start -->
<header class="header">
<div class="nav">
<div class="icon_edit y"><a href="home.php?mod=spacecp&ac=pm"><span class="none">{lang send_pm}</span></a></div>
<a href="home.php?mod=space&uid=$_G[uid]&do=profile&mycenter=1" class="z"><img src="{STATICURL}image/mobile/images/icon_back.png" /></a>
<span class="category"><span class="name">{lang pm_center}</span>
</span>
</div>
</header>
<!-- header end -->
<!-- main pmlist start -->
<div class="pmbox">
<ul>
<!--{loop $list $key $value}-->
<li>
<div class="avatar_img"><img style="height:32px;width:32px;" src="<!--{if $value[pmtype] == 2}-->{STATICURL}image/common/grouppm.png<!--{else}--><!--{avatar($value[touid] ? $value[touid] : ($value[lastauthorid] ? $value[lastauthorid] : $value[authorid]), small, true)}--><!--{/if}-->" /></div>
<a href="{if $value[touid]}home.php?mod=space&do=pm&subop=view&touid=$value[touid]{else}home.php?mod=space&do=pm&subop=view&plid={$value['plid']}&type=1{/if}">
<div class="cl">
<!--{if $value[new]}--><span class="num">$value[pmnum]</span><!--{/if}-->
<!--{if $value[touid]}-->
<!--{if $value[msgfromid] == $_G[uid]}-->
<span class="name">{lang me}{lang you_to} {$value[tousername]}{lang say}:</span>
<!--{else}-->
<span class="name">{$value[tousername]} {lang you_to}{lang me}{lang say}:</span>
<!--{/if}-->
<!--{elseif $value['pmtype'] == 2}-->
<span class="name">{lang chatpm_author}:$value['firstauthor']</span>
<!--{/if}-->
</div>
<div class="cl grey">
<span class="time"><!--{date($value[dateline], 'u')}--></span>
<span><!--{if $value['pmtype'] == 2}-->[{lang chatpm}]<!--{if $value[subject]}-->$value[subject]<br><!--{/if}--><!--{/if}--><!--{if $value['pmtype'] == 2 && $value['lastauthor']}--><div style="padding:0 0 0 20px;">......<br>$value['lastauthor'] : $value[message]</div><!--{else}-->$value[message]<!--{/if}--></span>
</div>
</a>
</li>
<!--{/loop}-->
</ul>
</div>
<!-- main pmlist end -->
<!--{elseif in_array($_GET[subop], array('view'))}-->
<!-- header start -->
<header class="header">
<div class="nav">
<a href="home.php?mod=space&do=pm" class="z"><img src="{STATICURL}image/mobile/images/icon_back.png" /></a>
<span>{lang viewmypm}</span>
</div>
</header>
<!-- header end -->
<!-- main viewmsg_box start -->
<div class="wp">
<div class="msgbox b_m">
<!--{if !$list}-->
{lang no_corresponding_pm}
<!--{else}-->
<!--{loop $list $key $value}-->
<!--{subtemplate home/space_pm_node}-->
<!--{/loop}-->
$multi
<!--{/if}-->
</div>
<!--{if $list}-->
<form id="pmform" class="pmform" name="pmform" method="post" action="home.php?mod=spacecp&ac=pm&op=send&pmid=$pmid&daterange=$daterange&pmsubmit=yes&mobile=2" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
<!--{if !$touid}-->
<input type="hidden" name="plid" value="$plid" />
<!--{else}-->
<input type="hidden" name="touid" value="$touid" />
<!--{/if}-->
<div class="reply b_m"><input type="text" value="" class="px" autocomplete="off" id="replymessage" name="message"></div>
<div class="reply b_m"><input type="button" name="pmsubmit" id="pmsubmit" class="formdialog button2" value="{lang reply}" /></div>
</form>
<!--{/if}-->
</div>
<!-- main viewmsg_box end -->
<!--{/if}-->
<!--{else}-->
<div class="bm_c">
{lang user_mobile_pm_error}
</div>
<!--{/if}-->
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->