first commit
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
<?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>userName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>会员名称</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 U.*,G.GroupName,(SELECT COUNT(*) FROM PE_EN_Entry WHERE Inputer = '@userName') InputTotal,(SELECT COUNT(DISTINCT EntryId) FROM PE_EN_Entry_Edition WHERE Editor = '@userName') EditTotal FROM PE_Users U INNER JOIN PE_UserGroups G ON G.GroupID = U.GroupID 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">
|
||||
<div class="category">
|
||||
<div class="hd">
|
||||
<h3><xsl:value-of select="UserName" /></h3>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<div class="userInformation">
|
||||
<div class="pic">
|
||||
<a href="#">
|
||||
<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="name">
|
||||
<strong>
|
||||
<xsl:value-of select="GroupName" />
|
||||
</strong>
|
||||
</div>
|
||||
<table class="other" width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="tit">创建词条:</td>
|
||||
<td>
|
||||
<xsl:value-of select="InputTotal" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tit">编辑词条:</td>
|
||||
<td>
|
||||
<xsl:value-of select="EditTotal" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tit">注册时间:</td>
|
||||
<td>
|
||||
<xsl:value-of select="pe:FormatDate(RegTime,'yyyy年mm月dd日')" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear12">
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user