<body style="background:#fff;">
<link href="templates/{$CFG[tplname]}/style/com_view.css" type="text/css" rel="stylesheet" />
<script src="js/jquery1.9.1.js"></script>
<script src="js/jquery.raty.js"></script>
<div class="post_li">
	   <form name="comment" action="member.php?act=com_user_comment" method="post">
        <div class="clearfix h_15"></div>
        <h2 class="t_c">发布在<strong class="f3f">{$com_name[comname]}</strong>的消费点评</h2>
        <div class="clearfix h_15"></div>
        <ul>
          <li><h3>价格</h3>
          <span id="star_pz" class="target-demo ll" style="margin-top:3px;"></span><span id="star_pzs" class="hint"></span><span class="pad15 f99">对商家产品或服务价格性价比进行评分</span></li>
          <li><h3>服务</h3><span id="star_fw" class="target-demo ll" style="margin-top:3px;"></span><span id="star_fws" class="hint"></span><span class="pad15 f99">对商家整体服务水平满意度进行评分</span></li>
          <li><h3>环境</h3><span id="star_hj" class="target-demo ll" style="margin-top:3px;"></span><span id="star_hjs" class="hint"></span><span class="pad15 f99">对商家店内消费环境满意度进行评分</span></li>
          <li><h3>说点什么</h3>
        <textarea name="content" id="content" cols="45" rows="5" class="texts"></textarea></li>
          <div class="clearfix h_10"></div>
          <li><h3>&nbsp;</h3>
          <input type=hidden name=eid value={$commentid}>
          <input type=hidden name=cid value={$comid}>
          <input name="submit" type="submit" value="发表点评" id="submit" class="btn_1" />
          </li>
        </ul>
        </form>
       
</div>
<script>
$(function() {
      var averscore=0;
	  $.fn.raty.defaults.path = 'images/star';
      $.fn.raty.defaults.number = 5;
      $.fn.raty.defaults.score = 0;
      $.fn.raty.defaults.targetType = 'number';
      $.fn.raty.defaults.starHalf = 'star-half-big.png';
      $.fn.raty.defaults.starOff = 'star-off-big.png';
      $.fn.raty.defaults.starOn = 'star-on-big.png';
      $.fn.raty.defaults.size = 24;
      $.fn.raty.defaults.cancel = false;
      $.fn.raty.defaults.targetKeep = true;
      $.fn.raty.defaults.precision = false;//是否包含小数
	  $('#star_pz').raty({
        target    : '#star_pzs',
		score     : undefined,
        scoreName : 'star_pz',
      });
	  $('#star_fw').raty({
        target    : '#star_fws',
		score     : undefined,
        scoreName : 'star_fw',
      });  
	  $('#star_hj').raty({
        target    : '#star_hjs',
		score     : undefined,
        scoreName : 'star_hj',
      });  	 
    });
</script>
</body>