first commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>问答类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<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:variable name="isAnswer" select="pe:IsAnswer()"/>
|
||||
<xsl:variable name="isAnswerOne" select="pe:IsAnswerOne()"/>
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:if test="$isAnswerOne != 'True' or CO = 0">
|
||||
<xsl:if test="$isAnswer = 'True' or pe:LoginedUserName() != ''">
|
||||
<div class="quiz_bottom1" style="color:#ff6600;font-weight: bold;cursor:pointer;" onclick="statFunc();"> 我来回答 </div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function statFunc() {
|
||||
var response = document.getElementById("replyContent");
|
||||
response.value = "";
|
||||
response.focus();
|
||||
}
|
||||
</script>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>questionID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>问题ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>userName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>用户名</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT COUNT(QuestionId) AS CO FROM PE_QA_Reply WHERE QuestionID = @questionID AND UserName = '@userName']]></LabelSqlString>
|
||||
</root>
|
||||
Reference in New Issue
Block a user