⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 商品栏目图片列表标签.config

📁 BizIdea 是基于.net开发平台全新研发的企业级电子商务平台系统
💻 CONFIG
字号:
<root>
  <LabelType>商城类</LabelType>
  <LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
  <LabelIntro>
  </LabelIntro>
  <OutType>sin</OutType>
  <CacheTime>0</CacheTime>
  <LabelDataType>sql_sysquery</LabelDataType>
  <attributes>
    <name>outputQty</name>
    <default>8</default>
    <intro>显示个数</intro>
  </attributes>
  <attributes>
    <name>titleLength</name>
    <default>10</default>
    <intro>标题字符数</intro>
  </attributes>
  <attributes>
    <name>nodeId</name>
    <datatype>supersql</datatype>
    <default>4</default>
    <intro>节点ID</intro>
  </attributes>
  <LabelSqlString><![CDATA[SELECT TOP @outputQty *
FROM
  PE_CommonModel CM
  INNER JOIN PE_CommonProduct CP ON (CM.GeneralID = CP.ProductID)
WHERE
  CM.Status = 99 AND 
  CP.ProductThumb != '' AND 
  CM.NodeID = @nodeId
ORDER BY
  CM.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:output method="html" />
<xsl:param name="nodeId" />
<xsl:param name="outputQty" />
<xsl:param name="titleLength" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<div class="pe_u_thumb">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$nodeId)" />
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:UpLoadDir()" />nopic.gif</xsl:attribute>
<xsl:attribute name="alt">该栏目没有商品图片</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
</a>
</div>
<div class="pe_u_thumb_title">
<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>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<div class="pe_u_thumb">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$nodeId)" />
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:ConvertAbsolutePath(ProductThumb)"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="pe:CutText(ProductName,$titleLength,'...')"/>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
</a>
</div>
<div class="pe_u_thumb_title">
<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>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
  <EnabelAjax>False</EnabelAjax>
  <IsXsltSql>false</IsXsltSql>
  <IsXsltCountSql>false</IsXsltCountSql>
</root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -