first commit
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
<?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="4703" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>词条创建者</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT DISTINCT UserName,UserFace,GroupID FROM PE_Users WHERE UserName IN ('@inputer','@editor')]]></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="inputer" />
|
||||
<xsl:param name="editor" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="UserName = $inputer">
|
||||
<div class="person">
|
||||
<div class="pic">
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="UserName"/>
|
||||
</xsl:attribute>
|
||||
<img border="0">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="UserFace = ''">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('SkinDir')" />user/images/no_pic.gif
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('UploadDir')" />
|
||||
<xsl:value-of select="UserFace" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</a>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="name">
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="UserName" /></xsl:attribute>
|
||||
<xsl:value-of select="UserName" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="power">
|
||||
<h5>{PE.Label id="互动百科_获取会员组名称" groupId="<xsl:value-of select="GroupID" />" /}</h5>
|
||||
</div>
|
||||
<div class="nature">
|
||||
<span>词条创建者</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:when test="UserName = $editor">
|
||||
<div class="person">
|
||||
<div class="pic">
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="UserName"/>
|
||||
</xsl:attribute>
|
||||
<img border="0">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="UserFace = ''">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('SkinDir')" />user/images/no_pic.gif
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('UploadDir')" />
|
||||
<xsl:value-of select="UserFace" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</a>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="name">
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="UserName" /></xsl:attribute>
|
||||
<xsl:value-of select="UserName" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="power">
|
||||
<h5>{PE.Label id="互动百科_获取会员组名称" groupId="<xsl:value-of select="GroupID" />" /}</h5>
|
||||
</div>
|
||||
<div class="nature">
|
||||
<span>最近编辑者</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>editor</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>最近编辑者</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user