102 lines
3.4 KiB
XML
102 lines
3.4 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:param name="outputType" />
|
|
<xsl:output method="xml" />
|
|
<xsl:template match="/NewDataSet/Table">
|
|
<xsl:choose>
|
|
<xsl:when test="$outputType = 1">
|
|
<xsl:value-of select="ID"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 2">
|
|
<xsl:value-of select="UserID"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 3">
|
|
<xsl:value-of select="Type"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 4">
|
|
<xsl:value-of select="Name"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 5">
|
|
<xsl:value-of select="Hits"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 6">
|
|
<xsl:value-of select="TemplateID"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 7">
|
|
<xsl:choose>
|
|
<xsl:when test="Photo != ''">
|
|
<xsl:value-of select="Photo"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>nopic.gif</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 8">
|
|
<xsl:value-of select="Intro"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 9">
|
|
<xsl:value-of select="Address"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 10">
|
|
<xsl:value-of select="Tel"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 11">
|
|
<xsl:value-of select="Fax"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 12">
|
|
<xsl:value-of select="Mail"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 13">
|
|
<xsl:value-of select="Email"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 14">
|
|
<xsl:value-of select="ZipCode"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 15">
|
|
<xsl:value-of select="HomePage"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 16">
|
|
<xsl:value-of select="Im"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 17">
|
|
<xsl:choose>
|
|
<xsl:when test="Sex=1">男</xsl:when>
|
|
<xsl:otherwise>女</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 18">
|
|
<xsl:value-of select="pe:FormatDate(BirthDay,'yyyy-mm-dd')"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 19">
|
|
<xsl:value-of select="Company"/>
|
|
</xsl:when>
|
|
<xsl:when test="$outputType = 20">
|
|
<xsl:value-of select="Department"/>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<attributes>
|
|
<name>outputType</name>
|
|
<datatype>supersql</datatype>
|
|
<default>1</default>
|
|
<intro>输出类型{作者ID:1,用户ID:2,类型:3,名称:4,点击数:5,模板:6,图片:7,介绍:8,地址:9,电话:10,传真:11,地址:12,邮件:13,邮编:14,主页:15,IM:16,性别:17,日期:18,公司:19,部门:20}</intro>
|
|
</attributes>
|
|
</root> |