<?php include pTemplate("header");?>
<link rel="stylesheet" type="text/css" href="<?php echo PUBURL;?>css/message.css" />
     <div id="loadingbar"></div>
     
<div id="main" class="mainPanel wd _left">
    <div class="company">
        <aside class="left_panel" un="leftNavBar">
            <ul class="sidetd">
                <?php echo $left_menu_html;?>
            </ul>
        </aside>
		<div class="right_panel">
			<div class="content_block">
				<h1 style="margin:0;position:relative" class="group_read">站内信
		        	<div style="position:absolute; font-size:12px; font-weight:normal; left:70px; top:3px;" class="title">
		         		<a node-type="postMsg" suda-uatrack="key=tblog_messages_behavior&amp;value=send_button" suda-data="key=message_anonymous_send_page&amp;value=message_anonymous_send_page" href="<?php echo SITEURL;?>?mod=system&do=setinfo&c=sendmsg" class="W_btn_b send_msg_btn">
		         			<span><em class="icon_mes"></em>发站内信</span>
		         		</a>
		        	</div>
		        </h1>
		       
				<p class="message_num" node-type="msg_num">共<?php echo count($Mymessage);?>条站内信</p>
			</div>
		    
			<div name="status" class="content_table">		
				<div class="message_wrap" node-type="message_list_box" style="width: 600px;">
				    <div class="private_list_box"> 
				    	<div node-type="messageList" node-data="pageNumber=1">
				    		<?php $i=0;?>
							<?php foreach((array)$msg as $key=>$item) {?>
							<dl class="private_list clearfix " node-type="messageUnit" uid="<?php if($item['recvuid']==$_CO['uid']) { ?><?php echo $item['senduid'];?><?php } else { ?><?php echo $item['recvuid'];?><?php } ?>" senduid="<?php echo $_CO['uid'];?>" authcode="<?php echo $item['recvuidauthcode'];?>">
								<dd class="close" action-type="delMessage" action-data="uid=<?php echo $item['senduid'];?>&amp;userName=<?php echo $item['username'];?>">
									<a class="hover W_ico16" href="javascript:alert('删除功能暂未启用'); void(0);"></a>
								</dd>
								<dt class="face">
									<a href="javascript:void(0);" class="im_status">
										<img alt="<?php echo $item['username'];?>" usercard="id=<?php echo $item['senduid'];?>" src="<?php echo SITEURL;?>dat/upload/user/<?php echo $item['username'];?>_<?php echo $item['senduid'];?>/<?php echo $item['username'];?>_48.jpg" onerror="this.src='<?php echo SITEURL;?>public/images/f_m_120.gif'" width="50" height="50">
						                <!-- <?php if($item['newmsg'] !=0) { ?> -->
						                <span class="pri_num"><em><?php echo $item['newmsg'];?></em></span>
						                <!-- <?php } ?> -->
					                </a>
					            </dt>
								<dd class="Mcontent">
									<p class="Mcontent_">
										<a class="user_name S_func1" title="<?php echo $item['username'];?>" href="javascript:void(0);"><?php echo $item['realname'];?></a>
										 ：
										 <a href="javascript:void('');" ><?php $subjecti=$item['msg'][0];?><?php echo $subjecti['content'];?></a>
									</p>
									<!-- 附件区 -->
									<!-- /附件区 -->
									<p class="info S_2"> 
										<span> 
											<a href="javascript:void('');">共<?php echo $item['num'];?>条私信</a> 
											<i class="W_vline">|</i>
											<a href="javascript:void('');">快速回复</a> 
										</span>
										<?php $time=$item['msg'][$i][posttime]?>
										<i class="date"><?php echo date('m-d H:s', $time)?></i> 
										来自<a  href="javascript:void('');"><?php echo $item['username'];?></a>
										<em class="hover">
											<i class="W_vline">|</i>
											<a  href="javascript:void('');">回复</a>
										</em>
									</p>
								</dd>
							</dl>
							<?php $i++?>
						 	<?php }?>
				
						</div>
				    </div>
				    
				    <div class="message_bottom_ac">
						<div class="message_allbtn">
							<a suda-uatrack="key=tblog_messages_behavior&amp;value=mark_as_read" href="javascript:;" node-type="allMsgReaded" class="W_btn_a"><span>标记本页为已读</span></a>
						</div>
					</div>
				</div>
			</div>
		
			<div class="content_table">
				<div class="clr"></div>
			</div>
		</div>
    </div>
</div>

<?php include pTemplate("footer");?>

</body>
</html>