first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>雅蓝软件搜索</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[ <div class="main_search">
|
||||
图片搜索:<select id="nodeId" name="nodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="2" /}</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.SkinPath/}Images/search_b.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" />
|
||||
<a href="{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&ModelId=2">高级搜索</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=2&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
Reference in New Issue
Block a user