<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="{$vd['sc']}css/main.css"/>
</head>
<body>
<div id="titleDiv">
<div style="float:left"><a href="index.php?a=home"><img src="{$vd['sc']}images/home.png" style="vertical-align:middle" border="0"/></a></div><div style="float:left;padding-top:8px;padding-left:3px;"><a href="index.php?a=home" title="回到后台首页"><font color="#000">桌面</font></a> <span style="font-size:7px;">>></span> <a href="index.php?m=mod_b2b&c=PM" title="站内信息列表"><font color="#000">站内信息列表</font></a> <span style="font-size:7px;">>></span> <span style="font-size:12px;">站内信息详细</span></div>
<div style="float:right;"><a href="index.php?m=mod_home&a=Help&t=admin_b2b_pm_detail" onFocus="this.blur()" title="查看站内信息相关帮助"><img src="{$vd['sc']}images/help.gif" style="vertical-align:middle" border="0"/></a></div>
</div>
<div id="content" class="cwarpper">
<div class="cbodyHead"></div>
<table border="1" class="ctable" bordercolor="#86B9D6">
  <tr>
    <td style="padding-left:0px">
      <!--$msg = $vd['msg'];-->
      <div class="msgbody">
        <div class="msginfo">
          <b><font color="#0099cc">{#DisplayCode($msg['msgfrom'], 4)}</font></b> 创建于 {$msg['createdate']}
        </div>
        <div class="msgsubject">
          {$msg['title']}
           接收者：<font color="#0000ff"><b><!--if($msg['msgto'] > 0){-->客户({#DisplayCode($msg['msgto'])})<!--}else{-->系统<!--}--></b></font><!--if($vd['str'] == '投诉'){-->  订单号：<a href="index.php?m=mod_b2b&c=Order&a=detail&ubzordno={$msg['ordno']}"><u><font color="#0000ff"><b>{$msg['ordno']}</b></font></u></a>  希望：<font color="#0000ff"><b>{$msg['hope']}</b></font>
          <!--}-->
        </div>
        <div class="msgcontent">
          <!--echo nl2br($msg['content']);-->
        </div>
      </div>
      
      <!--foreach($vd['items'] as $item) {-->
      <div class="replybody">
        <div class="msginfo">
          <font color="#0000ff"><b>{#DisplayCode($item['msgfrom'], 4)}</b></font> 创建于 {$item['createdate']}
        </div>
        <div class="msgcontent">
          <!--echo nl2br($item['content']);-->
        </div>
      </div>
      <!--}-->
    </td>
  </tr>
</table>
<!--$item=$vd['msg'];-->
<!--if($vd['msgto'] != 999999){-->
<form method="post" action="index.php?m=mod_b2b&c=PM&a=Save&parentid={$item['id']}" id="cform">
  <table border="1" class="ctable" bordercolor="#86B9D6">
    <tr>
      <td align="center" colspan="2" class="listhead" style="height:30px"><b>站内短信回复</b></td>
    </tr>
    <tr>
      <td class="buylt">主题：</td>
      <td class="buyrt"><input type="text" class="myinput" style="font-weight:normal" id="title" name="title" value="Re:{$item['title']}"/></td>
    </tr>
    <tr>
      <td class="buylt">对方编号：</td>
      <td class="buyrt">
        <input type="hidden" name="msgtype" value="{$msg['msgtype']}"/>
        <!--if($msg['comefrom'] == 1){-->
        <input type="hidden" name="msgto" value="3"/>
        <input type="text" class="myinput" style="font-weight:normal" name="underlingid" value="{$vd['msgto']}"/> 如果发给系统，编号写0即可，否则写对方的编号
        <!--}else{-->
        <input type="hidden" name="msgto" value="5"/>
        <input type="hidden" name="comefrom" value="{$msg['comefrom']}"/>
        <input type="text" class="myinput" style="font-weight:normal" name="cid" value="{$vd['msgto']}"/> 如果发给系统，编号写0即可，否则写对方的编号
        <!--}-->
      </td>
    </tr>
    
    <tr>
      <td class="buylt">回复内容：</td>
      <td class="buyrt">
      <textarea name="content" wrap="VIRTUAL" cols="80" rows="8" scrolling="yes" class="mytextarea"></textarea>
      </td>
    </tr>
    <!--if($vd['str'] == '投诉'){-->
    <tr>
    <td class="buylt">改变状态：</td>
    <td class="buyrt">
      <input type="hidden" name="msgdirect" value="1" />
      <select name="msgstate">
        <option value="1">未处理</option>
        <option value="2">处理中</option>
        <option value="3">已处理</option>
      </select>
    </td>
    </tr>
    <!--}-->
    <!--if($vd['str'] == '汇款'){-->
    <tr>
    <td class="buylt">改变状态：</td>
    <td class="buyrt">
      <select name="msgstate">
        <option value="1">未处理</option>
        <option value="3">已处理</option>
      </select>
    </td>
    </tr>
    <!--}-->
    <tr>
      <td class="buylt"></td>
      <td class="buyrt" style="height:50px;"><input type="submit" id="mysubmit" value="马上回复" class="button"> <input type="reset" value="重新填写" class="button"/></td>
    </tr>
  </table>
</form>
<!--}-->

<div class="cbodyFoot"></div>
</div>
<div id="opcontent" style="display:none">
  <div class="optxt">
  </div>
</div>
<script type="text/javascript">
  var ctablenum = 2;
</script>
<script src="{$vd['sc']}js/content.js" type="text/javascript"></script>
</body>
</html>
