Prev | Current Page 762 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

Start
by creating presentation/templates/reviews.tpl and adding the following code to it:
{* reviews.tpl *}
{load_presentation_object filename="reviews" assign="obj"}
{if $obj->mTotalReviews != 0}

Customer reviews:



    {section name=i loop=$obj->mReviews}


  • Review by {$obj->mReviews[i].name} on
    {$obj->mReviews[i].created_on|date_format:"%A, %B %e, %Y"}


    {$obj->mReviews[i].review}


    Rating: [{$obj->mReviews[i].rating} of 5]



  • CHAPTER 21 ?–  PRODUCT REVIEWS 659
    {/section}

{else}

Be the first person to voice your opinion!


{/if}
{if $obj->mEnableAddProductReviewForm}
{* add review form *}

Add a review:













From: {$obj->mReviewerName}









Your Rating:
1
2
3
4
5





{else}

You must log in to add a review.


Pages:
750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774

międzyzdroje noclegi z widokiem na morze online loan for bad credit Powiększanie ust kraków Noclegi Władysławowo Noclegi Rowy