<%@ 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/adminCssEdit.htm" -->
    <script type="text/javascript" src="../Editor/WpdccEditor/kindeditor.js"></script>
    <script type="text/javascript" src="../Editor/WpdccEditor/lang/zh_CN.js" charset="utf-8"></script>    
    <script type="text/javascript">

    $(document).ready(function(){    
    
        var cont = $("#content1").val();
        var options = {
            cssPath : '../Editor/WpdccEditor/themes/default/default.css',
            filterMode : true,
            uploadJson : '../Editor/WpdccEditor/aspnet/upload_json.ashx',
			fileManagerJson : '../Editor/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>

</head>
<body>
    <form id="creatNavigation" method="post" runat="server">
    <div class="edit-func-box func-box">
        <div class="hd b">
            导航页制作</div>
        <div class="bd">
            <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 txt-c">                
                <asp:Button ID="btnSave" runat="server" class="btn" Text="保  存"  OnClick="btnSave_Click">
                </asp:Button>&nbsp;&nbsp;&nbsp;
                <input type="button" class="btn" value="关  闭" onclick="parent.$.fancybox.close()" />
            </div>
            <!--/action-field-->
        </div>
    </div>
    </form>
</body>
</html>
