<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="CuzcmsCcwl.admin.dao2.edit" ValidateRequest="false" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ 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 id="Head1" runat="server">
    <title>类别管理</title>
  
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.form.js"></script>
    <link href="/admin/images/style.css" rel="stylesheet" type="text/css" />
    <script src="/admin/js/function.js" type="text/javascript"></script>
    <script charset="utf-8" src="../kindeditor.js" type="text/javascript" language="javascript"></script>
    <script charset="utf-8" src="../lang/zh_CN.js" type="text/javascript" language="javascript"></script>
    <script charset="utf-8" src="../plugins/code/prettify.js"></script>
    <script>
        KindEditor.ready(function (K) {
            var editor1 = K.create('#content1', {
                cssPath: '../plugins/code/prettify.css',
                uploadJson: '../asp.net/upload_json.ashx',
                fileManagerJson: '../asp.net/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="navigation">
            <a href="javascript:history.go(-1);" class="back">后退</a>
            <h3>
                【产品展示-添加】</h3>
        </div>
        <table class="form_table">
            <col width="180px" />
            <tbody>
                <tr>
                    <th>
                        产品分类名称：
                    </th>
                    <td>
                        <asp:DropDownList ID="ddlCategoryId" CssClass="select2 required" runat="server">
                        </asp:DropDownList>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;是否推荐：<asp:CheckBox ID="CheckBox1"
                            runat="server" Text="是" />
                    </td>
                </tr>
                <tr>
                    <th>
                        产品名称：
                    </th>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" CssClass="txtInput required" MaxLength="100"
                            Style="width: 350px;" />
                    </td>
                </tr>
             
                <tr>
                    <th>
                        图片预览：
                    </th>
                    <td>
                        <asp:Image ID="previewImg" runat="server" Width="180px" Height="200px" ImageUrl="" />
                    </td>
                </tr>
                <tr>
                    <th>
                        显示图片：
                    </th>
                    <td>
                        <asp:TextBox ID="txtImgUrl" runat="server" CssClass="txtInput normal left" MaxLength="255"></asp:TextBox>
                        <a href="javascript:;" class="files">
                            <input type="file" id="FileUpload1" name="FileUpload" onchange="Upload('SingleFile', 'txtImgUrl', 'FileUpload', 'previewImg', 0, '../../../');" /></a>
                        <span class="uploading">正在上传，请稍候...</span>
                    </td>
                </tr>
                <tr>
                    <th>
                        内容介绍：
                    </th>
                    <td>
                        <textarea id="content1" cols="100" rows="8" style="width: 800px; height: 500px; visibility: hidden;"
                            runat="server"></textarea>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="foot_btn_box">
            <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btnSubmit" OnClick="btnSubmit_Click" />
            &nbsp;<input name="重置" type="reset" class="btnSubmit" value="重 置" />
        </div>
        <div class="line10">
        </div>
    </div>
    <asp:HiddenField ID="Hid" runat="server" />
    </form>
</body>
</html>
