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,49 @@
<?xml version="1.0"?>
<root>
<LabelType>问答类</LabelType>
<LabelIntro>精选回答</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>UserName</name>
<datatype>sql.string</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT Top 5 * FROM PE_QA_Question WHERE QuestionID in (SELECT QuestionID FROM PE_QA_Reply WHERE UserName=@UserName AND IsBest=1) ORDER BY 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="TitleLen" />
<xsl:template match="/NewDataSet">
<ul>
<xsl:for-each select="Table">
<li>
<b>
<xsl:value-of select="position()"/>
</b>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<a>
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}QA/ShowQuestion.aspx?ID=<xsl:value-of select="QuestionID"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(Title, $TitleLen,'...')"/>
</a>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>TitleLen</name>
<datatype>int</datatype>
<default>30</default>
<intro>标题长度</intro>
</attributes>
</root>