<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>张振峰 &#187; getarticlelist</title>
	<atom:link href="http://www.zhangzhenfeng.com/tags/getarticlelist/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhangzhenfeng.com</link>
	<description>阵风：天生我材必有用</description>
	<lastBuildDate>Wed, 14 Sep 2011 09:51:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>改进系统函数 GetArticleList(2月1日更新)</title>
		<link>http://www.zhangzhenfeng.com/modify-getarticlelist/</link>
		<comments>http://www.zhangzhenfeng.com/modify-getarticlelist/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 10:30:36 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[getarticlelist]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=79</guid>
		<description><![CDATA[使用函数 GetArticleList 显示文章标题等信息时，如果采用表格式或分多列显示，有时会有问题。例如，共21篇文章的标题信息，分4列显示，结果代码少了3对&#60;td&#62;，造成显示效果上的瑕疵。]]></description>
			<content:encoded><![CDATA[<p>使用函数 GetArticleList 显示文章标题等信息时，如果采用表格式或分多列显示，有时会有问题。例如，共21篇文章的标题信息，分4列显示，结果代码少了3对&lt;td&gt;，造成显示效果上的瑕疵。<span id="more-79"></span></p>
<p>以PowerEasy® SiteWeaver™ CMS 6.5 Build 0128为例，修改Include/PowerEasy.Article.asp，将Function GetArticleList中的如下代码</p>
<blockquote><p><code>If ShowType = 2 Or Cols &gt; 1 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strInfoList = strInfoList &amp; &quot;&lt;/tr&gt;&lt;/table&gt;&quot;</code></p></blockquote>
<p>替换为</p>
<blockquote><p><code>&nbsp;&nbsp;&nbsp;&nbsp;If ShowType = 2 Or Cols &gt; 1 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ZZF_remainder=Cols-(iCount Mod Cols)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If ZZF_remainder&lt;Cols<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If iCount Mod 2 = 0 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CssName = CssName1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CssName = CssName2<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do while ZZF_remainder&gt;0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strInfoList = strInfoList &amp; &quot;&lt;td valign=&#039;top&#039; class=&#039;&quot; &amp; CssName &amp; &quot;&#039;&gt;&amp;nbsp;&lt;/td&gt;&quot;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ZZF_remainder=ZZF_remainder-1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br />&nbsp;&nbsp;&nbsp;&nbsp; End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strInfoList = strInfoList &amp; &quot;&lt;/tr&gt;&lt;/table&gt;&quot;</code></p></blockquote>
<p>当然，要在前面补充定义变量 ZZF_remainder。</p>
<p>昨天写本文时，忘了考虑ZZF_remainder等于Cols的情况，导致求余为零时出错，刚才又添加了判断</p>
<blockquote><p><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If ZZF_remainder&lt;Cols<br />******************<br />&nbsp;&nbsp;&nbsp;&nbsp; End If</code></p></blockquote>
<p>（更新于2008-02-01 17:34）。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/modify-getarticlelist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

