<div id="userinfo" class="colbox userinfo">
  <h3>掌柜档案</h3>
  <div class="colboxcontent">
    <dl>
      <dt><?php echo $this->fetch('themes/store/resource/avatar.html'); ?></dt>
      <dd class="btnlist">
        <a href="<?php echo $this->url_rewrite(array('app'=>'store','act'=>'comment','store_id'=>$this->_var['user']['user_id'])); ?>" class="msgbtn"><img src="themes/store/skin/blueglass/images/btn_give_msg.gif" alt="给我留言" /></a>
        <a href="javascript:add_friend(<?php echo $this->_var['user']['user_id']; ?>);"><img src="themes/store/skin/blueglass/images/btn_adduser.gif" alt="添加为好友" /></a>
      </dd>
      <dd class="infolist">
        <p class="line">
          <?php if ($this->_var['store']['is_certified']): ?>
          <a href="<?php echo $this->url_rewrite(array('app'=>'article','act'=>'builtin','code'=>'certification')); ?>" target="_blank"><img src="data/images/certification.gif" title="已认证" alt="认证店铺" style="float:right;" /></a>
          <?php endif; ?>
          <label>店主姓名: </label><?php echo $this->_var['user']['user_name']; ?>
        </p>
        <p><label>注册时间: </label><?php echo $this->_var['user']['formated_reg_time']; ?></p>
        <p><label>联系电话: </label><?php echo $this->_var['store']['owner_phone']; ?></p>
        <p><label>详细地址: </label><?php echo $this->_var['store']['owner_address']; ?></p>     
        <p class="line"><label>卖家信用: </label><?php echo $this->_var['user']['seller_credit']; ?>
        <a href="<?php echo $this->url_rewrite(array('app'=>'store','act'=>'credit','store_id'=>$this->_var['user']['user_id'])); ?>"><?php if ($this->_var['user']['seller_grade'] > 0): ?><img src="themes/store/skin/blueglass/images/rank_sell_<?php echo $this->_var['user']['seller_grade']; ?>.gif" alt="<?php echo $this->_var['user']['seller_grade']; ?>" border="0" /><?php else: ?>-<?php endif; ?></a></p>
        <p><label>买家信用: </label><?php echo $this->_var['user']['buyer_credit']; ?>
        <a href="<?php echo $this->url_rewrite(array('app'=>'store','act'=>'credit','store_id'=>$this->_var['user']['user_id'])); ?>"><?php if ($this->_var['user']['buyer_grade'] > 0): ?><img src="themes/store/skin/blueglass/images/rank_buy_<?php echo $this->_var['user']['buyer_grade']; ?>.gif" alt="<?php echo $this->_var['user']['buyer_grade']; ?>" border="0" /><?php else: ?>-<?php endif; ?></a></p>
        <p class="line"><label>卖家好评率: </label>
        <a href="<?php echo $this->url_rewrite(array('app'=>'store','act'=>'credit','store_id'=>$this->_var['user']['user_id'])); ?>"><?php echo $this->_var['seller_rate']['rate']; ?>%</a></p>
        <p><label>买家好评率: </label>
        <a href="<?php echo $this->url_rewrite(array('app'=>'store','act'=>'credit','store_id'=>$this->_var['user']['user_id'])); ?>"><?php echo $this->_var['buyer_rate']['rate']; ?>%</a></p>
        <?php if ($this->_var['store_qq']): ?>
        <p class="line">
          <label>联系Q&nbsp;&nbsp;&nbsp;Q:</label><img src="http://wpa.qq.com/pa?p=1:<?php echo htmlspecialchars($this->_var['store_qq']); ?>:4" alt="QQ"><a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=<?php echo htmlspecialchars($this->_var['store_qq']); ?>&amp;Site=<?php echo $this->_var['user']['user_name']; ?>&amp;Menu=yes" target="_blank"><?php echo htmlspecialchars($this->_var['store_qq']); ?></a>
        </p>
        <?php endif; ?>
        <?php if ($this->_var['store_ww']): ?>
        <p<?php if (! $this->_var['store_qq']): ?> class="line"<?php endif; ?>>
          <label>阿里旺旺 :</label>
          <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?php echo urlencode($this->_var['store_ww']); ?>&site=cntaobao&s=2&charset=<?php echo $this->_var['charset']; ?>" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo urlencode($this->_var['store_ww']); ?>&site=cntaobao&s=2&charset=<?php echo $this->_var['charset']; ?>" alt="Wang Wang" /><?php echo htmlspecialchars($this->_var['store_ww']); ?></a>
        </p>
        <?php endif; ?>
        <?php if ($this->_var['store_msn']): ?>
        <p<?php if (! $this->_var['store_ww'] && ! $this->_var['store_qq']): ?> class="line"<?php endif; ?>>
         <label>联系MSN:</label>
         <span id="msn_status">载入中...</span>
         <script type="text/javascript">
         Event.observe(window, 'load', function(){document.require("http://messenger.services.live.com/users/<?php echo htmlspecialchars($this->_var['store_msn']); ?>/presence/?cb=show_msn_status");});
         </script>
        </p>
        <?php endif; ?>
      </dd>
    </dl>
  </div>
  <div class="colbtm"></div>
</div>
