2017-08-29 10:46:12 +02:00

47 lines
2.0 KiB
Smarty

<div id="idTab15">
<div class="ekomiLogo">
<img src="{$pathEkomi}img/ekomi_logo.png" width="131" height="35" border="0" />
</div>
{if isset($eReviews) AND $eReviews}
{foreach from=$eReviews name=review key=iKey item=eReview}
<div class="newReview">
<div id="ekomiReview{$iKey}" class="ekomiReviewLine">
<div class="ekomiReviewLineRating" id="ekomiDisplayRating{$smarty.foreach.review.iteration}">
{section loop=$eReview.stars name=note}<input class="star" type="radio" id="ekomiRating{$smarty.foreach.review.iteration}" name="ekomiRating{$smarty.foreach.review.iteration}" value="{$smarty.section.note.iteration}" {if $eReview.stars == $smarty.section.note.iteration}checked="checked"{/if}/>{/section}
</div>
<div class="ekomiReviewLineName"><b>{l s='Date' mod='ekomi'} : </b>{dateFormat date=$eReview.date_add|escape:'html':'UTF-8' full=0}</div>
<p class="ekomiReviewLineComment" style="margin-bottom: 10px !important;">
{if !empty($eReview.review)}
<b>{l s='Comment' mod='ekomi'} : </b>{$eReview.review}
<br/>
{else}
{l s='The customer has rated the product but has not posted a review, or the review is pending moderation' mod='ekomi'}
{/if}
</p>
</div>
</div>
{/foreach}
{literal}
<script type="text/javascript">
$(document).ready(function(){
{/literal}
{foreach from=$eReviews name=review key=iKey item=eReview}
{literal}
jQuery144('#ekomiDisplayRating{/literal}{$smarty.foreach.review.iteration}{literal} :radio.star').rating(
{
ratingField : "iRating",
readOnly : {/literal}{if !empty($eReview.stars)}true{else}false{/if}{literal},
starGif : "{/literal}{$pathStar}{literal}",
starWidth : "5"
});
{/literal}
{/foreach}
{literal}
});
</script>
{/literal}
{else}
<p class="align_center">{l s='No customer comments for the moment.' mod='ekomi'}</p>
{/if}
</div>