<?php exit("Powered by www.wikin.cn"); ?>
<!--{eval $_G['home_tpl_titles'] = array('{lang pm}');}-->
<!--{template common/header}-->
<!--{if in_array($filter, array('privatepm','announcepm')) || in_array($_GET[subop], array('view','viewg'))}-->
<!--{if in_array($filter, array('privatepm','announcepm'))}-->
<meta http-equiv="refresh" content="20">
<div class="my_place b_all"><a href="forum.php?mod=guide&view=hot">{lang homepage}</a><em class="wqiconfont wqicon-youyou"></em>{lang pm_center}</div>
<!-- main pmlist start -->
<div class="subname_list">
    <ul>
        <li <!--{if $filter=='privatepm'}--> class="on"<!--{/if}-->>
            <a href="home.php?mod=space&do=pm&filter=privatepm">
                {lang private_pm}
            </a>
        </li>
        <li <!--{if $filter=='announcepm'}--> class="on"<!--{/if}-->>
            <a href="home.php?mod=space&do=pm&filter=announcepm">
                {lang announce_pm}
            </a>
        </li>
    </ul>
</div>
<!--{if $list}-->
<div class="pmbox">
    <ul>
        <!--{loop $list $key $value}-->
        <li class="b_bottom">
            <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="avatar_img"><img style="height:36px;width:36px;" 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>
                <div class="cl">
                    <!--{if $value[new]}--><span class="num">$value[pmnum]</span><!--{/if}-->
                    <!--{if $value[touid]}-->
                    <span class="name">{$value[tousername]}</span>
                    <!--{elseif $value['pmtype'] == 2}-->
                    <span class="name">$value['firstauthor']</span>
                    <!--{/if}-->
                </div>
                <div class="cl grey">
                    <span class="time"><!--{date($value[dateline], 'u')}--></span>
                    <span class="ov_one"><!--{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>
<!--{elseif $grouppms}-->
<div class="pmbox">
    <ul>
        <!--{loop $grouppms  $grouppm}-->
        <li class="b_bottom">
            <a href="home.php?mod=space&do=pm&subop=viewg&pmid=$grouppm[id]">
                <div class="avatar_img"><img style="height:36px;width:36px;" src="static/image/common/{if $grouppm[author]}annpm{else}systempm{/if}.png" /></div>
                <div class="cl">
                    <!--{if $grouppm[author]}-->
                    $grouppm[author]
                    <!--{else}-->
                    {lang system}
                    <!--{/if}-->
                </div>
                <div class="cl grey">
                    <span class="time"><!--{date($grouppm[dateline], 'u')}--></span>
                    <span class="ov_one" >$grouppm[message]</span>
                </div>
            </a>
        </li>
        <!--{/loop}-->
    </ul>
</div>
<!--{else}-->
<p class="no_key">{lang no_corresponding_pm}</p>
<!--{/if}-->
<!-- main pmlist end -->

<!--{elseif in_array($_GET[subop], array('view','viewg'))}-->

<div class="my_place b_bottom"><a href="home.php?mod=space&do=pm">{$Tlang['2ba413127f2431b2']}</a><em class="wqiconfont wqicon-youyou"></em>
    <!--{if $_GET[subop]=='view'}-->
    <meta http-equiv="refresh" content="20">
    <!--{if $touid}-->
    <a href="home.php?mod=space&uid=$touid&do=profile">{$Tlang['f04db6d711e702d8']}{$tousername}{$Tlang['e9caf1ec4e6beb1c']}</a>
    <!--{else}-->
    <!--{if $list}-->
    $list[0]['subject']
    <!--{else}-->
    {lang chatpm}
    <!--{/if}-->
    <!--{/if}-->
    <!--{elseif $_GET[subop]=='viewg'}-->
    <!--{if $grouppm[author]}-->
    <a href="home.php?mod=space&uid=$grouppm[authorid]&do=profile">$grouppm[author]</a>
    <!--{else}-->
    {lang system}
    <!--{/if}-->
    <!--{/if}-->
</div>
<!-- main viewmsg_box start -->
<div class="wp">
    <!--{if !$list&&!$grouppm}-->
    <div class="msgbox_no b_m">{lang no_corresponding_pm}</div>
    <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="message_reply b_dark">
            <div class="reply reply_txt"><div class="reply_input b_dark_all"><input type="text" value=""autocomplete="off" id="replymessage" name="message"></div></div>
            <div class="reply y reply_b"><button name="pmsubmit" id="pmsubmit" class="formdialog button2" value="" />{lang reply}</button></div>
        </div>
    </form>
    <!--{elseif $list}-->
    <div class="msgbox b_m">
        <!--{loop $list $key $value}-->
        <!--{subtemplate home/space_pm_node}-->
        <!--{/loop}-->
        $multi
    </div>
    <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="message_reply b_dark">
            <div class="reply reply_txt"><div class="reply_input b_dark_all"><input type="text" value=""autocomplete="off" id="replymessage" name="message"></div></div>
            <div class="reply y reply_b"><button name="pmsubmit" id="pmsubmit" class="formdialog button2" value="" />{lang reply}</button></div>
        </div>
    </form>

    <!--{elseif $grouppm}-->
    <!--{eval $grouppm[message]= str_replace(array(" ","��","&nbsp;","\r"), '', $grouppm[message]);}-->
    <div class="self_msg cl bg_white">
        <div class="avatar_img"><img class="self_view" src="static/image/common/{if $grouppm[author]}annpm{else}systempm{/if}.png" /></div>
        $grouppm[message]
        <span class="time_self"><!--{date($grouppm[dateline], 'u')}--></span>
    </div>
    <!--{/if}-->
</div>
<!-- main viewmsg_box end -->

<!--{/if}-->

<!--{else}-->
<div class="bm_c">
    {lang user_mobile_pm_error}
</div>
<!--{/if}-->
<script>
</script>
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->
