<%//*
  //* 文件名称：Product_Ask_Manage.aspx
  //* 页面名称：商品咨询页面
  //* 创建标识：Add by 沈先强   2010-02-05
  //*/
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_Ask_Operate, V5Shop.Shop.Category" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!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/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【商品咨询回复】" />
                <a href='Product_Ask_Manage.aspx' title="返回列表">返回列表</a>
            </div>
        </div>
        <div>
            <asp:Panel runat="server" ID="PanelShow" Width="100%">
                <div style="text-align: center;">
                    <table width="100%" border="0" style="text-align: center;" cellpadding="0" cellspacing="0" id="table1">
                        <tr class="FFtr">
                            <td align="right" style="height: 30px;">
                                <asp:Label ID="Label1" runat="server" Text="咨询商品："></asp:Label></td>
                            <td align="left">
                                <asp:Label ID="lblProductName" runat="server"></asp:Label>&nbsp;</td>
                        </tr>
                        <tr class="F7tr">
                            <td align="right" style="height: 30px;">
                                <asp:Label ID="Label2" runat="server" Text="咨询内容："></asp:Label></td>
                            <td align="left">
                                <asp:Label ID="lblContent" runat="server"></asp:Label>&nbsp;</td>
                        </tr>
                        <tr class="FFtr">
                            <td align="right" style="height: 30px">
                                <asp:Label ID="Label3" runat="server" Text="回复内容："></asp:Label></td>
                            <td align="left">
                                <asp:TextBox ID="txtRemark" runat="server" Height="100px" TextMode="MultiLine" Width="400px"></asp:TextBox>
                                <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="validateLength"
                                    ControlToValidate="txtRemark" ErrorMessage="长度必须在250字以内" SetFocusOnError="True"></asp:CustomValidator></td>
                        </tr>
                        <tr class="F7tr">
                            <td align="right" style="height: 30px">是否启用：</td>
                            <td align="left" id="rblIsPresent" class="radioaspx">
                              <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td><asp:CheckBox ID="cb_IsMail" runat="server" Checked="true" Text="发送站内信" /></td>
                                </tr>
                              </table></td>
                        </tr>
						<tr class="F7tr">
                            <td align="right" style="height: 30px">                            </td>
                            <td align="left" class="radioaspx">
                                <asp:RadioButtonList ID="rblMess" runat="server" RepeatDirection="Horizontal">
                                  <asp:ListItem Text="不使用" Value=""></asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr class="FFtr">
                            <td>&nbsp;</td>
                            <td align="left" style="height: 36px">
                                <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click" Text="确定" CssClass="button" />
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                                <asp:Button ID="btnReturn" runat="server" CausesValidation="false" CssClass="button" OnClick="btnReturn_Click" Text="返回列表" />
                                <asp:Button ID="btnNext" runat="server" CausesValidation="false" CssClass="button" OnClick="btnNext_Click" Text="保存>下一个" />                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="NextID" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
            <asp:HiddenField ID="Alert" runat="server" />
            <asp:HiddenField ID="AskUserName" runat="server" Value="0"/>
        </div>
    </form>
    <script type="text/javascript" language="javascript">
    $(document).ready(function(){
            $("input[name='rblMess']").click(
            function() 
            { 
                if($("#txtRemark"))
                {
                    $("#txtRemark").val($("input[name='rblMess']:checked").val());
                }
            });
    });
    
    function validateLength(oSrc, args){
       args.IsValid = args.Value.length <= 250;
    }

    
    </script>
</body>
</html>
