first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<LabelTemplate><![CDATA[ <div>
|
||||
<input id="keyword" onfocus="this.value='';" maxlength="100" size="20" value="填写您想搜索的关键词" name="Keyword" />
|
||||
<br />
|
||||
<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;
|
||||
if (keyword == '' || keyword == null) {
|
||||
alert("请填写您想搜索的关键词");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
||||
window.location = "{PE.SiteConfig.applicationpath/}Tag.aspx?Keyword=" + escape(keyword);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,170 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>fieldName</name>
|
||||
<default>title</default>
|
||||
<intro>搜索条件字段名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<default>
|
||||
</default>
|
||||
<intro>搜索条件字段值</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT TOP 1 * FROM PE_SpecialInfos</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="specialCategoryId" />
|
||||
<xsl:param name="specialId" />
|
||||
<xsl:param name="fieldName" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="bindStyle"/>
|
||||
<xsl:param name="outputQty"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有任何相关搜索结果!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="专题搜索_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength" />" queryCond="SELECT TOP @pagesize *
|
||||
FROM
|
||||
PE_CommonModel CM
|
||||
INNER JOIN PE_SpecialInfos SI ON (CM.GeneralID = SI.GeneralID)
|
||||
WHERE
|
||||
<xsl:choose>
|
||||
<xsl:when test="$specialCategoryId > 0">
|
||||
SI.SpecialID IN (SELECT S.SpecialID FROM PE_Specials S WHERE S.SpecialCategoryID = <xsl:value-of select="$specialCategoryId" />) AND
|
||||
</xsl:when>
|
||||
<xsl:when test="$specialId > 0">
|
||||
SI.SpecialID = <xsl:value-of select="$specialId"/> AND
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
CM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$fieldValue" />%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND CM.Inputer = '<xsl:value-of select="$fieldValue" />'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND CM.GeneralID IN (
|
||||
SELECT
|
||||
KWRS.GeneralID
|
||||
FROM
|
||||
PE_Keywords KW
|
||||
INNER JOIN PE_KeywordRelationShip KWRS ON (KW.KeywordID = KWRS.KeywordID)
|
||||
WHERE
|
||||
KW.KeywordText = '<xsl:value-of select="$fieldValue" />')
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
AND CM.GeneralID NOT IN (
|
||||
SELECT TOP @startrow ICM.GeneralID FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_SpecialInfos ISI ON (ICM.GeneralID = ISI.GeneralID)
|
||||
WHERE
|
||||
<xsl:choose>
|
||||
<xsl:when test="$specialCategoryId > 0">
|
||||
ISI.SpecialID IN (SELECT S.SpecialID FROM PE_Specials S WHERE S.SpecialCategoryID = <xsl:value-of select="$specialCategoryId" />) AND
|
||||
</xsl:when>
|
||||
<xsl:when test="$specialId > 0">
|
||||
ISI.SpecialID = <xsl:value-of select="$specialId"/> AND
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue" />%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer = '<xsl:value-of select="$fieldValue" />'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND ICM.GeneralID IN (
|
||||
SELECT
|
||||
KWRS.GeneralID
|
||||
FROM
|
||||
PE_Keywords KW
|
||||
INNER JOIN PE_KeywordRelationShip KWRS ON (KW.KeywordID = KWRS.KeywordID)
|
||||
WHERE
|
||||
KW.KeywordText = '<xsl:value-of select="$fieldValue" />')
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
ORDER BY ICM.UpdateTime DESC)
|
||||
ORDER BY CM.UpdateTime DESC
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>" queryCount="SELECT COUNT (ICM.GeneralID) FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_SpecialInfos ISI ON (ICM.GeneralID = ISI.GeneralID)
|
||||
WHERE
|
||||
<xsl:choose>
|
||||
<xsl:when test="$specialCategoryId > 0">
|
||||
ISI.SpecialID IN (SELECT S.SpecialID FROM PE_Specials S WHERE S.SpecialCategoryID = <xsl:value-of select="$specialCategoryId" />) AND
|
||||
</xsl:when>
|
||||
<xsl:when test="$specialId > 0">
|
||||
ISI.SpecialID = <xsl:value-of select="$specialId"/> AND
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue" />%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer = '<xsl:value-of select="$fieldValue" />'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND ICM.GeneralID IN (
|
||||
SELECT
|
||||
KWRS.GeneralID
|
||||
FROM
|
||||
PE_Keywords KW
|
||||
INNER JOIN PE_KeywordRelationShip KWRS ON (KW.KeywordID = KWRS.KeywordID)
|
||||
WHERE
|
||||
KW.KeywordText = '<xsl:value-of select="$fieldValue" />')
|
||||
</xsl:when>
|
||||
</xsl:choose>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>20</default>
|
||||
<intro>标题最多显示字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>specialCategoryId</name>
|
||||
<default>0</default>
|
||||
<intro>专题类别ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>specialId</name>
|
||||
<default>0</default>
|
||||
<intro>专题</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>30</default>
|
||||
<intro>分页大小</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>keyword</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>哈哈</default>
|
||||
<intro>搜索关键字值</intro>
|
||||
</attributes>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 KeywordID FROM PE_Keywords WHERE KeywordText = '@keyword']]></LabelSqlString>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength"/>
|
||||
<xsl:param name="keyword"/>
|
||||
<xsl:param name="outputQty"/>
|
||||
<xsl:param name="tableName"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0 ">
|
||||
<li>还没有内容</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="全站搜索按关键字_普通式" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM
|
||||
<xsl:if test="$tableName != ''">
|
||||
INNER JOIN <xsl:value-of select="$tableName" /> UT ON (CM.ItemID = UT.ID)
|
||||
</xsl:if>
|
||||
WHERE
|
||||
CM.Status = 99 AND CM.SigninType!=2 AND
|
||||
CM.GeneralID IN(SELECT KM.GeneralID FROM PE_KeywordRelationShip KM WHERE KM.KeywordID = <xsl:value-of select="/NewDataSet/Table/KeywordID"/>) AND
|
||||
CM.GeneralID NOT IN(
|
||||
SELECT TOP @startrow ICM.GeneralID
|
||||
FROM PE_CommonModel ICM
|
||||
<xsl:if test="$tableName != ''">
|
||||
INNER JOIN <xsl:value-of select="$tableName" /> IUT ON (ICM.ItemID = IUT.ID)
|
||||
</xsl:if>
|
||||
WHERE ICM.Status = 99 AND ICM.SigninType!=2 AND ICM.GeneralID IN(SELECT IKM.GeneralID FROM PE_KeywordRelationShip IKM WHERE IKM.KeywordID = <xsl:value-of select="/NewDataSet/Table/KeywordID"/>)
|
||||
ORDER BY ICM.UpdateTime DESC)
|
||||
ORDER BY CM.UpdateTime DESC" queryCount="SELECT COUNT (ICM.GeneralID)
|
||||
FROM PE_CommonModel ICM
|
||||
<xsl:if test="$tableName != ''">
|
||||
INNER JOIN <xsl:value-of select="$tableName" /> IUT ON (ICM.ItemID = IUT.ID)
|
||||
</xsl:if>
|
||||
WHERE ICM.Status = 99 AND ICM.SigninType!=2 AND ICM.GeneralID IN(SELECT KM.GeneralID FROM PE_KeywordRelationShip KM WHERE KM.KeywordID = <xsl:value-of select="/NewDataSet/Table/KeywordID"/>)" titleLength="<xsl:value-of select="$titleLength"/>" tableName="<xsl:value-of select="$tableName"/>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>标题最多字符数</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>20</default>
|
||||
<intro>每页分页数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>tableName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>所属表名</intro>
|
||||
</attributes>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>keyword</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>搜索关键字值</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>10</default>
|
||||
<intro>输出项目的条目数</intro>
|
||||
</attributes>
|
||||
<LabelSqlString><![CDATA[SELECT Title = '@keyword']]></LabelSqlString>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="keyword"/>
|
||||
<xsl:param name="titleLength"/>
|
||||
<xsl:param name="outputQty"/>
|
||||
<xsl:template match="/">
|
||||
{PE.Label id="全站搜索按标题_普通式" queryCond="SELECT TOP @pagesize
|
||||
CM.*
|
||||
FROM
|
||||
PE_CommonModel CM
|
||||
WHERE
|
||||
CM.GeneralID NOT IN (SELECT TOP @startrow ICM.GeneralID FROM PE_CommonModel ICM WHERE ICM.Status = 99 AND ICM.Title LIKE '%<xsl:value-of select="/NewDataSet/Table/Title"/>%' ORDER BY ICM.UpdateTime DESC) AND
|
||||
CM.Status = 99 AND CM.SigninType!=2 AND
|
||||
CM.Title LIKE '%<xsl:value-of select="/NewDataSet/Table/Title"/>%'
|
||||
ORDER BY
|
||||
CM.UpdateTime DESC" queryCount="SELECT COUNT (ICM.GeneralID) FROM PE_CommonModel ICM WHERE ICM.Status = 99 AND ICM.Title LIKE '%<xsl:value-of select="/NewDataSet/Table/Title"/>%'" titleLength="<xsl:value-of select="$titleLength"/>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>20</default>
|
||||
<intro>标题最多字符数</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>内容聚合标签功能模块</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4701" compatibleVersion="" />
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html"/>
|
||||
<xsl:template match="NewDataSet">
|
||||
<ul>
|
||||
<xsl:for-each select="Table">
|
||||
<li>
|
||||
<xsl:variable name="link">
|
||||
<xsl:choose>
|
||||
<xsl:when test="not(Search) or normalize-space(Search)=''">
|
||||
<xsl:value-of select="pe:UrlEncode(Display)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:UrlEncode(Search)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<a>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('RootDir')"/>Search/s.aspx?f=0&c=&qor=<xsl:value-of select="$link">
|
||||
</xsl:value-of>&t=adv&id=<xsl:value-of select="ID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Display"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
]]>
|
||||
</LabelTemplate>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP 10 ID,Display,Search,Template,[Order] FROM PE_ContentAggregation ORDER BY [Order] ASC </LabelSqlString>
|
||||
</root>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,140 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容父栏目ID{默认值:1,自动传入:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>输出的内容数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>300</default>
|
||||
<intro>内容最多显示字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>title</default>
|
||||
<intro>搜索条件字段名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>搜索条件字段值</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式{普通式:普通式,默认值:普通式}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @parentId</LabelSqlString>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="fieldName" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">
|
||||
没有任何相关搜索结果!
|
||||
</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="图片栏目内搜索_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" fieldValue="<xsl:value-of select="$fieldValue"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM INNER JOIN PE_U_Photo UT ON (CM.ItemID = UT.ID)
|
||||
WHERE CM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND CM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND UT.PhotoIntro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND UT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND UT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>AND CM.GeneralID NOT IN (
|
||||
SELECT TOP @startrow ICM.GeneralID
|
||||
FROM PE_CommonModel ICM INNER JOIN PE_U_Photo IUT ON ICM.ItemID = IUT.ID
|
||||
WHERE ICM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND IUT.PhotoIntro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
ORDER BY ICM.UpdateTime)
|
||||
ORDER BY CM.UpdateTime" queryCount="SELECT COUNT (ICM.GeneralID)
|
||||
FROM PE_CommonModel ICM INNER JOIN PE_U_Photo IUT ON ICM.ItemID = IUT.ID
|
||||
WHERE ICM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND IUT.PhotoIntro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,254 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<default>0</default>
|
||||
<intro>内容长度,一个汉字占两个字节,如填写"20"则显示10个汉字,为0则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式{默认值:普通式,普通式:普通式}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>30</default>
|
||||
<intro>每页显示数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<default>1</default>
|
||||
<intro>父栏目ID{默认值:1,传入值@Request_parentId}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>lowInfoPoint</name>
|
||||
<default>0</default>
|
||||
<intro>阅读点数{默认值:0,传入值@Request_lowInfoPoint}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>longInfoPoint</name>
|
||||
<default>0</default>
|
||||
<intro>阅读点数{默认值:0,传入值@Request_longInfoPoint}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>startDate</name>
|
||||
<default />
|
||||
<intro>更新日期{默认值:"",传入值@RequestDate_startDate}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>endDate</name>
|
||||
<default />
|
||||
<intro>更新日期{默认值:"",传入值@RequestDate_endDate}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>title</name>
|
||||
<default />
|
||||
<intro>标题{默认值:"",传入值@Request_title}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>content</name>
|
||||
<default />
|
||||
<intro>内容{默认值:"",传入值@Request_content}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>intro</name>
|
||||
<default />
|
||||
<intro>简介{默认值:"",传入值@Request_intro}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>author</name>
|
||||
<default />
|
||||
<intro>作者{默认值:"",传入值@Request_author}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<default />
|
||||
<intro>录入者{默认值:"",传入值@Request_inputer}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>source</name>
|
||||
<default />
|
||||
<intro>来源{默认值:"",传入值@Request_source}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>keyword</name>
|
||||
<default />
|
||||
<intro>关键字{默认值:"",传入值@Request_keyword}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>editor</name>
|
||||
<default />
|
||||
<intro>编辑{默认值:"",传入值:@Request_editor}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @parentId</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="parentId" />
|
||||
<xsl:param name="lowInfoPoint" />
|
||||
<xsl:param name="longInfoPoint" />
|
||||
<xsl:param name="startDate" />
|
||||
<xsl:param name="endDate" />
|
||||
<xsl:param name="title" />
|
||||
<xsl:param name="content" />
|
||||
<xsl:param name="intro" />
|
||||
<xsl:param name="author" />
|
||||
<xsl:param name="editor" />
|
||||
<xsl:param name="inputer" />
|
||||
<xsl:param name="source" />
|
||||
<xsl:param name="keyword" />
|
||||
<xsl:param name="oEA" />
|
||||
<xsl:param name="oEB" />
|
||||
<xsl:param name="oEC" />
|
||||
<xsl:param name="oED" />
|
||||
<xsl:param name="oEE" />
|
||||
<xsl:param name="oEF" />
|
||||
<xsl:template match="/">
|
||||
{PE.Label id="图片高级搜索_<xsl:value-of select="$bindStyle"/>" oEA="<xsl:value-of select="$oEA"/>" oEB="<xsl:value-of select="$oEB"/>" oEC="<xsl:value-of select="$oEC"/>" oED="<xsl:value-of select="$oED"/>" oEE="<xsl:value-of select="$oEE"/>" oEF="<xsl:value-of select="$oEF"/>" titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM
|
||||
INNER JOIN PE_U_Photo UT ON (CM.ItemID=UT.ID)
|
||||
WHERE CM.Status = 99 AND CM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND UT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND UT.PhotoIntro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND UT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND CM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND UT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND UT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE (CC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (CM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>
|
||||
AND CM.GeneralID NOT IN (
|
||||
SELECT TOP @startrow ICM.GeneralID
|
||||
FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_U_Photo IUT ON (ICM.ItemID=IUT.ID)
|
||||
WHERE ICM.Status = 99 AND ICM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND IUT.PhotoIntro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND ICM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND IUT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE (ICC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (ICM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>
|
||||
ORDER BY ICM.UpdateTime DESC)
|
||||
ORDER BY CM.UpdateTime DESC" queryCount="SELECT COUNT (ICM.GeneralID)
|
||||
FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_U_Photo IUT ON (ICM.ItemID=IUT.ID)
|
||||
WHERE ICM.Status = 99 AND ICM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND IUT.PhotoIntro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND ICM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND IUT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE (ICC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (ICM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,84 @@
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>雅蓝软件搜索</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[ <div class="main_search">
|
||||
图片栏目:<select name='nodeid' size='1'id="NodeId">{PE.Label id="栏目分类下拉列表选项" nodeid="2" span="" class="" /}</select>
|
||||
<br />
|
||||
图片标题:<input id="title" maxlength="100" size="30" name="title" />
|
||||
<br />
|
||||
图片简介:<input id="photointro" maxlength="100" size="30" name="photointro" />
|
||||
<br />
|
||||
图片作者:<input id="author" maxlength="100" size="30" name="author" />
|
||||
<br />
|
||||
录 入 者:<input id="inputer" maxlength="100" size="30" name="inputer" />
|
||||
<br />
|
||||
图片来源:<input id="copyfrom" maxlength="100" size="30" name="copyfrom" />
|
||||
<br />
|
||||
关 键 字:<input id="keyword" maxlength="100" size="30" name="keyword" />
|
||||
<br />
|
||||
查看点数:<input id="lowinfopoint" maxlength="100" size="30" name="lowinfopoint" />
|
||||
到
|
||||
<input id="highinfopoint" maxlength="100" size="30" name="highinfopoint" />
|
||||
<br />
|
||||
更新时间:<input id="begindate" maxlength="100" size="30" name="begindate" />
|
||||
到
|
||||
<input id="enddate" maxlength="100" size="30" name="enddate" />
|
||||
<div class="main_search_sub">
|
||||
<input id="Submit" style="border: 0px; width: 65px; height: 21px;" type="image" src="{PE.SiteConfig.SkinPath/}Images/search_b.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" /></div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function OnSearchCheckAndSubmit() {
|
||||
|
||||
var nodeSel = document.getElementById("NodeId");
|
||||
var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
|
||||
|
||||
var title = document.getElementById("title").value;
|
||||
var photointro = document.getElementById("photointro").value;
|
||||
var author = document.getElementById("author").value;
|
||||
var inputer = document.getElementById("inputer").value;
|
||||
var copyfrom = document.getElementById("copyfrom").value;
|
||||
var keyword = document.getElementById("keyword").value;
|
||||
var lowinfopoint = document.getElementById("lowinfopoint").value;
|
||||
var highinfopoint = document.getElementById("highinfopoint").value;
|
||||
var begindate = document.getElementById("begindate").value;
|
||||
var enddate = document.getElementById("enddate").value;
|
||||
|
||||
if (CheckFloat(lowinfopoint) && CheckFloat(highinfopoint) && CheckDateTime(begindate) && CheckDateTime(enddate)) {
|
||||
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&showtype=1&ModelId=2&nodeId=" + nodeId + "&title=" + escape(title) + "&photointro=" + escape(photointro) + "&author=" + escape(author) + "&inputer=" + escape(inputer) + "©from=" + escape(copyfrom) + "&keyword=" + escape(keyword) + "&lowinfopoint=" + lowinfopoint + "&highinfopoint=" + highinfopoint + "&begindate=" + escape(begindate) + "&enddate=" + escape(enddate);
|
||||
}
|
||||
}
|
||||
function CheckDateTime(str) {
|
||||
if (str != "") {
|
||||
var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入正确的日期格式!如:1900-01-01");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function CheckFloat(str) {
|
||||
if (str != "") {
|
||||
var reg = /^\d+(\.\d+)?$/;
|
||||
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入数字型值!");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,34 @@
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>雅蓝软件搜索</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[ <div class="main_search">
|
||||
文章搜索:<select name="nodeId'" id="nodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="1" depth="5" /}</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="Button" onclick="OnSearchCheckAndSubmit();" />
|
||||
<a href="{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&ModelId=1">高级搜索</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=1&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,141 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容父栏目ID{默认值:1,自动传入:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>输出的内容数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>300</default>
|
||||
<intro>内容最多显示字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>title</default>
|
||||
<intro>搜索条件字段名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>搜索条件字段值</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式{普通式:普通式,默认值:普通式}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @parentId</LabelSqlString>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="fieldName" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">
|
||||
没有任何相关搜索结果!
|
||||
</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="文章栏目内搜索_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" fieldValue="<xsl:value-of select="$fieldValue"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM INNER JOIN PE_U_Article UT ON (CM.ItemID = UT.ID)
|
||||
WHERE CM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND CM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND UT.Content LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND UT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND UT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>AND CM.GeneralID NOT IN (
|
||||
SELECT TOP @startrow ICM.GeneralID
|
||||
FROM PE_CommonModel ICM INNER JOIN PE_U_Article IUT ON ICM.ItemID = IUT.ID
|
||||
WHERE ICM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
ORDER BY ICM.UpdateTime)
|
||||
ORDER BY CM.UpdateTime" queryCount="SELECT COUNT (ICM.GeneralID)
|
||||
FROM PE_CommonModel ICM INNER JOIN PE_U_Article IUT ON ICM.ItemID = IUT.ID
|
||||
WHERE ICM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,254 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<default>0</default>
|
||||
<intro>内容长度,一个汉字占两个字节,如填写"20"则显示10个汉字,为0则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式{默认值:普通式,普通式:普通式}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>30</default>
|
||||
<intro>每页显示数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<default>1</default>
|
||||
<intro>父栏目ID{默认值:1,传入值@Request_parentId}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>lowInfoPoint</name>
|
||||
<default>0</default>
|
||||
<intro>阅读点数{默认值:0,传入值@Request_lowInfoPoint}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>longInfoPoint</name>
|
||||
<default>0</default>
|
||||
<intro>阅读点数{默认值:0,传入值@Request_longInfoPoint}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>startDate</name>
|
||||
<default />
|
||||
<intro>更新日期{默认值:"",传入值@RequestDate_startDate}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>endDate</name>
|
||||
<default />
|
||||
<intro>更新日期{默认值:"",传入值@RequestDate_endDate}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>title</name>
|
||||
<default />
|
||||
<intro>标题{默认值:"",传入值@Request_title}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>content</name>
|
||||
<default />
|
||||
<intro>内容{默认值:"",传入值@Request_content}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>intro</name>
|
||||
<default />
|
||||
<intro>简介{默认值:"",传入值@Request_intro}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>author</name>
|
||||
<default />
|
||||
<intro>作者{默认值:"",传入值@Request_author}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<default />
|
||||
<intro>录入者{默认值:"",传入值@Request_inputer}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>source</name>
|
||||
<default />
|
||||
<intro>来源{默认值:"",传入值@Request_source}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>keyword</name>
|
||||
<default />
|
||||
<intro>关键字{默认值:"",传入值@Request_keyword}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>editor</name>
|
||||
<default />
|
||||
<intro>编辑{默认值:"",传入值:@Request_editor}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @parentId</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="parentId" />
|
||||
<xsl:param name="lowInfoPoint" />
|
||||
<xsl:param name="longInfoPoint" />
|
||||
<xsl:param name="startDate" />
|
||||
<xsl:param name="endDate" />
|
||||
<xsl:param name="title" />
|
||||
<xsl:param name="content" />
|
||||
<xsl:param name="intro" />
|
||||
<xsl:param name="author" />
|
||||
<xsl:param name="editor" />
|
||||
<xsl:param name="inputer" />
|
||||
<xsl:param name="source" />
|
||||
<xsl:param name="keyword" />
|
||||
<xsl:param name="oEA" />
|
||||
<xsl:param name="oEB" />
|
||||
<xsl:param name="oEC" />
|
||||
<xsl:param name="oED" />
|
||||
<xsl:param name="oEE" />
|
||||
<xsl:param name="oEF" />
|
||||
<xsl:template match="/">
|
||||
{PE.Label id="文章高级搜索_<xsl:value-of select="$bindStyle"/>" oEA="<xsl:value-of select="$oEA"/>" oEB="<xsl:value-of select="$oEB"/>" oEC="<xsl:value-of select="$oEC"/>" oED="<xsl:value-of select="$oED"/>" oEE="<xsl:value-of select="$oEE"/>" oEF="<xsl:value-of select="$oEF"/>" titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM
|
||||
INNER JOIN PE_U_Article UT ON (CM.ItemID=UT.ID)
|
||||
WHERE CM.Status = 99 AND CM.SigninType!=2 AND CM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND UT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND UT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND CM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND UT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND UT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE (CC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (CM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>
|
||||
AND CM.GeneralID NOT IN (
|
||||
SELECT TOP @startrow ICM.GeneralID
|
||||
FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_U_Article IUT ON (ICM.ItemID=IUT.ID)
|
||||
WHERE ICM.Status = 99 AND ICM.SigninType!=2 AND ICM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND IUT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND ICM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND IUT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE (ICC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (ICM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>
|
||||
ORDER BY ICM.UpdateTime DESC)
|
||||
ORDER BY CM.UpdateTime DESC" queryCount="SELECT COUNT (ICM.GeneralID)
|
||||
FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_U_Article IUT ON (ICM.ItemID=IUT.ID)
|
||||
WHERE ICM.Status = 99 AND ICM.SigninType!=2 AND ICM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND IUT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND ICM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND IUT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE (ICC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (ICM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,84 @@
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>雅蓝软件搜索</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[<div class="main_search">
|
||||
文章栏目:<select name="NodeId" id="NodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="1" /}</select>
|
||||
<br />
|
||||
文章标题:<input id="title" maxlength="100" size="30" name="title" />
|
||||
<br />
|
||||
文章内容:<input id="content" maxlength="100" size="30" name="content" />
|
||||
<br />
|
||||
文章简介:<input id="intro" maxlength="100" size="30" name="intro" />
|
||||
<br />
|
||||
文章作者:<input id="author" maxlength="100" size="30" name="author" />
|
||||
<br />
|
||||
录 入 者:<input id="inputer" maxlength="100" size="30" name="inputer" />
|
||||
<br />
|
||||
文章来源:<input id="source" maxlength="100" size="30" name="source" />
|
||||
<br />
|
||||
关 键 字:<input id="keyword" maxlength="100" size="30" name="keyword" />
|
||||
<br />
|
||||
阅读点数:<input id="lowinfopoint" maxlength="100" size="30" name="lowinfopoint" />
|
||||
到
|
||||
<input id="highinfopoint" maxlength="100" size="30" name="highinfopoint" />
|
||||
<br />
|
||||
更新时间:<input id="begindate" maxlength="100" size="30" name="begindate" />
|
||||
到
|
||||
<input id="enddate" maxlength="100" size="30" name="enddate" />
|
||||
<div class="main_search_sub">
|
||||
<input id="Submit" style="border: 0px; width: 65px; height: 21px;" type="image" src="{PE.SiteConfig.SkinPath/}Images/search_b.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" /></div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function OnSearchCheckAndSubmit() {
|
||||
var nodeSel = document.getElementById("NodeId");
|
||||
var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
|
||||
var title = document.getElementById("title").value;
|
||||
var content = document.getElementById("content").value;
|
||||
var intro = document.getElementById("intro").value;
|
||||
var author = document.getElementById("author").value;
|
||||
var inputer = document.getElementById("inputer").value;
|
||||
var source = document.getElementById("source").value;
|
||||
var keyword = document.getElementById("keyword").value;
|
||||
var lowinfopoint = document.getElementById("lowinfopoint").value;
|
||||
var highinfopoint = document.getElementById("highinfopoint").value;
|
||||
var begindate = document.getElementById("begindate").value;
|
||||
var enddate = document.getElementById("enddate").value;
|
||||
if (CheckFloat(lowinfopoint) && CheckFloat(highinfopoint) && CheckDateTime(begindate) && CheckDateTime(enddate)) {
|
||||
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&showtype=1&ModelId=1&nodeId=" + nodeId + "&title=" + escape(title) + "&content=" + escape(content) + "&intro=" + escape(intro) + "&author=" + escape(author) + "&inputer=" + escape(inputer) + "&source=" + escape(source) + "&keyword=" + escape(keyword) + "&lowinfopoint=" + lowinfopoint + "&highinfopoint=" + highinfopoint + "&begindate=" + escape(begindate) + "&enddate=" + escape(enddate);
|
||||
}
|
||||
}
|
||||
function CheckDateTime(str) {
|
||||
if (str != "") {
|
||||
var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入正确的日期格式!如:1900-01-01");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function CheckFloat(str) {
|
||||
if (str != "") {
|
||||
var reg = /^\d+(\.\d+)?$/;
|
||||
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入数字型值!");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -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="3" /}</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=3">高级搜索</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=3&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,141 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容父栏目ID{默认值:1,自动传入:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>输出的内容数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>300</default>
|
||||
<intro>内容最多显示字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>title</default>
|
||||
<intro>搜索条件字段名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>搜索条件字段值</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式{普通式:普通式,默认值:普通式}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @parentId</LabelSqlString>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="fieldName" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">
|
||||
没有任何相关搜索结果!
|
||||
</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="软件栏目内搜索_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" fieldValue="<xsl:value-of select="$fieldValue"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM INNER JOIN PE_U_Soft UT ON (CM.ItemID = UT.ID)
|
||||
WHERE CM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND CM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND UT.SoftIntro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND UT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND UT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>AND CM.GeneralID NOT IN (
|
||||
SELECT TOP @startrow ICM.GeneralID
|
||||
FROM PE_CommonModel ICM INNER JOIN PE_U_Soft IUT ON ICM.ItemID = IUT.ID
|
||||
WHERE ICM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND IUT.SoftIntro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
ORDER BY ICM.UpdateTime)
|
||||
ORDER BY CM.UpdateTime" queryCount="SELECT COUNT (ICM.GeneralID)
|
||||
FROM PE_CommonModel ICM INNER JOIN PE_U_Soft IUT ON ICM.ItemID = IUT.ID
|
||||
WHERE ICM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND ICM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'content'">
|
||||
AND IUT.SoftIntro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'author'">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'inputer'">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'keyword'">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,299 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>30</default>
|
||||
<intro>每页显示数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<default>0</default>
|
||||
<intro>内容长度,一个汉字占两个字节,如填写"20"则显示10个汉字,为0则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式{原窗口:0,新窗口:1,由节点配置取代:2}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式{默认值:普通式,普通式:普通式}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<default>1</default>
|
||||
<intro>父栏目ID{默认值:1,传入值:@RequestInt_nodeId}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>lowInfoPoint</name>
|
||||
<default />
|
||||
<intro>阅读点数{默认值:"",传入值:@RequestInt_lowInfoPoint}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>longInfoPoint</name>
|
||||
<default />
|
||||
<intro>阅读点数{默认值:"",传入值:@RequestInt_longInfoPoint}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>startDate</name>
|
||||
<default />
|
||||
<intro>更新日期{默认值:"",传入值:@RequestDate_startDate}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>endDate</name>
|
||||
<default />
|
||||
<intro>更新日期{默认值:"",传入值:@RequestDate_endDate}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>title</name>
|
||||
<default />
|
||||
<intro>标题{默认值:"",传入值:@Request_title}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>content</name>
|
||||
<default />
|
||||
<intro>内容{默认值:"",传入值:@Request_content}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>intro</name>
|
||||
<default />
|
||||
<intro>简介{默认值:"",传入值:@Request_intro}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>author</name>
|
||||
<default />
|
||||
<intro>作者{默认值:"",传入值:@Request_author}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<default />
|
||||
<intro>录入者{默认值:"",传入值:@Request_inputer}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>keyword</name>
|
||||
<default />
|
||||
<intro>关键字{默认值:"",传入值:@Request_keyword}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>editor</name>
|
||||
<default />
|
||||
<intro>编辑{默认值:"",传入值:@Request_editor}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>source</name>
|
||||
<default />
|
||||
<intro>来源{默认值:"",传入值:@Request_source}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>softVersion</name>
|
||||
<default />
|
||||
<intro>软件版本{默认值:"",传入值:@Request_softVersion}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>softType</name>
|
||||
<default />
|
||||
<intro>软件类型{默认值:"",传入值:@Request_softType}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>copyrightType</name>
|
||||
<default />
|
||||
<intro>授权类型{默认值:"",传入值:@Request_copyrightType}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @parentId</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="usePageSize" />
|
||||
<xsl:param name="parentId" />
|
||||
<xsl:param name="lowInfoPoint" />
|
||||
<xsl:param name="longInfoPoint" />
|
||||
<xsl:param name="startDate" />
|
||||
<xsl:param name="endDate" />
|
||||
<xsl:param name="title" />
|
||||
<xsl:param name="content" />
|
||||
<xsl:param name="intro" />
|
||||
<xsl:param name="author" />
|
||||
<xsl:param name="editor" />
|
||||
<xsl:param name="inputer" />
|
||||
<xsl:param name="source" />
|
||||
<xsl:param name="keyword" />
|
||||
<xsl:param name="softVersion" />
|
||||
<xsl:param name="softType" />
|
||||
<xsl:param name="copyrightType" />
|
||||
<xsl:param name="oEA" />
|
||||
<xsl:param name="oEB" />
|
||||
<xsl:param name="oEC" />
|
||||
<xsl:param name="oED" />
|
||||
<xsl:param name="oEE" />
|
||||
<xsl:param name="oEF" />
|
||||
<xsl:template match="/">
|
||||
{PE.Label id="软件高级搜索_<xsl:value-of select="$bindStyle"/>" oEA="<xsl:value-of select="$oEA"/>" oEB="<xsl:value-of select="$oEB"/>" oEC="<xsl:value-of select="$oEC"/>" oED="<xsl:value-of select="$oED"/>" oEE="<xsl:value-of select="$oEE"/>" oEF="<xsl:value-of select="$oEF"/>" titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM
|
||||
INNER JOIN PE_U_Soft UT ON (CM.ItemID=UT.ID)
|
||||
WHERE CM.Status = 99 AND CM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND UT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND UT.SoftIntro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND UT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND CM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND UT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND UT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$softVersion != ''">
|
||||
AND UT.SoftVersion LIKE '%<xsl:value-of select="$softVersion"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$softType != ''">
|
||||
AND UT.SoftType = '<xsl:value-of select="$softType"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$copyrightType != ''">
|
||||
AND UT.CopyrightType = '<xsl:value-of select="$copyrightType"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE (CC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (CM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>
|
||||
AND CM.GeneralID NOT IN (
|
||||
SELECT TOP @startrow ICM.GeneralID
|
||||
FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_U_Soft IUT ON (ICM.ItemID=IUT.ID)
|
||||
WHERE ICM.Status = 99 AND ICM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND IUT.SoftIntro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND ICM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND IUT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$softVersion != ''">
|
||||
AND IUT.SoftVersion LIKE '%<xsl:value-of select="$softVersion"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$softType != ''">
|
||||
AND IUT.SoftType = '<xsl:value-of select="$softType"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$copyrightType != ''">
|
||||
AND IUT.CopyrightType = '<xsl:value-of select="$copyrightType"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE (ICC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (ICM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>
|
||||
ORDER BY ICM.UpdateTime DESC)
|
||||
ORDER BY CM.UpdateTime DESC" queryCount="SELECT COUNT (ICM.GeneralID)
|
||||
FROM PE_CommonModel ICM
|
||||
INNER JOIN PE_U_Soft IUT ON (ICM.ItemID=IUT.ID)
|
||||
WHERE ICM.Status = 99 AND ICM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND ICM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$content !=''">
|
||||
AND IUT.Content LIKE '%<xsl:value-of select="$content"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND IUT.SoftIntro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$author != ''">
|
||||
AND IUT.Author LIKE '%<xsl:value-of select="$author"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND ICM.Editor LIKE '%<xsl:value-of select="$editor"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND ICM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$source != ''">
|
||||
AND IUT.CopyFrom LIKE '%<xsl:value-of select="$source"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
AND IUT.Keyword LIKE '%<xsl:value-of select="$keyword"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$softVersion != ''">
|
||||
AND IUT.SoftVersion LIKE '%<xsl:value-of select="$softVersion"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$softType != ''">
|
||||
AND IUT.SoftType = '<xsl:value-of select="$softType"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$copyrightType != ''">
|
||||
AND IUT.CopyrightType = '<xsl:value-of select="$copyrightType"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE ICC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND ICM.GeneralID IN(SELECT ICC.GeneralID FROM PE_ContentCharge ICC WHERE (ICC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (ICM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>" page="true" pagesize="<xsl:value-of select="$usePageSize"/>" urlpage="true" /}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,96 @@
|
||||
<root>
|
||||
<LabelType>搜索类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>雅蓝软件搜索</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[ <div class="main_search">
|
||||
软件栏目:<select name='NodeId' size='1' id="NodeId">{PE.Label id="栏目分类下拉列表选项" nodeid="3" span="" class="" /}</select>
|
||||
<br />
|
||||
软件名称:<input id="title" maxlength="100" size="30" name="title" />
|
||||
<br />
|
||||
软件作者:<input id="author" maxlength="100" size="30" name="author" />
|
||||
<br />
|
||||
软件简介:<input id="softintro" maxlength="100" size="30" name="softintro" />
|
||||
<br />
|
||||
软件语言:<input id="softlanguage" maxlength="100" size="30" name="softlanguage" />
|
||||
<br />
|
||||
软件类型:<input id="softtype" maxlength="100" size="30" name="softtype" />
|
||||
<br />
|
||||
软件版本:<input id="softversion" maxlength="100" size="30" name="softversion" />
|
||||
<br />
|
||||
授权方式:<input id="copyrighttype" maxlength="100" size="30" name="copyrighttype" />
|
||||
<br />
|
||||
录 入 者:<input id="inputer" maxlength="100" size="30" name="inputer" />
|
||||
<br />
|
||||
软件来源:<input id="copyfrom" maxlength="100" size="30" name="copyfrom" />
|
||||
<br />
|
||||
关 键 字:<input id="keyword" maxlength="100" size="30" name="keyword" />
|
||||
<br />
|
||||
下载点数:<input id="lowinfopoint" maxlength="100" size="30" name="lowinfopoint" />
|
||||
到
|
||||
<input id="highinfopoint" maxlength="100" size="30" name="highinfopoint" />
|
||||
<br />
|
||||
更新时间:<input id="begindate" maxlength="100" size="30" name="begindate" />
|
||||
到
|
||||
<input id="enddate" maxlength="100" size="30" name="enddate" />
|
||||
<div class="main_search_sub">
|
||||
<input id="Submit" style="border: 0px; width: 65px; height: 21px;" type="image" src="{PE.SiteConfig.SkinPath/}Images/search_b.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" /></div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function OnSearchCheckAndSubmit() {
|
||||
|
||||
var nodeSel = document.getElementById("NodeId");
|
||||
var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
|
||||
|
||||
var title = document.getElementById("title").value;
|
||||
var author = document.getElementById("author").value;
|
||||
var softintro = document.getElementById("softintro").value;
|
||||
var softlanguage = document.getElementById("softlanguage").value;
|
||||
var softtype = document.getElementById("softtype").value;
|
||||
var softversion = document.getElementById("softversion").value;
|
||||
var copyrighttype = document.getElementById("copyrighttype").value;
|
||||
var inputer = document.getElementById("inputer").value;
|
||||
var copyfrom = document.getElementById("copyfrom").value;
|
||||
var keyword = document.getElementById("keyword").value;
|
||||
var lowinfopoint = document.getElementById("lowinfopoint").value;
|
||||
var highinfopoint = document.getElementById("highinfopoint").value;
|
||||
var begindate = document.getElementById("begindate").value;
|
||||
var enddate = document.getElementById("enddate").value;
|
||||
|
||||
if (CheckFloat(lowinfopoint) && CheckFloat(highinfopoint) && CheckDateTime(begindate) && CheckDateTime(enddate)) {
|
||||
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&showtype=1&ModelId=3&nodeId=" + nodeId + "&title=" + escape(title) + "&author=" + escape(author) + "&softintro=" + escape(softintro) + "&softlanguage=" + escape(softlanguage) + "&softtype=" + escape(softtype) + "&softversion=" + escape(softversion) + "©righttype=" + escape(copyrighttype) + "&inputer=" + escape(inputer) + "©from=" + escape(copyfrom) + "&keyword=" + escape(keyword) + "&lowinfopoint=" + lowinfopoint + "&highinfopoint=" + highinfopoint + "&begindate=" + escape(begindate) + "&enddate=" + escape(enddate);
|
||||
}
|
||||
}
|
||||
function CheckDateTime(str) {
|
||||
if (str != "") {
|
||||
var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入正确的日期格式!如:1900-01-01");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function CheckFloat(str) {
|
||||
if (str != "") {
|
||||
var reg = /^\d+(\.\d+)?$/;
|
||||
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入数字型值!");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
Reference in New Issue
Block a user