<!--if($vd['totlerow'] == 0) {-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right" colspan="20">无任何记录</td>
  </tr>
</table>
<!--}-->
<form id="cform" name="form" method="post" action="index.php?m=mod_b2b&c=customer&a=ItemDeal" onsubmit="return Check();">
<table id="tbody"  border="0" cellspacing="0" cellpadding="0">
  <!--foreach($vd['items'] as $item) {-->
  <tr onmouseover="setoverbg(this)" onmouseout="setoutbg(this)">
    <td width="30px">
      <input type="checkbox" name="id[]" id="idchk_{$item['id']}" class="checkbox" value="{$item['id']}" onclick="CheckThis(this)" onFocus='this.blur()'></input>
    </td>
<!--//tbody-->
<td width="50px"><a href="index.php?m=mod_b2b&c=PM&comefrom={$item['comefrom']}&by=1&inrecycle={$vd['inrecycle']}" onclick="loadDisp(1)">{#ComeFrom($item['comefrom'])}</a></td>
<td width="200px"><nobr><a href="index.php?m=mod_b2b&c=PM&a=Detail&id={$item['id']}" ><!--if($item['isreaded'] == 1){--><font color="#cccccc">{$item['title']}</font><!--}else{-->{$item['title']}<!--}--></a></nobr></td>
<td width="35px"><a href="index.php?m=mod_b2b&c=PM&isreaded={$item['isreaded']}&by=1" ><!--if($item['isreaded'] == 1){--><font color="#cccccc">已读</font><!--}else{-->未读<!--}--></a></td>
<td width="85px"><!--if($item['msgto'] == 999999){--><font color="#0099cc"><!--if($item['msgcc'] == 'allunderling'){-->所有直属下家<!--}--><!--if($item['msgcc'] == 'all'){-->所有经销商<!--}--></font><!--}else{--><!--if($item['msgto'] < 0){--><font color="#ff00ff">员工({#DisplayCode((0-$item['msgto']),2)})</font><!--}else{--><font color="#ff0000">{#DisplayCode($item['msgto'],4)}</font><!--}--><!--}--></td>
<td width="80px"><a href="index.php?m=mod_b2b&c=PM&msgfrom={$item['msgfrom']}&by=1"><!--if($item['msgfrom'] < 0){--><font color="#ff00ff">员工({#DisplayCode((0-$item['msgfrom']),2)})</font><!--}else{--><font color="#ff0000">{#DisplayCode($item['msgfrom'],4)}</font><!--}--></a></td>
<td width="70px"><a href="index.php?m=mod_b2b&c=PM&msgtype={$item['msgtype']}&by=1">{$vd['tarray'][$item['msgtype']]}</a></td>
<td width="140px">{$item['createdate']}</td>
<!--//endtbody-->
    <td width="22px">
      <a href="index.php?m=mod_b2b&c=PM&a=detail&id={$item['id']}" title="查看短信"><img src="{$vd['sc']}images/icon_view.gif"/></a>
    </td>
    <td width="22px">
      <!--if($vd['inrecycle']==0){-->
      <img src="{$vd['sc']}images/icon_trash.gif" onclick="delSubmit({$item['id']},'delitems')" alt="删除用户,可以从回收恢复" style="cursor:pointer"/>
      <!--}else{-->
      <img src="{$vd['sc']}images/destroy.gif" onclick="delSubmit({$item['id']},'destroyitems')" alt="销毁用户,相关信息也会被销毁,无法恢复" style="cursor:pointer"/>
      <!--}-->
    </td>
    <td class="endtd"></td>
  </tr>
  <!--}-->
  
</table>
</form>
<input type="hidden" value="{$vd['totlepage']}" id="totlePage"/>
<input type="hidden" value="{$vd['thispage']}" id="thisPage"/>
<!--if($vd['inrecycle']==0){-->
<input type="hidden" value="{$vd['recycle_num']}" id="recycle_num"/>
<!--}-->