<?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>New life in Adelaide &#187; wordpress</title>
	<atom:link href="http://www.hatoyu.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hatoyu.com</link>
	<description>Live in Adelaide</description>
	<lastBuildDate>Sat, 26 Jun 2010 12:37:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>修改Wordpress 默认编辑器</title>
		<link>http://www.hatoyu.com/2008/12/22/%e4%bf%ae%e6%94%b9wordpress-%e9%bb%98%e8%ae%a4%e7%bc%96%e8%be%91%e5%99%a8/</link>
		<comments>http://www.hatoyu.com/2008/12/22/%e4%bf%ae%e6%94%b9wordpress-%e9%bb%98%e8%ae%a4%e7%bc%96%e8%be%91%e5%99%a8/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 04:46:30 +0000</pubDate>
		<dc:creator>bonnie</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=826</guid>
		<description><![CDATA[升级后可能要重新修改一下所以做个记录。
修改文件位置：wp-includes/js/quicktags.js

edButtons[edButtons.length] =
new edButton('ed_code'
,'code'
,'
'
,''
,'c'
);

]]></description>
			<content:encoded><![CDATA[<p>升级后可能要重新修改一下所以做个记录。</p>
<p>修改文件位置：wp-includes/js/quicktags.js</p>
<pre lang="javascript" line="1">
edButtons[edButtons.length] =
new edButton('ed_code'
,'code'
,'
<pre lang="cpp" line="1">'
,'</ pre>'
,'c'
);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/12/22/%e4%bf%ae%e6%94%b9wordpress-%e9%bb%98%e8%ae%a4%e7%bc%96%e8%be%91%e5%99%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gears 加速你的Wordpress博客网站</title>
		<link>http://www.hatoyu.com/2008/12/12/gears-%e5%8a%a0%e9%80%9f%e4%bd%a0%e7%9a%84wordpress%e5%8d%9a%e5%ae%a2%e7%bd%91%e7%ab%99/</link>
		<comments>http://www.hatoyu.com/2008/12/12/gears-%e5%8a%a0%e9%80%9f%e4%bd%a0%e7%9a%84wordpress%e5%8d%9a%e5%ae%a2%e7%bd%91%e7%ab%99/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 13:10:46 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=700</guid>
		<description><![CDATA[
Google LAB的又一个好玩的产品，实际上是本地缓存的概念，所以并不是你的Wordpress被加速了，而是你缓存了更多的内容，试用了一下效果非常明显，其实不只是对于Wordpress，应该对所有网站都有用的吧！
不过做开发的时候还是禁用一下的好，我开着好像莫名其妙给我来了好几个错误，现在想想和js缓存有关系。
不过Wordpress 2.7正式支持这个玩意了，我也装一个试试看，速度加快总是好的，可惜只有for windows的，没有unix版本的，google最近好像这种只支持Windows的事情干的并不是很多啊。
http://gears.google.com/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gears.google.com/"><img src="http://gears.google.com/images/logo_153x43.gif" alt="Gears" /></a></p>
<p>Google LAB的又一个好玩的产品，实际上是本地缓存的概念，所以并不是你的Wordpress被加速了，而是你缓存了更多的内容，试用了一下效果非常明显，其实不只是对于Wordpress，应该对所有网站都有用的吧！</p>
<p>不过做开发的时候还是禁用一下的好，我开着好像莫名其妙给我来了好几个错误，现在想想和js缓存有关系。</p>
<p>不过Wordpress 2.7正式支持这个玩意了，我也装一个试试看，速度加快总是好的，可惜只有for windows的，没有unix版本的，google最近好像这种只支持Windows的事情干的并不是很多啊。</p>
<p><a href="http://gears.google.com/">http://gears.google.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/12/12/gears-%e5%8a%a0%e9%80%9f%e4%bd%a0%e7%9a%84wordpress%e5%8d%9a%e5%ae%a2%e7%bd%91%e7%ab%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress 2.7 Coltrane Release</title>
		<link>http://www.hatoyu.com/2008/12/12/wordpress-27-coltrane-release/</link>
		<comments>http://www.hatoyu.com/2008/12/12/wordpress-27-coltrane-release/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 05:36:02 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=683</guid>
		<description><![CDATA[更新完的最大改变是后台管理的样式完全变了，一时间还是有点不习惯的，不过清爽了很多，更web 2.0化了，应该是进步。
在Matt的blog中提到 “take fewer clicks and be faster ”，更少的点击，更快的操作。
让我想到Amazon当年有个一键购买的专利。
下载最新的Wordpress试试看吧。
]]></description>
			<content:encoded><![CDATA[<p>更新完的最大改变是后台管理的样式完全变了，一时间还是有点不习惯的，不过清爽了很多，更web 2.0化了，应该是进步。</p>
<p>在Matt的blog中提到 “take fewer clicks and be faster ”，更少的点击，更快的操作。</p>
<p>让我想到Amazon当年有个一键购买的专利。</p>
<p>下载最新的<a href="http://wordpress.org/download/">Wordpress</a>试试看吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/12/12/wordpress-27-coltrane-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>耶稣泥板圣经之谜读后感</title>
		<link>http://www.hatoyu.com/2008/12/03/%e8%80%b6%e7%a8%a3%e6%b3%a5%e6%9d%bf%e5%9c%a3%e7%bb%8f%e4%b9%8b%e8%b0%9c%e8%af%bb%e5%90%8e%e6%84%9f/</link>
		<comments>http://www.hatoyu.com/2008/12/03/%e8%80%b6%e7%a8%a3%e6%b3%a5%e6%9d%bf%e5%9c%a3%e7%bb%8f%e4%b9%8b%e8%b0%9c%e8%af%bb%e5%90%8e%e6%84%9f/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 04:39:40 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/2008/12/03/%e8%80%b6%e7%a8%a3%e6%b3%a5%e6%9d%bf%e5%9c%a3%e7%bb%8f%e4%b9%8b%e8%b0%9c%e8%af%bb%e5%90%8e%e6%84%9f/</guid>
		<description><![CDATA[Now I write this blog in VIMpress ,A  Wordpress plugins of Vim.
很久之前就从一些报章上看到这本书的甚高的评价，不过始终没有机会阅读，这次从图书馆中借回利用空闲时间要好好的看一看。
不过读了十章了，也不觉得有多么的吸引人，没有《Davic Code》那种神秘的符号学和对称象形文字，也许我们对圣经文化的缺失让我们不觉得圣经在泥板上有什么重大的意义吧，不过还是要坚持读完它，然后才能给出中肯的评价。
]]></description>
			<content:encoded><![CDATA[<p>Now I write this blog in VIMpress ,A <a href="http://www.wordpress.org"> Wordpress</a> plugins of Vim.</p>
<p>很久之前就从一些报章上看到这本书的甚高的评价，不过始终没有机会阅读，这次从图书馆中借回利用空闲时间要好好的看一看。</p>
<p>不过读了十章了，也不觉得有多么的吸引人，没有《Davic Code》那种神秘的符号学和对称象形文字，也许我们对圣经文化的缺失让我们不觉得圣经在泥板上有什么重大的意义吧，不过还是要坚持读完它，然后才能给出中肯的评价。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/12/03/%e8%80%b6%e7%a8%a3%e6%b3%a5%e6%9d%bf%e5%9c%a3%e7%bb%8f%e4%b9%8b%e8%b0%9c%e8%af%bb%e5%90%8e%e6%84%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write Blog use vim</title>
		<link>http://www.hatoyu.com/2008/11/30/write-blog-use-vim/</link>
		<comments>http://www.hatoyu.com/2008/11/30/write-blog-use-vim/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 10:02:01 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=613</guid>
		<description><![CDATA[接触Ubuntu这么久，思维上已经很Linux了，唯一还不能特别用的惯的就是VIM，特别是VIM强大的配置和功能按键，一个软件要掌握的好必须不断熟练的使用，所以从今天起，我决定所有的博客文章都用VIM写，包括其他的文本工作都尽量用VIM来实现，让自己能尽快熟练的使用VIM。
P.S：VIM 是程序员最好用的Editor Software，你熟练掌握他，可以完全不用鼠标，就在键盘上开发程序，调试程序，乃至很多很多事情。
Now I write this blog in VIMpress,a very useful plugin and very easy.
]]></description>
			<content:encoded><![CDATA[<p>接触Ubuntu这么久，思维上已经很Linux了，唯一还不能特别用的惯的就是VIM，特别是VIM强大的配置和功能按键，一个软件要掌握的好必须不断熟练的使用，所以从今天起，我决定所有的博客文章都用VIM写，包括其他的文本工作都尽量用VIM来实现，让自己能尽快熟练的使用VIM。</p>
<p>P.S：VIM 是程序员最好用的Editor Software，你熟练掌握他，可以完全不用鼠标，就在键盘上开发程序，调试程序，乃至很多很多事情。</p>
<p>Now I write this blog in VIMpress,a very useful plugin and very easy.</p>
<p><a href="http://friggeri.net/blog/2007/07/13/vimpress"><VIMpress Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/11/30/write-blog-use-vim/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress 升级到2.65</title>
		<link>http://www.hatoyu.com/2008/11/28/wordpress-%e5%8d%87%e7%ba%a7%e5%88%b0265/</link>
		<comments>http://www.hatoyu.com/2008/11/28/wordpress-%e5%8d%87%e7%ba%a7%e5%88%b0265/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 13:07:55 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=609</guid>
		<description><![CDATA[tar备份的时候为什么没有备份 .htaccess文件，所以一直觉得昨天的博客的访问量只有几十很奇怪，但是以为是dns缓存没有刷新的缘故，也没有在意，今天自己发了文章，再点击发现权限很有问题，tar解压出来再用scp恢复的目录文件属主都成了root，必须修改为 hatoyu:psacln才可以。
chown hatoyu:psacln * -R
-R必须大写，递归子目录。
用FileZilla GTK 重新上传.htaccess文件.然后在线升级插件和FTP上传2.65才都ok。估计pinkcool.com和babysnow.com也有相应问题。
]]></description>
			<content:encoded><![CDATA[<p>tar备份的时候为什么没有备份 <code>.htaccess文件，所以一直觉得昨天的博客的访问量只有几十很奇怪，但是以为是dns缓存没有刷新的缘故，也没有在意，今天自己发了文章，再点击发现权限很有问题，tar解压出来再用scp恢复的目录文件属主都成了root，必须修改为 hatoyu:psacln才可以。</code></p>
<p>chown hatoyu:psacln * -R</p>
<p>-R必须大写，递归子目录。</p>
<p>用FileZilla GTK 重新上传<code>.htaccess文件.</code>然后在线升级插件和FTP上传2.65才都ok。估计pinkcool.com和babysnow.com也有相应问题。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/11/28/wordpress-%e5%8d%87%e7%ba%a7%e5%88%b0265/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress2.6.3</title>
		<link>http://www.hatoyu.com/2008/10/25/wordpress263/</link>
		<comments>http://www.hatoyu.com/2008/10/25/wordpress263/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 11:16:10 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=363</guid>
		<description><![CDATA[WordPress Version 2.6.3 was released on October 23, 2008. 
Download 
]]></description>
			<content:encoded><![CDATA[<p>WordPress Version 2.6.3 was released on October 23, 2008. </p>
<p><a href="http://wordpress.org/latest.zip">Download </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/10/25/wordpress263/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>申请一个全球通用头像Gravatar</title>
		<link>http://www.hatoyu.com/2008/10/21/gravatar-signup/</link>
		<comments>http://www.hatoyu.com/2008/10/21/gravatar-signup/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 03:00:43 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=236</guid>
		<description><![CDATA[基本所有的wordpress的留言都是用了 Gravatar 头像系统。
申请地址：http://en.gravatar.com/site/signup
原理：把头像关联你的电子邮件，那么你在其他人博客留言的时候输入这个电子邮件，系统自动会显示你的 Gravatar头像，是不是很方便，和OPEN ID的原理类似，不过用途不同。
]]></description>
			<content:encoded><![CDATA[<p>基本所有的<a href="http://www.wordpress.org">wordpress</a>的留言都是用了 <a href="http://en.gravatar.com">Gravatar </a>头像系统。</p>
<p>申请地址：h<a href="http://en.gravatar.com/site/signup">ttp://en.gravatar.com/site/signup</a></p>
<p>原理：把头像关联你的电子邮件，那么你在其他人博客留言的时候输入这个电子邮件，系统自动会显示你的 Gravatar头像，是不是很方便，和OPEN ID的原理类似，不过用途不同。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/10/21/gravatar-signup/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>用Navicat 直接修正Wordpress上传错误</title>
		<link>http://www.hatoyu.com/2008/10/20/wordpress-upload-bug/</link>
		<comments>http://www.hatoyu.com/2008/10/20/wordpress-upload-bug/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 15:19:48 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Navicat]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=223</guid>
		<description><![CDATA[莫名其妙突然发现图片不能上传图片了，报错信息如下。
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/hatoyu.com/httpsdocs/wp-content/uploads/2008/10) is not within the allowed path(s): (/var/www/vhosts/hatoyu.com/httpdocs:/tmp) in /var/www/vhosts/hatoyu.com/httpdocs/wp-includes/functions.php on line 1435 
按照wordpress.org的一个提示在wp-config.php里面添加如下代码：
define('WP_TEMP_DIR','/tmp'); 
不过没有解决，因为问题没有出在这里，在回头耐心的看出错，发现问题了：
httpsdocs/wp-content/
原来httpsdocs是我之前只用ssl加密访问方式时候安装wp时候自动生成的，我现在设定 blog是 https 和 http同时访问，目录缺省用 httpdocs 目录，所以找不到报错也是自然的，发现错了就方便。
打开数据库 找到wp_option表，option_id=60 upload_path 修改值为/var/www/vhosts/hatoyu.com/httpdocs/wp-content/uploads,马上解决问题，并且那个在ssl下报错的flash上传方式也解决了。其实 很多你找不到的wp的config都在这个表里面，不要害怕放心大胆的改吧。
现在唯一的一个小问题就是code highlight 没有line number还没有解决。
]]></description>
			<content:encoded><![CDATA[<p>莫名其妙突然发现图片不能上传图片了，报错信息如下。</p>
<blockquote><p>Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/hatoyu.com/httpsdocs/wp-content/uploads/2008/10) is not within the allowed path(s): (/var/www/vhosts/hatoyu.com/httpdocs:/tmp) in /var/www/vhosts/hatoyu.com/httpdocs/wp-includes/functions.php on line 1435 </p></blockquote>
<p>按照wordpress.org的<a href="http://www.google.com/url?sa=t&#038;source=web&#038;ct=res&#038;cd=1&#038;url=http%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F161778&#038;ei=waH8SK3sBoHy7APXsYWeDw&#038;usg=AFQjCNHC27CMAWlB8wkW2Ts1fEpeX4uMBw&#038;sig2=rkWva418x_laFOqBB7XxrQ">一个提示</a>在wp-config.php里面添加如下代码：</p>
<pre lang="php">define('WP_TEMP_DIR','/tmp'); </pre>
<p>不过没有解决，因为问题没有出在这里，在回头耐心的看出错，发现问题了：<br />
httpsdocs/wp-content/</p>
<p>原来httpsdocs是我之前只用ssl加密访问方式时候安装wp时候自动生成的，我现在设定 blog是 <a href="https://www.hatoyu.com">https </a>和 <a href="http://www.hatoyu.com">http</a>同时访问，目录缺省用 httpdocs 目录，所以找不到报错也是自然的，发现错了就方便。</p>
<p>打开数据库 找到wp_option表，option_id=60 upload_path 修改值为/var/www/vhosts/hatoyu.com/httpdocs/wp-content/uploads,马上解决问题，并且那个在ssl下报错的flash上传方式也解决了。其实 很多你找不到的wp的config都在这个表里面，不要害怕放心大胆的改吧。</p>
<p>现在唯一的一个小问题就是code highlight 没有line number还没有解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/10/20/wordpress-upload-bug/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Code highlight plugnis Demo</title>
		<link>http://www.hatoyu.com/2008/10/19/code-highlight-plugnis-demo/</link>
		<comments>http://www.hatoyu.com/2008/10/19/code-highlight-plugnis-demo/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 10:03:22 +0000</pubDate>
		<dc:creator>hatoyu</dc:creator>
				<category><![CDATA[php_mysql_js_css]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugnis]]></category>

		<guid isPermaLink="false">http://www.hatoyu.com/?p=179</guid>
		<description><![CDATA[需要注意language name:php sql css javascript html4strict 名字好像要和 geshi目录下的文件名前缀符合。非常不错，如果在post的menu上多一个



的按钮就好了，研究一下怎么改那个code的按钮：
找到解决方法了：
打开wp-includes/js/quicktags.js，搜索 code 大约118-120行左右 ：
edButtons[edButtons.length] =
new edButton('ed_code'
,'code'
,''
,''
,'c'
);
把code改成 pre lang="" ，然后上传 ，ctrl+F5 刷新，效果就出来了。
实例效果如下：

php 



SQL

UPDATE `product` Set `PurchasePrice` = (`PurchasePrice`*`Storage`+12*21)/(`Storage`+12), `Storage` = `Storage` + 12 WHERE Productid = 4;

CSS

/* Base setup
 ---------------------------------------------------------------------------*/
* {
    margin: 0;
    font-family: Tahoma, Microsoft Sans Serif, Verdana;
    font-size: [...]]]></description>
			<content:encoded><![CDATA[<p>需要注意language name:php sql css javascript html4strict 名字好像要和 geshi目录下的文件名前缀符合。非常不错，如果在post的menu上多一个</p>
<pre lang="html4strict ">
<pre lang="">
<pre></pre>
<p>的按钮就好了，研究一下怎么改那个code的按钮：<br />
找到解决方法了：<br />
打开wp-includes/js/quicktags.js，搜索 code 大约118-120行左右 ：</p>
<pre lang="javascript ">edButtons[edButtons.length] =
new edButton('ed_code'
,'code'
,'<code>'
,'</code>'
,'c'
);</pre>
<p>把code改成 pre lang="" ，然后上传 ，ctrl+F5 刷新，效果就出来了。</p>
<p>实例效果如下：<br />
<span id="more-179"></span></p>
<p>php </p>
<pre lang="php">
<?php
/*
 * @author Hato yu <hatoyu@gmail.com>
 * @version v 3.0
 * @access public
 * @copyright 1615.cn
 */

session_start ();
require_once 'inc/config.inc.php';

$strSomethingNull = "对不起，用户名和密码必须填写";
$messageLoginOk = "您已经登录1615呼叫中心系统";
$messageLogigOut = "您已经退出本系统";
$strPageTitle = "用户登录";

if ($_POST ['action'] == "login") {
	if ($_POST ['username'] &#038;&#038; $_POST ['password']) {

		$strUsername = hFilter ( $_POST ['username'] );
		$passwd = hFilter ( $_POST ['password'] );
		$User = new User ( );
		$User->checkUser ( $strUsername, $passwd );
		$_SESSION ['user'] = $User->arrUser;

		showMsgHtml ($messageLoginOk, 3,"index.php" );
	} else {
		showMsgHtml ( "$strSomethingNull", 3, "index.php" );
	}
} elseif ($_REQUEST ['action'] == "logout") {
	session_unset ();
	session_destroy ();

	showMsgHtml ( $messageLogigOut, 3, 'login.php' );
}
else {
	$Smarty->assign ( 'pageTitle', $strPageTitle );
	$Smarty->display ( TEMPLATES . '/login.tpl' );
}

?>
</pre>
<p>SQL</p>
<pre lang="sql">
UPDATE `product` Set `PurchasePrice` = (`PurchasePrice`*`Storage`+12*21)/(`Storage`+12), `Storage` = `Storage` + 12 WHERE Productid = 4;
</pre>
<p>CSS</p>
<pre lang="css">
/* Base setup
 ---------------------------------------------------------------------------*/
* {
    margin: 0;
    font-family: Tahoma, Microsoft Sans Serif, Verdana;
    font-size: 12px;
}

p {
    font-size: 14px;
}

h1 {
    font-size: 28px;
}

img {
    border: 0px;
}

a:link, a:visited {
    text-decoration: none;
}

a:hover, a:active {
    text-decoration: none;
}
</pre>
<p>javascript</p>
<pre lang="javascript">
function myResize(){
    var windowHeight = $(window).height() - 48 - 30;
    var documentHeight = $(document).height() - 48 - 30 - 3;
    if (windowHeight > documentHeight) {
        var finalHeight = windowHeight;
    }
    else {
        var finalHeight = documentHeight;
    }
    //处理菜单条宽度
    $("#mainNav").css("height", finalHeight);
    //处理主内容的宽度
    var contentWidth = document.body.clientWidth - 210;
    $("#content").css("width", contentWidth);
}
</pre>
<p>HTML</p>
<pre lang="html4strict">
<div class="toolsArea">
<fieldset>
<legend>
                 工具条
            </legend>
<div class="screenButtons">
                <a href="?action=add">
<div class="commonButton" id="bid-new-clinet" title="新客户">
                        <button name="bname_new_client" id="buttonid-new-client" type="button">
                            新客户
                        </button>
                        <span id="spanid-new-client">  新客户</span>
                    </div>

                </a>
<div class="commonButton" id="bid-extras" title="促销">
                    <button name="bname_extras" id="buttonid-extras" type="button">
                        促销
                    </button>
                    <span id="spanid-extras">促销</span>
                </div>
</div>
</fieldset></div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hatoyu.com/2008/10/19/code-highlight-plugnis-demo/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
