discuss_addpost.ascx

来自「完全网站系统」· ASCX 代码 · 共 137 行

ASCX
137
字号
<%@ Control Language="C#" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%--

This skin is used both for adding and editing a post. Modify the HTML content
to modify the appearance of the page.

--%>


<community:SectionTitle id="lblSectionTitle" CssClass="Form_Title" Runat="Server" />
<br><br>


<asp:Panel id="pnlForm" Runat="Server">


<table width="100%" class="discussTable" cellpadding="0" cellspacing="1">
<tr>
    <th align="left">
    Post a New Message
    </th>
</tr>
<tr>
    <td valign="top" class="discussCell">


    <table>
    <tr>
        <td colspan="3" align="right">
        <asp:Panel id="pnlTopics" Runat="Server">
            <b>Topic:</b> 
            <community:TopicPicker id="dropTopics" DefaultTopicText="Pick a Topic" runat="Server"/>
            <asp:RequiredFieldValidator ControlToValidate="dropTopics" Text="(required)" InitialValue="-1" CssClass="Form_Field" Runat="Server" />
        </asp:Panel>
        </td>
    </tr>
    <tr>
        <td align="right">
        <b>Author:</b>
        </td>
        <td colspan="2">
        <asp:Label id="lblUsername" runat="Server"/>
        </td>
     </tr>
     <tr>
        <td align="right">
        <b>Subject:</b>
        </td>
        <td colspan="2">
        <asp:TextBox id="txtTitle" Columns="40" CssClass="Form_Field" Runat="Server" />
        <asp:RequiredFieldValidator ControlToValidate="txtTitle" Text="(required)" Runat="Server"/>
        </td>
     </tr>
     <tr>
        <td align="right" valign="top">
        <b>Message:</b>
        </td>
        <td>
        <community:HtmlTextBox CssClass="htmlDesigner" SelectedFontSize="3" SelectedFontFace="Times New Roman" id="txtBodyText" Width="550" Height="300" Runat="Server" />
        </td>
        <td valign="top">
        <asp:RequiredFieldValidator ControlToValidate="txtBodyText" Text="(required)" Runat="Server"/>
        </td>
     </tr>
     <tr>
        <td valign="top">
        &nbsp;
        </td>
        <td>
        <asp:CheckBox id="chkLocked" runat="Server"/> Do not allow replies to this post
        </td>
     </tr>
     <tr>
        <td valign="top">
        &nbsp;
        </td>
        <td>
        <asp:Panel id="pnlModerateOptions" runat="Server">
        <asp:CheckBox id="chkPinned" runat="Server"/> Pinned Post &nbsp;&nbsp; <asp:CheckBox id="chkAnnouncement" runat="Server"/> Announcement
        </asp:Panel>
        </td>
     </tr>
     <tr>
        <td colspan="2" align="right">
        <asp:Button id="btnPreview" Text="Preview" CssClass="Form_Button" Runat="Server" />
        <asp:Button id="btnAdd" Text="Submit" CssClass="Form_Button" Runat="Server" />
        <asp:Button id="btnEdit" Text="Submit" CssClass="Form_Button" Runat="Server" />
        </td>
     </tr>
     </table>   
        
        
    </td>
</tr>
</table>
</asp:Panel>

<asp:Panel id="pnlPreview" runat="Server">
<table width="100%" class="discussTable" cellpadding="0" cellspacing="0" border="0">
<tr>
    <th align="left">
    Preview Message
    </th>
</tr>
<tr>
    <td valign="top" class="discussCell">

    <table width="100%" border="0" cellpadding="4" cellspacing="0" border="0">
    <tr>
        <td class="discussCellHilite">
        <b><community:Title id="lblPreviewTitle" runat="Server" /></b>
        </td>
    </tr>
    <tr>
        <td align="right">
        <community:DisplayTopic id="topicPreview" runat="Server"/>
        </td>
    </tr>
    <tr>
        <td class="discussCell">
        <community:PostBodyText id="lblPreviewBodyText" runat="Server" />
        </td>
    </tr>
    <tr>
        <td>
        <asp:Button id="btnContinue" Text="Continue" CssClass="Form_Button" Runat="Server" />
        </td>
    </tr>
    </table>

        
    </td>
</tr>
</table>
</asp:Panel>

⌨️ 快捷键说明

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