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,63 @@
<?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>SELECT TOP @ShowNum * FROM PE_QA_Question WHERE IsElite = 1 ORDER BY UpdateTime DESC</LabelSqlString>
<attributes>
<name>ShowNum</name>
<datatype>sql.int</datatype>
<default>8</default>
<intro>显示项数</intro>
</attributes>
<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="TitleLen"/>
<xsl:template match="/">
<h2 class="recommend">
<span >
<a>
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}QA/QuestionList.aspx?ShowType=5</xsl:attribute>更多>>
</a>
</span>
精彩推荐
</h2>
<div class="box2">
<xsl:element name="img">
<xsl:attribute name="src">
{PE.SiteConfig.SkinPath/}QA/images/ask_recom.jpg
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
<ul>
<xsl:for-each select="NewDataSet/Table">
<li>
<a>
<xsl:attribute name="href">
{PE.SiteConfig.ApplicationPath/}QA/ShowQuestion.aspx?ID=<xsl:value-of select="QuestionID"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(Title,$TitleLen,'...')"/>
</a>
</li>
<xsl:if test="(position() mod 4 = 0) and (position() != last())">
<xsl:text disable-output-escaping="yes">&lt;/ul&gt;&lt;ul&gt;</xsl:text>
</xsl:if>
</xsl:for-each>
<br class="clearbox"/>
</ul>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>TitleLen</name>
<datatype>int</datatype>
<default>20</default>
<intro>标题长度</intro>
</attributes>
</root>