first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,206 @@
<?xml version="1.0"?>
<root>
<LabelType>样式类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>@queryCond</LabelSqlString>
<attributes>
<name>titleLength</name>
<datatype>supersql</datatype>
<default>50</default>
<intro>项目标题长度,一个汉字占两个字节</intro>
</attributes>
<attributes>
<name>focusWidth</name>
<datatype>supersql</datatype>
<default>428</default>
<intro>焦点图宽度</intro>
</attributes>
<attributes>
<name>focusHeight</name>
<datatype>supersql</datatype>
<default>280</default>
<intro>焦点图高度</intro>
</attributes>
<attributes>
<name>optionalExtend</name>
<datatype>supersql</datatype>
<default />
<intro>可选扩展参数</intro>
</attributes>
<LabelTemplate>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:param name="titleLength" />
<xsl:param name="focusWidth" />
<xsl:param name="focusHeight" />
<xsl:param name="optionalExtend" />
<xsl:param name="queryCond" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table) = 0">
<font style="color:red">还没有任何信息!</font>
</xsl:when>
<xsl:otherwise>
<style type="text/css">
.texttitle { color: #C10001; }
.texttitle a:link { color: #C10001; text-decoration: none; }
.texttitle a:visited { color: #C10001; text-decoration: none; }
.texttitle a:hover { color: #C10001; text-decoration: underline; }
.texttitle a:active { color: #C10001; text-decoration: none; }
#imgTitle { filter: Alpha(opacity=70); left: 0px; overflow: hidden; position: relative; text-align: left; }
#imgTitle_up { left: 0px; height: 1px; text-align: left; }
#imgTitle_down { left: 0px; text-align: right; }
.imgClass { border-right: #fff 1px solid; border-top: #fff 1px solid; border-left: #fff 1px solid; border-bottom: #fff 1px solid; }
#txtFrom { vertical-align: middle; padding-top: 2px; text-align: center; }
.button { padding-right: 7px; padding-left: 7px; background: #7b7b63; padding-bottom: 2px; margin: 0px; font: bold 9px sans-serif; border-left: #fff 1px solid; padding-top: 2px; text-decoration: none; }
a.button { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
a.button:link { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
a.button:visited { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
a.button:hover { background: #fff; color: #fff; font-family: sans-serif; text-decoration: none; }
.buttonDiv { background: #000000; float: left; vertical-align: middle; width: 21px; height: 1px; text-align: center; }
.trans { filter: progid:DXImageTransform.Microsoft.Alpha(startX=0, startY=0, finishX=100, finishY=100,style=1,opacity=0,finishOpacity=40); width: 90px; background-color: #000; }
</style>
<script type="text/javascript">
var imgWidth = <xsl:value-of select="$focusWidth" />;
var imgHeight = <xsl:value-of select="$focusHeight" />;
var textFromHeight = 21;
var textStyle = &quot;texttitle&quot;;
var textLinkStyle = &quot;texttitle&quot;;
var buttonLineOn = &quot;#f60&quot;;
var buttonLineOff = &quot;#000&quot;;
var TimeOut = 5000;
var imgUrl = new Array();
var imgLink = new Array();
var imgtext = new Array();
var imgAlt = new Array();
var adNum = 0;
document.write('&lt;style type=&quot;text/css&quot;&gt;');
document.write('#focuseFrom{width:' + (imgWidth + 2) + ';margin: 0px; padding:0px;height:' + (imgHeight + textFromHeight) + 'px; overflow:hidden;}');
document.write('#txtFrom{height:' + textFromHeight + 'px;line-height:' + textFromHeight + 'px;width:' + imgWidth + 'px;overflow:hidden;}');
document.write('#imgTitle{width:' + imgWidth + ';top:-' + (textFromHeight + 14) + 'px;height:18px}');
document.write('&lt;/style&gt;');
document.write('&lt;div id=&quot;focuseFrom&quot;&gt;');
<xsl:for-each select="/NewDataSet/Table">
imgUrl[<xsl:value-of select="position()"/>] = '<xsl:choose>
<xsl:when test="TableName = 'PE_CommonProduct'">
<xsl:value-of select="pe:ConvertToAbsolutePath(ProductThumb)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/>
</xsl:otherwise>
</xsl:choose>';
imgtext[<xsl:value-of select="position()"/>] = '&lt;a href=&quot;<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>&quot; target=&quot;_blank&quot; class=&quot;linkblack&quot;&gt;<xsl:value-of select="pe:CutText(pe:ReplaceText(Title,'&quot;',''),$titleLength,'…')"/>&lt;/a&gt;';
imgLink[<xsl:value-of select="position()"/>] = '<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>';
imgAlt[<xsl:value-of select="position()"/>] = '<xsl:value-of select="Title"/>';
</xsl:for-each>
function changeimg(n){
adNum = n;
window.clearInterval(theTimer);
adNum = adNum - 1;
nextAd();
}
function goUrl(){
window.open(imgLink[adNum], '_blank');
}
if (navigator.appName == &quot;Netscape&quot;) {
document.write('&lt;style type=&quot;text/css&quot;&gt;');
document.write('.buttonDiv{height:4px;width:21px;}');
document.write('&lt;/style&gt;');
function nextAd(){
if (adNum &lt; (imgUrl.length - 1))
adNum++;
else
adNum = 1;
theTimer = setTimeout(&quot;nextAd()&quot;, TimeOut);
document.images.imgInit.src = imgUrl[adNum];
document.images.imgInit.alt = imgAlt[adNum];
document.getElementById('focustext').innerHTML = imgtext[adNum];
document.getElementById('imgLink').href = imgLink[adNum];
}
document.write('&lt;a id=&quot;imgLink&quot; href=&quot;' + imgLink[1] + '&quot; target=_blank class=&quot;p1&quot;&gt;&lt;img src=&quot;' + imgUrl[1] + '&quot; name=&quot;imgInit&quot; width=' + imgWidth + ' height=' + imgHeight + ' border=1 alt=&quot;' + imgAlt[1] + '&quot; class=&quot;imgClass&quot;&gt;&lt;/a&gt;&lt;div id=&quot;txtFrom&quot;&gt;&lt;span id=&quot;focustext&quot; class=&quot;' + textStyle + '&quot;&gt;' + imgtext[1] + '&lt;/span&gt;&lt;/div&gt;')
document.write('&lt;div id=&quot;imgTitle&quot;&gt;');
document.write('&lt;div id=&quot;imgTitle_down&quot;&gt;');
for (var i = 1; i &lt; imgUrl.length; i++) {
document.write('&lt;a href=&quot;javascript:changeimg(' + i + ')&quot; class=&quot;button&quot; style=&quot;cursor:hand&quot; title=&quot;' + imgAlt[i] + '&quot;&gt;' + i + '&lt;/a&gt;');
}
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
nextAd();
}
else {
var count = 0;
for (i = 1; i &lt; imgUrl.length; i++) {
if ((imgUrl[i] != &quot;&quot;) &amp;&amp; (imgLink[i] != &quot;&quot;) &amp;&amp; (imgtext[i] != &quot;&quot;) &amp;&amp; (imgAlt[i] != &quot;&quot;)) {
count++;
}
else {
break;
}
}
function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
}
var key = 0;
function nextAd(){
if (adNum &lt; count)
adNum++;
else
adNum = 1;
if (key == 0) {
key = 1;
}
else
if (document.all) {
imgInit.filters.revealTrans.Transition = 23;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src = imgUrl[adNum];
document.images.imgInit.alt = imgAlt[adNum];
document.getElementById('link' + adNum).style.background = buttonLineOn;
for (var i = 1; i &lt;= count; i++) {
if (i != adNum) {
document.getElementById('link' + i).style.background = buttonLineOff;
}
}
focustext.innerHTML = imgtext[adNum];
theTimer = setTimeout(&quot;nextAd()&quot;, TimeOut);
}
document.write('&lt;a target=_self href=&quot;javascript:goUrl()&quot;&gt;&lt;img style=&quot;FILTER: revealTrans(duration=1,transition=5);&quot; src=&quot;javascript:nextAd()&quot; width=' + imgWidth + ' height=' + imgHeight + ' border=0 vspace=&quot;0&quot; name=imgInit class=&quot;imgClass&quot;&gt;&lt;/a&gt;&lt;br&gt;');
document.write('&lt;div id=&quot;txtFrom&quot;&gt;&lt;span id=&quot;focustext&quot; class=&quot;' + textStyle + '&quot;&gt;&lt;/span&gt;&lt;/div&gt;');
document.write('&lt;div id=&quot;imgTitle&quot;&gt;');
document.write('&lt;div id=&quot;imgTitle_down&quot;&gt; &lt;a class=&quot;trans&quot;&gt;&lt;/a&gt;');
for (var i = 1; i &lt; imgUrl.length; i++) {
document.write('&lt;a id=&quot;link' + i + '&quot; href=&quot;javascript:changeimg(' + i + ')&quot; class=&quot;button&quot; style=&quot;cursor:hand&quot; title=&quot;' + imgAlt[i] + '&quot; onFocus=&quot;this.blur()&quot;&gt;' + i + '&lt;/a&gt;');
}
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
nextAd();
}
</script>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>queryCond</name>
<datatype>supersql</datatype>
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
<intro>查询条件</intro>
</attributes>
</root>