{include file="header/page.html"}

<!-- tpl review/full.html begin -->
{include file="file:common/errmsg.html"}

<h2>{if $product.name}{$product.name|truncate:30:"...":true|escape:"htmlall"} reviews{else}Reviews{/if}</h2>

{if $product.numratings}
<div class="feedbackBG"><img src="/images/pixel.gif" class="feedback" height="13" width="{$product.ratingwidth}" border="0" /></div>
<p>Global Rating: {$product.avgrating|string_format:"%.2f"} from {$product.numratings} reviews.</p>
  {else}
  {/if}
<p><a href="{$newhref}">Add your own review for this product</a></p>

{include file="file:common/pager.html"}

<table class="reviews">
	<tr>
		<th><a href="{$sorthref.title}">title</a></th>
		<th><a href="{$sorthref.created}">date</a></th>
		<th><a href="{$sorthref.name}">name</a></th>
		<th><a href="{$sorthref.city}">city</a> <a href="{$sorthref.state}">state</a> <a href="{$sorthref.country}">country</a></th>
		<th><a href="{$sorthref.rating}">rating</a></th>
	</tr>
{foreach item=review from=$reviews}
	<tr class="head">
		<td class="title">{$review.title|truncate:60:"..."|escape:"htmlall"} ({$review.rating}/{$reviewmaximum})</td>
		<td nowrap="nowrap">{$review.created|date_format}</td>
		<td>{$review.name|truncate:40:"..."|escape:"htmlall"}</td>
		<td>{$review.city|truncate:30:"..."|escape:"htmlall"} {$review.state} {$review.country}</td>
		<td><div class="feedbackBG"><img src="/images/pixel.gif" class="feedback" height="13" width="{$review.ratingwidth}" border="0" /></div></td>
	</tr>
	<tr>
		<td colspan="5">
			<blockquote>
		{if $review.review}{$review.review|escape:"htmlall"|nl2br}{else}
				No comment.
		{/if}
			</blockquote>
		</td>
	</tr>
{/foreach}
</table>
{include file="file:common/pager.html"}

{include file="header/pagefooter.html"}
<!-- tpl review/full.html end -->
