Files
ningbo/动易的标签库/标签库/作者类/按作者名取得作者信息_数据源.config
T
2026-08-31 16:22:00 +08:00

96 lines
2.5 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>作者类</LabelType>
<LabelIntro>数据源模式</LabelIntro>
<OutType>
</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>authorName</name>
<datatype>supersql</datatype>
<default>集思广益</default>
<intro>作者名</intro>
</attributes>
<LabelSqlString><![CDATA[SELECT * FROM PE_Author WHERE Name = '@authorName' AND Passed = 1]]></LabelSqlString>
<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="xml" />
<xsl:template match="/NewDataSet/Table">
<Root>
<AuthorID>
<xsl:value-of select="ID"/>
</AuthorID>
<UserID>
<xsl:value-of select="UserID"/>
</UserID>
<Type>
<xsl:value-of select="Type"/>
</Type>
<Name>
<xsl:value-of select="Name"/>
</Name>
<Hits>
<xsl:value-of select="Hits"/>
</Hits>
<TemplateID>
<xsl:value-of select="TemplateID"/>
</TemplateID>
<Photo>
<xsl:choose>
<xsl:when test="Photo != ''">
<xsl:value-of select="Photo"/>
</xsl:when>
<xsl:otherwise>nopic.gif</xsl:otherwise>
</xsl:choose>
</Photo>
<Intro>
<xsl:value-of select="pe:HtmlEncode(Intro)"/>
</Intro>
<Address>
<xsl:value-of select="Address"/>
</Address>
<Tel>
<xsl:value-of select="Tel"/>
</Tel>
<Fax>
<xsl:value-of select="Fax"/>
</Fax>
<Mail>
<xsl:value-of select="Mail"/>
</Mail>
<Email>
<xsl:value-of select="Email"/>
</Email>
<ZipCode>
<xsl:value-of select="ZipCode"/>
</ZipCode>
<HomePage>
<xsl:value-of select="HomePage"/>
</HomePage>
<Im>
<xsl:value-of select="Im"/>
</Im>
<Sex>
<xsl:choose>
<xsl:when test="Sex=1">男</xsl:when>
<xsl:otherwise>女</xsl:otherwise>
</xsl:choose>
</Sex>
<BirthDay>
<xsl:value-of select="pe:FormatDate(BirthDay,'yyyy-mm-dd')"/>
</BirthDay>
<Company>
<xsl:value-of select="Company"/>
</Company>
<Department>
<xsl:value-of select="Department"/>
</Department>
</Root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>