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

📄 view-createeditpost.ascx

📁 cnForums是功能强大的论坛。开发语言c#,三层结构。模块设计很值得学习
💻 ASCX
📖 第 1 页 / 共 2 页
字号:
<%@ Control Language="C#" %>
<%@ Import Namespace="AspNetForums.Components" %>
<%@ Register TagPrefix="Forums" Namespace="AspNetForums.Controls" Assembly="AspNetForums.Controls" %>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<!-- ********* View-CreateEditPost.ascx:Start ************* //-->	
<script language="JavaScript">
function InsertText(textToInsert) {
FTB_API['<%=PostBodyRichText.ClientID %>'].InsertHtml(textToInsert);
}

function AddTo() {

  var EmailAddres = new Object();
  var _rv
  EmailAddres.to = document.PostForm.<%=To.UniqueID.Replace(":","_") %>.value;

  _rv = OpenWindow('EditFavorites','530','475','','','','no','no','no','no','/',EmailAddres);

  document.PostForm.<%=To.UniqueID.Replace(":","_") %>.value = _rv.to;

}

function OpenWindow (strName,iW,iH,TOP,LEFT,R,S,SC,T,TB,URL,dArg) {

    var sF=""
    var _rv
    sF+=T?'unadorned:'+T+';':'';
    sF+=TB?'help:'+TB+';':'';
    sF+=S?'status:'+S+';':'';
    sF+=SC?'scroll:'+SC+';':'';
    sF+=R?'resizable:'+R+';':'';
    sF+=iW?'dialogWidth:'+iW+'px;':'';
    sF+=iH?'dialogHeight:'+iH+'px;':'';
    sF+=TOP?'dialogTop:'+TOP+'px;':'';
    sF+=LEFT?'dialogLeft:'+LEFT+'px;':'';

    var _R = window.showModalDialog("/", sF);

    return _R;

}

</script>
<Forums:NavigationMenu runat="server" />

<table cellpadding="" cellspacing="" align="center" width="75%">
    <tr>
        <td>
			<br />
			<Forums:DisplayTitle runat="server" />
        </td>
    </tr>
    <tr>
        <td align="left" valign="middle" class="txt4">
			<br />
			&nbsp;<Forums:BreadCrumb ShowHome="true" runat="server" ID="Breadcrumb1"/>
			<br /><br /><br />
		</td>        
    </tr>
</table>
<table cellpadding="" cellspacing="" align="center" width="80%">    
	<tr>
		<td>
			<table class="tableBorder" cellSpacing="1" cellPadding="3" align="center" width="100%">
			
    <tr>
        <td class="column" align="left" height="25">
            &nbsp;<asp:label id="PostTitle" runat="server"></asp:label>
        </td>
    </tr>
	<span id="ReplyTo" runat="server" visible="false">
    <tr>
        <td class="f" align="left">
            <table cellSpacing="1" cellPadding="3">
                <tr>
                    <td colSpan="2" class="txt3"><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_Inline1") %></td>
                </tr>
                <tr>
                    <td vAlign="top" noWrap class="txt3" align="right"><b><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_Inline2") %></b></td>
                    <td vAlign="top" align="left" class="txt3"><b><asp:hyperlink Target="_blank" id="ReplyPostedBy" Runat="server" /></b><asp:label id="ReplyPostedByDate" Runat="server" ></asp:label></td>
                </tr>
                <tr>
                    <td vAlign="top" align="right" class="txt3"><b><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_Inline3") %></b></td>
                    <td vAlign="top" align="left" class="txt3"><b><asp:hyperlink Target="_blank" id="ReplySubject" runat="server" /></b></td>
                </tr>
                <tr>
                    <td vAlign="top" align="right" class="txt3"><b><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_Inline4") %></b></td>
                    <td vAlign="top" align="left" class="quoteTable"><asp:label CssClass="txt4" id="ReplyBody" runat="server"></asp:label></td>
                </tr>
            </table>
        </td>
    </tr>

	</span>
	<span id="Preview" runat="server" visible="false">

        <tr>
            <td class="f">
                <table cellSpacing="1" cellPadding="3" width="100%" class="tableBorder" border="0">
                    <tr>
                        <td class="f" vAlign="top" align="left">
                            <b><asp:label id="PreviewSubject" runat="server"></asp:label></b>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" align="left" class="fh3">
                            <asp:label id="PreviewBody" runat="server"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="f" vAlign="top" align="right">
                            <asp:button id="BackButton" Runat="server"></asp:button>&nbsp;
                            <asp:button id="PreviewPostButton" Runat="server"></asp:button></td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
   
	</span>
	<span id="Post" runat="server" visible="true">

        <tr>
            <td class="f">
                <table cellSpacing="1" cellPadding="3">
                    <tr>
                        <td vAlign="top" nowrap align="right" class="txt3Bold"><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_Inline5") %></td>
                        <td vAlign="top" align="left" colSpan="2" class="txt3"><asp:label id="PostAuthor" runat="server" /></td>
                    </tr>
                    <tr id="MessageTo" runat="server" visible="false">
                      <td nowrap valign="center" align="right" class="txt3Bold"><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_To") %></td>
                      <td vAlign="top" align="left" colSpan="2"><asp:textbox enabled="false" autocomplete="off" id="To" runat="server" columns="83"></asp:textbox></td>
                    </tr>
                    <tr id="Edit" runat="server" visible="false">
                        <td vAlign="top" nowrap align="right" class="txt3Bold"><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_Inline6") %></td>
                        <td vAlign="top" align="left" colSpan="2" class="txt3"><asp:label id="PostEditor" runat="server" /></td>
                    </tr>
                    <tr>
                        <td nowrap valign="center" class="txt3" align="right"><b><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_Inline7") %></b></td>
                        <td vAlign="top" align="left"><asp:textbox autocomplete="off" id="PostSubject" runat="server" columns="83"></asp:textbox></td>
                        <td class="txt3Bold"><asp:requiredfieldvalidator id="postSubjectValidator" runat="server" CssClass="validationWarning" ControlToValidate="PostSubject">*</asp:requiredfieldvalidator></td>
                    </tr>
                    <tr>
                        <td nowrap valign="top" class="txt3Bold" align="right"><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_MessageIcon") %></td>
                        <td vAlign="top" align="left">
                          <asp:RadioButtonList class="txt3" runat="server" cellpadding="0" cellspacing="0" width="100%" RepeatColumns=8 id="PostIcon">
                            <asp:ListItem Value="" Selected="true">&nbsp; 无</asp:ListItem>
                            <asp:ListItem Value="1">&nbsp; <img src="emoticons/emotion-1.gif" ></asp:ListItem>
                            <asp:ListItem Value="6">&nbsp; <img src="emoticons/emotion-6.gif" ></asp:ListItem>
                            <asp:ListItem Value="11">&nbsp; <img src="emoticons/emotion-11.gif" ></asp:ListItem>
                            <asp:ListItem Value="12">&nbsp; <img src="emoticons/emotion-12.gif" ></asp:ListItem>
                            <asp:ListItem Value="16">&nbsp; <img src="emoticons/emotion-16.gif" ></asp:ListItem>
                            <asp:ListItem Value="39">&nbsp; <img src="emoticons/emotion-39.gif" ></asp:ListItem>
                            <asp:ListItem Value="40">&nbsp; <img src="emoticons/emotion-40.gif" ></asp:ListItem>
                            <asp:ListItem Value="15">&nbsp; <img src="emoticons/emotion-15.gif" ></asp:ListItem>
                            <asp:ListItem Value="3">&nbsp; <img src="emoticons/emotion-3.gif" ></asp:ListItem>
                            <asp:ListItem Value="31">&nbsp; <img src="emoticons/emotion-31.gif" ></asp:ListItem>
                            <asp:ListItem Value="30">&nbsp; <img src="emoticons/emotion-30.gif" ></asp:ListItem>
                            <asp:ListItem Value="51">&nbsp; <img src="emoticons/emotion-51.gif" ></asp:ListItem>
                            <asp:ListItem Value="55">&nbsp; <img src="emoticons/emotion-55.gif" ></asp:ListItem>
                            <asp:ListItem Value="45">&nbsp; <img src="emoticons/emotion-45.gif" ></asp:ListItem>
                            <asp:ListItem Value="21">&nbsp; <img src="emoticons/emotion-21.gif" ></asp:ListItem>
                          </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr id="trVoteOptions" runat="server" visible="false">
                         <td nowrap valign="top" class="txt3Bold" align="right">
							<% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_VoteOptions") %>
							<p>
                           <table class="tableBorder">
                            <tr>
                              <td class="column" align="center"><% = AspNetForums.Components.ResourceManager.GetString("CreateEditPost_VoteOptions") %></td>
                            </tr>
 
                            <tr>

⌨️ 快捷键说明

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