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

📄 view-createeditpost.ascx

📁 community server 源码
💻 ASCX
📖 第 1 页 / 共 2 页
字号:
					</asp:PlaceHolder>
				</div>
			</Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server" id="OptionsPane">
			<Tab OnClickClientFunction="InkHidden"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_Tab_Options" /></Tab>
			<Content>
					<asp:PlaceHolder id="editAttachment" runat="server" Visible="False" >
						<div class="CommonFormFieldName">
							<label for="FileToUpload"><CS:ResourceControl id="NewAttachment" runat="server" ResourceName="CreateEditPost_Attachment" /></label> 
						</div>
						<div class="CommonFormField">
							<asp:Label id="Filename" runat="server" />
							<input type="hidden" id="ServerUploadTempID" runat="server" name="ServerUploadTempID">
							<input type="hidden" id="ServerFilename" runat="server" name="ServerFilename">
							<cs:modal modaltype="Link" CssClass="CommonTextButton" width="640" height="180" runat="Server" callback="getAttachmentData" id="AddUpdateAttachment" ResourceName="CreateEditPost_AddUpdateAttachment" />
							<a href="#" onclick="removeAttachment(); return false;" class="CommonTextButton" runat="server" id="RemoveAttachment"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_RemoveAttachment" /></a>
						</div>
						<p />
					</asp:PlaceHolder>

					<div class="CommonFormField">
						<asp:checkbox id="IsLocked" runat="server" />    
					</div>
					
					<div class="CommonFormField">
						<asp:checkbox id="SubscribeToThread" Checked="true" runat="server"/>
					</div>
					
					<div class="CommonFormField">
						<asp:checkbox id="IsAnonymousPost" runat="server" />
					</div>
					
					<p />
					<div id="AllowPinnedPosts" runat="server" visible="false">
						<div class="CommonFormFieldName">
							<label for="<%=PinnedPost.ClientID %>" ><CS:ResourceControl runat="server" ResourceName="CreateEditPost_Stickiness" ID="Resourcecontrol6"/> </label>
						</div>
						<div class="CommonFormField">
							<asp:dropdownlist id="PinnedPost" runat="server" />
						</div>
					</div>
					
					<p />
					<div id="Icons" runat="Server" >
						<div class="CommonFormFieldName">
							<label><CS:ResourceLabel runat="server" ResourceName="CreateEditPost_PostIcon" ID="Resourcelabel1"/>:</label>
						</div>
						<div class="CommonFormField">
							<CSD:PostIconRadioButtonList id="PostIcon" class="txt3" cellpadding="0" cellspacing="0" width="400" RepeatColumns=18 runat="server" />
						</div>
					</div>

			</Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server" id="InkPane">
			<Tab OnClickClientFunction="InkVisible"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_Tab_Ink" /></Tab>
			<Content>
				<p>
					<asp:CheckBox ID = "EnableInk" Runat = "server" Checked = "True" Text = "Enable Ink?" onclick = "toggleInk(this);" />
				</p>
			</Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server" id="VideoPane">
			<Tab OnClickClientFunction="InkHidden"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_Tab_Video" /></Tab>
			<Content>
				<div class="CommonFormArea" style="width: 650px">
					<div class="CommonFormFieldName">
						<label for="<%= VideoUrl.ClientID %>"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_VideoUrl" ID="Resourcecontrol7"/></label>
					</div>
					<div class="CommonFormField">
						<asp:textbox id="VideoUrl" runat="server" autocomplete="off" style="width:80%" />
					</div>
					
					<div class="CommonFormFieldName">
						<label for="<%= VideoImageUrl.ClientID %>"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_PreviewImageUrl" ID="Resourcecontrol8"/></label>
					</div>
					<div class="CommonFormField">
						<asp:textbox id="VideoImageUrl" runat="server" autocomplete="off" style="width:80%" />
					</div>
					
					<div class="CommonFormFieldName">
						<label for="<%= VideoDuration.ClientID %>"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_VideoDuration" ID="Resourcecontrol9"/></label>
					</div>
					<div class="CommonFormField">
						<asp:textbox id="VideoDuration" runat="server" autocomplete="off" style="width:80%" />
					</div>
					
					<div class="CommonFormFieldName">
						<label for "<%= VideoWidth.ClientID %>"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_VideoWidth" ID="Resourcecontrol11"/></label>
					</div>
					<div class="CommonFormField">
						<asp:textbox id="VideoWidth" runat="server" autocomplete="off" style="width:80%" />
						<asp:RegularExpressionValidator id="VideoWidthValidator" ControlToValidate="VideoWidth" ValidationExpression="^[0-9]*$" runat="server">*</asp:RegularExpressionValidator>
					</div>
					
					<div class="CommonFormFieldName">
						<label for "<%= VideoDuration.ClientID %>"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_VideoHeight" ID="Resourcecontrol12"/></label>
					</div>
					<div class="CommonFormField">
						<asp:textbox id="VideoHeight" runat="server" autocomplete="off" style="width:80%" />
						<asp:RegularExpressionValidator id="VideoHeightValidator" ControlToValidate="VideoHeight" ValidationExpression="^[0-9]*$" runat="server">*</asp:RegularExpressionValidator>
					</div>
				</div>
			</Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server" id="PollPane">
			<Tab OnClickClientFunction="InkHidden"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_Tab_Poll" /></Tab>
			<Content>
				<div class="CommonFormFieldName">
					<asp:CheckBox Runat="server" ID="IncludePoll" /> <CS:ResourceControl runat="server" ResourceName="CreateEditPost_IncludePoll" />
				</div>
				<div class="CommonFormField">
					<CS:ResourceControl runat="server" ResourceName="CreateEditPost_IncludePoll_Details" />
				</div>
				<p />				
				<div id="PollContainer">
					<CS:PollEditor runat="server" ID="PollEditor" />
				</div>
			</Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server" id="PreviewPane">
			<Tab OnClickClientFunction="FetchRelated"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_Tab_Related" /></Tab>
			<Content>
				<p>
				<ComponentArt:CallBack id="SearchCallBack" CacheContent="false" runat="server" >
					<Content>
							<asp:Repeater id="SearchRepeater" runat="Server" EnableViewState="false">
								<HeaderTemplate>
									<ul class="CommonSearchResultList">
								</HeaderTemplate>
								<ItemTemplate>
									<li>
									<div class="CommonSearchResultArea">
										<h4 class="CommonSearchResultName"><a target="_blank" href="<%# DataBinder.Eval(Container.DataItem, "Url") %>"><%# DataBinder.Eval(Container.DataItem, "Title") %></a></h4>
										<div class="CommonSearchResult">
											<%# Formatter.GetBodySummary(DataBinder.Eval(Container.DataItem, "BestMatch").ToString(),350, "", System.Drawing.Color.Black, System.Drawing.Color.Yellow) %>
										</div>
										<div class="CommonSearchResultDetails">
											Posted to <a href ="<%# DataBinder.Eval(Container.DataItem, "ApplicationUrl") %>"><%# DataBinder.Eval(Container.DataItem, "SectionName") %> (<%# DataBinder.Eval(Container.DataItem, "ApplicationType") %>)</a> by <a href="#"><%# DataBinder.Eval(Container.DataItem, "UserName") %></a> on <%# DataBinder.Eval(Container.DataItem, "PostDate","{0:MMMM d, yyyy}") %>
										</div>
									</div>
									</li>
								</ItemTemplate>
								<FooterTemplate>
									</ul>
								</FooterTemplate>
							</asp:Repeater>
					</Content>
					<LoadingPanelClientTemplate>
						Loading...<img src = "../utility/spinner.gif" />
					</LoadingPanelClientTemplate>
				</ComponentArt:CallBack>
				</p>
			</Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server" id="RelatedPane">
			<Tab OnClickClientFunction="SelectPreview"><CS:ResourceControl runat="server" ResourceName="CreateEditPost_Tab_Preview" /></Tab>
			<Content>
					<div id="loading" style="display:none">Loading <asp:Image runat="server" ImageUrl="~/utility/spinner.gif" /></div>
					<div ID="Preview"><csd:PostFlatPreview runat="server" id="PostFlatPreview" /></div>
			</Content>
		</TWC:TabbedPane>
	</TWC:TabbedPanes>
<div id="inkWrapper" class="CommonPane" style="position:absolute;left:-5000px;">
<cs:inkwebcontrol runat="Server" id="InkControl" /></div>
		
	<div class="CommonFormArea">
		<div id="Buttons" class="CommonFormField">
			<asp:Button id="CancelButton" Name="CancelButton" Runat="server" ButtonType="CancelMessage" CausesValidation="False" Visible = "False" />
			<asp:button id="PostButton" Name="PostButton" runat="server" ButtonType="PostMessage" />
		</div>
	</div>
	</div>
</div>

<script language="javascript">

var e = document.getElementById('<%= ServerUploadTempID.ClientID %>');
if (e)
{
	if (e.value)
		document.getElementById('<%= RemoveAttachment.ClientID %>').style.visibility = 'visible';
	else
		document.getElementById('<%= RemoveAttachment.ClientID %>').style.visibility = 'hidden';
}
	
e = document.getElementById('<%= IncludePoll.ClientID %>');
if (e)
{
	e.onclick = new Function("if (document.getElementById('<%=IncludePoll.ClientID%>').checked) { document.getElementById('PollContainer').style.display = 'block'; } else { document.getElementById('PollContainer').style.display = 'none'; }");
	e.onclick();
}

</script>

⌨️ 快捷键说明

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