
<?php 
$k = array (
  'name' => 'nocache',
  '_template' => '
<div id=\\"goods_comment\\" class=\\"colbox\\"> <a name=\\"goods_comment\\"></a>
  <h3>商品评论</h3>
  <div class=\\"colboxcontent\\">
    <?php if ($this->_var[\'msg_list\'][\'data\']): ?>
    <table cellspacing=\\"0\\">
      <?php $_from = $this->_var[\'msg_list\'][\'data\']; if (!is_array($_from) && !is_object($_from)) { settype($_from, \'array\'); }; $this->push_vars(\'\', \'msg\');if (count($_from)):
    foreach ($_from AS $this->_var[\'msg\']):
?>
      <tr>
        <th rowspan=\\"2\\" class=\\"photo\\"> <div class=\\"avatar\\">
            <div class=\\"avatar-link\\"> <img src=\\"<?php echo $this->_var[\'msg\'][\'user\'][\'avatar\']; ?>\\" alt=\\"<?php echo htmlspecialchars($this->_var[\'msg\'][\'user\'][\'user_name\']); ?>\\" /> </div>
            <div class=\\"avatar-menu\\">
              <ul>
                <li><img src=\\"themes/store/skin/blueglass/images/avatar_ec.gif\\" />
                  <?php if ($this->_var[\'msg\'][\'user\'][\'has_store\']): ?>
                  <a href=\\"./?app=store&amp;store_id=<?php echo $this->_var[\'msg\'][\'user\'][\'user_id\']; ?>\\" target=\\"_blank\\"><?php echo $this->_var[\'msg\'][\'user\'][\'user_name\']; ?> 的店铺</a>
                  <?php else: ?>
                  <span style=\\"color: #666;\\"><?php echo $this->_var[\'msg\'][\'user\'][\'user_name\']; ?> 的店铺</span>
                  <?php endif; ?>
                </li>
                <li><img src=\\"themes/store/skin/blueglass/images/avatar_uchome.gif\\" /> <?php if ($this->_var[\'msg\'][\'user\'][\'uchome_url\']): ?> <a href=\\"<?php echo $this->_var[\'msg\'][\'user\'][\'uchome_url\']; ?>\\" target=\\"_blank\\"><?php echo $this->_var[\'msg\'][\'user\'][\'user_name\']; ?> 的个人空间</a> <?php else: ?> <span style=\\"color: #666;\\"><?php echo $this->_var[\'msg\'][\'user\'][\'user_name\']; ?> 的个人空间</span> <?php endif; ?> </li>
              </ul>
            </div>
          </div></th>
        <th class=\\"name\\"><span class=\\"buyother\\">
          <?php if ($this->_var[\'msg\'][\'bought\']): ?>
          [ 此顾客购买过该商品 ]
          <?php else: ?>
          [ 此顾客没有购买过该商品 ]
          <?php endif; ?>
          </span><?php echo $this->_var[\'msg\'][\'buyer_name\']; ?> <span class=\\"time\\"><?php echo $this->_var[\'msg\'][\'formated_add_time\']; ?></span></th>
      </tr>
      <tr>
        <td class=\\"content\\"><p><?php echo nl2br(htmlspecialchars($this->_var[\'msg\'][\'message\'])); ?></p>
          <?php if ($this->_var[\'msg\'][\'reply\']): ?>
          <div class=\\"recontent\\">
            <h4 class=\\"name\\">掌柜回复:</h4>
            <?php echo nl2br(htmlspecialchars($this->_var[\'msg\'][\'reply\'])); ?> </div>
          <?php endif; ?>
        </td>
      </tr>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </table>
    <div class=\\"pagechanger\\"> <?php echo $this->html_page_links(array(\'from\'=>$this->_var[\'msg_list\'][\'info\'],\'url\'=>$this->_var[\'url_format\'])); ?> </div>
    <?php else: ?>
    <p class=\\"not_find\\">暂无评论</p>
    <?php endif; ?>
  </div>
  <div class=\\"colboxcontent\\">
    <form action=\\"index.php\\" method=\\"post\\">
      <table border=\\"0\\">
        <?php if ($_SESSION[\'user_id\'] == 0): ?>
        <tr>
          <td colspan=\\"4\\"><textarea name=\\"message\\" cols=\\"110\\" rows=\\"4\\" id=\\"message\\"></textarea></td>
        </tr>
        <tr>
          <td width=\\"200\\">用户名: <input type=\\"text\\" name=\\"user_name\\" class=\\"sinput\\" /></td>
          <td width=\\"200\\">密码: <input type=\\"password\\" name=\\"password\\" class=\\"sinput\\" /></td>
          <?php if ($this->_var[\'need_captcha\']): ?>
          <td width=\\"200\\">
            验证码: 
            <input id=\\"captcha\\" type=\\"text\\" name=\\"captcha\\" maxlength=\\"4\\" size=\\"6\\" class=\\"sinput\\" />
            <img src=\\"about:blank\\" style=\\"display:none;cursor:pointer\\" id=\\"captcha-img\\" title=\\"看不清图片？点击这里。\\" onclick=\\"changeCaptcha(this)\\" onload=\\"this.style.display=\'inline\'\\" />
          </td>
          <?php endif; ?>
          <?php if ($this->_var[\'lang_send_comment_feed\']): ?>
          <td width=\\"116\\">
          <input type=\\"checkbox\\" name=\\"seed_feed\\" value=\\"1\\" id=\\"seed_feed\\" <?php if ($this->_var[\'feed_status\'] [ 1 ]): ?>checked=\\"checked\\" <?php endif; ?>/>
          <label for=\\"seed_feed\\"><?php echo $this->_var[\'lang_send_comment_feed\']; ?></label>
          </td>
          <?php endif; ?>
          <td>
            <input type=\\"submit\\" value=\\"发表评论\\" class=\\"sbtn\\" />
            <input type=\\"hidden\\" name=\\"app\\" value=\\"message\\" />
            <input type=\\"hidden\\" name=\\"act\\" value=\\"add\\" />
            <input type=\\"hidden\\" name=\\"goods_id\\" value=\\"<?php echo $this->_var[\'goods\'][\'goods_id\']; ?>\\" />
            <input type=\\"hidden\\" name=\\"seller_id\\" value=\\"<?php echo $this->_var[\'goods\'][\'store_id\']; ?>\\" />
          </td>
        </tr>
        <?php else: ?>
        <tr>
          <td colspan=\\"3\\"><textarea name=\\"message\\" cols=\\"110\\" rows=\\"4\\" id=\\"message\\"></textarea></td>
        </tr>
        <tr>
          <?php if ($this->_var[\'lang_send_comment_feed\']): ?>
          <td>
            <input type=\\"checkbox\\" name=\\"seed_feed\\" value=\\"1\\" id=\\"seed_feed\\" <?php if ($this->_var[\'feed_status\'] [ 1 ]): ?>checked=\\"checked\\" <?php endif; ?>/>
            <label for=\\"seed_feed\\"><?php echo $this->_var[\'lang_send_comment_feed\']; ?></label>
          </td>
          <?php endif; ?>
          <td>
            <?php if ($this->_var[\'need_captcha\']): ?>
            验证码:
            <input id=\\"captcha\\" type=\\"text\\" name=\\"captcha\\" maxlength=\\"4\\" size=\\"6\\" class=\\"sinput\\" />
            <img src=\\"about:blank\\" style=\\"display:none;cursor:pointer\\" id=\\"captcha-img\\" title=\\"看不清图片？点击这里。\\" onclick=\\"changeCaptcha(this)\\" onload=\\"this.style.display=\'inline\'\\" />
            <?php endif; ?>
            <input type=\\"submit\\" value=\\"发表评论\\" class=\\"sbtn\\" />
            <input type=\\"hidden\\" name=\\"app\\" value=\\"message\\" />
            <input type=\\"hidden\\" name=\\"act\\" value=\\"add\\" />
            <input type=\\"hidden\\" name=\\"goods_id\\" value=\\"<?php echo $this->_var[\'goods\'][\'goods_id\']; ?>\\" />
            <input type=\\"hidden\\" name=\\"seller_id\\" value=\\"<?php echo $this->_var[\'goods\'][\'store_id\']; ?>\\" />
          </td>
        </tr>
        <?php endif; ?>
      </table>
    </form>
    <script type=\\"text/javascript\\">
    Event.observe(window, \'load\', function(){
      if ($(\'captcha-img\')) changeCaptcha($(\'captcha-img\'));
    });
    function changeCaptcha (img) {
      img.src = \'admin.php?app=profile&act=captcha&\' + Math.random();
    }
    </script>
  </div>
  <div class=\\"colbtm\\"></div>
</div>
',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>