📄 文章搜索.config
字号:
<root>
<LabelType>搜索类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>雅蓝软件搜索</LabelIntro>
<LabelDataType>static</LabelDataType>
<LabelTemplate><![CDATA[ <div class="main_search">
文章搜索:<select name="nodeId'" id="nodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="1" depth="5" /}</select><select name="fieldOption" id="fieldOption" size="1"><option value="title" selected>文章标题</option>
<option value="content">文章内容</option>
<option value="author">文章作者</option>
<option value="inputer">录 入 者</option>
<option value="keyword">关键字</option>
</select><input id="keyword" onfocus="this.value='';" maxlength="100" size="30" value="" name="Keyword" />
<input id="Submit" style="border: 0px; width: 65px; height: 21px;" type="image" src="{PE.SiteConfig.applicationpath/}Skin/Default/Images/search_b.gif" name="Button" onclick="OnSearchCheckAndSubmit();" />
<a href="{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&ModelId=1">高级搜索</a>
<script language="javascript" type="text/javascript">
function OnSearchCheckAndSubmit(){
var keyword = document.getElementById("keyword").value;
if (keyword == '' || keyword == null) {
alert("请填写您想搜索的关键词");
return;
}
else {
var nodeSel = document.getElementById("nodeId");
var fieldOptionSel = document.getElementById("fieldOption");
var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
var fieldOption = fieldOptionSel.options[fieldOptionSel.options.selectedIndex].value;
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=1&ModelId=1&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
}
}
</script>
</div>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -