Files
2026-08-31 16:22:00 +08:00

93 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>办事类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="3608" compatibleVersion="" />
<UsePage>True</UsePage>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @pagesize ID,ItemId,Contact,Phone,Email,Type,Title,Content,Status,CreateTime,AdminName,AdminReply,AdminReplyTime FROM PE_GV_WorkItemSuggestion WHERE Status = 1 AND ItemId=@ItemId AND Id NOT IN
(SELECT TOP @startrow Id FROM PE_GV_WorkItemSuggestion WHERE Status = 1 AND ItemId=@ItemId ORDER BY
CreateTime DESC) ORDER BY CreateTime DESC</LabelSqlString>
<LabelSqlCount>SELECT count(ID) FROM PE_GV_WorkItemSuggestion WHERE Status = 1 AND ItemId=@ItemId </LabelSqlCount>
<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="ItemId" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table) = 0">
<center>
<b>暂时没有常见问题数据</b>
</center>
</xsl:when>
<xsl:otherwise>
<table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
<xsl:for-each select="NewDataSet/Table">
<tr class="tdbgleft">
<td style="font-weight:bold; height:25px;">
<img><xsl:attribute name="src">{PE.SiteConfig.ApplicationPath/}Images/common6.gif</xsl:attribute></img>发布者:<xsl:value-of select="Contact"/> 咨询:
<xsl:variable name="Title" select="Title"/>
<xsl:choose>
<xsl:when test="string-length($Title) > 20">
<xsl:value-of select= "substring(Title,1,20) "/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Title"/>
</xsl:otherwise>
</xsl:choose>
<span style="float:right;margin-right:10px;">
<xsl:value-of select="pe:FormatDate(CreateTime,'yyyy-mm-dd hh:ff:ss')"/>
</span>
</td>
</tr>
<tr class="tdbg">
<td style="text-align:left;padding:10px 5px;">
<xsl:value-of select="Content"/>
</td>
</tr>
<xsl:variable name="AdminReply" select="AdminReply"/>
<xsl:choose>
<xsl:when test="string-length($AdminReply) = 0">
</xsl:when>
<xsl:otherwise>
<tbody id="tbAdmin" runat="server" visible="false">
<tr class="tdbg">
<td style="color:#F74100; font-weight:bold;height:25px;">
<b>管理员</b>于
<b>
<xsl:value-of select="pe:FormatDate(AdminReplyTime,'yyyy-mm-dd hh:ff:ss')"/>
</b> 回复:
</td>
</tr>
<tr class="tdbg">
<td style="text-align:left;color:#F74100;word-wrap:break-word;word-break:break-all;table-layout:fixed;width:570px">
<xsl:value-of select="AdminReply"/>
</td>
</tr>
<tr class="tdbg">
<td>
<hr/>
</td>
</tr>
</tbody>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>ItemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>事项ID</intro>
</attributes>
</root>