<%@ page language="C#" autoeventwireup="true" inherits="Admin_Help_Operate, ShopNum1Deploy" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<!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>
 <title>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
<script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script> 
<script type="text/javascript">
    //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
           var editor = FCKeditorAPI.GetInstance('FCKeditorReMark'); 
           {
             editor.InsertHtml("<img src='/" + k + "'>");
           }
        }
    } 
     </script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;font-size:12px">
    <form id="form1" runat="server">
      <div class="navigator"><asp:Label ID="LabelPageTitle" runat="server" 
              Text="【 新增帮助 】"></asp:Label>
      </div>
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">

            <tr>
                <td align="right" style="width:20%;">
                    &nbsp;</td>
                <td align="left" style="width:80%;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:20%;">
                    <asp:Label ID="LabelTitle" runat="server" Text="帮助标题："></asp:Label>
                </td>
                <td align="left" style="width:80%;">
                    <asp:TextBox ID="TextBoxTitle" runat="server" Width="200"></asp:TextBox>
                            <asp:Label ID="Label1" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorTitle" 
                            runat="server" ControlToValidate="TextBoxTitle" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorT" 
                        runat="server" ControlToValidate="TextBoxTitle" Display="Dynamic" 
                        ErrorMessage="标题最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right" style="width:20%;">
                    <asp:Label ID="LabelTitle0" runat="server" Text="帮助类别："></asp:Label>
                </td>
                <td align="left" style="width:80%;">
                    <asp:DropDownList ID="DropDownListType" runat="server"  Width="206">
                    </asp:DropDownList>
                            <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                    <asp:CompareValidator ID="CompareValidatorType" runat="server" 
                            ControlToValidate="DropDownListType" Display="Dynamic" ErrorMessage="该值必需选择" 
                            Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
                        </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelMark" runat="server" Text="帮助内容："></asp:Label>
                </td>
                <td align="left" style="width:80%;">
                   <input id="ButtonSelectSingleImage" 
                    type="button" value="插入图片" onclick= "openSingleChild()"  /><FCKeditorV2:FCKeditor ID="FCKeditorReMark" runat="server" Height="400px" Width="80%">
                    </FCKeditorV2:FCKeditor>
                   <asp:Label ID="Label4" runat="server" Text="*" ForeColor="red"></asp:Label>
                            
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorRemark" 
                            runat="server" ControlToValidate="FCKeditorReMark" Display="Dynamic" 
                            ErrorMessage="该值不能为空" EnableClientScript="False"></asp:RequiredFieldValidator>
                        </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelOrderID" runat="server" Text="排序号："></asp:Label>
                </td>
                <td align="left" style="width:80%;">
                    <asp:TextBox ID="TextBoxOrderID" runat="server" Width="200"></asp:TextBox>
                            <asp:Label ID="Label3" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" 
                        runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                        ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    &nbsp;</td>
                <td align="left" style="width:80%;">
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right"style="width:20%;" >
    
                 &nbsp;</td>
                <td >
                   
                           <asp:Button ID="BottonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
              ToolTip="Submit" CssClass="bt2" />
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/>
                         <a href="Help_List.aspx"><img src="images/back.png" border="0" align="top" /></a>
                         <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
                </td>  
            </tr>
        </table>
  
                    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
