first commit
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>问答类</LabelType>
|
||||
<LabelIntro>问答列表选项</LabelIntro>
|
||||
<OutType>
|
||||
</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>CategoryID</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>问题类型ID</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:param name="CategoryID" />
|
||||
<xsl:param name="ShowType" />
|
||||
<xsl:param name="Keyword" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<a>
|
||||
<xsl:if test="$ShowType!=2 and $ShowType!=3 and $ShowType!=4 and $ShowType!=5">
|
||||
<xsl:attribute name="class">title-on</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$CategoryID<=0">{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=1</xsl:when>
|
||||
<xsl:otherwise>{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=1&Id=<xsl:value-of select="$CategoryID"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$Keyword!=''">&Keyword=<xsl:value-of select="pe:UrlEncode($Keyword)"/></xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">待解决问题</xsl:attribute>
|
||||
<span class="online">待解决问题 </span>
|
||||
</a>
|
||||
<a>
|
||||
<xsl:if test="$ShowType=2">
|
||||
<xsl:attribute name="class">title-on</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$CategoryID<=0">{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=2</xsl:when>
|
||||
<xsl:otherwise>{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=2&Id=<xsl:value-of select="$CategoryID"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$Keyword!=''">&Keyword=<xsl:value-of select="pe:UrlEncode($Keyword)"/></xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">已解决问题</xsl:attribute>
|
||||
<span class="over">已解决问题 </span>
|
||||
</a>
|
||||
<a>
|
||||
<xsl:if test="$ShowType=3">
|
||||
<xsl:attribute name="class">title-on</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$CategoryID<=0">{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=3</xsl:when>
|
||||
<xsl:otherwise>{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=3&Id=<xsl:value-of select="$CategoryID"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$Keyword!=''">&Keyword=<xsl:value-of select="pe:UrlEncode($Keyword)"/></xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">高分问题</xsl:attribute>
|
||||
<span class="high">高分问题 </span>
|
||||
</a>
|
||||
<a>
|
||||
<xsl:if test="$ShowType=4">
|
||||
<xsl:attribute name="class">title-on</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$CategoryID<=0">{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=4</xsl:when>
|
||||
<xsl:otherwise>{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=4&Id=<xsl:value-of select="$CategoryID"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$Keyword!=''">&Keyword=<xsl:value-of select="pe:UrlEncode($Keyword)"/></xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">零回答问题</xsl:attribute>
|
||||
<span class="zero">零回答问题 </span>
|
||||
</a>
|
||||
<a>
|
||||
<xsl:if test="$ShowType=5">
|
||||
<xsl:attribute name="class">title-on</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$CategoryID<=0">{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=5</xsl:when>
|
||||
<xsl:otherwise>{PE.SiteConfig.applicationpath/}QA/QuestionList.aspx?ShowType=5&Id=<xsl:value-of select="$CategoryID"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$Keyword!=''">&Keyword=<xsl:value-of select="pe:UrlEncode($Keyword)"/></xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">精彩推荐</xsl:attribute>
|
||||
<span class="Comments">精彩推荐 </span>
|
||||
</a>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>ShowType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>显示列表类型</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>Keyword</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>关键字</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user