first commit
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>问答类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>type</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>显示类型</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>questionID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>问题ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT CategoryID FROM PE_QA_Question WHERE QuestionID = @questionID</LabelSqlString>
|
||||
<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="type" />
|
||||
<xsl:param name="questionID" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<div class="ask_title">
|
||||
<div class="rr-1">
|
||||
</div>
|
||||
<div class="rr-2-1">
|
||||
</div>
|
||||
<div class="rr-3-1">
|
||||
</div>
|
||||
<div class="best_answerTit" >
|
||||
<h3>设置最佳答案</h3>
|
||||
</div>
|
||||
<div class="best_answer">
|
||||
<div class="quiz">
|
||||
<div id="spanMsg" class="Submitted-successfully">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$type = 0">
|
||||
<p>设置最佳答案失败!</p>
|
||||
</xsl:when>
|
||||
<xsl:when test="$type = 1">
|
||||
<p>非常感谢您解决难题!</p> <br />
|
||||
<p>您可以通过以下链接查看您的回答情况。</p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<p>参数错误</p>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
<div style="text-align:center;">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$type = 0">
|
||||
<a><xsl:attribute name="href">javascript:history.back();</xsl:attribute>返回</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a><xsl:attribute name="href">ShowQuestion.aspx?Id=<xsl:value-of select="$questionID"/></xsl:attribute>查看该问题</a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<a href="MyReply.aspx">查看我的回答</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<a><xsl:attribute name="href">QuestionList.aspx?Id=<xsl:value-of select="CategoryID"/>&ShowType=1</xsl:attribute>查看问题相关分类</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<a href="Index.aspx">问答首页</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rr-3">
|
||||
</div>
|
||||
<div class="rr-2">
|
||||
</div>
|
||||
<div class="rr-1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user