<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="NewsEdit.aspx.cs" Inherits="Member_News_NewsEdit" Title="公司动态管理" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">
<div id="sub_content"> 
    <div class="pagetitle">
        公司动态编辑</div>
    <div class="h2_title">
        <h2>公司动态编辑</h2>
    </div>
    <table cellspacing="0" cellpadding="0" border="0" class="lr_bo">
        <tr>
            <td width="16%" class="thing">
                标题：
            </td>
            <td class="td_c">
                <asp:TextBox ID="txtTitle" runat="server" Width="250"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="thing">
                内容：
            </td>
            <td class="td_c">
                <fckeditorv2:fckeditor id="Detail" runat="server" basepath="~/Control/fckeditor/"
                    toolbarset="Basic" height="400" width="640">
                        </fckeditorv2:fckeditor>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center" height="40">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click"  CssClass="i_button" />
                <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click"  CssClass="i_button"  />
            </td>
        </tr>
    </table>
    </div>
    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript">
    $("ctl00_ContInfo_btnSave").onclick=function()
    {
     if($("ctl00_ContInfo_txtTitle").value.replace(/\s/g,'')=="")
        {
         alert("标题不能为空!")
         $("ctl00_ContInfo_txtTitle").focus();
         return false
        }
    }
    </script>

</asp:Content>
