⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skin-addthread.ascx

📁 这是一个简单的论坛程序源码
💻 ASCX
字号:
<%@ Control Language="C#" Inherits="NetFocus.Web.Applications.Forum.ThreadAdd, NetFocus.Web.Applications.Forum" AutoEventWireup="true" %>

<script language="javascript">
    function checkForm(){
         var title = document.getElementById('<%= subjectTextBox.ClientID %>').value;
         title = title.toText().Trim();
         if(title==null||title=="")
         {
               alert('标题不能为空');
               return false;
         }
         
         var content =FCKeditorAPI.GetInstance("<%= bodyEditor.EditorClientID %>").GetXHTML(false);
         content = content.toText().Trim();
         if(content==null||content=="")
         {
               alert('内容不能为空');
               return false;
         }
        return true;
    } 
</script>


<div class="AdminArea">
    <fieldset>
        <legend><nwap:ResourceLiteral runat="server" ResourceName="System_ControlPanel_Thread_AddControlTitle" ResourceFile="ControlPanelResources.xml" /></legend>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="subjectTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_ControlPanel_Thread_Subject" />
            <nwap:ValuedTextBox Runat="server" CssClass="InputField MiddleWidth" id="subjectTextBox" MaxLength="38" />
        </div>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="subjectTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_ControlPanel_Thread_Tags" />
            <nwap:ValuedTextBox Runat="server" CssClass="InputField SmallWidth" id="tagsTextBox" MaxLength="25" />
        </div>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="bodyEditor" ResourceFile="ControlPanelResources.xml" ResourceName="System_ControlPanel_Thread_Body" />
            <nwap:ValuedEditor Runat="server" SkinRelativePath="Skin-FCKEditor-Default.ascx" Width="100%" Height="250px" id="bodyEditor" />
        </div>
        <div class="FormRow SubmitButtonRow">
            <nwap:Resourcebutton id="saveButton" OnClientClick="return checkForm();" ResourceName="Save" CssClass="Button" Runat="server"></nwap:Resourcebutton>
        </div>
    </fieldset>
</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -