first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[ <div class="main_search">
|
||||
专题搜索:<select name="specialId" id="specialId" size="1">{PE.Label id="专题下拉列表选项" /}</select><select name="fieldOption" id="fieldOption" size="1"><option value="title" selected>标题</option>
|
||||
<option value="inputer">录入者</option>
|
||||
<option value="keyword">关键字</option>
|
||||
</select><input id="keyword" onfocus="this.value='';" maxlength="100" size="30" value="填写您想搜索的关键词" name="Keyword" />
|
||||
<input name="searchtype" type="hidden" id="searchtype" value="3" />
|
||||
<input id="Submit" style="border: 0px; width: 65px; height: 21px;" type="image" src="{PE.SiteConfig.SkinPath/}Images/search_b.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" />
|
||||
<script language="javascript" type="text/javascript">
|
||||
function OnSearchCheckAndSubmit() {
|
||||
var keyword = document.getElementById("keyword").value;
|
||||
var fieldOptionSel = document.getElementById("fieldOption");
|
||||
var fieldOption = fieldOptionSel.options[fieldOptionSel.options.selectedIndex].value;
|
||||
var specialSel = document.getElementById("specialId");
|
||||
var specialId = specialSel.options[specialSel.options.selectedIndex].value;
|
||||
if (keyword == '' || keyword == null) {
|
||||
alert("请填写您想搜索的关键词");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=3&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption + "&specialId=" + escape(specialId);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
Reference in New Issue
Block a user