42 lines
2.2 KiB
XML
42 lines
2.2 KiB
XML
<?xml version="1.0"?>
|
|
<root>
|
|
<LabelType>政府标签</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>txt</OutType>
|
|
<LabelDataType>static</LabelDataType>
|
|
<LabelTemplate><![CDATA[
|
|
<div class="c_c_setecttxt">
|
|
<input id="Keyword" onfocus="this.value='';" maxLength="70" size="30" value="" name="Keyword" />
|
|
<select name='nodeid' id="NodeId" size='1'>
|
|
{PE.Label id="栏目分类下拉列表选项" nodeid="@RequestInt_id" depth="5" span="" class="" /}
|
|
</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>
|
|
<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>
|
|
<input id="Submit" style="border: 0px;width: 55px;height: 26px;" type="image" src="{PE.SiteConfig.SkinPath/}images/article_searchbt.gif" name="Button" onclick="OnSearchCheckAndSubmit();" />
|
|
]]></LabelTemplate>
|
|
</root> |