<!--{assign var='menuid' value=''}-->
<!--{assign var='usercpmod' value='yes'}-->
<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_head.tpl"}-->
<body>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu.tpl"}-->
<div id="page-index" class="page">
  <div class="zx">
    <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_search.tpl"}-->
	<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_menu.tpl"}-->
	
    <div class="zright">
	  

      <div class="topmenu"> 
	    <a href="<!--{$ucfile}-->?c=message" class='now'>会员来信</a>
		<a href="<!--{$ucfile}-->?c=outmsg">已发信件</a>
		<a href="<!--{$ucfile}-->?c=hi">收到问候</a>
		<a href="<!--{$ucfile}-->?c=hi&a=to">已发问候</a>
		<a href="<!--{$ucfile}-->?c=sysmsg">管理员来信</a>
	  </div>
      <div class="tb1">
        <div class="htitle"> 
		按条件筛选：		  
		  <a href='<!--{$ucfile}-->?c=message&type=unread'>未读信件</a> 
		  <a href='<!--{$ucfile}-->?c=message&type=topunread'>未读置顶</a> 
		  <a href='<!--{$ucfile}-->?c=message&type=bytime'>发件时间</a>
		收到信件 <span class="f_red"><!--{$total}--></span> 封 
		</div>
        <form class="bor" style="margin:0" id="myform" name="myform" method="post" action="<!--{$ucfile}-->?c=message&a=del&type=<!--{$type}-->">

		  <!--{foreach $message as $volist}-->
		  <div class="li1 border-b1">
			<table width="100%">
			  <tr>
				<td width="5" valign="top"><input name='id[]' type='checkbox' value='<!--{$volist.msgid}-->'></td>
				<td>
				  <div class="show-list padding-b10">
				    
					<!-- 头像 -->
					<div class="img-box1" style="margin-right:15px;">
					  <div class="img-box2"> <a href="<!--{$volist.homeurl}-->" target='_blank'><!--{avatar value=$volist.avatarurl width='60' height='74'}--></a> 
					  </div>
					  <span class="jh" style="display:none;"></span> 
					</div>

					<div class="infor-li" >
					  
					  <!-- 会员信息 -->
					  <div class="top-1"> 
						<a href="<!--{$volist.homeurl}-->" target='_blank'><!--{$volist.username}--></a>
						<span class="line1">&middot;</span><!--{if $volist.gender==1}-->男<!--{else}-->女<!--{/if}-->
						<span class="line1">&middot;</span><!--{$volist.age}--> 岁
						<span class="line1">&middot;</span><!--{$volist.height}--> CM
						<span class="line1">&middot;</span><!--{hook mod='var' item='marrystatus' type='text' value=$volist.marrystatus}-->
						<span class="line1">&middot;</span><!--{area type='text' value=$volist.provinceid}--> <!--{area type='text' value=$volist.cityid}-->
						<span class="line1">&middot;</span><!--{hook mod='var' item='education' type='text' value=$volist.education}--> 
						<span class="line1">&middot;</span><!--{hook mod='var' item='salary' type='text' value=$volist.salary}-->
					  </div>

					  <!-- 发信时间，操作 -->
					  <div class="mid-1">
						<p>
						<!--{if $volist.readflag==0}-->
						  <img src="<!--{$skinpath}-->cp/images/msg11.gif" title="未读信件" alt="未读信件" />
						<!--{else}-->
						   <!--{if $volist.replystatus == 1}-->
						   <img src="<!--{$skinpath}-->cp/images/msg13.gif" title="已回复信件" alt="已回复信件" />
						   <!--{else}-->
						   <img src="<!--{$skinpath}-->cp/images/msg12.gif" title="已读信件" alt="已读信件" />
						   <!--{/if}-->
						<!--{/if}-->

						<span>发件时间&nbsp;&nbsp;</span> <span class="fc-6"><!--{$volist.sendtime|date_format:"%Y-%m-%d %H:%M:%S"}-->&nbsp;&nbsp;
						<!--{if $volist.readflag == 1}-->
						<font color="green">(已读信件)</font>
						<!--{else}-->
						<font color="#999999">(未读信件)</font> 
						<!--{/if}-->
						
						</span> 
						</p>
						<p>
						<span class="right">
						
						<a href="javascript:void(0);" onclick="jbox_readbox('<!--{$volist.msgid}-->');">阅读信件</a>&nbsp;&nbsp;<span class="fc-6">|</span>&nbsp;&nbsp;
						<a href="<!--{$ucfile}-->?c=msglog&hid=<!--{$volist.hashid}-->&tauid=<!--{$volist.fromuserid}-->">打开记录</a>&nbsp;&nbsp;<span class="fc-6">|</span>&nbsp;&nbsp;
						<a href="<!--{$ucfile}-->?c=message&a=del&id[]=<!--{$volist.msgid}-->&<!--{$urlitem}-->" onClick="{if(confirm('确定要删除吗')){return true;} return false;}">删除</a>&nbsp;&nbsp;
						</span>
						<span class="fc-6">
						
						</span>
						
						</p>
					  </div>

					  <div class="bot-1"></div>
					</div>
				  </div>
				</td>
			  </tr>
			</table>
		  </div>
		  <div class="clear"></div>
		  <!--{foreachelse}-->
			<table cellpadding='5' cellspacing='5' border='0' class='tab'>
			  <tr>
			    <td align="center" class="hback">对不起，暂时没有数据！</td>
			  </tr>
			</table>
		  <!--{/foreach}-->
          
		  <!--{if !empty($message)}-->
		  <table width='90%' border='0' cellspacing='0' cellpadding='0' align='center' style="margin-left:20px;margin-top:10px;">
		    <tr>
			  <td align='left'><input name='chkAll' type='checkbox' id='chkAll' onClick="checkAll(this, 'id[]')" value='checkbox'>&nbsp;&nbsp;&nbsp;<input type="submit" value="删除选定" class="button_1" />
			  &nbsp;&nbsp;
			   <img src="<!--{$skinpath}-->cp/images/msg11.gif" /> 未读信件&nbsp;&nbsp;&nbsp;&nbsp;
			   <img src="<!--{$skinpath}-->cp/images/msg12.gif" /> 已读信件
			   &nbsp;&nbsp;&nbsp;&nbsp;
			   <img src="<!--{$skinpath}-->cp/images/msg13.gif" /> 已回复信件
			  </td>
		    </tr>
		  </table>
		  <!--{/if}-->
		  <!-- 分页 -->
		  <!--{if $showpage!=""}-->
		  <div class="page_digg" style="margin-top:15px"><!--{$showpage}--></div>
		  <!--{/if}-->

        </form>
      </div>
    </div>
    <div style="clear:both;"></div>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_footer.tpl"}-->
</body>
</html>
