Files
2026-08-31 16:22:00 +08:00

41 lines
1.9 KiB
Plaintext

<root>
<LabelType>Flash类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelDataType>static</LabelDataType>
<LabelTemplate><![CDATA[<div class="c_newssearch_sp1">Flash搜索</div>
<div class="c_newssearch_list">
<select id="nodeId" name="nodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="99" /}</select>
<select name="fieldOption" id="fieldOption" size="1">
<option value="title" selected="selected">名称</option>
<option value="intro">简介</option>
</select>
<input id="keyword" onfocus="this.value='';" maxlength="100" size="30" value="" name="Keyword" />
</div>
<div class="c_newssearch_sp2">
<input id="Submit" style="border: 0px; width: 81px; height: 26px;" type="image" src="{PE.SiteConfig.SkinPath/}Images/flashsearch_bt.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" />
</div>
<div class="c_newssearch_list">
<a href="{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&ModelId=25">高级搜索</a>
</div>
<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=25&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
}
}
</script>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>