<%//*
  //* 文件名称：Product_Ask_Manage.aspx
  //* 页面名称：商品咨询快捷回复
  //* 创建标识：Add by 沈先强   2010-02-11
  //*/
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_Shortcut_Manage, V5Shop.Shop.Category" 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="css/css_list.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <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" />
                    全选 &nbsp;&nbsp;
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClientClick="return CheckEdit()" OnClick="btnEdit_Click" CausesValidation="False"><img src="images/icon/key_review.gif" alt="Read/Write Property"/> 编辑</asp:LinkButton>
                    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClientClick="return CheckDel()" CausesValidation="False" OnClick="btnDel_Click"><img src="images/icon/key_delete.gif" /> 删除</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" BorderWidth="0px" GridLines="None" TableName="" Width="100%">
                        <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="ShotCut" HeaderText="内容" SortExpression="ShotCut">
                                <itemstyle width="20%" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否启用" SortExpression="IsUsed">
                                <itemtemplate>
                                    <asp:Label ID="IsUsed" runat="server" Text='<%# FormatIsRemarkState(DataBinder.Eval(Container, "DataItem(IsUsed)","{0}")) %>'> id="IsUsed"></asp:Label>
                                </itemtemplate>
                                <itemstyle width="3%" />
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否默认" SortExpression="IsDefault">
                                <itemtemplate>
                                    <asp:Label ID="IsDefault" runat="server" Text='<%# FormatIsRemarkState(DataBinder.Eval(Container, "DataItem(IsDefault)","{0}")) %>'> id="IsDefault"></asp:Label>
                                </itemtemplate>
                                <itemstyle width="3%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Date" HeaderText="添加时间" SortExpression="Date">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </cc1:V5ShopGridView>
                </div>
                
                <asp:Panel runat="server" ID="PanelShow" HorizontalAlign="Center" Width="100%">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
                    <tr class="F7tr">
                        <td align="right" style="height: 30px; width: 20%;">是否启用：</td>
                        <td align="left" style="height: 30px">
                            <asp:RadioButtonList ID="rblIsUsed" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="否" Value="0"></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr class="FFtr">
                        <td align="right" style="height: 30px; width: 20%;">
                            <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="默认选项" HideSelects="False" ImageURL="images/help.gif" Text="默认唯一，如果当前设置为默认，则之前的默认项将被替换。" />
                            是否默认：
                        </td>
                        <td align="left" style="height: 30px">
                            <asp:RadioButtonList ID="rblIsDefault" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="否" Value="0"></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr class="F7tr">
                        <td align="right" style="height: 30px; width: 20%;">
                            <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="内容" HideSelects="False" ImageURL="images/help.gif" Text="快捷回复重复输入的内容。" />
                            内    容：
                        </td>
                        <td align="left" style="height: 30px">
                            <asp:TextBox ID="txtShotCut" runat="server" TextMode="MultiLine" Rows="6" Columns="40"></asp:TextBox>
                            <span class="NeedMsg">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtShotCut" runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                            <br /><span>请使用“[]”来标记正文出现的位置</span>
                        </td>
                    </tr>
                    <tr class="FFtr">
                        <td align="right" style="height: 30px; width: 20%;">
                            <asp:Button ID="btnSub" runat="server" CssClass="button" Text="提交" Visible="true" OnClick="btnSub_Click" />
                            <asp:Button ID="btnUpdate" runat="server" CssClass="button" Text="更新" Visible="false" OnClick="btnUpdate_Click" />
                        </td>
                        <td align="left" style="height: 30px">
                        </td>
                    </tr>
                </table>
                </asp:Panel>
            </div>
            <div>
                <uc2:PageBottom ID="PageBottom1" runat="server" />
            </div>
        </div>
            <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>
    </form>
</body>
</html>
