<%
    //-----------------------------------------------------------
    // 文件名称: Article_ArticleReview_Manage.aspx
    // 页面名称: 文章评论管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-05
    //-----------------------------------------------------------
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Article_ArticleReview_Manage, V5Shop.Shop.Article" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部 -->
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; border-bottom: #f7f7f7 4px solid">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblAdminName" runat="server" meta:resourcekey="lblAdminNameResource" Text="评论标题:"/></td>
                            <td>
                                <asp:TextBox ID="txtTitle" runat="server" Width="104px"/></td>
                            <td>
                                <asp:Label ID="Label1" runat="server" meta:resourcekey="lblAdminNameResource" Text="评论人:"/></td>
                            <td>
                                <asp:TextBox ID="txtUsername" runat="server" Width="104px"/></td>
                            <td>
                                <asp:Label ID="Label2" runat="server" meta:resourcekey="lblAdminNameResource" Text="评论文章:"/></td>
                            <td>
                                <asp:TextBox ID="txtContent" runat="server" Width="104px"/></td>
                            <td>
                                <asp:Label ID="Label3" runat="server" meta:resourcekey="lblAdminNameResource" Text="发表IP:"/></td>
                            <td>
                                <cc1:IpBox ID="txtIp" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" meta:resourcekey="lblAdminNameResource" Text="评论时间:"/></td>
                            <td colspan="5">
                                <asp:TextBox ID="txtReviewStart" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="sltStart01" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                                -
                                <asp:TextBox ID="txtReviewEnd" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="sltEnd01" alt="打开日历" src="images/calendar1.gif" title="打开日历" /></td>
                            <td>
                                <asp:Label ID="Label5" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否审核:"/></td>
                            <td>
                                <asp:DropDownList ID="ddlIsPass" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="1">已审核</asp:ListItem>
                                    <asp:ListItem Value="0">未审核</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" meta:resourcekey="lblAdminNameResource" Text="回复时间:"/></td>
                            <td colspan="5">
                                <asp:TextBox ID="txtReplyStart" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="sltStart02" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                                -
                                <asp:TextBox ID="txtReplyEnd" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="sltEnd02" alt="打开日历" src="images/calendar1.gif" title="打开日历" /></td>
                            <td>
                                <asp:Label ID="Label6" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否回复:"/></td>
                            <td>
                                <asp:DropDownList ID="ddlIsRemark" runat="server">
                                    <asp:ListItem Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="1">已回复</asp:ListItem>
                                    <asp:ListItem Value="0">未回复</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td colspan="5">
                                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" /></td>
                            <td></td>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div id="content">
                <!-- 明细数据编辑栏 -->
                <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                    <input id="CheckAllBox" onclick="CheckAll()" type="checkbox" class="checkbox" />
                    全选
　
<asp:LinkButton ID="btnView" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2" OnClientClick="return CheckSelectOne()" OnClick="btnView_Click" Visible="False"><img src="images/icon/key_detail.gif" alt="Read/Write Property"/> 查看评论</asp:LinkButton>
　
<asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClientClick="return CheckEdit()" CausesValidation="False" OnClick="btnEdit_Click"><img src="images/icon/key_review.gif" alt="Read/Write Property"/> 回复</asp:LinkButton>
　
<asp:LinkButton ID="btnPass" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelect()" OnClick="btnPass_Click"><img src="images/icon/key_pass.gif" alt="Read/Write Property"/> 审核</asp:LinkButton>
　
<asp:LinkButton ID="btnUnPass" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelect()" OnClick="btnUnPass_Click"><img src="images/icon/key_unpass.gif" alt="Read/Write Property"/> 取消审核</asp:LinkButton>
　
<asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckDel()" OnClick="btnDel_Click"><img src="images/icon/key_delete.gif" alt="Read/Write Property"/> 删除</asp:LinkButton></div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="12" HeaderStyle-ForeColor="#000000">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData">
                                <itemtemplate>
                                <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" class="checkbox"
                                    onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="5%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Title" HeaderText="评论标题" SortExpression="Title">
                                <itemstyle width="25%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="评论文章" SortExpression="ArticleName">
                                <itemstyle width="10%" />
                                <itemtemplate>
                                <a href="../article.aspx?id=<%#Eval("ArticleID") %>" target="_blank"><asp:Label runat="server" Text='<%#Eval("ArticleName") %>' id="ArticleName"></asp:Label></a>
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="评论星级" SortExpression="Star">
                                <itemtemplate>
                                    <cc1:LevelCtrl id="lblStar" runat="server" Value='<%# Eval("Star") %>' ImageURL="images/star.gif"></cc1:LevelCtrl>
                                </itemtemplate>
                                <itemstyle width="6%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Date" HeaderText="评论时间" SortExpression="Date">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Username" HeaderText="评论发启人" SortExpression="Username">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RemarkDate" HeaderText="回复时间" SortExpression="Username">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否审核" SortExpression="IsPass">
                                <itemtemplate>
                                    <asp:Label ID="lblIsPass" runat="server" Text='<%# FormatIsPassState(DataBinder.Eval(Container, "DataItem(IsPass)","{0}")) %>' />
                                </itemtemplate>
                                <itemstyle width="6%" />
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否回复" SortExpression="IsRemark">
                                <itemtemplate>
                                    <asp:Label ID="lblIsRemark" runat="server" Text='<%# FormatIsRemarkState(DataBinder.Eval(Container, "DataItem(IsRemark)","{0}")) %>' />
                                </itemtemplate>
                                <itemstyle width="6%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="IP" HeaderText="发表IP">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </cc1:V5ShopGridView>
                </div>
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
        </div>
    </form>
    <script type="text/javascript">
        Calendar.setup({
	        inputField     :    "txtReviewStart",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltStart01",
	        align          :    "Br",
	        singleClick    :    true
        });
        Calendar.setup({
	        inputField     :    "txtReviewEnd",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltEnd01",
	        align          :    "Br",
	        singleClick    :    true
        });
        Calendar.setup({
	        inputField     :    "txtReplyStart",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltStart02",
	        align          :    "Br",
	        singleClick    :    true
        });
        Calendar.setup({
	        inputField     :    "txtReplyEnd",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltEnd02",
	        align          :    "Br",
	        singleClick    :    true
        });
    </script>

</body>
</html>
