ecshop-去掉发表评论时的评价等级

作者: 坎肩儿 分类: ecshop网店 发布时间: 2011-04-11 18:00

模板文件:themes\yige\library\comments_list.lbi

找到如下代码,并删除:

<tr>
          <td align=”right”>{$lang.comment_rank}:</td>
          <td>
          <input name=”comment_rank” type=”radio” value=”1″ id=”comment_rank1″ /> <img src=”../images/stars1.gif” />
          <input name=”comment_rank” type=”radio” value=”2″ id=”comment_rank2″ /> <img src=”../images/stars2.gif” />
          <input name=”comment_rank” type=”radio” value=”3″ id=”comment_rank3″ /> <img src=”../images/stars3.gif” />
          <input name=”comment_rank” type=”radio” value=”4″ id=”comment_rank4″ /> <img src=”../images/stars4.gif” />
          <input name=”comment_rank” type=”radio” value=”5″ checked=”checked” id=”comment_rank5″ /> <img src=”../images/stars5.gif” />
          </td>
        </tr>

继续往下:

for (i = 0; i < frm.elements[‘comment_rank’].length; i++)
  {
    if (frm.elements[‘comment_rank’][i].checked)
    {
       cmt.rank = frm.elements[‘comment_rank’][i].value;
     }
  }

删除之。