<!--{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">

	  <!-- 已收问候列表 -->
	  <!--{if $a eq 'run'}-->
      <div class="topmenu"> 
	  	<a href="<!--{$ucfile}-->?c=message">会员来信</a>
		<a href="<!--{$ucfile}-->?c=outmsg">已发信件</a>
		<a href="<!--{$ucfile}-->?c=hi" class='now'>收到问候</a>
		<a href="<!--{$ucfile}-->?c=hi&a=to">已发问候</a>
		<a href="<!--{$ucfile}-->?c=sysmsg">管理员来信</a> 
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> 按条件筛选：
		<a href='<!--{$ucfile}-->?c=hi&type=unread'>未读问候</a> <a href='<!--{$ucfile}-->?c=hi&type=read'>已读问候</a> <a href='<!--{$ucfile}-->?c=hi&type=bytime'>问候时间</a> 已收问候 <span class="f_red"><!--{$total}--> </span>个
		</div>
		<!-- list start -->
		<form action="<!--{$ucfile}-->?c=hi" method="post" name="myform" id="myform">
		<input type="hidden" name="a" id="a" value="" />
		<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='20%' align='center'>发件时间</th>
			<th align='center'>操作</th>
		  </tr>

		  <!--{foreach $hi as $volist}-->
		  <tr onMouseOver="msgoverColor(this,<!--{if $volist.status==0}-->'hback_msg_b_o'<!--{else}-->'hback_msg_o'<!--{/if}-->)" onMouseOut="msgoutColor(this,<!--{if $volist.status==0}-->'hback_msg_b'<!--{else}-->'hback_msg'<!--{/if}-->)">
		    
			<!-- ID选择 -->
			<td align='center' class='<!--{if $volist.status==0}-->hback_msg_b<!--{else}-->hback_msg<!--{/if}-->'>
			<input name='id[]' type='checkbox' value='<!--{$volist.hiid}-->' onClick="checkItem(this, 'chkAll')">
			<!--{if $volist.status == 0}-->
			  <img src="<!--{$tplpath}-->cp/images/msg11.gif" title="未读问候" alt="未读问候" />
			<!--{elseif $volist.status == 1}-->
			   <img src="<!--{$tplpath}-->cp/images/msg2.gif" title="已读问候" alt="已读问候" />
			<!--{/if}-->
			</td>
			<!-- 发件人 -->
			<td align='left' class='<!--{if $volist.status==0}-->hback_msg_b<!--{else}-->hback_msg<!--{/if}-->'><!--{$volist.levelimg}--> <a href="<!--{$volist.homeurl}-->" target="_blank"><!--{$volist.username}--></a></td>
			<!-- 发件人信息 -->
			<td align='left' class='<!--{if $volist.status==0}-->hback_msg_b<!--{else}-->hback_msg<!--{/if}-->'>
			<!--{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='<!--{if $volist.status==0}-->hback_msg_b<!--{else}-->hback_msg<!--{/if}-->'><!--{$volist.sendtime|date_format:"%Y/%m/%d %H:%M:%S"}--></td>
			<!-- 操作 -->
			<td align='center' class='<!--{if $volist.status==0}-->hback_msg_b<!--{else}-->hback_msg<!--{/if}-->'><a href='<!--{$ucfile}-->?c=hi&a=read&id=<!--{$volist.hiid}-->&<!--{$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('delreceive');$('#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" /> 已读&nbsp;&nbsp;&nbsp;&nbsp;
		    </td>
		  </tr>
		</table>

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

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

	  <!-- 阅读已收 -->
	  <!--{if $a eq 'read'}-->
      <div class="topmenu"> 
	  	<a href="<!--{$ucfile}-->?c=message">会员来信</a>
		<a href="<!--{$ucfile}-->?c=outmsg">已发信件</a>
		<a href="<!--{$ucfile}-->?c=hi" class='now'>收到问候</a>
		<a href="<!--{$ucfile}-->?c=hi&a=to">已发问候</a>
		<a href="<!--{$ucfile}-->?c=sysmsg">管理员来信</a> 
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> <b>阅读收到的问候语</b>  <a href="<!--{$ucfile}-->?c=hi&<!--{$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%'><!--{$hi.sendtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
		  </tr>
		  <!-- 发件人 -->
		  <tr>
			<td class='hback_b'>发件人 </td>
			<td align='left' class='hback'>
			<!--{$hi.levelimg}--><a href="<!--{$hi.homeurl}-->" target="_blank"><!--{$hi.username}--></a>

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

			</td>
		  </tr>
		  <!-- 发件内容 -->
		  <tr>
			<td class='hback_b'>问候语 </td>
			<td align='left' class='hback'><!--{$hi.message|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=hi&<!--{$comeurl}-->" class="btn_c3"><span>返回列表</span></a>&nbsp;
			<a href="javascript:void(0);" onclick="jbox_hibox('<!--{$hi.fromuserid}-->');" class="btn_c2"><span>向TA打招呼</span></a>&nbsp;
			<a href="###" onclick="jbox_writebox('<!--{$hi.fromuserid}-->');" class="btn_c2"><span>回复信件</span></a>&nbsp;		
			</td>
		  </tr>
		</table>
	  </div>
	  <!--{/if}-->


	  <!-- 已发问候语 -->
	  <!--{if $a eq 'to'}-->
      <div class="topmenu"> 
	  	<a href="<!--{$ucfile}-->?c=message">会员来信</a>
		<a href="<!--{$ucfile}-->?c=outmsg">已发信件</a>
		<a href="<!--{$ucfile}-->?c=hi">收到问候</a>
		<a href="<!--{$ucfile}-->?c=hi&a=to" class='now'>已发问候</a>
		<a href="<!--{$ucfile}-->?c=sysmsg">管理员来信</a> 
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> 按条件筛选：
		<a href='<!--{$ucfile}-->?c=hi&a=to&type=unread'>未读问候</a> <a href='<!--{$ucfile}-->?c=hi&a=to&type=read'>已读问候</a> <a href='<!--{$ucfile}-->?c=hi&a=to&type=bytime'>问候时间</a> 已发问候 <span class="f_red"><!--{$total}--> </span>个
		</div>
		<!-- list start -->
		<form action="<!--{$ucfile}-->?c=hi&a=to" method="post" name="myform" id="myform">
		<input type="hidden" name="a" id="a" value="" />
		<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 $hi as $volist}-->
		  <tr onMouseOver='overColor(this)' onMouseOut='outColor(this)'>
		    
			<!-- ID选择 -->
			<td align='center' class='hback'>
			<input name='id[]' type='checkbox' value='<!--{$volist.hiid}-->' onClick="checkItem(this, 'chkAll')">
			<!--{if $volist.status == 0}-->
			  <img src="<!--{$tplpath}-->cp/images/msg11.gif" title="未读问候" alt="未读问候" />
			<!--{elseif $volist.status == 1}-->
			   <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=hi&a=view&id=<!--{$volist.hiid}-->&<!--{$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('delto');$('#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" /> 已读&nbsp;&nbsp;&nbsp;&nbsp;
		    </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="topmenu"> 
	  	<a href="<!--{$ucfile}-->?c=message">会员来信</a>
		<a href="<!--{$ucfile}-->?c=outmsg">已发信件</a>
		<a href="<!--{$ucfile}-->?c=hi">收到问候</a>
		<a href="<!--{$ucfile}-->?c=hi&a=to" class='now'>已发问候</a>
		<a href="<!--{$ucfile}-->?c=sysmsg">管理员来信</a> 
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> <b>查看已发问候</b>  <a href="<!--{$ucfile}-->?c=hi&a=to&<!--{$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%'><!--{$hi.sendtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
		  </tr>
		  <!-- 发件人 -->
		  <tr>
			<td class='hback_b'>收件人 </td>
			<td align='left' class='hback'>
			<!--{$hi.levelimg}--><a href="<!--{$hi.homeurl}-->" target="_blank"><!--{$hi.username}--></a>

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

			</td>
		  </tr>
		  <!-- 发件内容 -->
		  <tr>
			<td class='hback_b'>问候语 </td>
			<td align='left' class='hback'><!--{$hi.message|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=hi&a=to&<!--{$comeurl}-->" class="btn_c3"><span>返回列表</span></a>&nbsp;
			<a href="javascript:void(0);" onclick="jbox_hibox('<!--{$hi.touserid}-->')" class="btn_c1"><span>再向TA打招呼</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>