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

📄 厂商商品表格式列表.config

📁 动易SiteFactory网上商店系统正式版动易SiteFactory网上商店系统正式版
💻 CONFIG
字号:
<root>
  <LabelType>列表标签</LabelType>
  <LabelIntro>
  </LabelIntro>
  <OutType>
  </OutType>
  <LabelDataType>sql_sysquery</LabelDataType>
  <attributes>
    <name>ShowDate</name>
    <default>false</default>
    <intro>显示发表时间</intro>
  </attributes>
  <attributes>
    <name>ShowLink</name>
    <default>false</default>
    <intro>显示商品详细信息链接</intro>
  </attributes>
  <attributes>
    <name>IntroLength</name>
    <default>20</default>
    <intro>商品简介显示字数</intro>
  </attributes>
  <attributes>
    <name>OrderType</name>
    <default>order by M.UpdateTime desc</default>
    <intro>排列方式</intro>
  </attributes>
  <attributes>
    <name>Filter</name>
    <default>
    </default>
    <intro>查询条件</intro>
  </attributes>
  <attributes>
    <name>ThumbWidth</name>
    <default>
    </default>
    <intro>缩略图宽度</intro>
  </attributes>
  <attributes>
    <name>ThumbHeight</name>
    <default>
    </default>
    <intro>缩略图高度</intro>
  </attributes>
  <attributes>
    <name>InnerOrderType</name>
    <default>order by MM.UpdateTime desc</default>
    <intro>排列方式</intro>
  </attributes>
  <attributes>
    <name>InnerFilter</name>
    <default>
    </default>
    <intro>查询条件</intro>
  </attributes>
  <LabelSqlString><![CDATA[select top @pagesize M.GeneralID,P.ProductID,P.ProductName,P.ProductIntro,P.Keyword,P.ProductThumb,P.Price_Market,P.Price,P.Price_Member from PE_CommonProduct P inner join PE_CommonModel M on P.ProductID = M.GeneralID where M.GeneralID NOT IN(SELECT TOP @startrow MM.GeneralID from PE_CommonProduct PP inner join PE_CommonModel MM on PP.ProductID = MM.GeneralID WHERE EnableSale=1 and MM.Status=99 and PP.Stocks>0 @InnerFilter and MM.LinkType = 0 @InnerOrderType) AND EnableSale=1 and M.Status=99 and P.Stocks>0 @Filter and M.LinkType = 0 @OrderType]]></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:param name="ShowDate"/>
<xsl:param name="ShowLink"/>
<xsl:param name="IntroLength"/>
<xsl:param name="OrderType"/>
<xsl:param name="Filter"/>
<xsl:param name="ProducerName"/>
<xsl:param name="ThumbHeight"/>
<xsl:param name="ThumbWidth"/>
<xsl:template match="/NewDataSet">
<table width="100%">
<tr>
<td>
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table)=0">
<xsl:value-of select="$ProducerName"/>没有发布商品
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="Table">

<table cellspacing="2">
<tr><td class="productpic" rowspan="2">

<a>
<xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(GeneralID)"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of  select="pe:EncodeText(ProductName,'htmldecode')"/></xsl:attribute>
<xsl:attribute name="Target">_blank</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="ProductThumb=''">{PE.SiteConfig.applicationpath/}Images/nopic.gif</xsl:when>
<xsl:otherwise>{PE.SiteConfig.applicationpath/}{PE.SiteConfig.uploaddir/}/<xsl:value-of select="ProductThumb"/></xsl:otherwise>
</xsl:choose>
</xsl:attribute>

<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="$ThumbWidth!=''">
<xsl:value-of select="$ThumbWidth"/>px
</xsl:when>
<xsl:otherwise>130px</xsl:otherwise>
</xsl:choose>
</xsl:attribute>

<xsl:attribute name="height">
<xsl:choose>
<xsl:when test="$ThumbHeight!=''"><xsl:value-of select="$ThumbHeight"/>px</xsl:when>
<xsl:otherwise>90px</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
</a>
</td>

<td align="left">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of  select="pe:EncodeText(ProductName,'htmldecode')"/>
</xsl:attribute>
<xsl:attribute name="Target">_blank</xsl:attribute>
<xsl:value-of disable-output-escaping="yes" select="ProductName"/>
</a>
<br />
市场价:<font class="price"><STRIKE>¥<xsl:value-of select="Price_Market"/></STRIKE></font>
<br />商店价:<font class='price'>¥<xsl:value-of select="Price"/></font>
<br />会员价:<font class="price">¥<xsl:value-of select="Price_Member"/></font>
</td>
</tr>
<tr>
<td align='left'>
<a>
<xsl:attribute name="href">
{PE.SiteConfig.applicationpath/}Shop/ShoppingCart.aspx?Action=AddToCart&amp;ID=<xsl:value-of select="GeneralID"/>
</xsl:attribute>
<xsl:attribute name="title"><xsl:value-of  select="pe:EncodeText(ProductName,'htmldecode')"/></xsl:attribute>
<xsl:attribute name="Target">_blank</xsl:attribute>购买</a>
<a>
<xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(GeneralID)"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of  select="pe:EncodeText(ProductName,'htmldecode')"/></xsl:attribute>
<xsl:attribute name="Target">_blank</xsl:attribute>
详细
</a>
</td></tr></table>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>	
</xsl:template>
</xsl:transform>]]>
  </LabelTemplate>
  <UsePage>True</UsePage>
  <LabelSqlCount><![CDATA[select count(P.ProductID)  from PE_CommonProduct P inner join PE_CommonModel M on P.ProductID = M.GeneralID where EnableSale=1 and M.Status=99 and P.Stocks>0 @Filter and M.LinkType = 0 ]]></LabelSqlCount>
</root>

⌨️ 快捷键说明

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