first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[<div class="main_search">
|
||||
站内搜索:
|
||||
<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();" />
|
||||
<br />
|
||||
热门关键词:{PE.Label id="热门关键词" outputQty="10" splitChar=" | " /}
|
||||
<script language="javascript" type="text/javascript">
|
||||
function OnSearchCheckAndSubmit(){
|
||||
var keyword = document.getElementById("keyword").value;
|
||||
if (keyword == '' || keyword == null) {
|
||||
alert("请填写您想搜索的关键词");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
||||
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=0&Keyword=" + escape(keyword);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
Reference in New Issue
Block a user