<!--{include file="<!--{$oetplpath}-->widget_header.tpl"}-->
<div class="oe_goods_comment">
  <div class="oem_uright_topmenu"> 当前位置：<a href="<!--{$oefile}-->">会员中心</a> &gt;&gt; 商品评价 </div>
  <form method="post" action="<!--{$oefile}-->&c=<!--{$c}-->&a=addcomment" name="myform" id="myform" >
  <div class="oe_goods_com_content"> 
    <!--{foreach $order.goodslist as $val}-->
    <input type="hidden" value="<!--{$val.recid}-->" name="recid_<!--{$val.recid}-->" >
    <input type="hidden" value="<!--{$order.orderid}-->" name="id" >
    <dl>
      <dt> <img src="<!--{$val.thumbimg}-->"/>
        <h4><a href="javascript:;"><!--{$val.goodsname}--></a></h4>
      </dt>
      <dd>
        <h4>
		  给商品打分<br>
          <span class="oe_level"> <i class="current" mark></i> <i mark></i> <i mark></i> <i mark></i> <i mark></i> </span> <span class="oe_leveltips"><i>1分</i> <b></b></span>
          <input type="hidden" value="1" name="cmscore_<!--{$val.recid}-->" id="cmscore">
        </h4>
        <div class="oe_goods_com_text">
          <textarea name="content_<!--{$val.recid}-->" style="width:400px;height:100px;"></textarea>
          <div class="oe_goods_com_letter"> <span class="oe_letter_tips"> &nbsp; </span>
            <div class="oe_radio">
              <label>
			    <input type="radio" name="type_<!--{$val.recid}-->" value="0" checked />公开
			  </label>
              <label>
                <input type="radio" name="type_<!--{$val.recid}-->" value="1" />匿名
			  </label>
            </div>
          </div>
        </div>
      </dd>
    </dl>
    <!--{/foreach}-->
    
    <div class="oe_goods_com_but"> <span f="submit">发表评论</span> </div>
  </div>
  </form>
</div>
<div class="clear"></div>
<script type="text/javascript">
$(function(){
	$('[f="submit"]').click(function(){
		$("#myform").submit();
	});
	$degree = ['','<i>1分</i>','<i>2分</i>','<i>3分</i>','<i>4分</i>','<i>5分</i>'];
	$mark = [0, 1, 2, 3, 4, 5];
	$(document).on('mouseover','i[mark]',function(){
		$num = $(this).index();
		$list = $(this).parent().find('i');
		for(var i=0;i<=$num;i++){
			$list.eq(i).attr('class','current');
		}
		for(var i=$num+1,len=$list.length-1;i<=len;i++){
			$list.eq(i).attr('class','');
		}
		$(this).parent().next().html($degree[$num+1]);
		$(this).parent().next().next().val($mark[$num+1]);
	});
});
</script> 
<!--{include file="<!--{$oetplpath}-->widget_footer.tpl"}-->
</body>
</html>