<?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; 分享</title>
	<atom:link href="http://www.dengor.com/archives/tag/%e5%88%86%e4%ba%ab/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dengor.com</link>
	<description>努力往上  只为看得更远一点点......</description>
	<lastBuildDate>Mon, 06 Feb 2012 08:59:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Firefox的网页邮件提醒插件-WebMail Notifier</title>
		<link>http://www.dengor.com/archives/1215.html</link>
		<comments>http://www.dengor.com/archives/1215.html#comments</comments>
		<pubDate>Wed, 25 May 2011 00:43:00 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[其它东西]]></category>
		<category><![CDATA[网罗天下]]></category>
		<category><![CDATA[软件系统]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Notifier]]></category>
		<category><![CDATA[WebMail]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[提醒]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[邮件]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=1215</guid>
		<description><![CDATA[如果你和我一样不习惯用软件收邮件, 而会不会为太多的邮件账而烦恼. 以前都在使用gmail, 有一个google的toolbar就可以, 而现在gmail在天朝已经基本上用不了.  以前写的gmail不过滤垃圾邮件都成浮云了, 被迫转用其它的邮箱. 找到一个Firefox下的邮件不错的邮件提醒插件: WebMail Notifier (for Gmail, Hotmail, Yahoo, AOL and so on) 下载地址: https://addons.mozilla.org/zh-CN/firefox/addon/webmail-notifier/ 使用方法: 直接在你想要的提醒的邮箱帐号密码在WebMail Notifier 里设置一下就可以了. 相关文章Firefox多套cookie切换插件-CookieSwapFirefox自动翻页插件AutoPager使用方法让firefox不对iframe缓存Firefox查看源码链接如何返回上级源码原来治安和气候是相关的中国火狐起始页变样了Iframe之间传值和数据的方法DEDE自动生成关键字列表页面定制火狐(Firefox)快捷键DEDE5.5最近不能采集图片本地化解决办法]]></description>
			<content:encoded><![CDATA[<p>如果你和我一样不习惯用软件收邮件, 而会不会为太多的邮件账而烦恼. 以前都在使用gmail, 有一个google的toolbar就可以, 而现在gmail在天朝已经基本上用不了.  以前写的<a rel="bookmark" href="../archives/953.html">gmail不过滤垃圾邮件</a>都成浮云了, 被迫转用其它的邮箱. 找到一个Firefox下的邮件不错的邮件提醒插件:</p>
<p><a title="webmail notifier" href="https://addons.mozilla.org/zh-CN/firefox/addon/webmail-notifier/">WebMail Notifier (for Gmail, Hotmail, Yahoo, AOL and so on)</a></p>
<p><span id="more-1215"></span>下载地址:</p>
<p><a href="https://addons.mozilla.org/zh-CN/firefox/addon/webmail-notifier/">https://addons.mozilla.org/zh-CN/firefox/addon/webmail-notifier/</a></p>
<p>使用方法:</p>
<p>直接在你想要的提醒的邮箱帐号密码在WebMail Notifier 里设置一下就可以了.</p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/395.html" title="Firefox多套cookie切换插件-CookieSwap">Firefox多套cookie切换插件-CookieSwap</a></li><li><a href="http://www.dengor.com/archives/133.html" title="Firefox自动翻页插件AutoPager使用方法">Firefox自动翻页插件AutoPager使用方法</a></li><li><a href="http://www.dengor.com/archives/838.html" title="让firefox不对iframe缓存">让firefox不对iframe缓存</a></li><li><a href="http://www.dengor.com/archives/889.html" title="Firefox查看源码链接如何返回上级源码">Firefox查看源码链接如何返回上级源码</a></li><li><a href="http://www.dengor.com/archives/795.html" title="原来治安和气候是相关的">原来治安和气候是相关的</a></li><li><a href="http://www.dengor.com/archives/737.html" title="中国火狐起始页变样了">中国火狐起始页变样了</a></li><li><a href="http://www.dengor.com/archives/681.html" title="Iframe之间传值和数据的方法">Iframe之间传值和数据的方法</a></li><li><a href="http://www.dengor.com/archives/532.html" title="DEDE自动生成关键字列表页面">DEDE自动生成关键字列表页面</a></li><li><a href="http://www.dengor.com/archives/427.html" title="定制火狐(Firefox)快捷键">定制火狐(Firefox)快捷键</a></li><li><a href="http://www.dengor.com/archives/342.html" title="DEDE5.5最近不能采集图片本地化解决办法">DEDE5.5最近不能采集图片本地化解决办法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/1215.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Iframe之间传值和数据的方法</title>
		<link>http://www.dengor.com/archives/681.html</link>
		<comments>http://www.dengor.com/archives/681.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 06:11:27 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[网站程序]]></category>
		<category><![CDATA[Iframe]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[传值]]></category>
		<category><![CDATA[分享]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=681</guid>
		<description><![CDATA[&#160;&#160; 最近碰到个问题, 要在Iframe之间传值和数据, 因为页面对像的不同, 一个ifram页面中的form值和数据直接get或Post都是传不到另一个iframe页面的, 设置taget也没有用,&#160; 在网上找了很久 没有很好的方法. 只有通过js来实现.&#160; &#160;&#160; 两个重要的javascript语句: top.result.document.location=&#39;result.html?data=&#39; + data; 和 window.top.frames[&#39;result&#39;].document.getElementById(&#34;an&#34;).innerHTML=data; 都很好理解,&#160; 第一个就是js重新载入父窗口中name为result的iframe页面,&#160; 第二个就是直接通过选择另一个iframe中的元素来赋值. 下面是一个传值的例子 框架页面-index.html &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=UTF-8&#34; /&#62; &#60;title&#62;框架页面&#60;/title&#62;&#160; &#60;/head&#62; &#60;body&#62; &#60;iframe width=&#34;100%&#34; height=&#34;100&#34; name=&#34;find&#34; id=&#34;find&#34; src=&#34;find.html&#34;&#62;&#60;/iframe&#62; &#60;iframe width=&#34;100%&#34; height=&#34;600&#34; name=&#34;result&#34; id=&#34;result&#34; src=&#34;result.html&#34;&#62;&#60;/iframe&#62; &#60;/body&#62; &#60;/html&#62; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp; 最近碰到个问题, 要在<strong>Iframe之间传值</strong>和数据, 因为页面对像的不同, 一个ifram页面中的form值和数据直接get或Post都是传不到<strong>另一个iframe页面</strong>的, 设置taget也没有用,&nbsp; 在网上找了很久 没有很好的方法. 只有通过js来实现.&nbsp;</p>
<p>&nbsp;&nbsp; 两个重要的javascript语句:</p>
<blockquote>
<p>top.result.document.location=&#39;result.html?data=&#39; + data;</p>
</blockquote>
<p>和</p>
<blockquote>
<p>window.top.frames[&#39;result&#39;].document.getElementById(&quot;an&quot;).innerHTML=data;</p>
</blockquote>
<p>都很好理解,&nbsp; 第一个就是js重新载入父窗口中name为result的iframe页面,&nbsp; 第二个就是直接通过选择另一个iframe中的元素来赋值.</p>
<p><span id="more-681"></span></p>
<p>下面是一个<strong>传值</strong>的例子</p>
<p>框架页面-index.html</p>
<blockquote>
<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
		&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
		&lt;head&gt;<br />
		&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
		&lt;title&gt;框架页面&lt;/title&gt;&nbsp; <br />
		&lt;/head&gt;<br />
		&lt;body&gt;<br />
		&lt;iframe width=&quot;100%&quot; height=&quot;100&quot; name=&quot;find&quot; id=&quot;find&quot; src=&quot;find.html&quot;&gt;&lt;/iframe&gt;<br />
		&lt;iframe width=&quot;100%&quot; height=&quot;600&quot; name=&quot;result&quot; id=&quot;result&quot; src=&quot;result.html&quot;&gt;&lt;/iframe&gt;<br />
		&lt;/body&gt;<br />
		&lt;/html&gt;<br />
		&nbsp;</p>
</blockquote>
<p>查询页面-find.html</p>
<blockquote>
<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
		&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
		&lt;head&gt;<br />
		&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
		&lt;title&gt;查询页面&lt;/title&gt;<br />
		&lt;script language=&quot;javascript&quot;&nbsp; type=&quot;text/javascript&quot;&gt;<br />
		function show(){<br />
		var data = document.form1.data.value;&nbsp; <br />
		top.result.document.location=&#39;result.html?data=&#39; + data;<br />
		//window.top.frames[&#39;result&#39;].document.getElementById(&quot;an&quot;).innerHTML=data;<br />
		}<br />
		&lt;/script&gt;<br />
		&lt;/head&gt;<br />
		&lt;body&gt;<br />
		&lt;div &gt;<br />
		&nbsp; &lt;form name=&quot;form1&quot; method=&quot;post&quot; &gt;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;&lt;span&gt;数据：&lt;/span&gt;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; name=&quot;data&quot; class=&quot;text&quot; id=&quot;text1&quot;/&gt;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;<br />
		&nbsp;&nbsp;&nbsp;&nbsp; &lt;input&nbsp;&nbsp; type=&quot;submit&quot; value=&quot;提交&quot; onclick=&quot;javascript:show();&quot; /&gt; <br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br />
		&nbsp; &lt;/form&gt;<br />
		&lt;/div&gt;<br />
		&lt;/body&gt;<br />
		&lt;/html&gt;</p>
</blockquote>
<p>结果页面-result.html</p>
<blockquote>
<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
		&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
		&lt;head&gt;<br />
		&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
		&lt;title&gt;结果页面&lt;/title&gt;<br />
		&lt;/head&gt;<br />
		&lt;body&gt;<br />
		&lt;p&gt;上面输入的文字是: &lt;span id=&quot;an&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;<br />
		&lt;/body&gt;<br />
		&lt;script language=&quot;javascript&quot;&nbsp; type=&quot;text/javascript&quot;&gt;<br />
		function Request(argname)<br />
		{<br />
		&nbsp;&nbsp;&nbsp; var url = document.location.href;<br />
		&nbsp;&nbsp;&nbsp; var arrStr = url.substring(url.indexOf(&quot;?&quot;)+1).split(&quot;&amp;&quot;);<br />
		&nbsp;&nbsp;&nbsp; //return arrStr;<br />
		&nbsp;&nbsp;&nbsp; for(var i =0;i&lt;arrStr.length;i++)<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var loc = arrStr[i].indexOf(argname+&quot;=&quot;);<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(loc!=-1)<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return arrStr[i].replace(argname+&quot;=&quot;,&quot;&quot;).replace(&quot;?&quot;,&quot;&quot;);<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br />
		&nbsp;&nbsp;&nbsp; return &quot;&quot;;<br />
		}<br />
		//使用Request(&quot;argname&quot;)即可得到参数值; <br />
		var data=Request(&quot;data&quot;);&nbsp; <br />
		this.document.getElementById(&#39;an&#39;).innerHTML= data;<br />
		&lt;/script&gt;<br />
		&lt;/html&gt;<br />
		&nbsp;</p>
</blockquote>
<p>&nbsp; 上面的文件都放在同一个文件夹下面.&nbsp; 打开index,&nbsp; 在上面iframe的文本文本框中输入数据, 点提交就能把值传到下面iframe页面中.&nbsp; 如下图:</p>
<a href="http://www.dengor.com/archives/681.html/iframe-send" rel="attachment wp-att-685"><img alt="iframe之间传值 " class="size-full wp-image-685" height="193" src="http://www.dengor.com/wp-content/uploads/2010/02/iframe-send.png" title="iframe-send" width="318" /></a>
<p>另: 如果在主框中提交数据到子iframe比较简单, 只要设置form的&nbsp; target=&quot;iframe_name&quot; 就可以了</p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/1215.html" title="Firefox的网页邮件提醒插件-WebMail Notifier ">Firefox的网页邮件提醒插件-WebMail Notifier </a></li><li><a href="http://www.dengor.com/archives/1084.html" title="让superfish在IE6不被遮住">让superfish在IE6不被遮住</a></li><li><a href="http://www.dengor.com/archives/838.html" title="让firefox不对iframe缓存">让firefox不对iframe缓存</a></li><li><a href="http://www.dengor.com/archives/840.html" title="用js解决广告代码载入慢的问题">用js解决广告代码载入慢的问题</a></li><li><a href="http://www.dengor.com/archives/844.html" title="不让网页被iframe包含的方法">不让网页被iframe包含的方法</a></li><li><a href="http://www.dengor.com/archives/761.html" title="JavaScript字符处理函数">JavaScript字符处理函数</a></li><li><a href="http://www.dengor.com/archives/532.html" title="DEDE自动生成关键字列表页面">DEDE自动生成关键字列表页面</a></li><li><a href="http://www.dengor.com/archives/342.html" title="DEDE5.5最近不能采集图片本地化解决办法">DEDE5.5最近不能采集图片本地化解决办法</a></li><li><a href="http://www.dengor.com/archives/291.html" title="集成google 百度  淘宝的搜索工具条">集成google 百度  淘宝的搜索工具条</a></li><li><a href="http://www.dengor.com/archives/282.html" title="如何写没有链接目标的超链接">如何写没有链接目标的超链接</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/681.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DEDE自动生成关键字列表页面</title>
		<link>http://www.dengor.com/archives/532.html</link>
		<comments>http://www.dengor.com/archives/532.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 00:54:38 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[网站程序]]></category>
		<category><![CDATA[dede]]></category>
		<category><![CDATA[关键字]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[列表]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=532</guid>
		<description><![CDATA[&#160;&#160;&#160; 网站,网页都要设置关键词,&#160; 这样有利于搜索引擎的收录, 这也是SEO优化网站的一个方法. &#160;&#160;&#160; 也为了查找方便, 自己写了一个DEDE自动生成关键字列表的php文件, 直接放在根目录下运行,就能自动生成整站每篇文件的关键字列表, 并且链接到相关的文章, 这是自动生成关键字列表页面的代码: &#60;?php &#160;&#160;&#160; require_once (dirname(__FILE__) . &#34;/include/common.inc.php&#34;); ?&#62; &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;&#60;?php echo $cfg_webname ?&#62; &#8211; 关键词列表&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; &#60;!&#8211; body,td,th { &#160;&#160; &#160;font-size: 80%; } &#8211;&#62; &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;h3&#62;&#60;a href=&#60;?php echo [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp; 网站,网页都要设置关键词,&nbsp; 这样有利于搜索引擎的收录, 这也是<a href="http://www.dengor.com/archives/308.html" rel="bookmark">SEO优化网站</a>的一个方法.</p>
<p>&nbsp;&nbsp;&nbsp; 也为了查找方便, 自己写了一个DEDE自动生成关键字列表的php文件, 直接放在根目录下运行,就能自动生成整站每篇文件的关键字列表, 并且链接到相关的文章, 这是<strong>自动生成关键字列表页面</strong>的代码:</p>
<p><span id="more-532"></span></p>
<blockquote>
<p>&lt;?php<br />
		&nbsp;&nbsp;&nbsp; require_once (dirname(__FILE__) . &quot;/include/common.inc.php&quot;);<br />
		?&gt;<br />
		&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
		&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
		&lt;head&gt;<br />
		&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
		&lt;title&gt;&lt;?php echo $cfg_webname ?&gt; &#8211; 关键词列表&lt;/title&gt;<br />
		&lt;style type=&quot;text/css&quot;&gt;<br />
		&lt;!&#8211;<br />
		body,td,th {<br />
		&nbsp;&nbsp; &nbsp;font-size: 80%;<br />
		}<br />
		&#8211;&gt;<br />
		&lt;/style&gt;<br />
		&lt;/head&gt;<br />
		&lt;body&gt;<br />
		&lt;h3&gt;&lt;a href=&lt;?php echo $cfg_basehost ?&gt; &gt;&lt;?php echo $cfg_webname ?&gt;&lt;/a&gt;&lt;/h3&gt;<br />
		&lt;?php<br />
		//生成关键字列表<br />
		require_once(DEDEINC.&quot;/arc.archives.class.php&quot;); &nbsp;<br />
		require_once(DEDEINC.&quot;/channelunit.func.php&quot;); &nbsp;<br />
		$dsql-&gt;Query(&quot;rs&quot;,&quot;select id&nbsp; from `#@__arctiny`&nbsp; where arcrank &gt; -1 order by id desc&quot;);<br />
		while ($rs=$dsql-&gt;GetArray(&quot;rs&quot;)){&nbsp; //循环出记录<br />
		&nbsp;&nbsp; &nbsp; $arcid=$rs[id];<br />
		&nbsp;&nbsp;&nbsp;&nbsp; $row = $dsql-&gt;GetOne(&quot;Select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;where arc.id=$arcid and arc.arcrank &gt; -1 &quot;);<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;if($row){<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$url = GetFileUrl($row[&#39;id&#39;],$row[&#39;typeid&#39;],$row[&#39;senddate&#39;],$row[&#39;title&#39;],$row[&#39;ismake&#39;],<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $row[&#39;arcrank&#39;],$row[&#39;namerule&#39;],$row[&#39;typedir&#39;],$row[&#39;money&#39;],$row[&#39;filename&#39;],$row[&#39;moresite&#39;],$row[&#39;siteurl&#39;],$row[&#39;sitepath&#39;]);<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//echo &quot;print_r &lt;pre&gt;&quot;,print_r($row),&quot;&lt;/pre&gt;&quot;;<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$keywords=explode(&quot;,&quot;, $row[&#39;keywords&#39;]);<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if($keywords){$keywords[0]=&quot;&lt;strong&gt;&quot;.$keywords[0].&quot;&lt;/strong&gt;&quot;; }<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;echo &quot;&lt;p&gt;[&quot;.$row[&#39;typename&#39;].&#39;] &#39;.$row[&#39;title&#39;];<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;foreach($keywords as $keyword ){<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;echo &quot; &#8211; &quot;.&quot;&lt;a href=$url taget=&#39;_blank&#39;&gt;$keyword&lt;/a&gt;&quot;;<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;echo &quot;&lt;/p&gt;<br />
		&quot;;<br />
		&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}</p>
<p>		}<br />
		?&gt;<br />
		&lt;/body&gt;<br />
		&lt;/html&gt;</p>
</blockquote>
<p>文件下载: <a href="http://www.dengor.com/wp-content/uploads/2009/10/searchs.zip"><img alt="winrar" class="alignnone size-full wp-image-296" height="16" src="http://www.dengor.com/wp-content/uploads/2009/10/winrar.gif" title="winrar" width="16" /></a> <a href="http://www.dengor.com/share/list_keywords.zip">list_keywords.zip</a></p>
<p>&nbsp;&nbsp; 这是一个php文件,每次有新的内容加入, 都会自动更新.&nbsp; 这时是简单的罗列功能, 没有考虑过性能问题, 没有分页. 所以如果文章太多, 性能会有很大的影响. 请慎用, 而且一个页面的内部链接过多, 有被K的危险, 所在这个页面自己用不要公开最好.</p>
<p>&nbsp; [2010-01-20] 更新了一下, 用了DEDE本身的数据库类, 代码简单了一点. </p>
<p><span style="color: rgb(165, 42, 42);">原创文章 转载请注明出处: <a href="http://www.dengor.com">登高望远</a> [ </span><a href="http://www.dengor.com/archives/532.html"><span id="sample-permalink">http://www.dengor.com/archives/532.html</span></a><span> ]</span></p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/925.html" title="dede升级到5.6封面栏目不显示文章列表">dede升级到5.6封面栏目不显示文章列表</a></li><li><a href="http://www.dengor.com/archives/342.html" title="DEDE5.5最近不能采集图片本地化解决办法">DEDE5.5最近不能采集图片本地化解决办法</a></li><li><a href="http://www.dengor.com/archives/1215.html" title="Firefox的网页邮件提醒插件-WebMail Notifier ">Firefox的网页邮件提醒插件-WebMail Notifier </a></li><li><a href="http://www.dengor.com/archives/776.html" title="让DEDE的图片附件按月保存">让DEDE的图片附件按月保存</a></li><li><a href="http://www.dengor.com/archives/734.html" title="让DEDE的不显示未审核稿件的标签">让DEDE的不显示未审核稿件的标签</a></li><li><a href="http://www.dengor.com/archives/729.html" title="DEDE自动审核发布文章">DEDE自动审核发布文章</a></li><li><a href="http://www.dengor.com/archives/681.html" title="Iframe之间传值和数据的方法">Iframe之间传值和数据的方法</a></li><li><a href="http://www.dengor.com/archives/511.html" title="DEDE开启伪静态的重写设置">DEDE开启伪静态的重写设置</a></li><li><a href="http://www.dengor.com/archives/411.html" title="DEDE文档开放浏览时自动修改发布时间">DEDE文档开放浏览时自动修改发布时间</a></li><li><a href="http://www.dengor.com/archives/460.html" title="让DEDE随机更新文章">让DEDE随机更新文章</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/532.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>DEDE5.5最近不能采集图片本地化解决办法</title>
		<link>http://www.dengor.com/archives/342.html</link>
		<comments>http://www.dengor.com/archives/342.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 14:02:54 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[网站程序]]></category>
		<category><![CDATA[dede]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[采集]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=342</guid>
		<description><![CDATA[    最近安装的DEDE 5.5在本地采集和图片本地化都很正常, 但上传到了服务器就不能采集图片,也无法本地化. 开始也怀疑是不是服务器限制了采集.  但发现服务器的dede5.1正常.  ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp; 最近安装的DEDE 5.5在本地采集和图片本地化都很正常, 但上传到了服务器就不能采集图片,也无法本地化. 开始也怀疑是不是服务器限制了采集.&nbsp; 但发现服务器的dede5.1正常.&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; 在网上看一下, 很多人都有碰到这样的问题, 官方没有给出说法. 我觉得是因为可能升级的时候, 改动了文件. 有个网友给出了解决办法, 证明有用, 可以去看一下:<a href="http://xy.qyuu.com/archives/40" target="_blank">http://xy.qyuu.com/archives/40</a></p>
<p><span id="more-342"></span></p>
<p>&nbsp;&nbsp; dedehttpdown.class.php文件中的PrivateStartSession函数执行到$httpstas = explode(&rdquo; &ldquo;,fgets($this-&gt;m_fp,256));这一行时，$this-&gt;m_fp异常出错，出现 feof($this-&gt;m_fp)，断开连接，读取不到任何数据.</p>
<p>&nbsp;&nbsp;&nbsp; 原因可能是服务器对连接接有限制. 导致图片本地化失败. 所以就要将所有需要发送的信息组成一个字符串，一起发送。调试结果成功，问题就这样解决了。</p>
<p>&nbsp;解决办法:&nbsp; 替换dedecms的include文件中的dedehttpdown.class.php（注意备份）<span style="color: rgb(255, 0, 0);"><br />
	</span></p>
<p>&nbsp; 替换文件：<a href="http://www.dengor.com/wp-content/uploads/2009/11/dedehttpdown.class.php.zip"><img alt="" height="16" src="http://www.dengor.com/wp-content/uploads/2009/10/winrar.gif" width="16" /> dedehttpdown.class.php.zip (utf-8)</a></p>
<p>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.dengor.com/wp-content/uploads/2009/11/dedehttpdown.class.php-gbk.zip"><img alt="" height="16" src="http://www.dengor.com/wp-content/uploads/2009/10/winrar.gif" width="16" /> dedehttpdown.class.php.zip (gbk)</a></p>
<p>&nbsp;</p>
<p>本页地址: <a href="http://www.dengor.com/archives/342.html">DEDE5.5最近不能采集图片本地化解决办法</a><span id="sample-permalink">-http://www.dengor.com/archives/342.html (转载请注明出处)<br />
	</span></p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/532.html" title="DEDE自动生成关键字列表页面">DEDE自动生成关键字列表页面</a></li><li><a href="http://www.dengor.com/archives/1215.html" title="Firefox的网页邮件提醒插件-WebMail Notifier ">Firefox的网页邮件提醒插件-WebMail Notifier </a></li><li><a href="http://www.dengor.com/archives/925.html" title="dede升级到5.6封面栏目不显示文章列表">dede升级到5.6封面栏目不显示文章列表</a></li><li><a href="http://www.dengor.com/archives/776.html" title="让DEDE的图片附件按月保存">让DEDE的图片附件按月保存</a></li><li><a href="http://www.dengor.com/archives/734.html" title="让DEDE的不显示未审核稿件的标签">让DEDE的不显示未审核稿件的标签</a></li><li><a href="http://www.dengor.com/archives/729.html" title="DEDE自动审核发布文章">DEDE自动审核发布文章</a></li><li><a href="http://www.dengor.com/archives/681.html" title="Iframe之间传值和数据的方法">Iframe之间传值和数据的方法</a></li><li><a href="http://www.dengor.com/archives/511.html" title="DEDE开启伪静态的重写设置">DEDE开启伪静态的重写设置</a></li><li><a href="http://www.dengor.com/archives/411.html" title="DEDE文档开放浏览时自动修改发布时间">DEDE文档开放浏览时自动修改发布时间</a></li><li><a href="http://www.dengor.com/archives/460.html" title="让DEDE随机更新文章">让DEDE随机更新文章</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/342.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>集成google 百度  淘宝的搜索工具条</title>
		<link>http://www.dengor.com/archives/291.html</link>
		<comments>http://www.dengor.com/archives/291.html#comments</comments>
		<pubDate>Sat, 17 Oct 2009 07:16:34 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[网站程序]]></category>
		<category><![CDATA[baidu]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[工具条]]></category>
		<category><![CDATA[搜索]]></category>
		<category><![CDATA[淘宝]]></category>
		<category><![CDATA[百度]]></category>
		<category><![CDATA[集成]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=291</guid>
		<description><![CDATA[先来看一下效果: 看到好多导航网站, 把多个搜索引擎的搜索框集成到一起, 觉得这样真的方便好多, 省得在大网站中换来换去的. 搜索速度也快了不少. 制作方法也很简单,就是找到各大搜索引擎的搜索代码, 他们都做成相现样式的块, 再通过顶部的导航栏控制各个块的显示与隐藏就行了. 做成单个页面, 使用的时候用&#60;iframe&#62; 载入是最方便的了.  因这样什么地方要使用都可以直接调用.像上面调用的代码就是: &#60;iframe scrolling=&#8221;no&#8221; height=&#8221;85&#8243; frameborder=&#8221;0&#8243; width=&#8221;596&#8243; src=&#8221;http://www.dengor.com/share/searchs/index.html&#8221;&#62;&#60;/iframe&#62; 你也可以直接把以上代码直接插入到网页中,就是一个强大的搜索框. 又可以登录常用的邮箱,  也可以直接访问以下链接搜索: http://www.dengor.com/share/searchs/ function setHomePage(obj,url){ var aUrls=document.URL.split("/"); var vDomainName=url; try{//IE obj.style.behavior="url(#default#homepage)"; obj.setHomePage(vDomainName); }catch(e){//other if(window.netscape) {//ff try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'"); } var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref('browser.startup.homepage',vDomainName); } } if(window.netscape)alert("ff"); } function addFavorite(addurl,addtitle){ [...]]]></description>
			<content:encoded><![CDATA[<p>先来看一下效果:<br />
<iframe scrolling="no" height="85" frameborder="0" width="596" src="http://www.dengor.com/share/searchs/index.html"></iframe><br />
看到好多导航网站, 把多个搜索引擎的搜索框集成到一起, 觉得这样真的方便好多, 省得在大网站中换来换去的. 搜索速度也快了不少.</p>
<p><span id="more-291"></span> 制作方法也很简单,就是找到各大搜索引擎的搜索代码, 他们都做成相现样式的块, 再通过顶部的导航栏控制各个块的显示与隐藏就行了.</p>
<p>做成单个页面, 使用的时候用&lt;iframe&gt; 载入是最方便的了.  因这样什么地方要使用都可以直接调用.像上面调用的代码就是:</p>
<p><span style="color: #800000;">&lt;iframe scrolling=&#8221;no&#8221; height=&#8221;85&#8243; frameborder=&#8221;0&#8243; width=&#8221;596&#8243; src=&#8221;http://www.dengor.com/share/searchs/index.html&#8221;&gt;&lt;/iframe&gt;</span></p>
<p>你也可以直接把以上代码直接插入到网页中,就是一个强大的搜索框. 又可以登录常用的邮箱,  也可以直接访问以下链接搜索:</p>
<p><a href="http://www.dengor.com/share/searchs/" target="_blank">http://www.dengor.com/share/searchs/</a><br />
<script type="text/javascript">
function setHomePage(obj,url){
    var aUrls=document.URL.split("/");
    var vDomainName=url;
    try{//IE
        obj.style.behavior="url(#default#homepage)";
        obj.setHomePage(vDomainName);
    }catch(e){//other
        if(window.netscape) {//ff
            try {
                    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            }
            catch (e) {
                    alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'");
            }
            var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
            prefs.setCharPref('browser.startup.homepage',vDomainName);
         }
    }
    if(window.netscape)alert("ff");
}
function addFavorite(addurl,addtitle){
    var aUrls=document.URL.split("/");
    var vDomainName=addurl;
    var description=addtitle;
    try{//IE
        window.external.AddFavorite(vDomainName,description);
    }catch(e){//FF
        window.sidebar.addPanel(description,vDomainName,"");
    }
}
</script><br />
<strong><span style="color: #ff0000;">把上面的地址收藏了, 要搜索的时候直接输入就可以了. </strong></span><br />
<input type="button" value="设为首页" onclick="setHomePage(this,'http://www.dengor.com/share/searchs/');" />
<input type="button" value="加入收藏" onclick="addFavorite('http://www.dengor.com/share/searchs/','google 百度 淘宝的全能搜索');" />
<p>把全部代码打了个包, 有需要的朋友可以下去看看:</p>
<p>下载: <a href="http://www.dengor.com/wp-content/uploads/2009/10/searchs.zip"><img class="alignnone size-full wp-image-296" title="winrar" src="http://www.dengor.com/wp-content/uploads/2009/10/winrar.gif" alt="winrar" width="16" height="16" /></a> <a href="http://www.dengor.com/wp-content/uploads/2009/10/searchs.zip">searchs.zip</a></p>
<p>本页链接:<span id="sample-permalink"><a href="http://www.dengor.com/archives/291.html(" target="_blank">http://www.dengor.com/archives/291.html</a>(转帖请注明出处)</span></p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/274.html" title="各主要搜索引擎登录入口 ">各主要搜索引擎登录入口 </a></li><li><a href="http://www.dengor.com/archives/539.html" title="对百度很无奈">对百度很无奈</a></li><li><a href="http://www.dengor.com/archives/438.html" title="百度老年搜索的手写输入做得不错">百度老年搜索的手写输入做得不错</a></li><li><a href="http://www.dengor.com/archives/308.html" title="SEO学习必须通过这个途径[转]">SEO学习必须通过这个途径[转]</a></li><li><a href="http://www.dengor.com/archives/192.html" title="搜索引擎与美女 ">搜索引擎与美女 </a></li><li><a href="http://www.dengor.com/archives/1388.html" title="百度关于百度蜘蛛抓取频率的说明">百度关于百度蜘蛛抓取频率的说明</a></li><li><a href="http://www.dengor.com/archives/1215.html" title="Firefox的网页邮件提醒插件-WebMail Notifier ">Firefox的网页邮件提醒插件-WebMail Notifier </a></li><li><a href="http://www.dengor.com/archives/1041.html" title="Google的企业套件停用移除.CN">Google的企业套件停用移除.CN</a></li><li><a href="http://www.dengor.com/archives/980.html" title="[转]Google的十大真理">[转]Google的十大真理</a></li><li><a href="http://www.dengor.com/archives/809.html" title="分享一个PHP的google翻译接口GTranslate">分享一个PHP的google翻译接口GTranslate</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/291.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>解读ISC的模板文件架构和模板编写方法</title>
		<link>http://www.dengor.com/archives/184.html</link>
		<comments>http://www.dengor.com/archives/184.html#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:20:50 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[网站程序]]></category>
		<category><![CDATA[Interspire Shopping Cart]]></category>
		<category><![CDATA[ISC]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[架构]]></category>
		<category><![CDATA[模板]]></category>
		<category><![CDATA[网店]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=184</guid>
		<description><![CDATA[&#160;&#160;&#160; ISC也就是Interspire Shopping Cart， 是一个基于php+mysql的商业的网店程序。虽然没有Zen-Cart和osCommerce 的用户数据庞大，但凭借其安装简单，功能强大，界面友好的特点，我相信会有越来越多的人喜欢。 &#160;&#160;&#160; ISC程序本身有很多模板可以选择，但网店的特殊性，都希望自己的网店跟别人的不一样，修改模板也是很正常的事。最近在做一个项目，应用了Interspire Shopping Cart，因为只是对模板文件是修改，大概了解了一下ISC的文件架构和模板调用的流程。登高望远 &#160;&#160;&#160; 模板文件都在/templates下面，默认调用的是default模板，可以在后台的Store Design菜单中很方便的设置模板，前台马上就跟着改变，的确是很方便。一看上去Default里面有好多文件，感觉很乱，不知道从何下手。当你明白ISC的模板调用流程以后，你就会明白每个文件的用途。 &#160;&#160;&#160; 下面我们就来看一下模板文件的调用流程： 1. index.php是入口文件,主要是响应用户的操作, 默认是调用模板文件 /templates/default/default.html, 先看下defualt.html的代码: &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; %%Panel.HTMLHead%% &#60;body&#62; &#60;div id=&#34;Container&#34;&#62; &#160;&#160;&#160; %%Panel.Header%% &#160;&#160;&#160; &#60;div id=&#34;Wrapper&#34;&#62; &#160;&#160;&#160; &#160;&#160;&#160; &#60;div class=&#34;Left&#34; id=&#34;LayoutColumn1&#34;&#62; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; %%Panel.SideCategoryList%% &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; %%Panel.SidePopularVendors%% &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp; <strong>ISC</strong>也就是Interspire Shopping Cart， 是一个基于php+mysql的商业的网店程序。虽然没有<a href="http://www.zen-cart.com/" target="_blank">Zen-Cart</a>和<a href="http://www.oscommerce.com" target="_blank">osCommerce</a> 的用户数据庞大，但凭借其安装简单，功能强大，界面友好的特点，我相信会有越来越多的人喜欢。</p>
<p>&nbsp;&nbsp;&nbsp; ISC程序本身有很多<strong>模板</strong>可以选择，但网店的特殊性，都希望自己的网店跟别人的不一样，修改模板也是很正常的事。最近在做一个项目，应用了Interspire Shopping Cart，因为只是对模板文件是修改，大概了解了一下ISC的文件架构和模板调用的流程。<a class="wh" href="http://www.dengor.com">登高望远</a></p>
<p>&nbsp;&nbsp;&nbsp; 模板文件都在/templates下面，默认调用的是default模板，可以在后台的Store Design菜单中很方便的设置模板，前台马上就跟着改变，的确是很方便。一看上去Default里面有好多文件，感觉很乱，不知道从何下手。当你明白ISC的模板调用流程以后，你就会明白每个文件的用途。</p>
<p>&nbsp;&nbsp;&nbsp; 下面我们就来看一下模板文件的调用流程：</p>
<p><span id="more-184"></span><strong>1. index.php是入口文件,主要是响应用户的操作</strong>, 默认是调用模板文件 /templates/default/default.html, 先看下defualt.html的代码:</p>
<pre>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
%%Panel.HTMLHead%%
&lt;body&gt;
&lt;div id=&quot;Container&quot;&gt;
&nbsp;&nbsp;&nbsp; %%Panel.Header%%
&nbsp;&nbsp;&nbsp; &lt;div id=&quot;Wrapper&quot;&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class=&quot;Left&quot; id=&quot;LayoutColumn1&quot;&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SideCategoryList%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SidePopularVendors%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SideShopByBrand%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SideNewsletterBox%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SideLiveChatServices%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class=&quot;Content&quot; id=&quot;LayoutColumn2&quot;&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Banner.TopBanner%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.HomeFeaturedProducts%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.HomeNewProducts%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.HomeRecentBlogs%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Banner.BottomBanner%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class=&quot;Right&quot; id=&quot;LayoutColumn3&quot;&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SideCartContents%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SideTopSellers%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SideNewProducts%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; %%Panel.SidePopularProducts%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt;
&nbsp;&nbsp;&nbsp; &lt;/div&gt;
&nbsp;&nbsp;&nbsp; %%Panel.Footer%%
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>&nbsp;&nbsp;&nbsp; 从上面很清楚可以看出,这是一个布局文件,加载头部以后,定义了三栏LayoutColumn1, LayoutColumn2 , LayoutColumn3.&nbsp; 每栏中间的%%xxx.xxxx%%是ISC自己的内容语法, 是一个一个可以独立的功能模块. 像%%Panel.SideCategoryList%% 就是显示商品分类的列表, %%Panel.HomeFeaturedProducts%%就是显示推荐商品.&nbsp; 可以发现ISC的模板变量都是用%%来区分, 变量点的前面&quot;Panel&quot;是指示变量的类型.&nbsp; 有&quot;Pnanel&quot;&nbsp; &quot;Banner&quot; &quot;SNIPPET&quot; 几中类型,&nbsp; 在布局文件中主要是就是Panel. 这种类型分别在模板文件夹中都有对应的子文件夹.&nbsp; 找到对应的文件名就可以看到模板的具体内容.<a class="wh" href="http://www.dengor.com">登高望远</a></p>
<p>&nbsp;</p>
<p><strong>2.&nbsp; 以%%Panel.SideCategoryList%%为例,找到 panel /&nbsp; SideCategoryList.html 文件</strong>, 我们找开看一下:</p>
<pre>&nbsp;&nbsp;&nbsp; &lt;div class=&quot;Block CategoryList Moveable&quot; id=&quot;SideCategoryList&quot;&gt;
&nbsp;&nbsp;&nbsp; &nbsp; &lt;h2&gt;%%LNG_ProductsByCategory%%&lt;/h2&gt;
&nbsp;&nbsp;&nbsp; &nbsp; &lt;div class=&quot;BlockContent&quot;&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;ul&gt;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; %%SNIPPET_SideCategoryList%%
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;/ul&gt;
&nbsp;&nbsp;&nbsp; &nbsp; &lt;/div&gt;
&nbsp;&nbsp;&nbsp; &lt;/div&gt;</pre>
<p>&nbsp;&nbsp; 很简洁的模板代码, 就是一个列表块, 只有两个变量%%LNG_ProductsByCategory%%和 %%SNIPPET_SideCategoryList%% ,而这两个变量都在初始化Panel类的时候就会赋值.&nbsp;</p>
<p>&nbsp;</p>
<p><strong>3. 显示变量的类的文件可以在 / incudes&nbsp; /&nbsp; dispaly 里面找得到</strong> , 我们找到 SideCategoryList.php 文件打开, 可以发现定义了 ISC_SIDECATEGORYLIST_PANEL 类, 函数 SetPanelSettings()&nbsp; 就是类的初始化, 把一些变量$GLOBALS数组传递给模板文件.</p>
<pre>......
$output .= $GLOBALS[&#39;ISC_CLASS_TEMPLATE&#39;]-&gt;GetSnippet(&quot;SideCategoryList&quot;);
$GLOBALS[&#39;SNIPPETS&#39;][&#39;SideCategoryList&#39;] = $output;
......</pre>
<p>&nbsp; 从这里可以看出来,这是为模板变量%%SNIPPET_SideCategoryList%% 赋值$output . 而$output又是通过GetSnippet()从一个代码片断 &quot;SideCategoryList&quot;&nbsp; 里获取数据. <a class="wh" href="http://www.dengor.com">登高望远</a></p>
<p>&nbsp;</p>
<p><strong>4. 代码片断(Snippet)的模板文件可以在&nbsp; / Snippets / SideCategoryList.html 找到</strong>.</p>
<pre>&nbsp;&lt;li class=&quot;%%GLOBAL_LastChildClass%%&quot;&gt;
  &lt;a href=&quot;%%GLOBAL_CategoryLink%%&quot;&gt;%%GLOBAL_CategoryName%%&lt;/a&gt;
&nbsp;&nbsp;&nbsp; %%GLOBAL_SubCategoryList%%
 &lt;/li&gt;</pre>
<p>&nbsp; 就是定义了每个分类的显示样式和内容. %%GLOBAL_CategoryLink%%&nbsp; %%GLOBAL_CategoryName%%这些变量前面都有定义:</p>
<pre>$GLOBALS[&#39;CategoryName&#39;] = isc_html_escape($rootCat[&#39;catname&#39;]);
$GLOBALS[&#39;CategoryLink&#39;] =
      CatLink($rootCat[&#39;categoryid&#39;], $rootCat[&#39;catname&#39;], true);</pre>
<p>&nbsp;</p>
<p><strong>&nbsp; 这样整个流程就开始清晰了.&nbsp; ISC通过多级的模板来控制最后的输出.&nbsp; </strong></p>
<p><span style="color: rgb(51, 153, 102);"><strong>&nbsp; 布局文件(index.html)&nbsp; -&gt;&nbsp; 功能面板(Panel) -&gt; 代码片断 (Snippets)&nbsp; </strong></span></p>
<p><strong>&nbsp; 其中是 Panel类和初始化是一个重要的关键点, 变量的值都是在里面定义的. 还可以通过:</strong></p>
<pre><strong>&nbsp;&nbsp;&nbsp; $this-&gt;DontDisplay = true;</strong></pre>
<p><strong>来控制功能块的显示与否.&nbsp; 很多输出的参数也可以在里面设置 . 如 商品列表的数量,条件都可以在找到相应的代码.&nbsp; </strong></p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; 明白了以上流程, 要修改模板就很简单了. 如果你只要修改整体布局,那只要找到布局文件修改就行了. 如果你要功能块的外观, 只要到Panels夹子下找到相应的文件修改就行了.<a class="wh" href="http://www.dengor.com">登高望远</a></p>
<p>&nbsp;&nbsp;&nbsp; <strong>如果要增加一个功能页面也很容易</strong>,只要在要目录新建一个newpage.php&nbsp; :</p>
<pre>&lt;?php

&nbsp;&nbsp;&nbsp; require_once(dirname(__FILE__).&quot;/init.php&quot;);
&nbsp;&nbsp;&nbsp; $GLOBALS[&quot;ISC_CLASS_TEMPLATE&quot;]-&gt;SetTemplate(&quot;newpage&quot;);
&nbsp;&nbsp;&nbsp; $GLOBALS[&quot;ISC_CLASS_TEMPLATE&quot;]-&gt;ParseTemplate();

?&gt;</pre>
<p>&nbsp; 在模板文件中新建一个布局文件 newpage.html ,&nbsp; 如果要新增功能面板也是一样要在 / incudes&nbsp; /&nbsp; dispaly 增加一个面板类,&nbsp; 把要用的参数都准备好调用Panel和Snipper模板就好了.&nbsp; 如果不清楚可以参考已经有的功能面板是怎么调用的. 只要明白了调用流程,就很容易做到.</p>
<p>本页链接: <span id="sample-permalink">http://www.dengor.com/archives/184.html</span></p>
<p><span style="color: rgb(128, 0, 0);">转载注明出处, 谢谢!</span></p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/1328.html" title="一个PHP木马的代码">一个PHP木马的代码</a></li><li><a href="http://www.dengor.com/archives/1301.html" title="lnmp安装后进程优化">lnmp安装后进程优化</a></li><li><a href="http://www.dengor.com/archives/1162.html" title="使用PHP的header函数修改网页的输出编码">使用PHP的header函数修改网页的输出编码</a></li><li><a href="http://www.dengor.com/archives/1215.html" title="Firefox的网页邮件提醒插件-WebMail Notifier ">Firefox的网页邮件提醒插件-WebMail Notifier </a></li><li><a href="http://www.dengor.com/archives/1023.html" title="显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法">显示Deprecated: Assigning the return value of new by reference is deprecated in解决办法</a></li><li><a href="http://www.dengor.com/archives/903.html" title="修改PHP运行内存memory大小的几种方法">修改PHP运行内存memory大小的几种方法</a></li><li><a href="http://www.dengor.com/archives/897.html" title="理解免费网店系统prestashop中的hook概念">理解免费网店系统prestashop中的hook概念</a></li><li><a href="http://www.dengor.com/archives/855.html" title="PHP即时输出内容">PHP即时输出内容</a></li><li><a href="http://www.dengor.com/archives/809.html" title="分享一个PHP的google翻译接口GTranslate">分享一个PHP的google翻译接口GTranslate</a></li><li><a href="http://www.dengor.com/archives/798.html" title="PHP处理html简单好工具-simplehtmldom">PHP处理html简单好工具-simplehtmldom</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/184.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>分享一个内容丰富的图片轮播SWF组件</title>
		<link>http://www.dengor.com/archives/161.html</link>
		<comments>http://www.dengor.com/archives/161.html#comments</comments>
		<pubDate>Tue, 11 Aug 2009 03:51:44 +0000</pubDate>
		<dc:creator>dengor</dc:creator>
				<category><![CDATA[平面美化]]></category>
		<category><![CDATA[SWF]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[图片轮播]]></category>
		<category><![CDATA[幻灯]]></category>
		<category><![CDATA[广告]]></category>
		<category><![CDATA[组件]]></category>

		<guid isPermaLink="false">http://www.dengor.com/?p=161</guid>
		<description><![CDATA[&#160; 经常要用到图片广告幻灯,国外一个很不错的swf组件banner_rotator_3_mx2004.swf &#160; 演示:http://www.dengor.com/share/banner/ &#160; 这个组件的特点就是能展示丰富的文字内容, 右侧栏完全是标题和简要描述,在图片底部还可以有使用很详细的描述. 这些都只要在XML文件中加入就可以,很方便.&#160; 缺点是不支持中文. &#160; banner_rotator_3_mx2004.swf是swf组件 &#160; content.xml是xml配置文件. &#160; &#160; content.xml文件代码: &#160; &#160;&#60;?xml version=&#34;1.0&#34;?&#62; &#60;content&#62; &#160;&#160;&#160; &#60;item Image=&#34;banner_images/image1.jpg&#34; Delay=&#34;3000&#34; Link=&#34;http://www.dengor.com&#34; Headline=&#34;Headline-1&#34; Blurb=&#34;Blurb-1&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;copy&#62;&#60;![CDATA[&#60;p&#62;1-Item detailed description Item detailed description Item detailed description Item detailed description&#60;/p&#62;]]&#62;&#60;/copy&#62; &#160;&#160;&#160; &#60;/item&#62; &#160;&#160; &#160;&#60;item Image=&#34;banner_images/image2.jpg&#34; Delay=&#34;3000&#34; Link=&#34;http://www.dengor.com&#34; Headline=&#34;Headline-2&#34; Blurb=&#34;Blurb-2&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;copy&#62;&#60;![CDATA[&#60;p&#62;2-Item detailed description Item detailed [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp; 经常要用到图片广告幻灯,国外一个很不错的swf组件banner_rotator_3_mx2004.swf</p>
<p><img height="142" width="245" align="right" alt="banner_rotator" src="/wp-content/uploads/image/2009a/banner_rotator.jpg" /></p>
<p>&nbsp; 演示:<a href="http://www.dengor.com/share/banner/" target="_blank">http://www.dengor.com/share/banner/</a></p>
<p>&nbsp; 这个组件的特点就是能展示丰富的文字内容, 右侧栏完全是标题和简要描述,在图片底部还可以有使用很详细的描述. 这些都只要在XML文件中加入就可以,很方便.&nbsp; 缺点是不支持中文.</p>
<p>&nbsp; banner_rotator_3_mx2004.swf是swf组件</p>
<p>&nbsp; content.xml是xml配置文件.</p>
<p><span id="more-161"></span></p>
<p>&nbsp;</p>
<p>&nbsp; content.xml文件代码:</p>
<p>&nbsp;</p>
<pre>
&nbsp;&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;content&gt;
&nbsp;&nbsp;&nbsp; &lt;item Image=&quot;banner_images/image1.jpg&quot; Delay=&quot;3000&quot; Link=&quot;http://www.dengor.com&quot; Headline=&quot;Headline-1&quot; Blurb=&quot;Blurb-1&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;copy&gt;&lt;![CDATA[&lt;p&gt;1-Item detailed description Item detailed description Item detailed description Item detailed description&lt;/p&gt;]]&gt;&lt;/copy&gt;
&nbsp;&nbsp;&nbsp; &lt;/item&gt;
&nbsp;&nbsp; &nbsp;&lt;item Image=&quot;banner_images/image2.jpg&quot; Delay=&quot;3000&quot; Link=&quot;http://www.dengor.com&quot; Headline=&quot;Headline-2&quot; Blurb=&quot;Blurb-2&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;copy&gt;&lt;![CDATA[&lt;p&gt;2-Item detailed description Item detailed description Item detailed description Item detailed description&lt;/p&gt;]]&gt;&lt;/copy&gt;
&nbsp;&nbsp;&nbsp; &lt;/item&gt;
&nbsp;&nbsp; &nbsp;&lt;item Image=&quot;banner_images/image3.jpg&quot; Delay=&quot;3000&quot; Link=&quot;http://www.dengor.com&quot; Headline=&quot;Headline-3&quot; Blurb=&quot;Blurb-3&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;copy&gt;&lt;![CDATA[&lt;p&gt;3-Item detailed description Item detailed description Item detailed description Item detailed description&lt;/p&gt;]]&gt;&lt;/copy&gt;
&nbsp;&nbsp;&nbsp; &lt;/item&gt;
&nbsp;&nbsp; &nbsp;&lt;item Image=&quot;banner_images/image4.jpg&quot; Delay=&quot;3000&quot; Link=&quot;http://www.dengor.com&quot; Headline=&quot;Headline-4&quot; Blurb=&quot;Blurb-4&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;copy&gt;&lt;![CDATA[&lt;p&gt;4-Item detailed description Item detailed description Item detailed description Item detailed description&lt;/p&gt;]]&gt;&lt;/copy&gt;
&nbsp;&nbsp;&nbsp; &lt;/item&gt;
&nbsp;&nbsp; &nbsp;&lt;item Image=&quot;banner_images/image5.jpg&quot; Delay=&quot;3000&quot; Link=&quot;http://www.dengor.com&quot; Headline=&quot;Headline-5&quot; Blurb=&quot;Blurb-5&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;copy&gt;&lt;![CDATA[&lt;p&gt;5-Item detailed description Item detailed description Item detailed description Item detailed description&lt;/p&gt;]]&gt;&lt;/copy&gt;
&nbsp;&nbsp;&nbsp; &lt;/item&gt;
&nbsp;&nbsp; &nbsp;&lt;item Image=&quot;banner_images/image6.jpg&quot; Delay=&quot;3000&quot; Link=&quot;http://www.dengor.com&quot; Headline=&quot;Headline-6&quot; Blurb=&quot;Blurb-6&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;copy&gt;&lt;![CDATA[&lt;p&gt;6-Item detailed description Item detailed description Item detailed description Item detailed description&lt;/p&gt;]]&gt;&lt;/copy&gt;
&nbsp;&nbsp;&nbsp; &lt;/item&gt;
&lt;/content&gt;
&nbsp;</pre>
<p>&nbsp;</p>
<p>&nbsp; 很简单,就是每个图片的位置和文字说明,&nbsp; 在调用页面只要插入SWF文件,指定高度和宽度就行了.</p>
<p>&nbsp;</p>
<pre>
&nbsp; &lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; id=scriptmain name=scriptmain codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=6,0,29,0&quot; width=&quot;550&quot; height=&quot;300&quot;&gt;
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;movie&quot; value=&quot;banner_rotator_3_mx2004.swf&quot;&gt;
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
&nbsp;&nbsp;&nbsp; &lt;param name=scale value=noscale&gt;
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;LOOP&quot; value=&quot;false&quot;&gt;
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;menu&quot; value=&quot;false&quot;&gt;
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;
&nbsp;&nbsp;&nbsp; &lt;embed src=&quot;banner_rotator_3_mx2004.swf&quot; width=&quot;550&quot; height=&quot;300&quot; loop=&quot;false&quot; quality=&quot;high&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; type=&quot;application/x-shockwave-flash&quot; salign=&quot;T&quot; name=&quot;scriptmain&quot; menu=&quot;false&quot; wmode=&quot;transparent&quot;&gt;&lt;/embed&gt;
&nbsp; &lt;/object&gt;</pre>
<p>&nbsp;</p>
<div  class="related_post_title">相关文章</div><ul class="related_post"><li><a href="http://www.dengor.com/archives/1215.html" title="Firefox的网页邮件提醒插件-WebMail Notifier ">Firefox的网页邮件提醒插件-WebMail Notifier </a></li><li><a href="http://www.dengor.com/archives/840.html" title="用js解决广告代码载入慢的问题">用js解决广告代码载入慢的问题</a></li><li><a href="http://www.dengor.com/archives/681.html" title="Iframe之间传值和数据的方法">Iframe之间传值和数据的方法</a></li><li><a href="http://www.dengor.com/archives/532.html" title="DEDE自动生成关键字列表页面">DEDE自动生成关键字列表页面</a></li><li><a href="http://www.dengor.com/archives/342.html" title="DEDE5.5最近不能采集图片本地化解决办法">DEDE5.5最近不能采集图片本地化解决办法</a></li><li><a href="http://www.dengor.com/archives/291.html" title="集成google 百度  淘宝的搜索工具条">集成google 百度  淘宝的搜索工具条</a></li><li><a href="http://www.dengor.com/archives/184.html" title="解读ISC的模板文件架构和模板编写方法">解读ISC的模板文件架构和模板编写方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.dengor.com/archives/161.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

