first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,64 @@
<?xml version="1.0"?>
<root>
<LabelType>样式类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>@queryCond</LabelSqlString>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>50</default>
<intro>项目标题长度,一个汉字占两个字节</intro>
</attributes>
<attributes>
<name>imageClass</name>
<datatype>string</datatype>
<default>pe_u_thumb</default>
<intro>图片区块选择器名</intro>
</attributes>
<attributes>
<name>titleClass</name>
<datatype>string</datatype>
<default>pe_u_thumb_title</default>
<intro>标题简介区择器名</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<datatype>int</datatype>
<default>160</default>
<intro>图片宽度</intro>
</attributes>
<attributes>
<name>imageHeight</name>
<datatype>int</datatype>
<default>120</default>
<intro>图片高度</intro>
</attributes>
<attributes>
<name>optionalExtend</name>
<datatype>string</datatype>
<default>
</default>
<intro>可选扩展参数</intro>
</attributes>
<attributes>
<name>queryCond</name>
<datatype>supersql</datatype>
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
<intro>查询条件</intro>
</attributes>
<attributes>
<name>queryCount</name>
<datatype>supersql</datatype>
<default />
<intro>统计条件</intro>
</attributes>
<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:output method="html" version="1.0" encoding="utf-8" indent="yes"/><xsl:param name="titleLength" /><xsl:param name="imageClass" /><xsl:param name="titleClass" /><xsl:param name="imageWidth" /><xsl:param name="imageHeight" /><xsl:param name="queryCond" /><xsl:param name="queryCount" /><xsl:param name="optionalExtend" /><xsl:template match="/"><xsl:choose><xsl:when test="count(/NewDataSet/Table) = 0"><li style="color:red">没有任何带图片的信息!</li></xsl:when><xsl:otherwise><xsl:for-each select="/NewDataSet/Table"><li><div class="{$imageClass}"><a><xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" /></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:element name="img"><xsl:attribute name="src"><xsl:choose><xsl:when test="DefaultPicUrl != ''"><xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/></xsl:when><xsl:otherwise><xsl:value-of select="pe:UpLoadDir()"/>nopic.gif</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="Title" /></xsl:attribute><xsl:if test="$imageWidth &gt; 0"><xsl:attribute name="width"><xsl:value-of select="$imageWidth" /></xsl:attribute></xsl:if><xsl:if test="$imageHeight &gt; 0"><xsl:attribute name="height"><xsl:value-of select="$imageHeight" /></xsl:attribute></xsl:if><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></div><xsl:if test="$titleLength &gt; 0"><div class="{$titleClass}"><a><xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" /></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:choose><xsl:when test="TitleFontColor != '' or TitleFontType != '字形'"><font><xsl:attribute name="style"><xsl:if test="TitleFontColor != ''">color:<xsl:value-of select="TitleFontColor"/>;</xsl:if><xsl:if test="TitleFontType != '字形'"><xsl:choose><xsl:when test="TitleFontType ='粗体'">font-weight:bold;font-style:normal;</xsl:when><xsl:when test="TitleFontType ='斜体'">font-weight:normal ;font-style:italic ;</xsl:when><xsl:when test="TitleFontType ='粗+斜'">font-weight:bold;font-style:italic ;</xsl:when><xsl:when test="TitleFontType ='常规'">font-weight:normal ;font-style:normal;</xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose>;</xsl:if></xsl:attribute><xsl:value-of select="pe:CutText(Title,$titleLength,'…')" /></font></xsl:when><xsl:otherwise><xsl:value-of select="pe:CutText(Title,$titleLength,'…')" /></xsl:otherwise></xsl:choose></a></div></xsl:if></li></xsl:for-each></xsl:otherwise></xsl:choose></xsl:template></xsl:stylesheet>]]></LabelTemplate>
<UsePage>True</UsePage>
<LabelSqlCount>@queryCount</LabelSqlCount>
</root>