first commit
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>问答类</LabelType>
|
||||
<LabelIntro>问答用户信息</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>UserName</name>
|
||||
<datatype>string</datatype>
|
||||
<default>admin</default>
|
||||
<intro>用户名</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_Users WHERE UserName='@UserName']]></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="UserName" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
{PE.DataSource datasource="用户信息数据源标签" id="UserInfo" userName="<xsl:value-of select="UserName"/>" /}
|
||||
<div class="author user_info">
|
||||
<xsl:choose>
|
||||
<xsl:when test="UserFace=''">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
{PE.SiteConfig.ApplicationPath/}User/Images/default.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="UserName"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src"><xsl:if test="pe:IsStartWithhttp(UserFace)='true'"><xsl:value-of select="pe:InstallDir()"/></xsl:if><xsl:if test="pe:IsStartWithhttp(UserFace)='false'"><xsl:value-of select="pe:UpLoadDir()"/></xsl:if><xsl:value-of select="pe:ConvertRelativePath(UserFace)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="UserName"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<dl>
|
||||
<dd>
|
||||
<xsl:value-of select="UserName"/>
|
||||
</dd>
|
||||
<dd> 积分:<xsl:value-of select="UserExp"/></dd>
|
||||
<dd> {PE.Label id="显示用户级别" qAPoint="{PE.Field id="UserInfo" fieldname="UserExp" /}" honorType="{PE.Field id="UserInfo" fieldname="HonorType" /}" /}</dd>
|
||||
<dd>{PE.Label id="显示头衔系列" userName="<xsl:value-of select="UserName"/>" honorType="<xsl:value-of select="HonorType"/>"/}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user