<%@ Page Title="" Language="C#" ValidateRequest="false" MasterPageFile="~/BackCenter/Home/Edit.master" AutoEventWireup="true" CodeFile="DataEdit.aspx.cs" Inherits="BackCenter_Data_DataEdit" %>

<asp:Content ID="head" ContentPlaceHolderID="HeadContextPlaceHolder" runat="server">

<!--My97DatePicker日期控件-->
<script language="javascript" type="text/javascript" src="/App_Themes/My97DatePicker/WdatePicker.js"></script>

<!--ckeditor编辑器--> 
<script type="text/javascript" src="/ckeditor/ckeditor_Full/ckeditor.js"></script>
<script type="text/javascript" src="/ckfinder/ckfinder.js"></script>
    
</asp:Content>
<asp:Content ID="main" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="r_top_line">
        <cite style="float: right">
            <img src="/App_Themes/BackCenter/images/right_tr.gif" /></cite></div>
    <div class="r_tit">
        <p class="home">
            位置：后台中心 >> 数据管理 >> <asp:Label ID="lab_ClassName1" runat="server"></asp:Label>
        </p>
    </div>
    <div class="bd">
        <div class="tit_xs">
            <h2>
                <asp:Label ID="lab_ClassName2" runat="server"></asp:Label><%=Request["ID"] != null ? "修改" : "新增"%>
            </h2>
        </div>
                <table width="94%" border="0" cellpadding="0" cellspacing="0" class="tab_style fl">
            <tr>
                <td class="n1">
                    标题：
                </td>
                <td class="n2" colspan="3">
                    <asp:TextBox ID="txt_Title" runat="server" style="width:300px;" CssClass="required"></asp:TextBox>
                    <asp:CheckBox  ID="cb_IsTop" runat="server" Text="PDF" Visible="True" />
                    <asp:CheckBox  ID="cb_IsRec" runat="server" Text="推荐" Visible="False"  />
                    <asp:CheckBox  ID="cb_IsHot" runat="server"  Text="热门"  Visible="False" />
                </td>
            </tr>
            <% if (Request.QueryString["ClassId"].ToString() == "305")
               { %>
            <tr>
                <td class="n1">
                    副标题：
                </td>
                <td class="n2" colspan="3">
                    <asp:TextBox ID="txt_sTitle" runat="server" style="width:300px;"></asp:TextBox>（毕业院校）
                </td>
            </tr>
            <%} %>
            <tr>
                <td class="n1">
                    标题图片：
                </td>
                <td class="n2" colspan="3">
                    <asp:Image ID="img_TitlePicture" Visible="false" runat="server" Width="50px" Height="50px" />
                    <asp:FileUpload ID="fu_TitlePicture" runat="server" />
                </td>
            </tr>
            
            <tr id="tr_TypeName" runat="server" >
                <td class="n1">
                    类别：
                </td>
                <td class="n2" colspan="3">
                    <asp:DropDownList ID="ddl_TypeName" runat="server" CssClass="required">
                            </asp:DropDownList>
                </td>
            </tr>
            
            <tr >
                <td class="n1">
                    简介：
                </td>
                <td class="n2" colspan="3">
                    <asp:TextBox ID="txt_Intro" runat="server" TextMode="MultiLine" Rows="3" Columns="60" MaxLength="200"></asp:TextBox>
                </td>
            </tr>
            <tr style="display:none;">
                <td class="n1">
                    关键字：
                </td>
                <td class="n2" colspan="3">
                    <asp:TextBox ID="txt_Keywords" runat="server"  MaxLength="255"></asp:TextBox>
                </td>
            </tr>
            
            <% if (Request.QueryString["ClassId"].ToString() == "281")
               { %>
            <tr>
                <td class="n1">
                    地点：
                </td>
                <td class="n2" colspan="3">
                    <asp:TextBox ID="txt_Address" runat="server" style="width:300px;"></asp:TextBox>
                </td>
            </tr>
            <%} %>
            
            <tr>
                <td class="n1">
                    内容描述：
                </td>
                <td class="n2" colspan="3">
                    <%--<asp:TextBox ID="txt_Content" TextMode="MultiLine" runat="server" CssClass = "ckeditor"></asp:TextBox>--%>
                     <input type ="hidden" id="FileContent" runat="server" name ="FileContent" />
                    <IFRAME ID="eWebEditor" src="/ewebeditor/ewebeditor.htm?id=<%=FileContent.ClientID %>&style=blue" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
                    <input type="hidden" name="content" value="" id="content" />
                </td>
            </tr>
            <%--<% if (Request.QueryString["ClassId"].ToString() == "287")
               { %>--%>
            <tr>
                <td class="n1">
                    附件：
                </td>
                <td class="n2" colspan="3">
                    <asp:FileUpload ID="fu_FilePath" runat="server" />
                    <asp:label id="lab_FilePath" runat="server"><a href target="_blank"></a></asp:label>
                    <asp:label id="lab_FilePathBak" runat="server" Visible="false"></asp:label>
                </td>
            </tr>
           <%-- <%} %>--%>
            <% if (Request.QueryString["ClassId"].ToString() == "288")
               { %>
            <tr>
                <td class="n1">
                    未登陆视频：
                </td>
                <td class="n2" colspan="3">
                    <asp:FileUpload ID="fu_Video1" runat="server" />
                    <asp:label id="lab_Video1" runat="server"><a href target="_blank"></a></asp:label>
                    <asp:label id="lab_Video1Bak" runat="server" Visible="false"></asp:label>（此处上传只是记录一个视频名称，视频文件请用FTP上传UploadFiles/VideoFiles文件夹下）
                </td>
            </tr>
            <tr>
                <td class="n1">
                    登陆视频：
                </td>
                <td class="n2" colspan="3">
                    <asp:FileUpload ID="fu_Video2" runat="server" />
                    <asp:label id="lab_Video2" runat="server"><a href target="_blank"></a></asp:label>
                    <asp:label id="lab_Video2Bak" runat="server" Visible="false"></asp:label>（此处上传只是记录一个视频名称，视频文件请用FTP上传UploadFiles/VideoFiles文件夹下）
                </td>
            </tr>
            <%} %>
            <tr>
                <td class="n1">
                    权重：
                </td>
                <td class="n2" colspan="3">
                    <asp:TextBox ID="txt_OrderNum" runat="server" Text="0" MaxLength="50" CssClass="required number"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="n1">
                    添加时间：
                </td>
                <td class="n2" colspan="3">
                    <asp:TextBox ID="txt_AddTime" runat="server" MaxLength="50" CssClass="required" onclick="WdatePicker()"></asp:TextBox>
                </td>
            </tr>
        </table>
        <div class="menu">
            <asp:Button ID="btnSave" CssClass="menu_b" runat="server" Text="保存" OnClick="btnSave_Click">
            </asp:Button>
            <input id="inputBack" type="button" class="menu_o" value="返回" onclick="window.location.href='DataIndex.aspx?PageIndex=true&Conditions=true&ClassId=<%=Request["ClassId"] %>'"/>
        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>
