<?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>付亚辉</title>
	<atom:link href="http://www.fuyahui.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fuyahui.com</link>
	<description>一个菜鸟在不断的进步！记录我的成长，生活，工作！</description>
	<lastBuildDate>Mon, 30 Apr 2012 16:05:28 +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>zen-cart:数据库中存细节图</title>
		<link>http://www.fuyahui.com/zencart-save-xijietu-database.html</link>
		<comments>http://www.fuyahui.com/zencart-save-xijietu-database.html#comments</comments>
		<pubDate>Mon, 30 Apr 2012 15:20:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[zen-cart]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=208</guid>
		<description><![CDATA[用zen-cart一年了，在工作中多多少少会遇到一系列的问题，例如细节图的问题，有时候采集的数据用zen-cart自带的细节图显示方式感觉太麻烦，做数据的工作量很大，其实有个办法，像magento那样写入到数据表中，经过稍微修改下程序就可以做到，下面我就把这个插件共享出来，希望对大家有用。这个是我同事做的，不是我做的。

首先在products数据表用增加一个字段detail_image，数据类型设置为text格式的

然后覆盖下面这个文件到网站跟目录中（附里面有说明文档）

 <a title="数据库中存多图" href="http://www.fuyahui.com/wp-content/uploads/2012/04/批量表数据库中存多图.zip">数据库中存细节图</a>

示例批量表格式，其实也就是增加一个字段名称v_detail_image，供大家下载看下

<a title="批量表" href="http://www.fuyahui.com/wp-content/uploads/2012/04/示例表.zip">批量表</a>

大家有什么问题加我qq：350314173]]></description>
			<content:encoded><![CDATA[<p>用zen-cart一年了，在工作中多多少少会遇到一系列的问题，例如细节图的问题，有时候采集的数据用zen-cart自带的细节图显示方式感觉太麻烦，做数据的工作量很大，其实有个办法，像magento那样写入到数据表中，经过稍微修改下程序就可以做到，下面我就把这个插件共享出来，希望对大家有用。这个是我同事做的，不是我做的。</p>
<p>首先在products数据表用增加一个字段detail_image，数据类型设置为text格式的</p>
<p>然后覆盖下面这个文件到网站跟目录中（附里面有说明文档）</p>
<p> <a title="数据库中存多图" href="http://www.fuyahui.com/wp-content/uploads/2012/04/批量表数据库中存多图.zip">数据库中存细节图</a></p>
<p>示例批量表格式，其实也就是增加一个字段名称v_detail_image，供大家下载看下</p>
<p><a title="批量表" href="http://www.fuyahui.com/wp-content/uploads/2012/04/示例表.zip">批量表</a></p>
<p>大家有什么问题加我qq：350314173</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/zencart-save-xijietu-database.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>说说最近的状况</title>
		<link>http://www.fuyahui.com/talk-about-the-recent-situation.html</link>
		<comments>http://www.fuyahui.com/talk-about-the-recent-situation.html#comments</comments>
		<pubDate>Fri, 06 Apr 2012 15:12:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[心情随笔]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=197</guid>
		<description><![CDATA[　　最近一直忙着，感觉有点累，所以每次想写点什么又不想去写。博客将近一个星期没有更新了。现在终于理解别人的博客为什么刚开始经常更新，后来慢慢就不想写了。因为身边很多事情要做，确实也太忙了，没时间去做这个了。
　　
　　前段时间心情不好，所以出去玩了一个星期，算是调整一下心情吧！和老朋友聊了很多，聊一些以前从没聊过的话题，感觉明朗了好多。
　　
　　以前忙着做的站现在终于出单了，虽然不是很多，也算看到了希望。让我有更大的信心做好这一行业。
　　
　　最近别人经常问我怎么这么想挣钱，很久以前记得别人说过，要钱不要命，要命不要钱。我一直把这句话当做信条。以前我一直不想去做，现在我要做就要做好，做强！不做就不做，要做就做强，不管对待任何事情，我一直就是这样的性格！
　　
　　下一步准备做一下站群，为以后更大的目标做好准备！]]></description>
			<content:encoded><![CDATA[<p>　　最近一直忙着，感觉有点累，所以每次想写点什么又不想去写。博客将近一个星期没有更新了。现在终于理解别人的博客为什么刚开始经常更新，后来慢慢就不想写了。因为身边很多事情要做，确实也太忙了，没时间去做这个了。<br />
　　<br />
　　前段时间心情不好，所以出去玩了一个星期，算是调整一下心情吧！和老朋友聊了很多，聊一些以前从没聊过的话题，感觉明朗了好多。<br />
　　<br />
　　以前忙着做的站现在终于出单了，虽然不是很多，也算看到了希望。让我有更大的信心做好这一行业。<br />
　　<br />
　　最近别人经常问我怎么这么想挣钱，很久以前记得别人说过，要钱不要命，要命不要钱。我一直把这句话当做信条。以前我一直不想去做，现在我要做就要做好，做强！不做就不做，要做就做强，不管对待任何事情，我一直就是这样的性格！<br />
　　<br />
　　下一步准备做一下站群，为以后更大的目标做好准备！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/talk-about-the-recent-situation.html/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>CentOS6.0中LAMP(Apache2+PHP5+MySQL5)服务器的配置</title>
		<link>http://www.fuyahui.com/centos6-lamp-apache2-php5-mysql5-configuration.html</link>
		<comments>http://www.fuyahui.com/centos6-lamp-apache2-php5-mysql5-configuration.html#comments</comments>
		<pubDate>Sat, 03 Mar 2012 08:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[他山之石]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[LAMP配置]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=189</guid>
		<description><![CDATA[因为最近买了一个VPS，试着自己配置一下自己的服务器，搜索一下，安装成功了，特简单，分享一下过程如下！

1：重要提示

我服务器上安装的系统是centos6.0，根据每个系统不一样，安装的时候可能有出入，自己根据错误提示去解决

2：安装MySQL 5.0

打开终端，输入：
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install mysql mysql-server</pre>
然后为MySQL创建系统启动链接(这样在系统启动时，MySQL会自动启动)，在终端输入命令：
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">chkconfig --levels 235 mysqld on 
/etc/init.d/mysqld start</pre>
为MySQL root帐户设置密码：
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">mysql_secure_installation</pre>
终端显示，按照提示操作:
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">[root@server1 ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we’ll need the current
password for the root user.  If you’ve just installed MySQL, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on…

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n] &#60;– 回车
New password: &#60;– 设置一个用户密码
Re-enter new password: &#60;– 再输入一次你设置的密码
Password updated successfully!
Reloading privilege tables..
… Success!

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] &#60;– 回车
… Success!

Normally, root should only be allowed to connect from ’localhost’.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] &#60;–回车
… Success!

By default, MySQL comes with a database named ’test’ that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] &#60;– 回车
- Dropping test database…
… Success!
- Removing privileges on test database…
… Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] &#60;– 回车
… Success!

Cleaning up…

All done!  If you’ve completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

[root@server1 ~]#</pre>
3.安装的Apache2

　
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install httpd</pre>
　　配置系统启动时自动启动apache

　
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">chkconfig --levels 235 httpd on</pre>
　　重启apache:

　
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">/etc/init.d/httpd start</pre>
　　在CentOS中Apache的默认文档的根目录是/var/www/html，配置文件/etc/httpd/conf/httpd.conf。其他配置存储在/etc/httpd/conf.d/目录里。

　　4.Installing PHP5

　　我们可以安装PHP5和Apache PHP5模块,命令如下：

　<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install php</pre>

　　安装完成后必须重新启动Apache

<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">/etc/init.d/httpd restart</pre>

　　5.测试PHP5 /获取PHP5安装的详细信息

　　默认的Web站点的文档根目录/var/www/html 。现在，我们将在该目录中创建PHP探针文件((info.php)，在浏览器中调用它 。该文件将显示很多有用的细节，看看我们安装的php模块安装时候完成。

<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">vi /var/www/html/info.php</pre>

　　现在，在浏览器打开(如文件http://你的服务器IP/info.php)：

　　正如您所看到的，PHP5工作正常，如果继续向下滚动，你会看到所有在PHP5中已经启用的模块 。没有MySQL，这意味着我们php5中还没有MySQL支持模块。

　　6.在PHP5中添加MySQL支持

　　<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum search php</pre>

　　挑选那些你需要的模块，安装：

<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc</pre>

　　现在重新启动Apache2

　　<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">/etc/init.d/httpd restart</pre>
　7.安装phpMyAdmin管理数据库

　　phpMyAdmin是一个Web界面，通过它可以管理你的MySQL数据库。

下载phpmyadmin，命令如下
先转到/var/www/html目录下 
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">cd /var/www/html</pre>
wget phpmyadmin下载地址，例如
 <pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">wget http://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.10.1/phpMyAdmin-3.4.10.1-all-languages.tar.gz</pre>
然后用tar解压 例如
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">tar zxvf phpMyAdmin-3.4.10.1-all-languages.tar.gz</pre>
接下来你就可以管理你的数据库了。
　8.相关链接

　　Apache: http://httpd.apache.org/

　　PHP: http://www.php.net/

　　MySQL: http://www.mysql.com/

　　CentOS: http://www.centos.org/

　　phpMyAdmin: http://www.phpmyadmin.net/]]></description>
			<content:encoded><![CDATA[<p>因为最近买了一个VPS，试着自己配置一下自己的服务器，搜索一下，安装成功了，特简单，分享一下过程如下！</p>
<p>1：重要提示</p>
<p>我服务器上安装的系统是centos6.0，根据每个系统不一样，安装的时候可能有出入，自己根据错误提示去解决</p>
<p>2：安装MySQL 5.0</p>
<p>打开终端，输入：</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install mysql mysql-server</pre>
<p>然后为MySQL创建系统启动链接(这样在系统启动时，MySQL会自动启动)，在终端输入命令：</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start</pre>
<p>为MySQL root帐户设置密码：</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">mysql_secure_installation</pre>
<p>终端显示，按照提示操作:</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">[root@server1 ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we’ll need the current
password for the root user.  If you’ve just installed MySQL, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on…

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n] &lt;– 回车
New password: &lt;– 设置一个用户密码
Re-enter new password: &lt;– 再输入一次你设置的密码
Password updated successfully!
Reloading privilege tables..
… Success!

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] &lt;– 回车
… Success!

Normally, root should only be allowed to connect from ’localhost’.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] &lt;–回车
… Success!

By default, MySQL comes with a database named ’test’ that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] &lt;– 回车
- Dropping test database…
… Success!
- Removing privileges on test database…
… Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] &lt;– 回车
… Success!

Cleaning up…

All done!  If you’ve completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

[root@server1 ~]#</pre>
<p>3.安装的Apache2</p>
<p>　</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install httpd</pre>
<p>　　配置系统启动时自动启动apache</p>
<p>　</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">chkconfig --levels 235 httpd on</pre>
<p>　　重启apache:</p>
<p>　</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">/etc/init.d/httpd start</pre>
<p>　　在CentOS中Apache的默认文档的根目录是/var/www/html，配置文件/etc/httpd/conf/httpd.conf。其他配置存储在/etc/httpd/conf.d/目录里。</p>
<p>　　4.Installing PHP5</p>
<p>　　我们可以安装PHP5和Apache PHP5模块,命令如下：</p>
<p>　
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install php</pre>
<p>　　安装完成后必须重新启动Apache</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">/etc/init.d/httpd restart</pre>
<p>　　5.测试PHP5 /获取PHP5安装的详细信息</p>
<p>　　默认的Web站点的文档根目录/var/www/html 。现在，我们将在该目录中创建PHP探针文件((info.php)，在浏览器中调用它 。该文件将显示很多有用的细节，看看我们安装的php模块安装时候完成。</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">vi /var/www/html/info.php</pre>
<p>　　现在，在浏览器打开(如文件http://你的服务器IP/info.php)：</p>
<p>　　正如您所看到的，PHP5工作正常，如果继续向下滚动，你会看到所有在PHP5中已经启用的模块 。没有MySQL，这意味着我们php5中还没有MySQL支持模块。</p>
<p>　　6.在PHP5中添加MySQL支持</p>
<p>　　
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum search php</pre>
<p>　　挑选那些你需要的模块，安装：</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc</pre>
<p>　　现在重新启动Apache2</p>
<p>　　
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">/etc/init.d/httpd restart</pre>
<p>　7.安装phpMyAdmin管理数据库</p>
<p>　　phpMyAdmin是一个Web界面，通过它可以管理你的MySQL数据库。</p>
<p>下载phpmyadmin，命令如下<br />
先转到/var/www/html目录下 </p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">cd /var/www/html</pre>
<p>wget phpmyadmin下载地址，例如</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">wget http://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.10.1/phpMyAdmin-3.4.10.1-all-languages.tar.gz</pre>
<p>然后用tar解压 例如</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">tar zxvf phpMyAdmin-3.4.10.1-all-languages.tar.gz</pre>
<p>接下来你就可以管理你的数据库了。<br />
　8.相关链接</p>
<p>　　Apache: http://httpd.apache.org/</p>
<p>　　PHP: http://www.php.net/</p>
<p>　　MySQL: http://www.mysql.com/</p>
<p>　　CentOS: http://www.centos.org/</p>
<p>　　phpMyAdmin: http://www.phpmyadmin.net/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/centos6-lamp-apache2-php5-mysql5-configuration.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>博客由z-blog换成wordpress了</title>
		<link>http://www.fuyahui.com/my-blog-zblog-to-wordpress.html</link>
		<comments>http://www.fuyahui.com/my-blog-zblog-to-wordpress.html#comments</comments>
		<pubDate>Tue, 21 Feb 2012 12:43:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[乱七八糟]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=174</guid>
		<description><![CDATA[    自从春节过来后，一直都没有更新自己的博客，因为一直忙着换博客系统的原因。
           用z-blog已经快两年了，但是后来感觉用着有点不爽，想换成wordpress的。本想直接把z-blog数据库用的内容转换到wordpress数据库上，感觉也挺麻烦的，所以感觉直接换成新的，然后把感觉有用的文章再添加到新博客上，这样做肯定对搜索引擎不友好。本来文章也就不多，所以就这样做了，惩罚就惩罚吧，以后不会再换博客系统了。
          最近还一直忙着做自己的网站，特别忙！当有朋友让帮忙修改一下东西时，我确实没时间，有些问题不是一会就能解决的，所以抱歉了，等以后有时间肯定会帮忙的。过年回家一趟，搞得现在心里还一直不舒服，人活着不只是为了一个面子，而却偏偏很在意这个东西。人挣一口气，当年承诺的话，一直不曾实现，这次父母说了我两句，确实说到我的痛处了。所以我想了很多，可以说天天几乎处于失眠状态，为了那个心中的梦想，拼搏吧！我们已经长大了，不能小孩子气了，一面这样欺骗着自己，一面内心深处的痛苦加剧，这就是现在的我。就算再难再苦，也该是面对的时候。
         这篇文章算是引蜘蛛快点更新我的博客收录吧！]]></description>
			<content:encoded><![CDATA[<p>    自从春节过来后，一直都没有更新自己的博客，因为一直忙着换博客系统的原因。<br />
           用z-blog已经快两年了，但是后来感觉用着有点不爽，想换成wordpress的。本想直接把z-blog数据库用的内容转换到wordpress数据库上，感觉也挺麻烦的，所以感觉直接换成新的，然后把感觉有用的文章再添加到新博客上，这样做肯定对搜索引擎不友好。本来文章也就不多，所以就这样做了，惩罚就惩罚吧，以后不会再换博客系统了。<br />
          最近还一直忙着做自己的网站，特别忙！当有朋友让帮忙修改一下东西时，我确实没时间，有些问题不是一会就能解决的，所以抱歉了，等以后有时间肯定会帮忙的。过年回家一趟，搞得现在心里还一直不舒服，人活着不只是为了一个面子，而却偏偏很在意这个东西。人挣一口气，当年承诺的话，一直不曾实现，这次父母说了我两句，确实说到我的痛处了。所以我想了很多，可以说天天几乎处于失眠状态，为了那个心中的梦想，拼搏吧！我们已经长大了，不能小孩子气了，一面这样欺骗着自己，一面内心深处的痛苦加剧，这就是现在的我。就算再难再苦，也该是面对的时候。<br />
         这篇文章算是引蜘蛛快点更新我的博客收录吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/my-blog-zblog-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>再续火车头(免费版)采集数据</title>
		<link>http://www.fuyahui.com/adjourned-to-the-locomotive-free-version-of-the-data-collection.html</link>
		<comments>http://www.fuyahui.com/adjourned-to-the-locomotive-free-version-of-the-data-collection.html#comments</comments>
		<pubDate>Fri, 17 Feb 2012 14:19:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[乱七八糟]]></category>
		<category><![CDATA[数据采集]]></category>
		<category><![CDATA[火车头]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=152</guid>
		<description><![CDATA[<div>        自从上一篇<a href="http://www.fuyahui.com/fuyahui-zencart-acquisition-rules-and-publish-a-database-module-download.html" target="_blank">zen-cart采集规则和数据库发布模块下载</a>以后。很多人问我为什么他的不能采集，原来发现他们用的几乎都是免费版的，不能直接导入数据库中，可以做成CVS格式的，但是遗憾的是不能下载图片，所以这次我就做个简单的教程，大致说一下。</div>
<div>         quill.com 测试网站我用的是这个</div>
<div>
<div>        第一种方式不能直接下载图片，但是可以通过迅雷下载。</div>
<div>        第一种方式的 <a href="wp-content/uploads/2012/02/quillcom1.ljob" target="_blank">站点规则</a>和<a href="wp-content/uploads/2012/02/quillcom1.Csv" target="_blank">csv表</a></div>
<div>
<div>        第二种方式可以直接下载图片，但是批量中的那个图片字段有点乱，可以批量替换。</div>
<div>        第二种方式的<a href="wp-content/uploads/2012/02/quillcom2.ljob" target="_blank">站点规则</a>和<a href="wp-content/uploads/2012/02/quillcom2.Csv" target="_blank">CSV表</a></div>
</div>
</div>
        这两种方式下载图片的区别在于如图对比

        第一种方式图1

<img title="" src="wp-content/uploads/2012/02/201201010006132844.jpg" alt="" />

        第二种方式图2

&#160;

<img title="" src="wp-content/uploads/2012/02/201201010006435284.jpg" alt="" />]]></description>
			<content:encoded><![CDATA[<div>        自从上一篇<a href="http://www.fuyahui.com/fuyahui-zencart-acquisition-rules-and-publish-a-database-module-download.html" target="_blank">zen-cart采集规则和数据库发布模块下载</a>以后。很多人问我为什么他的不能采集，原来发现他们用的几乎都是免费版的，不能直接导入数据库中，可以做成CVS格式的，但是遗憾的是不能下载图片，所以这次我就做个简单的教程，大致说一下。</div>
<div>         quill.com 测试网站我用的是这个</div>
<div>
<div>        第一种方式不能直接下载图片，但是可以通过迅雷下载。</div>
<div>        第一种方式的 <a href="wp-content/uploads/2012/02/quillcom1.ljob" target="_blank">站点规则</a>和<a href="wp-content/uploads/2012/02/quillcom1.Csv" target="_blank">csv表</a></div>
<div>
<div>        第二种方式可以直接下载图片，但是批量中的那个图片字段有点乱，可以批量替换。</div>
<div>        第二种方式的<a href="wp-content/uploads/2012/02/quillcom2.ljob" target="_blank">站点规则</a>和<a href="wp-content/uploads/2012/02/quillcom2.Csv" target="_blank">CSV表</a></div>
</div>
</div>
<p>        这两种方式下载图片的区别在于如图对比</p>
<p>        第一种方式图1</p>
<p><img title="" src="wp-content/uploads/2012/02/201201010006132844.jpg" alt="" /></p>
<p>        第二种方式图2</p>
<p>&nbsp;</p>
<p><img title="" src="wp-content/uploads/2012/02/201201010006435284.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/adjourned-to-the-locomotive-free-version-of-the-data-collection.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>修改默认的zen-cart产品页列表的排序</title>
		<link>http://www.fuyahui.com/modify-the-default-sort-of-zencart-product-page-list.html</link>
		<comments>http://www.fuyahui.com/modify-the-default-sort-of-zencart-product-page-list.html#comments</comments>
		<pubDate>Fri, 17 Feb 2012 14:09:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[zen-cart]]></category>
		<category><![CDATA[程序研究]]></category>
		<category><![CDATA[修改产品列表排序]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=148</guid>
		<description><![CDATA[这个是参考别人网站（参考lightinthebox.com）自己修改的，拿出来和大家分享下，有需要最好，无需要的也无所谓了，呵呵，给自己看吧。我都是在默认模板中测试的，有需要的可以根据自己的模板修改吧。

首先在product_listing.php（includes\modules\classic） 增加如下代码
<pre class="brush: php; gutter: true">$limit = array();
$limit[] = array(&#039;id&#039;=&#62;12,&#039;text&#039;=&#62;12);
$limit[] = array(&#039;id&#039;=&#62;24,&#039;text&#039;=&#62;24);
$limit[] = array(&#039;id&#039;=&#62;&#039;all&#039;,&#039;text&#039;=&#62;&#039;all&#039;);
$sort = array();
$sort[] = array(&#039;id&#039;=&#62;&#039;2a&#039;,&#039;text&#039;=&#62;&#039;Name-A to Z&#039;);
$sort[] = array(&#039;id&#039;=&#62;&#039;3d&#039;,&#039;text&#039;=&#62;&#039;Name-Z to A&#039;);
$sort[] = array(&#039;id&#039;=&#62;&#039;3a&#039;,&#039;text&#039;=&#62;&#039;Price - low to high&#039;);
$sort[] = array(&#039;id&#039;=&#62;&#039;3d&#039;,&#039;text&#039;=&#62;&#039;Price - high to low&#039;);</pre>
在这个页面中把
<pre class="brush: php; gutter: true">$listing_split = new splitPageResults($listing_sql, $max_results,&#039;p.products_id&#039;, &#039;page&#039;);</pre>
修改为
<pre class="brush: php; gutter: true">$listing_split = new splitPageResults($listing_sql, (isset($_GET[&#039;limit&#039;]) ? $_GET[&#039;limit&#039;] :
MAX_DISPLAY_PRODUCTS_LISTING), &#039;p.products_id&#039;, &#039;page&#039;);</pre>
然后在 tpl_modules_product_listing.php （includes\templates\classic\templates）增加如下代码
<pre></pre>

&#160;

<pre class="brush: php; gutter: true">&#60;?php if($linkMark = strpos($_SERVER[&#039;REQUEST_URI&#039;],&#039;?&#039;)){
$cleanUrl = substr($_SERVER[&#039;REQUEST_URI&#039;],0,$linkMark);
}else{
$cleanUrl = $_SERVER[&#039;REQUEST_URI&#039;];
}function cleanSameArg($clean){
global $_GET,$cleanUrl;$newArg = array();
reset($_GET);
while (list($key, $value) = each($_GET)) {
if($key != &#039;main_page&#039; and $key != &#039;cPath&#039; and $key != &#039;display&#039; and $key != $clean){
$newArg[] = $key.&#039;=&#039;.$value;}}if(sizeof($newArg)&#62;0){
return $cleanUrl.&#039;?&#039;.implode(&#039;&#38;&#039;,$newArg);}else{
return $cleanUrl;}}function postfixUrl(){
global $_SERVER;$posbool = strpos($_SERVER[&#039;REQUEST_URI&#039;],&#039;?&#039;);return (is_int($posbool) ? substr($_SERVER[&#039;REQUEST_URI&#039;],$posbool) : &#039;&#039;);
}?&#62;
&#60;li&#62;&#60;strong&#62;Sorted By: &#60;/strong&#62;&#60;?php echo zen_draw_pull_down_menu(&#039;sort&#039;,$sort, (isset($_GET[&#039;sort&#039;]) ? $_GET[&#039;sort&#039;] : &#039;&#039;), &#039;onchange=&#34;changeSort(this,\&#039;&#039;.cleanSameArg(&#039;sort&#039;).&#039;\&#039;);&#34; class=&#34;select&#34; rel=&#34;dropdown&#34;&#039;);?&#62;&#60;/li&#62;
&#60;li&#62;&#60;strong&#62;Sort By: &#60;/strong&#62; &#60;?php echo zen_draw_pull_down_menu(&#039;limit&#039;,$limit, (isset($_GET[&#039;limit&#039;]) ? $_GET[&#039;limit&#039;] : &#039;20&#039;), &#039;onchange=&#34;changePagesize(this,\&#039;&#039;.cleanSameArg(&#039;limit&#039;).&#039;\&#039;);&#34; class=&#34;select1&#34; rel=&#34;dropdown&#34;&#039;);?&#62;&#60;/li&#62;
&#60;?php if ( ($listing_split-&#62;number_of_rows &#62; 0) &#38;&#38; ( (PREV_NEXT_BAR_LOCATION == &#039;1&#039;) &#124;&#124; (PREV_NEXT_BAR_LOCATION == &#039;3&#039;) ) ) {?&#62;
&#60;div id=&#34;productsListingTopNumber&#34; class=&#34;navSplitPagesResult back&#34;&#62;&#60;?php echo $listing_split-&#62;display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?&#62;&#60;/div&#62;
&#60;div id=&#34;productsListingListingTopLinks&#34; class=&#34;navSplitPagesLinks forward&#34;&#62;
&#60;?php echo TEXT_RESULT_PAGE . &#039; &#039; . $listing_split-&#62;display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array(&#039;page&#039;, &#039;info&#039;, &#039;x&#039;, &#039;y&#039;, &#039;main_page&#039;))); ?&#62;&#60;/div&#62;
&#60;br class=&#34;clearBoth&#34; /&#62;&#60;?php}?&#62;&#60;/form&#62;</pre>
接着在tpl_index_product_list.php（includes\modules\classic）增加如下代码
<pre class="brush: php; gutter: true">&#60;form name=&#34;split_page_form&#34; action=&#34;http://&#60;?php echo$_SERVER[&#039;SERVER_NAME&#039;] ?&#62;
&#60;?php echo $_SERVER[&#34;REQUEST_URI&#34;]; ?&#62;&#34; method=&#34;get&#34; style=&#34;margin:0;&#34;&#62;
&#60;?phpecho zen_draw_hidden_field(&#039;main_page&#039;, FILENAME_DEFAULT);echo zen_hide_session_id();
// draw cPath if known
if (!$getoption_set) {echo zen_draw_hidden_field(&#039;cPath&#039;, $cPath);} else {
// draw manufacturers_idecho
zen_draw_hidden_field($get_option_variable, $_GET[$get_option_variable]);}?&#62;</pre>
接着还要修改在includes/classes/split_page_results.php页面中把
<pre class="brush: php; gutter: true">$max_rows = ($max_rows == &#039;&#039; &#124;&#124; $max_rows == 0) ? 20 : $max_rows;
</pre>
修改为
<pre class="brush: php; gutter: true"> if($max_rows==&#039;all&#039;){
        $max_rows = 10000;
    }else{
        $max_rows = ($max_rows == &#039;&#039; &#124;&#124; $max_rows == 0) ? 20 : $max_rows;
    }</pre>
<pre></pre>

最后增加一个js，代码如下

<pre class="brush: javascript; gutter: true">function changeSort(obj, sort_url){if(obj.value != &#039;-1&#039;){if(sort_url.indexOf(&#039;?&#039;) &#62; -1){
window.location.href= sort_url + &#34;&#38;sort=&#34; + obj.value;}else{window.location.href= sort_url + &#34;?sort=&#34; + obj.value;
}}}
function changePagesize(obj, sort_url){
if(obj.value != &#039;-1&#039;){
if(sort_url.indexOf(&#039;?&#039;) &#62; -1){
window.location.href= sort_url + &#34;&#38;limit=&#34; + obj.value;
}else{
window.location.href= sort_url + &#34;?limit=&#34; + obj.value;
}}}</pre>
为了避免页面的重复收录，可以添加如下语句，在合适的位置
<pre class="brush: php; gutter: true">&#60;link rel=&#34;canonical&#34; href=&#34;http://&#60;?php $URL=$_SERVER[&#039;HTTP_HOST&#039;] . $_SERVER[&#039;REQUEST_URI&#039;];$geturl=explode(&#039;?&#039;,$URL);echo $geturl[0]; ?&#62;&#34; /&#62;</pre>
好了就这些，根据自己的需要进行修改吧，我是在默认模板下测试的，有问题给我留言啊！]]></description>
			<content:encoded><![CDATA[<p>这个是参考别人网站（参考lightinthebox.com）自己修改的，拿出来和大家分享下，有需要最好，无需要的也无所谓了，呵呵，给自己看吧。我都是在默认模板中测试的，有需要的可以根据自己的模板修改吧。</p>
<p>首先在product_listing.php（includes\modules\classic） 增加如下代码</p>
<pre class="brush: php; gutter: true">$limit = array();
$limit[] = array(&#039;id&#039;=&gt;12,&#039;text&#039;=&gt;12);
$limit[] = array(&#039;id&#039;=&gt;24,&#039;text&#039;=&gt;24);
$limit[] = array(&#039;id&#039;=&gt;&#039;all&#039;,&#039;text&#039;=&gt;&#039;all&#039;);
$sort = array();
$sort[] = array(&#039;id&#039;=&gt;&#039;2a&#039;,&#039;text&#039;=&gt;&#039;Name-A to Z&#039;);
$sort[] = array(&#039;id&#039;=&gt;&#039;3d&#039;,&#039;text&#039;=&gt;&#039;Name-Z to A&#039;);
$sort[] = array(&#039;id&#039;=&gt;&#039;3a&#039;,&#039;text&#039;=&gt;&#039;Price - low to high&#039;);
$sort[] = array(&#039;id&#039;=&gt;&#039;3d&#039;,&#039;text&#039;=&gt;&#039;Price - high to low&#039;);</pre>
<p>在这个页面中把</p>
<pre class="brush: php; gutter: true">$listing_split = new splitPageResults($listing_sql, $max_results,&#039;p.products_id&#039;, &#039;page&#039;);</pre>
<p>修改为</p>
<pre class="brush: php; gutter: true">$listing_split = new splitPageResults($listing_sql, (isset($_GET[&#039;limit&#039;]) ? $_GET[&#039;limit&#039;] :
MAX_DISPLAY_PRODUCTS_LISTING), &#039;p.products_id&#039;, &#039;page&#039;);</pre>
<p>然后在 tpl_modules_product_listing.php （includes\templates\classic\templates）增加如下代码</p>
<pre></pre>
<p>&nbsp;</p>
<pre class="brush: php; gutter: true">&lt;?php if($linkMark = strpos($_SERVER[&#039;REQUEST_URI&#039;],&#039;?&#039;)){
$cleanUrl = substr($_SERVER[&#039;REQUEST_URI&#039;],0,$linkMark);
}else{
$cleanUrl = $_SERVER[&#039;REQUEST_URI&#039;];
}function cleanSameArg($clean){
global $_GET,$cleanUrl;$newArg = array();
reset($_GET);
while (list($key, $value) = each($_GET)) {
if($key != &#039;main_page&#039; and $key != &#039;cPath&#039; and $key != &#039;display&#039; and $key != $clean){
$newArg[] = $key.&#039;=&#039;.$value;}}if(sizeof($newArg)&gt;0){
return $cleanUrl.&#039;?&#039;.implode(&#039;&amp;&#039;,$newArg);}else{
return $cleanUrl;}}function postfixUrl(){
global $_SERVER;$posbool = strpos($_SERVER[&#039;REQUEST_URI&#039;],&#039;?&#039;);return (is_int($posbool) ? substr($_SERVER[&#039;REQUEST_URI&#039;],$posbool) : &#039;&#039;);
}?&gt;
&lt;li&gt;&lt;strong&gt;Sorted By: &lt;/strong&gt;&lt;?php echo zen_draw_pull_down_menu(&#039;sort&#039;,$sort, (isset($_GET[&#039;sort&#039;]) ? $_GET[&#039;sort&#039;] : &#039;&#039;), &#039;onchange=&quot;changeSort(this,\&#039;&#039;.cleanSameArg(&#039;sort&#039;).&#039;\&#039;);&quot; class=&quot;select&quot; rel=&quot;dropdown&quot;&#039;);?&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sort By: &lt;/strong&gt; &lt;?php echo zen_draw_pull_down_menu(&#039;limit&#039;,$limit, (isset($_GET[&#039;limit&#039;]) ? $_GET[&#039;limit&#039;] : &#039;20&#039;), &#039;onchange=&quot;changePagesize(this,\&#039;&#039;.cleanSameArg(&#039;limit&#039;).&#039;\&#039;);&quot; class=&quot;select1&quot; rel=&quot;dropdown&quot;&#039;);?&gt;&lt;/li&gt;
&lt;?php if ( ($listing_split-&gt;number_of_rows &gt; 0) &amp;&amp; ( (PREV_NEXT_BAR_LOCATION == &#039;1&#039;) || (PREV_NEXT_BAR_LOCATION == &#039;3&#039;) ) ) {?&gt;
&lt;div id=&quot;productsListingTopNumber&quot; class=&quot;navSplitPagesResult back&quot;&gt;&lt;?php echo $listing_split-&gt;display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?&gt;&lt;/div&gt;
&lt;div id=&quot;productsListingListingTopLinks&quot; class=&quot;navSplitPagesLinks forward&quot;&gt;
&lt;?php echo TEXT_RESULT_PAGE . &#039; &#039; . $listing_split-&gt;display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array(&#039;page&#039;, &#039;info&#039;, &#039;x&#039;, &#039;y&#039;, &#039;main_page&#039;))); ?&gt;&lt;/div&gt;
&lt;br class=&quot;clearBoth&quot; /&gt;&lt;?php}?&gt;&lt;/form&gt;</pre>
<p>接着在tpl_index_product_list.php（includes\modules\classic）增加如下代码</p>
<pre class="brush: php; gutter: true">&lt;form name=&quot;split_page_form&quot; action=&quot;http://&lt;?php echo$_SERVER[&#039;SERVER_NAME&#039;] ?&gt;
&lt;?php echo $_SERVER[&quot;REQUEST_URI&quot;]; ?&gt;&quot; method=&quot;get&quot; style=&quot;margin:0;&quot;&gt;
&lt;?phpecho zen_draw_hidden_field(&#039;main_page&#039;, FILENAME_DEFAULT);echo zen_hide_session_id();
// draw cPath if known
if (!$getoption_set) {echo zen_draw_hidden_field(&#039;cPath&#039;, $cPath);} else {
// draw manufacturers_idecho
zen_draw_hidden_field($get_option_variable, $_GET[$get_option_variable]);}?&gt;</pre>
<p>接着还要修改在includes/classes/split_page_results.php页面中把</p>
<pre class="brush: php; gutter: true">$max_rows = ($max_rows == &#039;&#039; || $max_rows == 0) ? 20 : $max_rows;
</pre>
<p>修改为</p>
<pre class="brush: php; gutter: true"> if($max_rows==&#039;all&#039;){
        $max_rows = 10000;
    }else{
        $max_rows = ($max_rows == &#039;&#039; || $max_rows == 0) ? 20 : $max_rows;
    }</pre>
<pre></pre>
<p>最后增加一个js，代码如下</p>
<pre class="brush: javascript; gutter: true">function changeSort(obj, sort_url){if(obj.value != &#039;-1&#039;){if(sort_url.indexOf(&#039;?&#039;) &gt; -1){
window.location.href= sort_url + &quot;&amp;sort=&quot; + obj.value;}else{window.location.href= sort_url + &quot;?sort=&quot; + obj.value;
}}}
function changePagesize(obj, sort_url){
if(obj.value != &#039;-1&#039;){
if(sort_url.indexOf(&#039;?&#039;) &gt; -1){
window.location.href= sort_url + &quot;&amp;limit=&quot; + obj.value;
}else{
window.location.href= sort_url + &quot;?limit=&quot; + obj.value;
}}}</pre>
<p>为了避免页面的重复收录，可以添加如下语句，在合适的位置</p>
<pre class="brush: php; gutter: true">&lt;link rel=&quot;canonical&quot; href=&quot;http://&lt;?php $URL=$_SERVER[&#039;HTTP_HOST&#039;] . $_SERVER[&#039;REQUEST_URI&#039;];$geturl=explode(&#039;?&#039;,$URL);echo $geturl[0]; ?&gt;&quot; /&gt;</pre>
<p>好了就这些，根据自己的需要进行修改吧，我是在默认模板下测试的，有问题给我留言啊！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/modify-the-default-sort-of-zencart-product-page-list.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zen-cart：尺码表的修改</title>
		<link>http://www.fuyahui.com/zencart-modify-size.html</link>
		<comments>http://www.fuyahui.com/zencart-modify-size.html#comments</comments>
		<pubDate>Fri, 17 Feb 2012 13:40:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[zen-cart]]></category>
		<category><![CDATA[程序研究]]></category>
		<category><![CDATA[尺码表修改]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=143</guid>
		<description><![CDATA[以前在zen-cart上提问这个问题，刚开始还以为是个插件，后来才知道这个是别人修改就可以做到，经过半天的努力，今天终于做好了，所以分享出来。其实也很简单，不过js我有点弱，所以有点吃力。
首先网站要做成像图一的效果，首先申明的是我用的是zen-cart1.3.9中文插件版（我想只要是1.3.9的都应该可以）默认模板，根据不同的模板修改不同的文件。
<img title="" src="wp-content/uploads/2012/02/201111162138127285.jpg" alt="" />

然后就开始修改了，
1：打开attributes.php（在includes/modules/classic下面），找到大概595行把zen_draw_pull_down_menu修改为
<pre class="brush: php; gutter: true">zen_draw_pull_down_menu_options</pre>
2：打开html_output.php（在includes/functions下面），找到大概533行 ，在下面添加如下一个函数
<pre class="brush: php; gutter: true">  function zen_draw_pull_down_menu_options($name, $values, $default = &#039;&#039;,
  $parameters = &#039;&#039;, $required = false) {
    $field = &#039;&#60;ul name=&#34;&#039; . zen_output_string($name) . &#039;&#34;&#039;;
    if (zen_not_null($parameters)) $field .= &#039; &#039; . $parameters;$field .= &#039;&#62;&#039; . &#34;\n&#34;;
    if (empty($default) &#38;&#38; isset($GLOBALS[$name]) &#38;&#38; is_string($GLOBALS[$name]) )
 $default = stripslashes($GLOBALS[$name]);
    for ($i=0, $n=sizeof($values); $i&#60;$n; $i++) {
 $field .= &#039; &#60;li id=&#34;attribs&#039; . zen_output_string($values[$i][&#039;id&#039;]) . &#039;&#34;
 onclick=&#34;AttribUpdate(&#039; . zen_output_string($values[$i][&#039;id&#039;]) . &#039;)&#34;&#039;;
 if ($default == $values[$i][&#039;id&#039;]) {
        $field .= &#039; selected=&#34;selected&#34;&#039;;
      }
   $field .= &#039;&#62;&#60;span id=&#34;Attrtext&#039; . zen_output_string($values[$i][&#039;id&#039;]) . &#039;&#34;&#039; =&#62;
   &#039;&#38;quot;&#039;, &#039;\&#039;&#039; =&#62; &#039;&#38;#039;&#039;, &#039;&#60;&#039; =&#62; &#039;&#38;lt;&#039;, &#039;&#62;&#039; =&#62; &#039;&#38;gt;&#039;)) . &#039;&#34;&#62;
   &#039; . zen_output_string($values[$i][&#039;text&#039;],
   array(&#039;&#34;&#039; =&#62; &#039;&#38;quot;&#039;, &#039;\&#039;&#039; =&#62; &#039;&#38;#039;&#039;, &#039;&#60;&#039; =&#62; &#039;&#38;lt;&#039;, &#039;&#62;&#039; =&#62; &#039;&#38;gt;&#039;)) . &#039;&#60;/span&#62;&#039;. &#34;\n&#34;;
    }
    $field .= &#039;&#60;/ul&#62;&#039; . &#34;\n&#34;;
    if ($required == true) $field .= TEXT_FIELD_REQUIRED;
    return $field;
  }</pre>
<pre>3：找到tpl_product_info_display.php（在includes/templates/classic/templates下面），打开以后找到129行，添加如下代码</pre>
<pre class="brush: html; gutter: true">&#60;div id=&#34;selectsize&#34;&#62;&#60;/div&#62; &#60;input type=&#34;hidden&#34;  value=&#34;0&#34; id=&#34;attrivalues&#34; name=&#34;id[1]&#34;/&#62;</pre>
<pre>4：打开stylesheet.css（在includes/templates/classic/css下面），添加如下样式，这个可以根据不同网站进行修改</pre>
<pre class="brush: css; gutter: true">.back ul li {
float: left;
line-height: 20px;
margin: 0 4px 4px 1px;
min-width: 22px;
padding: 1px;
position: relative;
vertical-align: middle;
list-style:none;}
.back ul li span {
display:block;padding:3px;}
.back ul li.selectAttr {
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
cursor: pointer;}
.back ul li.selectAttr:hover {
background-color: #FF6600;
border: 1px solid #FFA500;}
.back ul li.select {
background-color: #FFA500;
}</pre>
<pre>5：添加一个jscript_size.js文件，放到includes/templates/classic/jscript文件夹下，代码如下</pre>
<pre class="brush: javascript; gutter: true">function AttribUpdate(id)
{document.getElementById(&#039;attrivalues&#039;).value=id;
document.getElementById(&#039;selectsize&#039;).innerHTML=
&#34;&#60;div class=&#039;text&#039;&#62;Your Choice Size: &#34;+document.getElementById(&#039;Attrtext&#039;+id).className+&#34;&#60;/div&#62;&#34;;
for(i=1; i &#60;=(document.getElementById(&#039;attrib-1&#039;).getElementsByTagName(&#039;li&#039;).length); i++)
{if(i == id)document.getElementById(&#039;attribs&#039;+i).className = &#34;select&#34;;
elsedocument.getElementById(&#039;attribs&#039;+i).className = &#34;selectAttr&#34;;}}</pre>
OK.，就这样算是完成了，看下我做的效果图 图2所示
<img title="" src="wp-content/uploads/2012/02/201111162138293816.jpg" alt="" />

以上css可以根据自己网站的情况进行修改的，有什么不明白的地方给我留言啊！]]></description>
			<content:encoded><![CDATA[<p>以前在zen-cart上提问这个问题，刚开始还以为是个插件，后来才知道这个是别人修改就可以做到，经过半天的努力，今天终于做好了，所以分享出来。其实也很简单，不过js我有点弱，所以有点吃力。<br />
首先网站要做成像图一的效果，首先申明的是我用的是zen-cart1.3.9中文插件版（我想只要是1.3.9的都应该可以）默认模板，根据不同的模板修改不同的文件。<br />
<img title="" src="wp-content/uploads/2012/02/201111162138127285.jpg" alt="" /></p>
<p>然后就开始修改了，<br />
1：打开attributes.php（在includes/modules/classic下面），找到大概595行把zen_draw_pull_down_menu修改为</p>
<pre class="brush: php; gutter: true">zen_draw_pull_down_menu_options</pre>
<p>2：打开html_output.php（在includes/functions下面），找到大概533行 ，在下面添加如下一个函数</p>
<pre class="brush: php; gutter: true">  function zen_draw_pull_down_menu_options($name, $values, $default = &#039;&#039;,
  $parameters = &#039;&#039;, $required = false) {
    $field = &#039;&lt;ul name=&quot;&#039; . zen_output_string($name) . &#039;&quot;&#039;;
    if (zen_not_null($parameters)) $field .= &#039; &#039; . $parameters;$field .= &#039;&gt;&#039; . &quot;\n&quot;;
    if (empty($default) &amp;&amp; isset($GLOBALS[$name]) &amp;&amp; is_string($GLOBALS[$name]) )
 $default = stripslashes($GLOBALS[$name]);
    for ($i=0, $n=sizeof($values); $i&lt;$n; $i++) {
 $field .= &#039; &lt;li id=&quot;attribs&#039; . zen_output_string($values[$i][&#039;id&#039;]) . &#039;&quot;
 onclick=&quot;AttribUpdate(&#039; . zen_output_string($values[$i][&#039;id&#039;]) . &#039;)&quot;&#039;;
 if ($default == $values[$i][&#039;id&#039;]) {
        $field .= &#039; selected=&quot;selected&quot;&#039;;
      }
   $field .= &#039;&gt;&lt;span id=&quot;Attrtext&#039; . zen_output_string($values[$i][&#039;id&#039;]) . &#039;&quot;&#039; =&gt;
   &#039;&amp;quot;&#039;, &#039;\&#039;&#039; =&gt; &#039;&amp;#039;&#039;, &#039;&lt;&#039; =&gt; &#039;&amp;lt;&#039;, &#039;&gt;&#039; =&gt; &#039;&amp;gt;&#039;)) . &#039;&quot;&gt;
   &#039; . zen_output_string($values[$i][&#039;text&#039;],
   array(&#039;&quot;&#039; =&gt; &#039;&amp;quot;&#039;, &#039;\&#039;&#039; =&gt; &#039;&amp;#039;&#039;, &#039;&lt;&#039; =&gt; &#039;&amp;lt;&#039;, &#039;&gt;&#039; =&gt; &#039;&amp;gt;&#039;)) . &#039;&lt;/span&gt;&#039;. &quot;\n&quot;;
    }
    $field .= &#039;&lt;/ul&gt;&#039; . &quot;\n&quot;;
    if ($required == true) $field .= TEXT_FIELD_REQUIRED;
    return $field;
  }</pre>
<pre>3：找到tpl_product_info_display.php（在includes/templates/classic/templates下面），打开以后找到129行，添加如下代码</pre>
<pre class="brush: html; gutter: true">&lt;div id=&quot;selectsize&quot;&gt;&lt;/div&gt; &lt;input type=&quot;hidden&quot;  value=&quot;0&quot; id=&quot;attrivalues&quot; name=&quot;id[1]&quot;/&gt;</pre>
<pre>4：打开stylesheet.css（在includes/templates/classic/css下面），添加如下样式，这个可以根据不同网站进行修改</pre>
<pre class="brush: css; gutter: true">.back ul li {
float: left;
line-height: 20px;
margin: 0 4px 4px 1px;
min-width: 22px;
padding: 1px;
position: relative;
vertical-align: middle;
list-style:none;}
.back ul li span {
display:block;padding:3px;}
.back ul li.selectAttr {
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
cursor: pointer;}
.back ul li.selectAttr:hover {
background-color: #FF6600;
border: 1px solid #FFA500;}
.back ul li.select {
background-color: #FFA500;
}</pre>
<pre>5：添加一个jscript_size.js文件，放到includes/templates/classic/jscript文件夹下，代码如下</pre>
<pre class="brush: javascript; gutter: true">function AttribUpdate(id)
{document.getElementById(&#039;attrivalues&#039;).value=id;
document.getElementById(&#039;selectsize&#039;).innerHTML=
&quot;&lt;div class=&#039;text&#039;&gt;Your Choice Size: &quot;+document.getElementById(&#039;Attrtext&#039;+id).className+&quot;&lt;/div&gt;&quot;;
for(i=1; i &lt;=(document.getElementById(&#039;attrib-1&#039;).getElementsByTagName(&#039;li&#039;).length); i++)
{if(i == id)document.getElementById(&#039;attribs&#039;+i).className = &quot;select&quot;;
elsedocument.getElementById(&#039;attribs&#039;+i).className = &quot;selectAttr&quot;;}}</pre>
<p>OK.，就这样算是完成了，看下我做的效果图 图2所示<br />
<img title="" src="wp-content/uploads/2012/02/201111162138293816.jpg" alt="" /></p>
<p>以上css可以根据自己网站的情况进行修改的，有什么不明白的地方给我留言啊！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/zencart-modify-size.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>写给自己的，LMAP配置</title>
		<link>http://www.fuyahui.com/lamp-configuration-for-me.html</link>
		<comments>http://www.fuyahui.com/lamp-configuration-for-me.html#comments</comments>
		<pubDate>Thu, 16 Feb 2012 12:47:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[LAMP配置]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=138</guid>
		<description><![CDATA[我这篇文章是写给自己的，在本地做测试用，所以没有用过服务器，方便以后在其他电脑上安装，以此记录下来。
系统装好以后，服务器正常，PING也能PING通。但是就是SSH连不上啊，出现这种问题，最大的可能就是防火墙没有关闭，永久关闭防火墙的命令如下：
chkconfig --level 35 iptables off    这样就可以用ssh链接。用登陆到ssh以后，进行以下操作。

然后我们就先升级php到5.2,本身我安装好以后，php版本是5.1.7的
<pre>#rpm--import <a href="http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka">http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</a></pre>

[root@localhost ~]# vi /etc/yum.repos.d/CentOS-Base.repo 增加下面信息

<pre>[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</pre>

执行命令，自动升级。

<pre>[root@localhost ~]#yum update php -y
[root@localhost ~]#yum install libmcrypt -y
[root@localhost ~]#chkconfig httpd on  （设置apache服务随系统启动自启动）</pre>

接着就是安装mysql，其实也很简单，mysql没有安装，需要我们自己安装

<pre>[root@localhost ~]# yum -y install mysql-server
[root@localhost ~]# yum -y install php-mysql
[root@localhost ~]# chkconfig mysqld on（设置mysql服务随系统启动自启动）
[root@localhost ~]# chkconfig --list mysqld　 （确认mysql自启动）
service mysqld restart    （启动mysql）</pre>
以下是修改mysql的root密码
<pre>mysql -u root （用root用户登录mysql服务器）
mysql&#62;update mysql.user set password=password("密码") where user='root';</pre>

最后安装phpmyadmin
安装phpmyadmin很简单，上传到/var/www/html 目录下就可以了

修改http.conf文件 支持伪静态
<pre>AllowOverride None改为AllowOverride All</pre>]]></description>
			<content:encoded><![CDATA[<p>我这篇文章是写给自己的，在本地做测试用，所以没有用过服务器，方便以后在其他电脑上安装，以此记录下来。<br />
系统装好以后，服务器正常，PING也能PING通。但是就是SSH连不上啊，出现这种问题，最大的可能就是防火墙没有关闭，永久关闭防火墙的命令如下：<br />
chkconfig &#8211;level 35 iptables off    这样就可以用ssh链接。用登陆到ssh以后，进行以下操作。</p>
<p>然后我们就先升级php到5.2,本身我安装好以后，php版本是5.1.7的</p>
<pre>#rpm--import <a href="http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka">http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</a></pre>
<p>[root@localhost ~]# vi /etc/yum.repos.d/CentOS-Base.repo 增加下面信息</p>
<pre>[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</pre>
<p>执行命令，自动升级。</p>
<pre>[root@localhost ~]#yum update php -y
[root@localhost ~]#yum install libmcrypt -y
[root@localhost ~]#chkconfig httpd on  （设置apache服务随系统启动自启动）</pre>
<p>接着就是安装mysql，其实也很简单，mysql没有安装，需要我们自己安装</p>
<pre>[root@localhost ~]# yum -y install mysql-server
[root@localhost ~]# yum -y install php-mysql
[root@localhost ~]# chkconfig mysqld on（设置mysql服务随系统启动自启动）
[root@localhost ~]# chkconfig --list mysqld　 （确认mysql自启动）
service mysqld restart    （启动mysql）</pre>
<p>以下是修改mysql的root密码</p>
<pre>mysql -u root （用root用户登录mysql服务器）
mysql&gt;update mysql.user set password=password("密码") where user='root';</pre>
<p>最后安装phpmyadmin<br />
安装phpmyadmin很简单，上传到/var/www/html 目录下就可以了</p>
<p>修改http.conf文件 支持伪静态</p>
<pre>AllowOverride None改为AllowOverride All</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/lamp-configuration-for-me.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>一些Linux系统信息查看命令</title>
		<link>http://www.fuyahui.com/linux-view-command.html</link>
		<comments>http://www.fuyahui.com/linux-view-command.html#comments</comments>
		<pubDate>Thu, 16 Feb 2012 12:42:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[他山之石]]></category>
		<category><![CDATA[linux常用命令]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=136</guid>
		<description><![CDATA[系统
# uname -a               # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue   # 查看操作系统版本
# cat /proc/cpuinfo      # 查看CPU信息
# hostname               # 查看计算机名
# lspci -tv              # 列出所有PCI设备
# lsusb -tv              # 列出所有USB设备
# lsmod                  # 列出加载的内核模块
# env                    # 查看环境变量资源
# free -m                # 查看内存使用量和交换区使用量
# df -h                  # 查看各分区使用情况
# du -sh &#60;目录名&#62;        # 查看指定目录的大小
# grep MemTotal /proc/meminfo   # 查看内存总量
# grep MemFree /proc/meminfo    # 查看空闲内存量
# uptime                 # 查看系统运行时间、用户数、负载
# cat /proc/loadavg      # 查看系统负载磁盘和分区
# mount &#124; column -t      # 查看挂接的分区状态
# fdisk -l               # 查看所有分区
# swapon -s              # 查看所有交换分区
# hdparm -i /dev/hda     # 查看磁盘参数(仅适用于IDE设备)
# dmesg &#124; grep IDE       # 查看启动时IDE设备检测状况网络
# ifconfig               # 查看所有网络接口的属性
# iptables -L            # 查看防火墙设置
# route -n               # 查看路由表
# netstat -lntp          # 查看所有监听端口
# netstat -antp          # 查看所有已经建立的连接
# netstat -s             # 查看网络统计信息进程
# ps -ef                 # 查看所有进程
# top                    # 实时显示进程状态用户
# w                      # 查看活动用户
# id &#60;用户名&#62;            # 查看指定用户信息
# last                   # 查看用户登录日志
# cut -d: -f1 /etc/passwd   # 查看系统所有用户
# cut -d: -f1 /etc/group    # 查看系统所有组
# crontab -l             # 查看当前用户的计划任务服务
# chkconfig --list       # 列出所有系统服务
# chkconfig --list &#124; grep on    # 列出所有启动的系统服务程序
# rpm -qa                # 查看所有安装的软件包]]></description>
			<content:encoded><![CDATA[<p>系统<br />
# uname -a               # 查看内核/操作系统/CPU信息<br />
# head -n 1 /etc/issue   # 查看操作系统版本<br />
# cat /proc/cpuinfo      # 查看CPU信息<br />
# hostname               # 查看计算机名<br />
# lspci -tv              # 列出所有PCI设备<br />
# lsusb -tv              # 列出所有USB设备<br />
# lsmod                  # 列出加载的内核模块<br />
# env                    # 查看环境变量资源<br />
# free -m                # 查看内存使用量和交换区使用量<br />
# df -h                  # 查看各分区使用情况<br />
# du -sh &lt;目录名&gt;        # 查看指定目录的大小<br />
# grep MemTotal /proc/meminfo   # 查看内存总量<br />
# grep MemFree /proc/meminfo    # 查看空闲内存量<br />
# uptime                 # 查看系统运行时间、用户数、负载<br />
# cat /proc/loadavg      # 查看系统负载磁盘和分区<br />
# mount | column -t      # 查看挂接的分区状态<br />
# fdisk -l               # 查看所有分区<br />
# swapon -s              # 查看所有交换分区<br />
# hdparm -i /dev/hda     # 查看磁盘参数(仅适用于IDE设备)<br />
# dmesg | grep IDE       # 查看启动时IDE设备检测状况网络<br />
# ifconfig               # 查看所有网络接口的属性<br />
# iptables -L            # 查看防火墙设置<br />
# route -n               # 查看路由表<br />
# netstat -lntp          # 查看所有监听端口<br />
# netstat -antp          # 查看所有已经建立的连接<br />
# netstat -s             # 查看网络统计信息进程<br />
# ps -ef                 # 查看所有进程<br />
# top                    # 实时显示进程状态用户<br />
# w                      # 查看活动用户<br />
# id &lt;用户名&gt;            # 查看指定用户信息<br />
# last                   # 查看用户登录日志<br />
# cut -d: -f1 /etc/passwd   # 查看系统所有用户<br />
# cut -d: -f1 /etc/group    # 查看系统所有组<br />
# crontab -l             # 查看当前用户的计划任务服务<br />
# chkconfig &#8211;list       # 列出所有系统服务<br />
# chkconfig &#8211;list | grep on    # 列出所有启动的系统服务程序<br />
# rpm -qa                # 查看所有安装的软件包</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/linux-view-command.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Win08下无法启动apache</title>
		<link>http://www.fuyahui.com/win08-server-apache2-not-start.html</link>
		<comments>http://www.fuyahui.com/win08-server-apache2-not-start.html#comments</comments>
		<pubDate>Thu, 16 Feb 2012 12:37:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[win08]]></category>

		<guid isPermaLink="false">http://www.fuyahui.com/?p=134</guid>
		<description><![CDATA[我是在win08系统上配置了apache+mysql+linux+php。最近公司有个网站要搞站内支付，要用到https协议，所以我就按照https服务商提供的方法配置https，刚开始的时候我安装apache的时候，没有安装带https的apache。然后我又下载了一个带https的apache安装了一下，也安装服务商提供的配置方法配置好了，当启动apache的时候，发现启动不了。查看错误日志如下

(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
说明是与0.0.0.0:443端口绑定时出现问题，也就是配置https的时候有问题。
根据网上提供的说法，看看哪个程序占用了443端口。方法如下

1、运行cmd，然后输入netstat -ano，回车；
2、查看开头几行包含0.0.0.0:443的那一行最后的pid，为几个数字，把这几个数字记下来；
3、启动“任务管理器”——“进程”，在“工具栏”——“选择列”前面的框里打上勾；
4、然后找到与刚才那个pid对应的是哪个程序，很容易就会找到，就是它与0.0.0.0:443进行了绑定（bind）；
在我的服务器上发现是是serv-u占用了443端口，然后我卸载了，发现又出现其他问题了，

错误如下
[notice] Disabled use of AcceptEx() WinSock2 API

然后按照网上说的重置winsock
运行 netsh winsock reset ，然后重启Apache。

然后发现可以了，但是还是有一点错误提示，网站运行正常我也就没管了
错误提示如下
指定的网络名不再可用。  : winnt_accept: Asynchronous AcceptEx failed.

然后我把serv-u再安装下也没问题了。
有时间再解决下，写的过于简单，因为当时出现的错误也忘记了记录，大致过程就是这样的。]]></description>
			<content:encoded><![CDATA[<p>我是在win08系统上配置了apache+mysql+linux+php。最近公司有个网站要搞站内支付，要用到https协议，所以我就按照https服务商提供的方法配置https，刚开始的时候我安装apache的时候，没有安装带https的apache。然后我又下载了一个带https的apache安装了一下，也安装服务商提供的配置方法配置好了，当启动apache的时候，发现启动不了。查看错误日志如下</p>
<p>(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : make_sock: could not bind to address 0.0.0.0:443<br />
no listening sockets available, shutting down<br />
Unable to open logs<br />
说明是与0.0.0.0:443端口绑定时出现问题，也就是配置https的时候有问题。<br />
根据网上提供的说法，看看哪个程序占用了443端口。方法如下</p>
<p>1、运行cmd，然后输入netstat -ano，回车；<br />
2、查看开头几行包含0.0.0.0:443的那一行最后的pid，为几个数字，把这几个数字记下来；<br />
3、启动“任务管理器”——“进程”，在“工具栏”——“选择列”前面的框里打上勾；<br />
4、然后找到与刚才那个pid对应的是哪个程序，很容易就会找到，就是它与0.0.0.0:443进行了绑定（bind）；<br />
在我的服务器上发现是是serv-u占用了443端口，然后我卸载了，发现又出现其他问题了，</p>
<p>错误如下<br />
[notice] Disabled use of AcceptEx() WinSock2 API</p>
<p>然后按照网上说的重置winsock<br />
运行 netsh winsock reset ，然后重启Apache。</p>
<p>然后发现可以了，但是还是有一点错误提示，网站运行正常我也就没管了<br />
错误提示如下<br />
指定的网络名不再可用。  : winnt_accept: Asynchronous AcceptEx failed.</p>
<p>然后我把serv-u再安装下也没问题了。<br />
有时间再解决下，写的过于简单，因为当时出现的错误也忘记了记录，大致过程就是这样的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fuyahui.com/win08-server-apache2-not-start.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

