<!--{assign var='menuid' value=''}-->
<!--{assign var='usercpmod' value='yes'}-->
<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_head.tpl"}-->
<body>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu_cp.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">会员来信</a>
		<a href="<!--{$ucfile}-->?c=outmsg" class='now'>已发信件</a>
		<a href="<!--{$ucfile}-->?c=hi">收到问候</a>
		<a href="<!--{$ucfile}-->?c=hi&a=to">已发问候</a>
		<a href="<!--{$ucfile}-->?c=sysmsg">管理员来信</a> 
	  </div>

	  <!-- 列表记录 -->
	  <!--{if $a eq 'run'}-->
      <div class="tb1 hy">
        <div class="htitle"> 按条件筛选：
		<a href='<!--{$ucfile}-->?c=outmsg&type=unread'>对方未读</a> <a href='<!--{$ucfile}-->?c=outmsg&type=read'>对方已读</a> <a href='<!--{$ucfile}-->?c=outmsg&type=bytime'>发件时间</a> 已发信件 <span class="f_red"><!--{$total}--> </span>封
		</div>
		<!-- list start -->
		<form action="<!--{$ucfile}-->?c=outmsg" method="post" name="myform" id="myform">
		<input type="hidden" name="a" id="a" value="del" />
		<table cellpadding='0' cellspacing='0' border='0' class='tb' width='100%'>
		  <tr>
			<th width='12%' align='center'>状态</th>
			<th width='15%' align='center'>收件人</th>
			<th width='45%' align='center'>收件人信息</th>
			<th width='18%' align='center'>发件时间</th>
			<th align='center'>操作</th>
		  </tr>

		  <!--{foreach $outmsg as $volist}-->
		  <tr onMouseOver='overColor(this)' onMouseOut='outColor(this)'>
		    
			<!-- ID选择 -->
			<td align='center' class='hback'>
			<input name='id[]' type='checkbox' value='<!--{$volist.msgid}-->' onClick="checkItem(this, 'chkAll')">
			<!--{if $volist.readflag==0}-->
			  <img src="<!--{$tplpath}-->cp/images/msg11.gif" title="对方未读" alt="对方未读" />
			<!--{else}-->
			   <img src="<!--{$tplpath}-->cp/images/msg2.gif" title="对方已读" alt="对方已读" />
			<!--{/if}-->
			</td>
			<!-- 收件人 -->
			<td align='left' class='hback'><!--{$volist.levelimg}--> <a href="<!--{$volist.homeurl}-->" target="_blank"><!--{$volist.username}--></a></td>
			<!-- 收件人信息 -->
			<td align='left' class='hback'>
			<!--{if $volist.gender==1}-->男<!--{else}-->女<!--{/if}-->&nbsp;&nbsp;<!--{$volist.age}-->岁&nbsp;&nbsp;
			<!--{hook mod='var' item='marrystatus' type='text' value=$volist.marrystatus}-->
			<!--{area type='text' value=$volist.provinceid}-->&nbsp;
			<!--{area type='text' value=$volist.cityid}-->&nbsp;
			<!--{hook mod='var' item='education' type='text' value=$volist.education}-->&nbsp;
			<!--{hook mod='var' item='salary' type='text' value=$volist.salary}-->
            </td>
			<!-- 发送时间 -->
			<td align='center' class='hback'><!--{$volist.sendtime|date_format:"%Y/%m/%d %H:%M:%S"}--></td>
			<!-- 操作 -->
			<td align='center' class='hback'><a href='<!--{$ucfile}-->?c=outmsg&a=view&id=<!--{$volist.msgid}-->&<!--{$urlitem}-->'>查看信件</a></td>
		  </tr>
		  <!--{foreachelse}-->
		  <tr>
			<td colspan="5" align="center" class='hback'>对不起，暂没有信件数据！</td>
		  </tr>
		  <!--{/foreach}-->
		</table>
        
		<!-- 删除选项 -->
		<div class="blank5"></div>
		<table width='95%' border='0' cellspacing='0' cellpadding='0' align='center'>
		  <tr>
		    <td height="10"></td>
		  </tr>
		  <tr>
		    <td align='left'>
		    <input name='chkAll' type='checkbox' id='chkAll' onClick="checkAll(this, 'id[]')" value='checkbox'> 
		    <input type="submit" name="btn_delete" id="btn_delete" value="删除选定" onClick="{if(confirm('确定要删除吗？')){$('#a').val('del');$('#myform').submit();return true;}return false;}"  class="button_1" style="cursor:pointer;" />
			&nbsp;&nbsp;
			<img src="<!--{$tplpath}-->cp/images/msg11.gif" /> 未读&nbsp;&nbsp;&nbsp;&nbsp;
			<img src="<!--{$tplpath}-->cp/images/msg2.gif" /> 已读
		    </td>
		  </tr>
		</table>

		</form>
		<!-- list end -->
		<!--{if $showpage!=""}-->
		<div class="page_digg" style="margin-top:15px"><!--{$showpage}--></div>
		<!--{/if}-->

      </div>
	  <!--{/if}-->

	  <!-- 查看信件 -->
	  <!--{if $a eq 'view'}-->
      <div class="tb1 hy">
        <div class="htitle"> <b>查看已发信件</b>  <a href="<!--{$ucfile}-->?c=outmsg&<!--{$comeurl}-->">返回列表</a> 
		</div>

		<table cellpadding='3' cellspacing='3' border='0' class='tab'>
		  <!-- 发件时间 -->
		  <tr>
			<td class='hback_b' width='15%'>发件时间 </td>
			<td align='left' class='hback' width='85%'><!--{$outmsg.sendtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
		  </tr>
		  <!-- 发件人 -->
		  <tr>
			<td class='hback_b'>收件人 </td>
			<td align='left' class='hback'>
			<!--{$outmsg.levelimg}--><a href="<!--{$outmsg.homeurl}-->"><!--{$outmsg.username}--></a>

			（<!--{if $outmsg.gender==1}-->男<!--{else}-->女<!--{/if}-->&nbsp;&nbsp;<!--{$outmsg.age}-->岁&nbsp;&nbsp;
			<!--{hook mod='var' item='marrystatus' type='text' value=$outmsg.marrystatus}-->
			<!--{area type='text' value=$outmsg.provinceid}-->&nbsp;
			<!--{area type='text' value=$outmsg.cityid}-->&nbsp;
			<!--{hook mod='var' item='education' type='text' value=$outmsg.education}-->&nbsp;
			<!--{hook mod='var' item='salary' type='text' value=$outmsg.salary}-->）

			</td>
		  </tr>
		  <!-- 发件内容 -->
		  <tr>
			<td class='hback_b'>信件内容 </td>
			<td align='left' class='hback'><!--{$outmsg.content|nl2br}--><br /></td>
		  </tr>
		</table>
		<table width='95%' border='0' cellspacing='2' cellpadding='2' align='center'>
		  <tr>
		    <td height="10"></td>
		  </tr>
		  <tr>
		    <td align='center'>
			<a href="<!--{$ucfile}-->?c=outmsg&<!--{$comeurl}-->" class="btn_c3"><span>返回列表</span></a>
			</td>
		  </tr>
		</table>


	  </div>
	  <!--{/if}-->

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