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

📄 显示带图片内容列表_文章模型.config

📁 动易SiteFactory网上商店系统正式版动易SiteFactory网上商店系统正式版
💻 CONFIG
字号:
<root>
  <LabelType>系统标签</LabelType>
  <LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
  <LabelIntro>
  </LabelIntro>
  <OutType>sin</OutType>
  <CacheTime>0</CacheTime>
  <LabelDataType>sql_sysquery</LabelDataType>
  <LabelSqlString>@strsql</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="imgwidth"/>
  <xsl:param name="imgheight"/>
  <xsl:param name="titlelen"/>
  <xsl:param name="contentlen"/>
  <xsl:param name="showtips"/>
  <xsl:param name="urltype"/>
  <xsl:param name="cols"/>
<xsl:template match="/NewDataSet">
<ul>

<xsl:for-each select="Table">
<li>
<div class="pe_u_thumb">

<xsl:value-of disable-output-escaping="yes" select="pe:GetLinkInfoPic(pe:ConvertAbsolutePath(DefaultPicUrl),Title,pe:UpLoadDir(),pe:GetInfoPath(GeneralID),$imgwidth,$imgheight)
"/>
</div>
<div class="pe_u_thumb_title">
<a> <xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)" />
</xsl:attribute>

<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:RemoveHtml(pe:EncodeText(Title,'htmldecode')),$titlelen,'...')" />
</a>
<br />
<xsl:if test="$contentlen&gt;0">
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Intro),$contentlen,'...')"/>
</xsl:if>
</div>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
  <attributes>
    <name>strsql</name>
    <default>SELECT C.*,T.* FROM PE_CommonModel C INNER JOIN PE_U_Article T ON C.GeneralID=T.ID WHERE C.Status=99 AND C.TableName='PE_U_Article' ORDER BY C.UpdateTime DESC</default>
    <intro>查询语句</intro>
  </attributes>
  <attributes>
    <name>parentid</name>
    <default>1</default>
    <intro>父栏目ID</intro>
  </attributes>
  <attributes>
    <name>arrnodeid</name>
    <default>0</default>
    <intro>指定栏目ID</intro>
  </attributes>
  <attributes>
    <name>includechild</name>
    <default>false</default>
    <intro>是否包含子栏目</intro>
  </attributes>
  <attributes>
    <name>specialid</name>
    <default>0</default>
    <intro>专题ID</intro>
  </attributes>
  <attributes>
    <name>shownum</name>
    <default>10</default>
    <intro>文章数</intro>
  </attributes>
  <attributes>
    <name>ishot</name>
    <default>false</default>
    <intro>是否是热门文章</intro>
  </attributes>
  <attributes>
    <name>iselite</name>
    <default>false</default>
    <intro>是否是推荐文章</intro>
  </attributes>
  <attributes>
    <name>datenum</name>
    <default>0</default>
    <intro>日期范围</intro>
  </attributes>
  <attributes>
    <name>ordertype</name>
    <default>1</default>
    <intro>排序方式</intro>
  </attributes>
  <attributes>
    <name>imgwidth</name>
    <default>150</default>
    <intro>图片宽度</intro>
  </attributes>
  <attributes>
    <name>imgheight</name>
    <default>150</default>
    <intro>图片高度</intro>
  </attributes>
  <attributes>
    <name>titlelen</name>
    <default>20</default>
    <intro>标题最多字符数</intro>
  </attributes>
  <attributes>
    <name>contentlen</name>
    <default>50</default>
    <intro>内容最多字符数</intro>
  </attributes>
  <attributes>
    <name>showtips</name>
    <default>false</default>
    <intro>显示提示信息</intro>
  </attributes>
  <attributes>
    <name>urltype</name>
    <default>0</default>
    <intro>链接类型</intro>
  </attributes>
  <attributes>
    <name>cols</name>
    <default>1</default>
    <intro>显示列数</intro>
  </attributes>
  <attributes>
    <name>hits</name>
    <default>0</default>
    <intro>热门最小点击数</intro>
  </attributes>
  <attributes>
    <name>elitelevel</name>
    <default>0</default>
    <intro>推荐优先级</intro>
  </attributes>
  <attributes>
    <name>tablename</name>
    <default>PE_U_Article</default>
    <intro>所属表名</intro>
  </attributes>
  <attributes>
    <name>picurlfieldname</name>
    <default>DefaultPicUrl</default>
    <intro>缩略图字段名</intro>
  </attributes>
</root>

⌨️ 快捷键说明

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