first commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelSqlString>SELECT Top @pagesize C.*,I.SpecialID FROM PE_CommonModel C INNER JOIN PE_SpecialInfos I ON C.GeneralID=I.GeneralID WHERE C.GeneralID NOT IN (SELECT Top @startrow IC.GeneralID FROM PE_CommonModel IC INNER JOIN PE_SpecialInfos II ON IC.GeneralID=II.GeneralID WHERE II.SpecialID =@specialId AND IC.Status=99 ORDER BY IC.UpdateTime DESC) AND I.SpecialID=@specialId AND C.Status=99 ORDER BY C.UpdateTime DESC
|
||||
</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:param name="titleLength" />
|
||||
<xsl:param name="specialId" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<NewDataSet>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<Table>
|
||||
<GeneralId>
|
||||
<xsl:value-of select="GeneralID"/>
|
||||
</GeneralId>
|
||||
<Inputer>
|
||||
<xsl:value-of select="Inputer"/>
|
||||
</Inputer>
|
||||
<Hits>
|
||||
<xsl:value-of select="Hits"/>
|
||||
</Hits>
|
||||
<UpdateTime>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
||||
</UpdateTime>
|
||||
<SpecialName>
|
||||
<xsl:value-of select="pe:GetSpecial($specialId,'name')"/>
|
||||
</SpecialName>
|
||||
<Title>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
||||
</Title>
|
||||
<InfoPath>
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</InfoPath>
|
||||
</Table>
|
||||
</xsl:for-each>
|
||||
</NewDataSet>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<OutType>
|
||||
</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>select count(C.GeneralID) from PE_CommonModel C INNER JOIN PE_SpecialInfos I ON C.GeneralID=I.GeneralID where I.SpecialID =@specialId and C.Status=99</LabelSqlCount>
|
||||
<attributes>
|
||||
<name>specialId</name>
|
||||
<default>1</default>
|
||||
<intro>专题ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>20</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>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>specialCategoryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>专题类别ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT SpecialID,SpecialName FROM PE_Specials WHERE SpecialCategoryID = @specialCategoryId ORDER BY OrderId ASC</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:template match="/">
|
||||
<xsl:if test="count(/NewDataSet/Table) > 0">
|
||||
<select name="specialId" id="specialId" size="1">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:text disable-output-escaping="yes"><</xsl:text>option value="0|<xsl:value-of select="SpecialID"/>"<xsl:text disable-output-escaping="yes">>&nbsp;&nbsp;</xsl:text>
|
||||
<xsl:value-of select="SpecialName"/>
|
||||
<xsl:text disable-output-escaping="yes"><</xsl:text>/option<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>specialId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>专题ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT SpecialCategoryID,SpecialName FROM PE_Specials WHERE SpecialID = @specialId</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:template match="/NewDataSet/Table">
|
||||
>>{PE.Label id="取得专题类别配置信息" specialCategoryId="<xsl:value-of select="SpecialCategoryID"/>" DisplayType="1" /}>>
|
||||
<xsl:value-of select="SpecialName"/>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>SELECT SpecialCategoryID,SpecialCategoryName FROM PE_SpecialCategory ORDER BY OrderID ASC</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:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table)=0">
|
||||
<xsl:text disable-output-escaping="yes"><</xsl:text>option value="0|0"<xsl:text disable-output-escaping="yes">></xsl:text>没有专题类别<xsl:text disable-output-escaping="yes"><</xsl:text>/option<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<xsl:text disable-output-escaping="yes"><</xsl:text>option value="<xsl:value-of select="SpecialCategoryID"/>|0"<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
<xsl:value-of select="SpecialCategoryName"/>
|
||||
<xsl:text disable-output-escaping="yes"><</xsl:text>/option<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
{PE.Label id="专题下拉列表选项" specialCategoryId="<xsl:value-of select="SpecialCategoryID"/>"/}
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,44 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>数据源模式</LabelIntro>
|
||||
<LabelSqlString>SELECT TOP @pagesize T.SpecialID,T.SpecialName FROM PE_Specials T WHERE T.SpecialID NOT IN (SELECT TOP @startrow IT.SpecialID FROM PE_Specials IT WHERE IT.SpecialCategoryID=@specialCategoryId) AND T.SpecialCategoryID = @specialCategoryId ORDER BY OrderId ASC</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="xml" />
|
||||
<xsl:template match="/">
|
||||
<NewDataSet>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<Table>
|
||||
<SpecialID>
|
||||
<xsl:value-of select="SpecialID"/>
|
||||
</SpecialID>
|
||||
<SpecialName>
|
||||
<xsl:value-of select="SpecialName"/>
|
||||
</SpecialName>
|
||||
<SpecialPath>
|
||||
<a href="<xsl:value-of select="pe:GetSpecialPath(SpecialID)"/>"><xsl:value-of select="SpecialName"/></a>
|
||||
</SpecialPath>
|
||||
<SpecialLink>
|
||||
<xsl:value-of select="pe:GetSpecialPath(SpecialID)"/>
|
||||
</SpecialLink>
|
||||
</Table>
|
||||
</xsl:for-each>
|
||||
</NewDataSet>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<OutType>
|
||||
</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>SELECT COUNT(IT.SpecialID) FROM PE_Specials IT WHERE IT.SpecialCategoryID = @specialCategoryId</LabelSqlCount>
|
||||
<attributes>
|
||||
<name>specialCategoryId</name>
|
||||
<default>1</default>
|
||||
<intro>专题类别ID</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>specialCategoryId</name>
|
||||
<default>1</default>
|
||||
<intro>专题类别ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>20</default>
|
||||
<intro>显示个数</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT TOP @outputQty * FROM PE_Specials WHERE SpecialCategoryID = @specialCategoryId ORDER BY OrderId ASC</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:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<font style="color:red">该专题无内容!</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSpecialPath(SpecialID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="OpenType=0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(SpecialName,$titleLength,'…')"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</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,54 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>
|
||||
</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>specialCategoryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>专题类别ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT SpecialID,SpecialName,OpenType FROM PE_Specials WHERE SpecialCategoryID = @specialCategoryId ORDER BY OrderID ASC</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:template match="/">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()">
|
||||
<img src="{pe:InstallDir()}images/tree_line2.gif" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<img src="{pe:InstallDir()}images/tree_line1.gif" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<img src="{pe:InstallDir()}images/tree_folder3.gif" />
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSpecialPath(SpecialID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="OpenType=0">
|
||||
_self
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
_blank
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="SpecialName"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>
|
||||
</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>显示专题类别数</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT TOP @outputQty SpecialCategoryID,SpecialCategoryName,OpenType FROM PE_SpecialCategory ORDER BY OrderID ASC</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:template match="/"><xsl:choose><xsl:when test="count(/NewDataSet/Table) = 0"><font style="color:red">没有任何专题!</font></xsl:when><xsl:otherwise><xsl:for-each select="/NewDataSet/Table"><li><img src="{pe:InstallDir()}images/tree_folder4.gif" /><a><xsl:attribute name="href"><xsl:value-of select="pe:GetSpecialCategoryPath(SpecialCategoryID)"/></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="OpenType=0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:value-of select="SpecialCategoryName"/></a></li>{PE.Label id="专题类别下的专题导航" specialCategoryId="<xsl:value-of select="SpecialCategoryID"/>"/}</xsl:for-each></xsl:otherwise></xsl:choose></xsl:template></xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,48 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_SpecialCategory WHERE SpecialCategoryID NOT IN (SELECT TOP @startrow SpecialCategoryID FROM PE_SpecialCategory ORDER BY OrderID) ORDER BY OrderID</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:param name="titleLength"/>
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<NewDataSet>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<Table>
|
||||
<SpecialCategoryID>
|
||||
<xsl:value-of select="SpecialCategoryID"/>
|
||||
</SpecialCategoryID>
|
||||
<SpecialCategoryName>
|
||||
<xsl:value-of select="SpecialCategoryName"/>
|
||||
</SpecialCategoryName>
|
||||
<SpecialCategoryLink>
|
||||
<xsl:value-of select="pe:GetSpecialCategoryPath(SpecialCategoryID)"/>
|
||||
</SpecialCategoryLink>
|
||||
<OpenType>
|
||||
<xsl:choose>
|
||||
<xsl:when test="OpenType=0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</OpenType>
|
||||
</Table>
|
||||
</xsl:for-each>
|
||||
</NewDataSet>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>SELECT COUNT(*) FROM PE_SpecialCategory</LabelSqlCount>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>20</default>
|
||||
<intro>标题最多字符数</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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="3600" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>specialid</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>专题ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>num</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>自设内容编号</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT
|
||||
S.SpecialID,
|
||||
S.SpecialName,
|
||||
S.SpecialCategoryID,
|
||||
S.SpecialPic,
|
||||
S.SpecialTips,
|
||||
S.Description,
|
||||
S.OpenType,
|
||||
S.Custom_Content
|
||||
FROM
|
||||
PE_Specials S
|
||||
WHERE
|
||||
S.SpecialID = @specialid</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:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="specialid" />
|
||||
<xsl:param name="num" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:GetCustomContent($num,Custom_Content) "/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>specialCategoryID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>专题类别ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT
|
||||
SC.SpecialCategoryID,
|
||||
SC.SpecialCategoryName,
|
||||
SC.Description,
|
||||
SC.OpenType
|
||||
FROM
|
||||
PE_SpecialCategory SC
|
||||
WHERE
|
||||
SC.SpecialCategoryID = @specialCategoryID</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="DisplayType" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$DisplayType = 1">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSpecialCategoryPath(SpecialCategoryID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of disable-output-escaping="yes" select="Description"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="SpecialCategoryName"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 2">
|
||||
<xsl:value-of select="OpenType"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 3">
|
||||
<xsl:value-of disable-output-escaping="yes" select="Description"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>DisplayType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>输出类型{类别名称:1,打开方式:2,类别说明3}</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>specialId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>专题ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>DisplayType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>输出类型{名称:1,类别ID:2,图片:3,提示:4,描述:5,打开方式:6,自设内容:7}</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT
|
||||
S.SpecialID,
|
||||
S.SpecialName,
|
||||
S.SpecialCategoryID,
|
||||
S.SpecialPic,
|
||||
S.SpecialTips,
|
||||
S.Description,
|
||||
S.OpenType,
|
||||
S.Custom_Content
|
||||
FROM
|
||||
PE_Specials S
|
||||
WHERE
|
||||
S.SpecialID = @specialId</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="DisplayType" />
|
||||
<xsl:param name="number" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$DisplayType = 1">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSpecialPath(SpecialID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of disable-output-escaping="yes" select="Description"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="SpecialName"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 2">
|
||||
<xsl:value-of select="SpecialCategoryID"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 3">
|
||||
<xsl:value-of select="SpecialPic"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 4">
|
||||
<xsl:value-of select="SpecialTips"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 5">
|
||||
<xsl:value-of disable-output-escaping="yes" select="Description"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 6">
|
||||
<xsl:value-of select="OpenType"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 7">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:GetCustomContent($number,Custom_Content) "/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>number</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>自设内容序号,注意仅当输出类型为自设内容时有效</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>specialCategoryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>专题类别ID{默认值:0,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>true</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![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:param name="specialCategoryId"/>
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<root>
|
||||
<sql>
|
||||
SELECT
|
||||
S.SpecialID
|
||||
FROM
|
||||
PE_Specials S
|
||||
<xsl:if test="specialCategoryId != 0">
|
||||
WHERE
|
||||
S.SpecialCategoryID IN (@specialCategoryId)
|
||||
</xsl:if>
|
||||
</sql>
|
||||
<countsql>
|
||||
</countsql>
|
||||
</root>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></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:template match="/">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:value-of select="SpecialID"/>,</xsl:for-each>0</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user