<%@ Page Language="c#" Inherits="Web.Wpdcc.creatNavpage" CodeBehind="creatNavpage.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>creatNavigation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/head.htm" -->
  
</head>
<body>
    <div>
        <form id="creatNavigation" method="post" runat="server">
            <div class="edit-func-box func-box">
                <div class="hd b">导航页制作</div>
                <div class="space-4"></div>
                <div class="container">
                    <table class="edit-table">
                        <tr>
                            <td>网页标题：
                            <asp:TextBox ID="title" runat="server" class="input-txt input-txt3" notNull="true" msgName="网页标题" MaxLength="50">欢迎使用ZDSoft网站生成系统</asp:TextBox>&nbsp;跳转主页时间：
                            <asp:TextBox ID="time" runat="server" class="input-txt input-txt2" notNull="true" dataType="integer" maxValue="999" minValue="1" MaxLength="3" msgName="跳转主页时间" onkeyup="this.value=this.value.replace(/\D/g,'')">5</asp:TextBox>秒
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input id="content1" type="hidden" runat="server" />
                                <textarea id="content" name="content" style="width: 100%; height: 450px"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="ft">
                    <div class="action-field text-center">
                        <asp:Button ID="btnSave" runat="server" class="btn btn-sm btn-primary" Text="保  存" OnClick="btnSave_Click"></asp:Button>&nbsp;&nbsp;&nbsp;
                <input type="button" class="btn btn-sm btn-primary" value="关  闭" onclick="parent.$.fancybox.close()" />
                    </div>
                    <!--/action-field-->
                </div>
            </div>
        </form>
    </div>
    <!--#include file="../Css/foot.htm"-->
     <script type="text/javascript">

         $(document).ready(function () {

             var cont = $("#content1").val();
             var options = {
                 cssPath: '../Wpedt/WpdccEditor/themes/default/default.css',
                 filterMode: true,
                 uploadJson: '../Wpedt/WpdccEditor/aspnet/upload_json.ashx',
                 fileManagerJson: '../Wpedt/WpdccEditor/aspnet/file_manager_json.ashx',
                 allowFileManager: true
             };
             var editor;
             KindEditor.ready(function (K) {
                 editor = K.create('textarea[name="content"]', options);
                 editor.html(cont);
             });

             //保存前检查必填项、取html代码放入隐藏字段
             $("#btnSave").click(function () {
                 if (checkAllValidate()) {
                     $("#content1").val(editor.html());
                     return true;
                 } else {
                     return false;
                 }
             });
         });

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