Files
ningbo/动易的标签库/标签库/博客类/功能设置.config
T
2026-08-31 16:22:00 +08:00

49 lines
1.5 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="2511" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>supersql</datatype>
<default>
</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(*) FROM PE_BG_Blog WHERE UserName='@username' AND BlogID='@blogId']]></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="blogId" />
<xsl:param name="username" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="Column1=0">
</xsl:when>
<xsl:otherwise>
<a href="#" title="发博文">
<span>发博文</span>
</a>
<em>
[<a href="#" title="管理评论">管理评论</a>] [<a href="#" title="页面设置">页面设置</a>]
</em>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>