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

📄 smallsearchpanel.ascx

📁 Portal C# Article Live
💻 ASCX
字号:
<%@ Import namespace="Interspire.ArticleLive.Web" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="SmallSearchPanel.ascx.cs" Inherits="Interspire.ArticleLive.Web.Templates.SlickFixed.Panels.SmallSearchPanel" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="cc1" Namespace="Interspire.ArticleLive.Web" Assembly="Interspire.ArticleLive.Web" %>
<script language="C#" runat=server>
protected override void OnInit(EventArgs e)
{
	GoButton.Attributes.Add("onclick", "return CheckSmallSearchForm()");
	
	base.OnInit(e);
}
</script>
<table class="Panel SmallSearchPanel">
	<tr>
		<td class="Heading"><%# ResourceHelper.GetString("Search") %>
		</td>
	<tr>
		<td class="Content">
			<cc1:MessageControl id="MessageControl1" runat="server" SlimView="True" Key="SmallSearchPanel"></cc1:MessageControl>
			<asp:TextBox Runat="server" id="Query" CssClass="Field" Width="80%"></asp:TextBox><asp:Button Runat="server" Text='<%# ResourceHelper.GetString("Go") %>' id="GoButton" CssClass="Button" CausesValidation="False" Width="20%"></asp:Button><BR>
			<cc1:CategorySelect id="Categories" runat="server" HideNoSelection="False" NoSelectionText='<%# ResourceHelper.GetString("AllCategoriesOption") %>' CssClass="FieldFull" >
			</cc1:CategorySelect><BR>
			<A href="<%= Config.Current.ArticlesPagePath %>?a=AdvancedSearch">
				<%# ResourceHelper.GetString("AdvancedSearch") %>
			</A>
		</td>
	</tr>
</table>
<script language="javascript">
function CheckSmallSearchForm()
{
	if (document.getElementById('<%= Query.ClientID %>').value == '')
	{
		alert('<%# Util.SimpleEscape(ResourceHelper.GetString("QueryRequired")) %>');
		document.getElementById('<%= Query.ClientID %>').focus();
		document.getElementById('<%= Query.ClientID %>').select();
		return false;
	}
	return true;
}
</script>
<div class="HorizontalRule"></div>

⌨️ 快捷键说明

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