first commit
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
<root>
|
||||
<LabelType>栏目类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<default>3</default>
|
||||
<intro>父栏目ID</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Nodes WHERE NodeID NOT IN (SELECT TOP @startrow NodeID FROM PE_Nodes WHERE ParentID = @parentId AND ShowOnList_Parent=1 AND PurviewType != 3 ORDER BY OrderID) AND (ParentID = @parentId) AND ShowOnList_Parent=1 AND PurviewType != 3 ORDER BY OrderID</LabelSqlString>
|
||||
<LabelSqlCount>SELECT COUNT(*) FROM PE_Nodes WHERE ParentID = @parentId AND ShowOnList_Parent=1 AND PurviewType != 3 </LabelSqlCount>
|
||||
<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="outputQty"/>
|
||||
<xsl:param name="parentId"/>
|
||||
<xsl:param name="titleLength"/>
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table) = 0">
|
||||
<li style="color:red">本栏尚无内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<div class="childclass_main_box2">
|
||||
<div class="c_spacing">
|
||||
</div>
|
||||
<div class="childclass_title_border">
|
||||
<div class="more">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath('false',NodeID)"/>
|
||||
</xsl:attribute>[更多]</a>
|
||||
</div>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath('true',NodeID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:GetNode(NodeID,'name')"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="s_classlist_title">
|
||||
<div class="s_classlist_title_r">软件大小</div>
|
||||
<div class="s_classlist_title_c">更新日期</div>
|
||||
<div class="s_classlist_title_l">授权 软件分类 软件名称</div>
|
||||
</div>{PE.DataSource id="InfoList<xsl:value-of select="NodeID"/>" datasource="显示软件栏目循环列表信息" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" nodeArray="<xsl:value-of select="arrChildID"/>" parentId="<xsl:value-of select="ParentID"/>" titleLength="<xsl:value-of select="$titleLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" xslt="true" /}{PE.Repeat id="InfoList<xsl:value-of select="NodeID"/>" loop="1000"}<div class="s_classlist_text">
|
||||
<div class="s_classlist_text_r">{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="SoftSize" /}</div>
|
||||
<div class="s_classlist_text_c">{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="UpdateTime" /}</div>
|
||||
<div class="s_classlist_text_l">{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="CopyrightType" /}[{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="SoftType" /}]{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="InfoPath" /}</div>
|
||||
</div>{/PE.Repeat}</div>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>每栏目显示内容数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>20</default>
|
||||
<intro>标题最多字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>2</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user