<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="add.aspx.cs" Inherits="JuSNS.Web.system.help.add" %>

<!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 id="ptitle" runat="server">增加/修改帮助</title>
    <link href="../images/css/style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>

    <script language="javascript" type="text/javascript" src="../../js/public.js"></script>
    <script type="text/javascript" src="../../inc/editor/fckeditor.js"></script>

</head>
<body>
    <table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
        <tr>
            <td width="120" align="center" valign="top">
                <div class="menu">
                    <ul>
                        <%=this.GetSystemMenu(sort)%>
                    </ul>
                </div>
            </td>
            <td valign="top">
                <div class="navip">
                    <span class="Blue">
                    <a href="index.aspx">帮助管理</a> 
                    <a href="add.aspx">增加帮助</a> 
                        </span>
                </div>
               <div style="padding:6px 8px 0px 8px;">
                <div id="giftClass" runat="server"></div>
                <form id="form1" runat="server">
                    <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                                    <tr class="maintablelist">
                                        <td align="right" style="width: 200px;">
                                            编号</td>
                                        <td align="left">
                                            <asp:TextBox ID="txtID" runat="server" Width="300px" MaxLength="50" ></asp:TextBox><asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtID" Display="Dynamic"
                                                ErrorMessage="编号不能为空"></asp:RequiredFieldValidator> 
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" Display="Dynamic" ControlToValidate="txtID"  runat="server" ErrorMessage="只能使用最少3位的数字、字母。" CssClass="reshow" ValidationExpression="^[a-zA-Z0-9]\w{2,15}$"></asp:RegularExpressionValidator>
                                                添加后不能修改编号
                                        </td>
                                    </tr>
                                    <tr class="maintablelist">
                                        <td align="right" style="width: 200px;">
                                            标题</td>
                                        <td align="left">
                                            <asp:TextBox ID="txtTitle" runat="server" Width="300px" MaxLength="50" ></asp:TextBox><asp:RequiredFieldValidator
                                                ID="RequireName" runat="server" ControlToValidate="txtTitle" Display="Dynamic"
                                                ErrorMessage="标题不能为空"></asp:RequiredFieldValidator>
                                        </td>

                                    </tr>
                                    <tr class="maintablelist">
                                        <td align="right" style="width: 200px;">
                                            内容</td>
                                        <td align="left">
                                        <script type="text/javascript" language="JavaScript">
                                                                            window.onload = function()
                                                                            {
                                                                                var sBasePath = "../../inc/editor/"
                                                                                var oFCKeditor = new FCKeditor('txtContent') ;
                                                                                oFCKeditor.BasePath	= sBasePath ;
                                                                                oFCKeditor.Width = '80%' ;
                                                                                oFCKeditor.ToolbarSet = 'Default';
                                                                                oFCKeditor.Height = '350' ;	
                                                                                oFCKeditor.ReplaceTextarea() ;
                                                                            }
                                                                    </script>
                                            <textarea name="txtContent" runat="server"  id="txtContent" style="width: 323px; height: 212px;display: none;" ></textarea>
                                            
                                        </td>                                    
                                        </tr>

                                    <tr class="maintablelist">
                                        <td align="right" style="width: 200px">
                                        </td>
                                        <td align="left" colspan="2">
                                            <asp:Button ID="Button1" runat="server" Text=" 保 存 " OnClick="Button1_Click" />
                                            <asp:HiddenField ID="helpID" Value="0" runat="server" />
                                        </td>
                                    </tr>
                                </table>                    
                </form>
                </div> 
                
            </td>
        </tr>
    </table>
</body>
</html>
