first commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
|
||||
<LabelTemplate>
|
||||
<![CDATA[
|
||||
<div id="Message_box" class="content_box">
|
||||
<div class="content_title">
|
||||
<div class="ctLeft" style="width:85%;" onmousedown="MDown('Message_box')">
|
||||
<span id="bm_title">信息标题</span>
|
||||
</div>
|
||||
<span class="ctRight" onclick="CloseMessage()" title="关闭">
|
||||
</span>
|
||||
</div>
|
||||
<div id="Message_Content">
|
||||
<div id="bm_content">
|
||||
<span id="bm_icon" class="bm_warn"></span><span id="bm_message">没有提示信息</span>
|
||||
</div>
|
||||
<div class="bm_bottom"><a class="CP_a_btn2" onclick="CloseMessage()">确定</a></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="Message_mask" class="mask"></div>
|
||||
<script type="text/javascript">
|
||||
var url="";
|
||||
function ShowMessage(operate,message,linkurl){
|
||||
url = linkurl;
|
||||
var tarTitle=document.getElementById("bm_title");
|
||||
var tarMessage=document.getElementById("bm_message");
|
||||
var tarIcon=document.getElementById("bm_icon");
|
||||
switch(operate){
|
||||
case "success":
|
||||
tarTitle.innerHTML="成功信息";
|
||||
tarIcon.className="bm_success";
|
||||
break;
|
||||
case "error":
|
||||
tarTitle.innerHTML="错误信息";
|
||||
tarIcon.className="bm_fail";
|
||||
break;
|
||||
case "warn":
|
||||
tarTitle.innerHTML="警告信息";
|
||||
tarIcon.className="bm_warn";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
tarMessage.innerHTML=message;
|
||||
|
||||
ShowPopup("Message_mask","Message_box");
|
||||
}
|
||||
function CloseMessage(){
|
||||
if(url!=""&&url!=null){
|
||||
this.location.href = url;
|
||||
}
|
||||
else{
|
||||
document.getElementById("Message_mask").style.visibility='hidden';
|
||||
document.getElementById("Message_box").style.visibility='hidden';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
|
||||
<LabelTemplate>
|
||||
<![CDATA[<script>
|
||||
var Obj = '', x, y,pX,pY;
|
||||
var isIE = document.all; //IE true;
|
||||
|
||||
function MDown(id) {
|
||||
var tarEle = document.getElementById(id);
|
||||
Obj = id;
|
||||
var objEvent = getEvent();
|
||||
|
||||
if (isIE) {
|
||||
document.all(Obj).setCapture();
|
||||
}
|
||||
|
||||
x = isIE ? objEvent.x :objEvent.pageX ;
|
||||
y = isIE ? objEvent.y :objEvent.pageY ;
|
||||
pX = x - tarEle.offsetLeft;
|
||||
pY = y - tarEle.offsetTop;
|
||||
}
|
||||
|
||||
function MMove() {
|
||||
if (Obj != '') {
|
||||
var objEvent = getEvent();
|
||||
var objDoc = document.getElementById(Obj);
|
||||
x = isIE ? objEvent.x : objEvent.pageX;
|
||||
y = isIE ? objEvent.y : objEvent.pageY;
|
||||
objDoc.style.left = x - pX + "px";
|
||||
objDoc.style.top = y - pY + "px";
|
||||
}
|
||||
}
|
||||
|
||||
function MUp() {
|
||||
if (Obj != '') {
|
||||
if (isIE) {
|
||||
document.all(Obj).releaseCapture();
|
||||
}
|
||||
Obj = '';
|
||||
}
|
||||
}
|
||||
|
||||
function getEvent() { //同时兼容ie和ff的写法
|
||||
if (isIE) return window.event;
|
||||
func = getEvent.caller;
|
||||
while (func != null) {
|
||||
var arg0 = func.arguments[0];
|
||||
if (arg0) {
|
||||
if ((arg0.constructor == Event || arg0.constructor == MouseEvent)
|
||||
|| (typeof (arg0) == "object" && arg0.preventDefault && arg0.stopPropagation)) {
|
||||
return arg0;
|
||||
}
|
||||
}
|
||||
func = func.caller;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
document.onmouseup = MUp;
|
||||
document.onmousemove = MMove;
|
||||
|
||||
//创建遮罩层时要用到
|
||||
function getPageSize(){
|
||||
//检测浏览器的渲染模式
|
||||
var body = (document.compatMode&&document.compatMode.toLowerCase() == "css1compat")?document.documentElement:document.body;
|
||||
|
||||
var bodyOffsetWidth = 0;
|
||||
var bodyOffsetHeight = 0;
|
||||
var bodyScrollWidth = 0;
|
||||
var bodyScrollHeight = 0;
|
||||
var pageDimensions = [0,0];
|
||||
|
||||
pageDimensions[0]=body.clientHeight;
|
||||
pageDimensions[1]=body.clientWidth;
|
||||
|
||||
bodyOffsetWidth=body.offsetWidth;
|
||||
bodyOffsetHeight=body.offsetHeight;
|
||||
bodyScrollWidth=body.scrollWidth;
|
||||
bodyScrollHeight=body.scrollHeight;
|
||||
|
||||
if(bodyOffsetHeight > pageDimensions[0])
|
||||
{
|
||||
pageDimensions[0]=bodyOffsetHeight;
|
||||
}
|
||||
|
||||
if(bodyOffsetWidth > pageDimensions[1])
|
||||
{
|
||||
pageDimensions[1]=bodyOffsetWidth;
|
||||
}
|
||||
|
||||
if(bodyScrollHeight > pageDimensions[0])
|
||||
{
|
||||
pageDimensions[0]=bodyScrollHeight;
|
||||
}
|
||||
|
||||
if(bodyScrollWidth > pageDimensions[1])
|
||||
{
|
||||
pageDimensions[1]=bodyScrollWidth;
|
||||
}
|
||||
|
||||
return pageDimensions;
|
||||
}
|
||||
function ShowPopup(maskDiv,popupBox) {
|
||||
var pageArg = getPageSize();
|
||||
var tarMP=document.getElementById(maskDiv);
|
||||
var tarBox=document.getElementById(popupBox);
|
||||
tarMP.style.height = pageArg[0] + "px";
|
||||
tarMP.style.width = "100%";
|
||||
tarMP.style.visibility = 'visible';
|
||||
var top = "";
|
||||
if (document.body.scrollTop) {
|
||||
top = (document.body.scrollTop+ 200) + "px";
|
||||
}
|
||||
else {
|
||||
top = (document.documentElement.scrollTop + 200) + "px";
|
||||
}
|
||||
tarBox.style.top = top;
|
||||
tarBox.style.visibility = 'visible';
|
||||
}
|
||||
function ClosePopup(maskDiv,popupBox){
|
||||
document.getElementById(maskDiv).style.visibility='hidden';
|
||||
document.getElementById(popupBox).style.visibility='hidden';
|
||||
}
|
||||
</script>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty PE_EN_HotTag.* FROM PE_EN_HotTag ORDER BY Priority DESC</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="outputQty" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<li><a target="_blank">
|
||||
<xsl:attribute name="href">SearchList.aspx?type=2&keyword=<xsl:value-of select="TagName"/></xsl:attribute><xsl:value-of select="TagName"/>
|
||||
</a></li>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4702" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>type</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>0用户创建,1用户编辑</intro>
|
||||
</attributes>
|
||||
<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="type" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$type = 0">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
{PE.Label id="互动百科_通用词条列表" bindStyle="用户相关词条列表" outputQty="20" isUsePage="true" linkOpenType="_blank" titleLength="50" listOrderType="0" inputer="@Request_un" /}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ft">
|
||||
<div class="page">{PE.Page id="url_方块样式分页" datasource="互动百科_通用词条列表_用户相关词条列表" span="span" unitname="个词条"/}</div>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:when test="$type = 1">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
{PE.Label id="互动百科_用户编辑词条列表" bindStyle="普通式" outputQty="20" linkOpenType="_blank" titleLength="50" editor="@Request_un" /}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ft">
|
||||
<div class="page">{PE.Page id="url_方块样式分页" datasource="互动百科_用户编辑词条列表_普通式" span="span" unitname="个词条"/}</div>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4701" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>type</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>0用户创建,1用户编辑</intro>
|
||||
</attributes>
|
||||
<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="type" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<li>
|
||||
<xsl:attribute name="class">
|
||||
<xsl:if test="$type = 0">current</xsl:if>
|
||||
</xsl:attribute>
|
||||
<a href="?un=@Request_un&type=0">创建的词条</a>
|
||||
</li>
|
||||
<li>
|
||||
<xsl:attribute name="class">
|
||||
<xsl:if test="$type = 1">current</xsl:if>
|
||||
</xsl:attribute>
|
||||
<a href="?un=@Request_un&type=1">编辑的词条</a>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4711" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>_blank</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>样式标签名称</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>true</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![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">
|
||||
<!--要使用上一步定义的自定义参数,要作为XSLT参数使用,务必要在这里声明。如:<xsl:param name="myPara" />.引用该参数:$myPara -->
|
||||
<xsl:param name="isLeaf" />
|
||||
<xsl:param name="cid" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<root>
|
||||
<sql>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$isLeaf = 1">
|
||||
SELECT * FROM PE_EN_Entry WHERE CatalogId IN(@cid)
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
SELECT ParentId = @cid
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</sql>
|
||||
<sqlpage>
|
||||
</sqlpage>
|
||||
<countsql>
|
||||
</countsql>
|
||||
</root>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="editor"/>
|
||||
|
||||
<xsl:template name="_constraint">
|
||||
<xsl:param name="_doubleApos"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetLoginedUserInfo('UserName') = $editor">
|
||||
E.Status >= 0
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
E.Status > 0
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$_doubleApos = 'true'">
|
||||
AND ED.Editor = ''<xsl:value-of select="$editor" />''
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
AND ED.Editor = '<xsl:value-of select="$editor" />'
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
|
||||
{PE.Label id="互动百科_用户编辑词条列表_<xsl:value-of select="$bindStyle" />" page="true" pageid="@RequestInt_page" pagesize="<xsl:value-of select="$outputQty" />" linkOpenType="<xsl:value-of select="$linkOpenType"/>" titleLength="<xsl:value-of select="$titleLength"/>"
|
||||
sqlString="EXEC [dbo].[PR_Common_PagingLarge] 'PE_EN_Entry_Edition ED INNER JOIN PE_EN_Entry E ON E.EntryId = ED.EntryId','ED.EntryId','ED.EntryId,E.EntryName,E.Inputer,E.Tag,E.Hits,E.EditTimes,E.Summary,MAX(ED.EditTime) EditTime',<xsl:value-of select="$outputQty" />,@startrow ,'<xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'true'"/>
|
||||
</xsl:call-template>','ED.EntryId,E.EntryName,E.Inputer,E.Tag,E.Hits,E.EditTimes,E.Summary','ED.EntryId DESC'"
|
||||
sqlCount="select count(distinct ED.EntryId) from PE_EN_Entry_Edition ED INNER JOIN PE_EN_Entry E ON E.EntryId = ED.EntryId WHERE <xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'false'"/>
|
||||
</xsl:call-template>" /}
|
||||
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>editor</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>查询条件-编辑者</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?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>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<h5><a><xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/></xsl:attribute><xsl:value-of select="EntryName"/></a></h5>
|
||||
<div class="author">词条创建者: <a href="javascript:;"><xsl:value-of select="Inputer"/></a> 更新时间: <xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff:ss')"/></div>
|
||||
<div class="label"><strong>标签:</strong><xsl:value-of select="Tag"/></div>
|
||||
<div class="abstract"><strong>摘要:</strong><xsl:value-of select="pe:CutText(Summary,200,'...')"/><a><xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/></xsl:attribute>[阅读全文]</a></div>
|
||||
<div class="edit">编辑: <xsl:value-of select="EditTimes"/>次 | 浏览: <xsl:value-of select="Hits"/>次</div>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>type</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>1推荐,2精彩,3热门</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>order</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>3人气指数,4最近更新</intro>
|
||||
</attributes>
|
||||
<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="type" />
|
||||
<xsl:param name="order" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<li class="sc2 png">
|
||||
<xsl:if test="$type = 1">
|
||||
<xsl:attribute name="class">sc1 current png</xsl:attribute>
|
||||
</xsl:if><a href="HotList.aspx?type=1">推荐词条</a></li>
|
||||
<li class="sc2 png">
|
||||
<xsl:if test="$type = 2">
|
||||
<xsl:attribute name="class">sc1 current png</xsl:attribute>
|
||||
</xsl:if><a href="HotList.aspx?type=2">精彩词条</a></li>
|
||||
<li class="sc3 png">
|
||||
<xsl:if test="$type = 3">
|
||||
<xsl:attribute name="class">sc1 current png</xsl:attribute>
|
||||
</xsl:if><a href="HotList.aspx?type=3">热门词条</a></li>
|
||||
<li class="sc4 png">
|
||||
<xsl:if test="$order = 4">
|
||||
<xsl:attribute name="class">sc1 current png</xsl:attribute>
|
||||
</xsl:if><a href="HotList.aspx?order=4">最近更新</a></li>
|
||||
<li class="sc7 png">
|
||||
<xsl:if test="$order = 3">
|
||||
<xsl:attribute name="class">sc1 current png</xsl:attribute>
|
||||
</xsl:if><a href="HotList.aspx?order=3">人气指数</a></li>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4701" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>type</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>1推荐,2精彩,3热门</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>order</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>3人气指数,4最近更新</intro>
|
||||
</attributes>
|
||||
<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="type" />
|
||||
<xsl:param name="order" />
|
||||
<xsl:param name="letter" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$type = 1">推荐词条</xsl:when>
|
||||
<xsl:when test="$type = 2">精彩词条</xsl:when>
|
||||
<xsl:when test="$type = 3">热门词条</xsl:when>
|
||||
<xsl:when test="$order = 3">人气指数</xsl:when>
|
||||
<xsl:when test="$order = 4">最近更新</xsl:when>
|
||||
<xsl:when test="$letter != ''">按字母顺序浏览--<xsl:value-of select="$letter" /></xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>letter</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>字母浏览</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4700" compatibleVersion="" />
|
||||
<LabelTemplate><![CDATA[<div class="copyRight">
|
||||
<p>如想投诉,请到百科投诉中心;如想提出意见、建议,请到百科吧;想要了解您在百科的权利与义务,请查看权利声明。<br/>
|
||||
©2012 PowerEasy Inc. <a href="#">使用前必读</a> | <a href="#">百科协议</a></p>
|
||||
</div>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4700" compatibleVersion="" />
|
||||
<LabelTemplate>
|
||||
<![CDATA[<div class="header">
|
||||
<div id="divTopLogin">{PE.Label id="互动百科_首页顶部会员信息" /}</div>
|
||||
<div class="logoBox">
|
||||
<div class="searchBox">
|
||||
<div class="search">
|
||||
<div class="inputBox">
|
||||
<input id="TxtSearch" class="" type="text" value="">
|
||||
</div>
|
||||
<div class="entries"><a href="javascript:;" onclick="GoSearch()">进入词条</a></div>
|
||||
<div class="btn"><a href="javascript:;" onclick="GoSearch()">搜 索</a></div>
|
||||
<div class="link"><a href="Search.aspx">高级搜索</a></div>
|
||||
</div>
|
||||
<div class="hotSearch">热门搜索:{PE.Label id="互动百科_通用词条列表" bindStyle="热门前五" outputQty="5" isUsePage="false" linkOpenType="_blank" titleLength="15" docType="3" listOrderType="3" /}</div>
|
||||
</div>
|
||||
<div class="logo">
|
||||
<h1 class="png" title="动易百科">动易百科</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menuBox">
|
||||
<div class="term">
|
||||
<ul>
|
||||
<li class="last"><a href="CreateDoc.aspx">创建词条</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav">
|
||||
<ul>
|
||||
<li><a href="Index.aspx">首页</a></li>
|
||||
<li><a href="Category.aspx">百科分类</a></li>
|
||||
<li><a href="HotList.aspx?order=3">排行榜</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function TopLogout(){
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.post('userlogout', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == "ok") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function UpdateTopLoginStatus() {
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.labelname = "互动百科_首页顶部会员信息";
|
||||
x.para = [];
|
||||
x.post('updatelabel', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == "ok") {
|
||||
jQuery("#divTopLogin").html(xml.getElementsByTagName("body")[0].firstChild.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function GoSearch(){
|
||||
var txt = jQuery("#TxtSearch").val();
|
||||
if(txt != ""){
|
||||
if(txt.substring(0,4).toLowerCase() == "tag:"){
|
||||
location.href="SearchList.aspx?type=2&keyword="+escape(txt.substring(4,txt.length));
|
||||
}else{
|
||||
location.href="SearchList.aspx?type=1&keyword="+escape(txt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function Logout() {
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.post('userlogout', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == "ok") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>groupId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>会员组ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT GroupName FROM PE_UserGroups WHERE GroupID = @groupId</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="groupId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:value-of select="GroupName"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4700" compatibleVersion="" />
|
||||
<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="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:value-of select="pe:GetLoginedUserInfo('UserName')"/>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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="4701" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>entryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT EC.*,C.CategoryName FROM PE_EN_Entry_Category EC INNER JOIN PE_EN_Category C ON C.CategoryId = EC.CategoryId WHERE EntryId = @entryId</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="entryId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">DocList.aspx?cid=<xsl:value-of select="CategoryId" /></xsl:attribute><xsl:value-of select="CategoryName" /></a>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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="4702" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>entryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT * FROM PE_EN_Entry_Category WHERE EntryId = @entryId</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="entryId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:value-of select="CategoryId" />
|
||||
<xsl:if test="position() != count(/NewDataSet/Table)">,</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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="4701" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>entryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT EC.*,C.CategoryName FROM PE_EN_Entry_Category EC INNER JOIN PE_EN_Category C ON C.CategoryId = EC.CategoryId WHERE EntryId = @entryId</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="entryId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:value-of select="CategoryName" />
|
||||
<xsl:if test="position() != count(/NewDataSet/Table)">,</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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="4702" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>cid</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>目录ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>with SubCategory(CategoryId,CategoryName,ParentId) as
|
||||
(
|
||||
select CategoryId,CategoryName,ParentId from PE_EN_Category where CategoryId = @cid
|
||||
union all
|
||||
select C.CategoryId,C.CategoryName,C.ParentId
|
||||
from
|
||||
PE_EN_Category C,
|
||||
SubCategory SC
|
||||
where C.ParentId = SC.categoryid
|
||||
)
|
||||
select * from SubCategory</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:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:value-of select="CategoryId"/>
|
||||
<xsl:if test="position() != count(/NewDataSet/Table)">,</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?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="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>entryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT COUNT(*) Total FROM PE_EN_Entry_Edition WHERE EntryId = @entryId</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="entryId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:if test="Total > 0">
|
||||
<li>编辑次数:<span>
|
||||
<xsl:value-of select="Total"/>
|
||||
</span>次<a target="_blank"><xsl:attribute name="href">EditionList.aspx?id=<xsl:value-of select="$entryId"/></xsl:attribute>历史记录</a>
|
||||
</li>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>编辑者</intro>
|
||||
</attributes>
|
||||
<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="inputer"/>
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<p class="lock">友情提示:正在被 <a>
|
||||
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="$inputer"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$inputer"/></a> 锁定编辑中!</p>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,83 @@
|
||||
<?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="2905" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>entryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_EN_Entry WHERE EntryId = @entryId AND Status >= 0]]></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="BlogID" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<Root>
|
||||
<EntryId>
|
||||
<xsl:value-of select="/NewDataSet/Table/EntryId"/>
|
||||
</EntryId>
|
||||
<EntryName>
|
||||
<xsl:value-of select="/NewDataSet/Table/EntryName"/>
|
||||
</EntryName>
|
||||
<FirstLetter>
|
||||
<xsl:value-of select="/NewDataSet/Table/FirstLetter"/>
|
||||
</FirstLetter>
|
||||
<Summary>
|
||||
<xsl:value-of select="/NewDataSet/Table/Summary"/>
|
||||
</Summary>
|
||||
<Tag>
|
||||
<xsl:value-of select="/NewDataSet/Table/Tag"/>
|
||||
</Tag>
|
||||
<Content>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/NewDataSet/Table/Status = 1">
|
||||
{PE.Label id="互动百科_词条内容_锁定编辑" inputer="<xsl:value-of select="/NewDataSet/Table/Inputer"/>" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of disable-output-escaping="yes" select="/NewDataSet/Table/Content"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</Content>
|
||||
<Inputer>
|
||||
<xsl:value-of select="/NewDataSet/Table/Inputer"/>
|
||||
</Inputer>
|
||||
<CreateTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/CreateTime,'yyyy-mm-dd hh:ff:ss')"/>
|
||||
</CreateTime>
|
||||
<Hits>
|
||||
<xsl:value-of select="/NewDataSet/Table/Hits"/>
|
||||
</Hits>
|
||||
<Editor>
|
||||
<xsl:value-of select="/NewDataSet/Table/Editor"/>
|
||||
</Editor>
|
||||
<EditTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/EditTime,'yyyy年mm月dd日')"/>
|
||||
</EditTime>
|
||||
<EditTimes>
|
||||
<xsl:value-of select="/NewDataSet/Table/EditTimes"/>
|
||||
</EditTimes>
|
||||
<Status>
|
||||
<xsl:value-of select="/NewDataSet/Table/Status"/>
|
||||
</Status>
|
||||
<Locked>
|
||||
<xsl:value-of select="/NewDataSet/Table/Locked"/>
|
||||
</Locked>
|
||||
<RecommendLevel>
|
||||
<xsl:value-of select="/NewDataSet/Table/RecommendLevel"/>
|
||||
</RecommendLevel>
|
||||
<Votes>
|
||||
<xsl:value-of select="/NewDataSet/Table/Votes"/>
|
||||
</Votes>
|
||||
</Root>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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="4700" compatibleVersion="" />
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT PE_EN_Category.* FROM PE_EN_Category WHERE ParentId = 0 ORDER BY OrderId ASC</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:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<li>
|
||||
<h4>
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">DocList.aspx?cid=<xsl:value-of select="CategoryId"/></xsl:attribute>
|
||||
<xsl:value-of select="CategoryName"/>
|
||||
</a>
|
||||
</h4>
|
||||
<p>
|
||||
{PE.Label id="互动百科_词条分类_二级" cid="<xsl:value-of select="CategoryId"/>" /}
|
||||
</p>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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="4702" compatibleVersion="" />
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT PE_EN_Category.* FROM PE_EN_Category WHERE ParentId = @cid</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:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">DocList.aspx?cid=<xsl:value-of select="CategoryId"/></xsl:attribute>
|
||||
<xsl:value-of select="CategoryName" />
|
||||
</a>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>cid</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条分类ID</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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="2906" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>cid</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条分类ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP 1 * FROM PE_EN_Category WHERE CategoryId = @cid</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="BlogID" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<Root>
|
||||
<CategoryId>
|
||||
<xsl:value-of select="/NewDataSet/Table/CategoryId"/>
|
||||
</CategoryId>
|
||||
<CategoryName>
|
||||
<xsl:value-of select="/NewDataSet/Table/CategoryName"/>
|
||||
</CategoryName>
|
||||
<ParentId>
|
||||
<xsl:value-of select="/NewDataSet/Table/ParentId"/>
|
||||
</ParentId>
|
||||
</Root>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?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="2914" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>editionId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 ED.*,E.EntryName,E.Hits,E.Tag,E.Inputer,E.Status,E.EditTimes,E.EditTime UpdateTime,E.Editor LastEditor FROM PE_EN_Entry_Edition ED INNER JOIN PE_EN_Entry E ON E.EntryId = ED.EntryId WHERE ED.EditionId = @editionId AND E.Status >= 0]]></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="BlogID" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<Root>
|
||||
<EntryId>
|
||||
<xsl:value-of select="/NewDataSet/Table/EntryId"/>
|
||||
</EntryId>
|
||||
<EntryName>
|
||||
<xsl:value-of select="/NewDataSet/Table/EntryName"/>
|
||||
</EntryName>
|
||||
<EditionId>
|
||||
<xsl:value-of select="/NewDataSet/Table/EditionId"/>
|
||||
</EditionId>
|
||||
<Words>
|
||||
<xsl:value-of select="/NewDataSet/Table/Words"/>
|
||||
</Words>
|
||||
<Tag>
|
||||
<xsl:value-of select="/NewDataSet/Table/Tag"/>
|
||||
</Tag>
|
||||
<Content>
|
||||
<xsl:value-of disable-output-escaping="yes" select="/NewDataSet/Table/Content"/>
|
||||
</Content>
|
||||
<Inputer>
|
||||
<xsl:value-of select="/NewDataSet/Table/Inputer"/>
|
||||
</Inputer>
|
||||
<Reason>
|
||||
<xsl:value-of select="/NewDataSet/Table/Reason"/>
|
||||
</Reason>
|
||||
<Hits>
|
||||
<xsl:value-of select="/NewDataSet/Table/Hits"/>
|
||||
</Hits>
|
||||
<Editor>
|
||||
<xsl:value-of select="/NewDataSet/Table/Editor"/>
|
||||
</Editor>
|
||||
<LastEditor>
|
||||
<xsl:value-of select="/NewDataSet/Table/LastEditor"/>
|
||||
</LastEditor>
|
||||
<EditTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/EditTime,'yyyy-mm-dd hh:ff')"/>
|
||||
</EditTime>
|
||||
<UpdateTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy年mm月dd日')"/>
|
||||
</UpdateTime>
|
||||
<EditTimes>
|
||||
<xsl:value-of select="/NewDataSet/Table/EditTimes"/>
|
||||
</EditTimes>
|
||||
<Status>
|
||||
<xsl:value-of select="/NewDataSet/Table/Status"/>
|
||||
</Status>
|
||||
</Root>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?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="4701" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>entryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>词条ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT PE_EN_Entry_Edition.* FROM PE_EN_Entry_Edition WHERE EntryId = @entryId ORDER BY EditionId DESC</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="entryId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:variable name="total" select="count(/NewDataSet/Table)"/>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:variable name="no" select="($total + 1 - position())" />
|
||||
<li>
|
||||
<span class="l1">
|
||||
<input type="checkbox">
|
||||
<xsl:attribute name="value"><xsl:value-of select="EditionId" /></xsl:attribute>
|
||||
</input>
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">Edition.aspx?id=<xsl:value-of select="EditionId" />&no=<xsl:value-of select="$no" />
|
||||
</xsl:attribute>
|
||||
历史版本<xsl:value-of select="$no" />
|
||||
</a>
|
||||
</span>
|
||||
<span class="l2">
|
||||
<xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff')" />
|
||||
</span>
|
||||
<span class="l3">
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="Editor" /></xsl:attribute>
|
||||
<xsl:value-of select="Editor" />
|
||||
</a>
|
||||
</span>
|
||||
<span class="l7">
|
||||
<xsl:value-of select="pe:CutText(Reason,56,'...')" />
|
||||
</span>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4702" compatibleVersion="" />
|
||||
<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="letter" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<ul class="">
|
||||
<li><a href="javascript:;" onclick="SetP('A');">A</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('B');">B</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('C');">C</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('D');">D</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('E');">E</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('F');">F</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('G');">G</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('H');">H</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('I');">I</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('J');">J</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('K');">K</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('L');">L</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('M');">M</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('N');">N</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('O');">O</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('P');">P</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('Q');">Q</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('R');">R</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('S');">S</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('T');">T</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('U');">U</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('V');">V</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('W');">W</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('X');">X</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('Y');">Y</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('Z');">Z</a></li>
|
||||
<xsl:if test="$letter = 'false'">
|
||||
<li><a href="javascript:;" onclick="SetP('0');">0</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('1');">1</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('2');">2</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('3');">3</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('4');">4</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('5');">5</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('6');">6</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('7');">7</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('8');">8</a></li>
|
||||
<li><a href="javascript:;" onclick="SetP('9');">9</a></li>
|
||||
</xsl:if>
|
||||
</ul>
|
||||
|
||||
<script type="text/javascript">
|
||||
function SetP(letter) {
|
||||
location.href = "HotList.aspx?letter=" + letter;
|
||||
}
|
||||
</script>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>letter</name>
|
||||
<datatype>string</datatype>
|
||||
<default>false</default>
|
||||
<intro>true只含字母,false为所有</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4700" compatibleVersion="" />
|
||||
<LabelTemplate>
|
||||
</LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,227 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4721" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>_blank</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>样式标签名称</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="title" />
|
||||
<xsl:param name="isUsePage" />
|
||||
<xsl:param name="docType" />
|
||||
<xsl:param name="listOrderType"/>
|
||||
<xsl:param name="inputer"/>
|
||||
<xsl:param name="letter"/>
|
||||
<xsl:param name="cid"/>
|
||||
<xsl:param name="dayDiff"/>
|
||||
<xsl:param name="type"/>
|
||||
<xsl:param name="keyword"/>
|
||||
<xsl:param name="hasImages"/>
|
||||
|
||||
<xsl:template name="_constraint">
|
||||
<xsl:param name="_doubleApos"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetLoginedUserInfo('UserName') = $inputer and $inputer != ''">
|
||||
E.Status >= 0
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
E.Status > 0
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$docType > 0">
|
||||
AND E.RecommendLevel = <xsl:value-of select="$docType" />
|
||||
</xsl:if>
|
||||
<xsl:if test="$cid != ''">
|
||||
AND E.EntryId IN (SELECT EntryId FROM PE_EN_Entry_Category WHERE EntryId = E.EntryId AND CategoryId IN (<xsl:value-of select="$cid" />))
|
||||
</xsl:if>
|
||||
<xsl:if test="$dayDiff > 0">
|
||||
AND DATEDIFF(DD,E.EditTime,GETDATE()) <= <xsl:value-of select="$dayDiff" />
|
||||
</xsl:if>
|
||||
<xsl:if test="$hasImages = 'true'">
|
||||
AND DATALENGTH(E.Images) > 0
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$_doubleApos = 'true'">
|
||||
<xsl:if test="$title != ''">
|
||||
AND E.EntryName LIKE ''%<xsl:value-of select="$title" />%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND E.Inputer LIKE ''%<xsl:value-of select="$inputer" />%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$letter != ''">
|
||||
AND E.FirstLetter = ''<xsl:value-of select="$letter" />''
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
<xsl:if test="$type = 1">
|
||||
AND E.EntryName LIKE ''%<xsl:value-of select="$keyword" />%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$type = 2">
|
||||
AND E.Tag LIKE ''%<xsl:value-of select="$keyword" />%''
|
||||
</xsl:if>
|
||||
<xsl:if test="$type = 3">
|
||||
AND E.Content LIKE ''%<xsl:value-of select="$keyword" />%''
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:if test="$title != ''">
|
||||
AND E.EntryName LIKE '%<xsl:value-of select="$title" />%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND E.Inputer LIKE '%<xsl:value-of select="$inputer" />%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$letter != ''">
|
||||
AND E.FirstLetter = '<xsl:value-of select="$letter" />'
|
||||
</xsl:if>
|
||||
<xsl:if test="$keyword != ''">
|
||||
<xsl:if test="$type = 1">
|
||||
AND E.EntryName LIKE '%<xsl:value-of select="$keyword" />%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$type = 2">
|
||||
AND E.Tag LIKE '%<xsl:value-of select="$keyword" />%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$type = 3">
|
||||
AND E.Content LIKE '%<xsl:value-of select="$keyword" />%'
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<!--内容列表排序、此变量节请勿修改-->
|
||||
<xsl:variable name="_listOrderValue">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$listOrderType = 0">E.CreateTime DESC</xsl:when>
|
||||
<xsl:when test="$listOrderType = 1">E.EntryId DESC</xsl:when>
|
||||
<xsl:when test="$listOrderType = 2">E.EntryId ASC</xsl:when>
|
||||
<xsl:when test="$listOrderType = 3">E.Hits DESC,E.EntryId DESC</xsl:when>
|
||||
<xsl:when test="$listOrderType = 4">E.EditTime DESC</xsl:when>
|
||||
<xsl:when test="$listOrderType = 5">E.EditTime ASC</xsl:when>
|
||||
<xsl:when test="$listOrderType = 6">E.Hits ASC,E.EntryId ASC</xsl:when>
|
||||
<xsl:otherwise>E.CreateTime DESC</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="_tableName">PE_EN_Entry E</xsl:variable>
|
||||
|
||||
{PE.Label id="互动百科_通用词条列表_<xsl:value-of select="$bindStyle" />" page="<xsl:value-of select="$isUsePage" />" pageid="@RequestInt_page" pagesize="<xsl:value-of select="$outputQty" />" linkOpenType="<xsl:value-of select="$linkOpenType"/>" titleLength="<xsl:value-of select="$titleLength"/>"
|
||||
sqlString="EXEC [dbo].[PR_Common_PagingLarge] '<xsl:value-of select="$_tableName" />','E.EntryId','E.*',<xsl:value-of select="$outputQty" />,@startrow ,'<xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'true'"/>
|
||||
</xsl:call-template>','','<xsl:value-of select="$_listOrderValue" />'"
|
||||
sqlCount="select count(E.EntryId) from <xsl:value-of select="$_tableName" /> WHERE <xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'false'"/>
|
||||
</xsl:call-template>" /}
|
||||
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>title</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>查询条件-标题</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>isUsePage</name>
|
||||
<datatype>string</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否分页</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>docType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>0无,1推荐,2精彩,3热门</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>listOrderType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>排序方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>查询条件-创建者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>letter</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>查询条件-词条首字母</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>cid</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>词条分类ID列表,为空表示所有</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>dayDiff</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>查询条件-时间之内(天数)</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>type</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>0无,1词条名,2标签,3内容</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>keyword</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>搜索关键字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>hasImages</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>true为必须有图片,否则图片不限</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?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="4705" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="EntryName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<img border="0" width="155" height="117">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('uploaddir')" />
|
||||
<xsl:value-of select="pe:SplitFirstImageUrl(Images,'$$$')" />
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
<span class="png">
|
||||
<xsl:value-of select="pe:CutText(EntryName,$titleLength,'')" />
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?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="4701" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<h5><a><xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/></xsl:attribute><xsl:value-of select="EntryName"/></a></h5>
|
||||
<div class="author">词条创建者: <a href="javascript:;"><xsl:value-of select="Inputer"/></a> 更新时间: <xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff:ss')"/></div>
|
||||
<div class="label"><strong>标签:</strong><xsl:value-of select="Tag"/></div>
|
||||
<div class="abstract"><strong>摘要:</strong><xsl:value-of select="pe:CutText(Summary,200,'...')"/><a><xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/></xsl:attribute>[阅读全文]</a></div>
|
||||
<div class="edit">编辑: <xsl:value-of select="EditTimes"/>次 | 浏览: <xsl:value-of select="Hits"/>次</div>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose></xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?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="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li><xsl:value-of select="EntryName"/></li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?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="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="EntryName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(EntryName,30,'')" />
|
||||
</a>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?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="4704" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<h5><a><xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/></xsl:attribute><xsl:value-of select="EntryName"/></a></h5>
|
||||
<div class="author">词条创建者: <a href="javascript:;"><xsl:value-of select="Inputer"/></a> 更新时间: <xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff:ss')"/></div>
|
||||
<div class="label"><strong>标签:</strong><xsl:value-of select="Tag"/></div>
|
||||
<div class="abstract"><strong>摘要:</strong><xsl:value-of select="pe:CutText(Summary,200,'...')"/><a><xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/></xsl:attribute>[阅读全文]</a></div>
|
||||
<div class="edit">编辑: <xsl:value-of select="EditTimes"/>次 | 浏览: <xsl:value-of select="Hits"/>次</div>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?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="4700" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<span>
|
||||
<xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff')" />
|
||||
</span> <a>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="EntryName"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?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="4704" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<h5>
|
||||
<a>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="EntryName"/>
|
||||
</a>
|
||||
</h5>
|
||||
<div class="author">词条创建者: <a href="javascript:;" target="_blank">
|
||||
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="Inputer"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Inputer"/>
|
||||
</a> 更新时间: <xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff:ss')"/>
|
||||
</div>
|
||||
<div class="label">
|
||||
<strong>标签:</strong>
|
||||
<xsl:value-of select="Tag"/>
|
||||
</div>
|
||||
<div class="abstract">
|
||||
<strong>摘要:</strong>
|
||||
<xsl:value-of select="pe:CutText(Summary,200,'...')"/>
|
||||
<a>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/>
|
||||
</xsl:attribute>[阅读全文]</a>
|
||||
</div>
|
||||
<div class="edit">编辑: <xsl:value-of select="EditTimes"/>次 | 浏览: <xsl:value-of select="Hits"/>次</div>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?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="4704" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="EntryName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<img border="0" width="155" height="117">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('uploaddir')" />
|
||||
<xsl:value-of select="pe:SplitFirstImageUrl(Images,'$$$')" />
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
<span class="png">
|
||||
<xsl:value-of select="pe:CutText(EntryName,$titleLength,'')" />
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?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>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="EntryName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(EntryName,$titleLength,'')" />
|
||||
</a>
|
||||
<p>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Summary),30,'...')" />
|
||||
</p>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?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="4702" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<span>
|
||||
<xsl:value-of select="position()" />
|
||||
</span>
|
||||
<a>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="EntryName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(EntryName,$titleLength,'')" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?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>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="EntryName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(EntryName,$titleLength,'')" />
|
||||
</a>
|
||||
<p>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Summary),40,'...')" />
|
||||
</p>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4702" compatibleVersion="" />
|
||||
<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="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:variable name="CurrentUser" select="pe:GetLoginedUserInfo('username')" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="$CurrentUser != ''">
|
||||
{PE.Label id="互动百科_首页会员登录_会员信息" userName="<xsl:value-of select="$CurrentUser"/>" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div class="loginBox">
|
||||
<div class="hd">
|
||||
<h3>用户登录</h3>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<div class="login">
|
||||
<ul>
|
||||
<li class="inp"> <span>用户名:</span>
|
||||
<input id="TxtUserName" class="" type="text" value=""/>
|
||||
</li>
|
||||
<li class="inp"> <span>密码:</span>
|
||||
<input id="TxtPassword" class="" type="password" value=""/>
|
||||
</li>
|
||||
<li id="checkcode" class="inp" style="display:none;"> <span>验证码:</span>
|
||||
<input name="TxtValdisplayDateCode" type="text" maxlength="6" value="" id="TxtValdisplayDateCode" onfocus="this.select();" style="width: 50px;" />
|
||||
<img id="VcodeLogOn" title="看不清楚,换一个" onclick="RefreshValdisplayDateCodeImage(this);" align="absmiddle" style="border-width: 0px; cursor: pointer;margin-left:5px;">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('RootDir')"/>Controls/ValidateCodeImage.aspx</xsl:attribute>
|
||||
</img>
|
||||
</li>
|
||||
<li class="btn">
|
||||
<a href="javascript:;" onclick="Login();">登录</a>
|
||||
<a class="green" target="_blank">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('RootDir')"/>User/Register.aspx</xsl:attribute>注册</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="novice png">
|
||||
<ul>
|
||||
<li class="">
|
||||
<a href="#">初来乍到,了解一下</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="#">我是新手,怎样编写词条</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="#">我要成为词条达人</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear12">
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,84 @@
|
||||
<?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="4701" 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" /> <a class="logout" href="javascript:;" onclick="Logout();">退出</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<div class="userInformation">
|
||||
<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="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>
|
||||
<a target="_blank"><xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="UserName" /></xsl:attribute><xsl:value-of select="InputTotal" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tit">编辑词条:</td>
|
||||
<td>
|
||||
<a target="_blank"><xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="UserName" />&type=1</xsl:attribute><xsl:value-of select="EditTotal" /></a>
|
||||
</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>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4701" compatibleVersion="" />
|
||||
<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="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:variable name="CurrentUser" select="pe:GetLoginedUserInfo('UserName')" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="$CurrentUser != ''">
|
||||
<div class="topLink">欢迎您,<xsl:value-of select="$CurrentUser"/> | <a href="{PE.SiteConfig.ApplicationPath}User/Default.aspx">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('RootDir')"/>User/Default.aspx</xsl:attribute>会员中心</a> | <a href="javascript:;" onclick="TopLogout()">退出</a> | <a href="#">帮助</a>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div class="topLink">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('RootDir')"/>User/Login.aspx</xsl:attribute>登录</a> | <a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('RootDir')"/>User/Register.aspx</xsl:attribute>注册</a> | <a href="#">帮助</a>
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user