{load(fhead)}
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="{$vd['root']}index.php?m=mod_b2b&a=Home">直销商管理系统</a> >> 服务与支持 >> 平台内部短信</span></div>
	
	<div id="hearder"><span>收到的短信列表</span></div>
	<form name="messenger" method="post" Action="index.php?m=mod_agent&c=Messenger&a=Add&a=MessengerDel">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<table width="100%" cellspacing=0 cellpadding=0 border=0 class="table">
		<tr>
		<td width="5%" class="heardertop1">&nbsp;</td>
		<td width="16%" class="heardertop1">发送时间</td>
		<td width="35%" class="heardertop1">短信标题</td>
		<td width="20%" class="heardertop1">发送人</td>
		<td width="8%" class="heardertop1">状态</td>
		<td width="16%" class="heardertop1">短信管理</td>
		</tr>
		<!--foreach($vd['items'] as $item) {-->
		<tr class="stline" onmouseover="this.className='nd'" onmouseout="this.className='stline'">
		<td><input type="checkbox" name="id[]" value="{$item['id']}"></td>
		<td>{$item['createdate']}</td>
		<td align=left><a href="index.php?m=mod_agent&c=Messenger&a=detail&id={$item['id']}">{$item['title']}</a></td>
		<td>
			<!--if($item['msgfrom'] < 0){-->
      <font color="#ff00ff">员工({#DisplayCode((0-$item['msgfrom']),2)})</font>
      <!--}else{-->
          <!--if($item['msgfrom'] == $vd['agent'][4]){-->
            <font color="#0000ff"><!--if($item['msgfrom']==0){-->平台管理员<!--}else{-->上家({#DisplayCode($item['msgfrom'],4)})<!--}--></font>
          <!--}else{-->
            <font color="#ff0000">{#DisplayCode($item['msgfrom'],4)}</font>
          <!--}-->
      <!--}-->
		</td>
		<td>
			<!--if($item['myreaded'] > 0 || ($item['isreaded'] == 1 && $item['msgto'] == $vd['agent'][7])) {-->
			<font color=#0000ff>已读</font>
			<!--}else{-->
			<font color=#ff0000>未读</font>
			<!--}-->
		</td>
		<td><a href="index.php?m=mod_agent&c=Messenger&a=detail&id={$item['id']}"><img src="{$vd['content']}images/icon_ck.gif" align="absmiddle" border=0>查看</a> <a href="index.php?m=mod_agent&c=Messenger&a=detail&reply=1&id={$item['id']}"><img src="{$vd['content']}images/icon_hf.gif" align="absmiddle" border=0>回复</a></td>
		</tr>
		<!--}-->
		</table>
	</td>
	</tr>
	</table>
	<div id="page"><div id="add"><input type="hidden" name="SearchString" value=""><input name="button1" type="button" class="buttonadd" value="发送" onclick="javascript:location.href='index.php?m=mod_agent&c=Messenger&a=Add';"> <input name="submit" type="submit" class="buttondel" value="删除"> <input name="selectall" type="button" class="buttonnor" value="全选" onClick=CheckAll(this.form)> <input name="selectother" type="button" class="buttonnor" value="反选" onClick=CheckOthers(this.form)></div>
		{load(fpage)}
	</div>
	</form>
<script type="text/javascript"> 
function CheckOthers(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			if (e.checked==false)
			{
				e.checked = true;
			}
			else
			{
				e.checked = false;
			}
	}
}

function CheckAll(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			e.checked = true
	}
}
</script>	
</body>
</html>
