📄 productreviewcontrol.ascx
字号:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ProductReviewControl.ascx.vb" Inherits="Admin_Product_Controls_ProductReviewControl" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../Controls/CheckAllCheckBoxControl.ascx" TagName="CheckAllCheckBoxControl"
TagPrefix="uc1" %>
<h1 align="center">
Products Review</h1>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td class="DialogTitle">
<asp:Label ID="lblDialogTitle" runat="server" Text="商品评论"></asp:Label></td>
</tr>
<tr>
<td class="DialogBorder" style="height: 425px">
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="DialogBox">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td colspan="2">
<asp:DropDownList ID="ddlCategory" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="ddlIsApproved" runat="server">
<asp:ListItem Value="-1">审核情况</asp:ListItem>
<asp:ListItem Value="1">已审核</asp:ListItem>
<asp:ListItem Value="0">未审核 </asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="txtSearch" runat="server" onclick="if(this.value=='输入商品名称')this.value=''"
onfocus="this.select()" onmouseover="this.focus()" value="输入商品名称"></asp:TextBox>
<asp:Button ID="btnSearch" runat="server" Text="查找" Width="76px" />
</td>
</tr>
<tr>
<td colspan="2">
<asp:GridView ID="gvProductReview" runat="server" AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="ReviewID" Width="100%" EmptyDataText ="没有找到商品评论">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="cbSelect" runat="server" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="25px" HorizontalAlign="Center" />
<HeaderTemplate>
<uc1:CheckAllCheckBoxControl ID="CheckAllCheckBoxControl1" runat="server" Prefix="cbSelect" />
</HeaderTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ProductName" HeaderText="商品名称" />
<asp:BoundField DataField="reviewerName" HeaderText="评论者" />
<asp:BoundField DataField="ReviewDate" HeaderText="评论时间" DataFormatString="{0:f}" HtmlEncode="False" />
<asp:TemplateField HeaderText="评论和恢复">
<ItemTemplate>
<asp:HyperLink ID="hlComments" runat="server" ToolTip ='<%# Eval("Comments") %>' NavigateUrl='<%# String.Format("~/Admin/Product/ProductReview.aspx?mode=feedback&reviewID={0}",eval("ReviewID")) %>'>评论</asp:HyperLink>
<asp:HyperLink ID="hlFeedBack" runat="server" ToolTip ='<%# Eval("Feedback") %>' NavigateUrl='<%# String.Format("~/Admin/Product/ProductReview.aspx?mode=feedback&reviewID={0}",eval("ReviewID")) %>'>恢复</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="审核" SortExpression="IsValid">
<ItemTemplate>
<asp:DropDownList ID="ddlIsApproved" runat="server" SelectedValue='<%# Cint(DataBinder.Eval(Container.DataItem,"IsApproved"))%>'>
<asp:ListItem Value="-1">是</asp:ListItem>
<asp:ListItem Value="0">否</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
<ItemStyle Width="50px" HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
<PagerSettings Visible="False" />
</asp:GridView>
<webdiyer:AspNetPager ID="Pager" runat="server" EnableTheming="False" FirstPageText='<span style="font-family:Webdings, Wingdings" >9</span>'
HorizontalAlign="Left" LastPageText='<span style="font-family:Webdings, Wingdings" >:</span>'
NextPageText='<span style="font-family:Webdings, Wingdings" >4</span>' NumericButtonCount="8"
NumericButtonTextFormatString="[{0}]" OnPageChanged="ChangePage" PageSize="10"
PagingButtonSpacing="8px" PrevPageText='<span style="font-family:Webdings, Wingdings" >3</span>'
ShowCustomInfoSection="Right" SubmitButtonText="转到" Width="100%">
</webdiyer:AspNetPager>
</td>
</tr>
<tr>
<td colspan="2" style="height: 43px">
<br />
<asp:Button ID="btnDelete" runat="server" OnClientClick="Javascript:return toDel('gvProductReview');"
Text="删除选择" Width="125px" />
<asp:Button ID="btnApprove" runat="server" Text="更新审核" Width="125px" /></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<asp:HiddenField ID="hfSearchText" runat="server" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -