<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ReviewList.ascx.cs" Inherits="Xpdt.Commerce.ReviewList" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%--

    This user control display a list of review for a specific product.

--%>
<br>
<br>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
	<tr>
		<td class="SubContentHead">
			&nbsp;Reviews
			<br>
		</td>
	</tr>
	<tr>
		<td>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td>
			<asp:Label id="RatingLabel" runat="server" CssClass="NormalBold">Average Rating : </asp:Label>&nbsp;
			<asp:Image id="RatingsImage" runat="server"></asp:Image>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<asp:Hyperlink id="AddReview" runat="server" ToolTip="Click here to add your own review about this product...">
				<img align="absbottom" src="../images/review_this_product.gif" border="0">
			</asp:Hyperlink><BR>
			<br>
		</td>
	</tr>
	<tr>
		<td>
			<asp:DataList ID="MyList" runat="server" width="500" cellpadding="0" cellspacing="0">
				<ItemTemplate>
					<asp:Label class="NormalBold" Text='<%# DataBinder.Eval(Container.DataItem, "CustomerName") %>' runat="server" ID="Label1" NAME="Label1"/>
					<span class="Normal">says... </span><img src='../images/ReviewRating<%# DataBinder.Eval(Container.DataItem, "Rating") %>.gif'>
					<br>
					<asp:Label class="Normal" Text='<%# DataBinder.Eval(Container.DataItem, "Comments") %>' runat="server" ID="Label2" NAME="Label2"/>
				</ItemTemplate>
				<SeparatorTemplate>
					<br>
				</SeparatorTemplate>
			</asp:DataList>
		</td>
	</tr>
</table>
