<?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; ECSHOP</title>
	<atom:link href="http://www.iphpmysql.cn/category/ecshop/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iphpmysql.cn</link>
	<description>存着IT的理性,掺杂文学的浪漫…</description>
	<lastBuildDate>Fri, 06 Jan 2012 00:44:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ecshop购物车退出不清空</title>
		<link>http://www.iphpmysql.cn/ecshop%e8%b4%ad%e7%89%a9%e8%bd%a6%e9%80%80%e5%87%ba%e4%b8%8d%e6%b8%85%e7%a9%ba.html</link>
		<comments>http://www.iphpmysql.cn/ecshop%e8%b4%ad%e7%89%a9%e8%bd%a6%e9%80%80%e5%87%ba%e4%b8%8d%e6%b8%85%e7%a9%ba.html#comments</comments>
		<pubDate>Tue, 20 Dec 2011 04:46:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=864</guid>
		<description><![CDATA[Ecshop购物车机制是用户打开网站,就会在session表插入一条session,登录时候更新这条session. 。此时如果用户将商品添加至购物车，就会在cart表中添加以session_id为Id的商品数据。而用户退出登录时系统会调用destroy_session()函数，清购物车。 在includes/cls_session.php文件中: function destroy_session() {   .此处省略部分代码 /*退出清购物车。*/ $this-&#62;db-&#62;query(&#8216;DELETE FROM &#8216; . $GLOBALS['ecs']-&#62;table(&#8216;cart&#8217;) . ” WHERE session_id = &#8216;$this-&#62;session_id&#8217;“ ); 此处省略部分代码 ｝ 所以此时退出购物车就被清空了，下面是本人的解决方法： 说说思路： /*登陆时，将当前user_id写进cart表中的user_id字段,清购物车时只清use_id为空的相关数据*/ /* 当下次登陆时,将session表中上次user_id下的session_id修改为当前登陆的session_id*/ /* 这样就实现了购物车在退出的情况下,永久保留登陆用户购买的产品.*/ /*因为只要用户不删除，都会留在购物车中，但商品过一段时间会售完，此时再留在购物车中就没有意义了，所以检查如果商品己下架，则从购物车中删除。此检查可能过于频烦，你可以设定检查时间间隔（此功能些处没有添加）*/ 具体实现代码： 1.cls_session.php function destroy_session() {   .此处省略部分代码 /*退出不清购物车：清购物车时只清use_id为空的数据*/ $this-&#62;db-&#62;query(&#8216;DELETE FROM &#8216; . $GLOBALS['ecs']-&#62;table(&#8216;cart&#8217;) . ” WHERE session_id = &#8216;$this-&#62;session_id&#8217; AND user_id =””); 此处省略部分代码｝ 2.lib.main.php /** * 更新用户SESSION,COOKIE及登录时间、登录次数。 [...]]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop%e8%b4%ad%e7%89%a9%e8%bd%a6%e9%80%80%e5%87%ba%e4%b8%8d%e6%b8%85%e7%a9%ba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecshop添加商品分类后,前台可见,后台不可见</title>
		<link>http://www.iphpmysql.cn/ecshop%e6%b7%bb%e5%8a%a0%e5%95%86%e5%93%81%e5%88%86%e7%b1%bb%e5%90%8e%e5%89%8d%e5%8f%b0%e5%8f%af%e8%a7%81%e5%90%8e%e5%8f%b0%e4%b8%8d%e5%8f%af%e8%a7%81.html</link>
		<comments>http://www.iphpmysql.cn/ecshop%e6%b7%bb%e5%8a%a0%e5%95%86%e5%93%81%e5%88%86%e7%b1%bb%e5%90%8e%e5%89%8d%e5%8f%b0%e5%8f%af%e8%a7%81%e5%90%8e%e5%8f%b0%e4%b8%8d%e5%8f%af%e8%a7%81.html#comments</comments>
		<pubDate>Wed, 12 Oct 2011 05:34:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=848</guid>
		<description><![CDATA[temp\static_caches将这个目录下面的文件删除就可以了，注意只删除里面的文件，不能删除目录。]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop%e6%b7%bb%e5%8a%a0%e5%95%86%e5%93%81%e5%88%86%e7%b1%bb%e5%90%8e%e5%89%8d%e5%8f%b0%e5%8f%af%e8%a7%81%e5%90%8e%e5%8f%b0%e4%b8%8d%e5%8f%af%e8%a7%81.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecshop相关文件夹权限设置</title>
		<link>http://www.iphpmysql.cn/ecshop%e7%9b%b8%e5%85%b3%e6%96%87%e4%bb%b6%e5%a4%b9%e6%9d%83%e9%99%90%e8%ae%be%e7%bd%ae.html</link>
		<comments>http://www.iphpmysql.cn/ecshop%e7%9b%b8%e5%85%b3%e6%96%87%e4%bb%b6%e5%a4%b9%e6%9d%83%e9%99%90%e8%ae%be%e7%bd%ae.html#comments</comments>
		<pubDate>Thu, 06 Oct 2011 04:45:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=834</guid>
		<description><![CDATA[再次记录一下本人所遇到的需要设置的几个文件夹及其权限： temp：来宾账户写入(首页报错)   后台设置模板：theme user写入     文本写入更新:admin文件夹 user写入 data目录下面的：flashdata文件夹user写入  flash_data.xml  user写入。]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop%e7%9b%b8%e5%85%b3%e6%96%87%e4%bb%b6%e5%a4%b9%e6%9d%83%e9%99%90%e8%ae%be%e7%bd%ae.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecshop会员自动分配</title>
		<link>http://www.iphpmysql.cn/ecshop%e4%bc%9a%e5%91%98%e8%87%aa%e5%8a%a8%e5%88%86%e9%85%8d.html</link>
		<comments>http://www.iphpmysql.cn/ecshop%e4%bc%9a%e5%91%98%e8%87%aa%e5%8a%a8%e5%88%86%e9%85%8d.html#comments</comments>
		<pubDate>Sat, 30 Jul 2011 08:50:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=825</guid>
		<description><![CDATA[admin_user表： 字段: user_id, user_name,isok,user_reg_time(最初的几个销售员，设置的初始时间为其添加为管理员的时间,后续新的为设置为销售员的时间) ecs_admin_user: 增加user_reg_time字段, 最初的几个销售员,设置的初始时间为其添加为管理员的时间,后续新的为设置为销售员的时间 还有isok字段，用于销售员认领的开关 admin/privilege.php: /* 获取添加日期,借助此时间作为user_reg_time字段的初始值 add by zzl 2011-07-16 */ $user_reg_time = gmtime(); $sql = "UPDATE " .$ecs-&#62;table('admin_user'). " SET user_reg_time = '$user_reg_time' ". "WHERE user_id = '$_GET[id]'"; $db-&#62;query($sql); admin/templates/user_assign.htm: &#60;th&#62;{$lang.is_ok}&#60;/th&#62; &#60;td align="center"&#62;&#60;img src="images/{if $alist.isok}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_isok', {$alist.user_id})" /&#62;&#60;/td&#62; admin/user_assign.php增加: elseif ($_REQUEST['act'] == 'toggle_isok') { //check_authz_json('user_rank'); $user_id=intval($_POST['id']); $isok=intval($_POST['val']); if [...]]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop%e4%bc%9a%e5%91%98%e8%87%aa%e5%8a%a8%e5%88%86%e9%85%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>要注意mysql的保留字！</title>
		<link>http://www.iphpmysql.cn/mysqlbaoliuzi.html</link>
		<comments>http://www.iphpmysql.cn/mysqlbaoliuzi.html#comments</comments>
		<pubDate>Wed, 01 Jun 2011 01:23:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=807</guid>
		<description><![CDATA[最近在写一个ecshop注册会员来源统计的时候,其中关键词我用到了key,结果怎么也在数据库里面插入不了.弄了好些天,我一直觉得是程序哪里出错了,最终发现是字段用到了mysql 数据库的保留字key.我字段名也用的是这个key.汗啊.看了mysql数据库字段名设置不当造成的麻烦真的是非常吐血 。 查看了一些资料,要解决这个问题实际上也可以用Tab键上面的~(撇)这个括起来。但是还是不要用保留字来做字段的好。记住这个教训。]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/mysqlbaoliuzi.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ecshop后台已登陆ID变量</title>
		<link>http://www.iphpmysql.cn/ecshop%e5%90%8e%e5%8f%b0%e5%b7%b2%e7%99%bb%e9%99%86id%e5%8f%98%e9%87%8f.html</link>
		<comments>http://www.iphpmysql.cn/ecshop%e5%90%8e%e5%8f%b0%e5%b7%b2%e7%99%bb%e9%99%86id%e5%8f%98%e9%87%8f.html#comments</comments>
		<pubDate>Sat, 28 May 2011 07:48:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=801</guid>
		<description><![CDATA[备注一下: $_SESSION['admin_id'] 登录的管理员id $_SESSION['admin_name'] 登录的管理员用户名]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop%e5%90%8e%e5%8f%b0%e5%b7%b2%e7%99%bb%e9%99%86id%e5%8f%98%e9%87%8f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ecshop QQ客服后台自定义昵称</title>
		<link>http://www.iphpmysql.cn/ecshop-qqnickname.html</link>
		<comments>http://www.iphpmysql.cn/ecshop-qqnickname.html#comments</comments>
		<pubDate>Tue, 10 May 2011 05:04:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=794</guid>
		<description><![CDATA[Ecshop在模板page_footer.lbi默认输出的是QQ号码,下面就说明一下如何在QQ图标后面填写上自定义的名称. 首先在shop_config表中添加一条记录,参考qq这条记录。在languages/zh_cn/admin/shop_config.php里面添加: $_LANG['cfg_name']['qq_nickname'] = &#8216;QQ昵称&#8217;;在includes/lib_main.php里面添加:    $smarty-&#62;assign(&#8216;qq_nickname&#8217;,            explode(&#8216;,&#8217;, $GLOBALS['_CFG']['qq_nickname'])); 模板里面相应位置: &#60;!&#8211; QQ 号码 {foreach from=$qq item=im name=foo} &#8211;&#62; &#60;!&#8211; {if $im} &#8211;&#62; &#60;a href=”http://wpa.qq.com/msgrd?V=1&#38;Uin={$im}&#38;Site={$shop_name}&#38;Menu=yes” target=”_blank”&#62;&#60;img src=”http://wpa.qq.com/pa?p=1:{$im}:4&#8243; height=”16&#8243; border=”0&#8243; alt=”QQ” /&#62; &#60;!&#8211; QQ 昵称 {foreach from=$qq_nickname item=imname name=foo1} &#8211;&#62;{if $smarty.foreach.foo.index == $smarty.foreach.foo1.index}{$imname}{/if}&#60;!&#8211; {/foreach} 结束QQ昵称 &#8211;&#62; &#60;/a&#62; &#60;!&#8211; {/if} &#8211;&#62; &#60;!&#8211; {/foreach} 结束QQ号码 &#8211;&#62; 以上是主要是在模板里面进行判断,关键就是{if $smarty.foreach.foo.index == $smarty.foreach.foo1.index}{$imname}{/if} [...]]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop-qqnickname.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ecshop分类下的商品设置显示子分类</title>
		<link>http://www.iphpmysql.cn/ecshop-cat-goods.html</link>
		<comments>http://www.iphpmysql.cn/ecshop-cat-goods.html#comments</comments>
		<pubDate>Fri, 29 Apr 2011 08:15:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=791</guid>
		<description><![CDATA[1: ECSHOP 商品相关函数库includes/lib_goods.php中获得指定分类下的商品assign_cat_goods函数中添加: function assign_cat_goods($cat_id, $num = 0, $from = &#8216;web&#8217;, $order_rule = ”) $cat['child_index_list'] =$GLOBALS['db'] -&#62; getAll(“select cat_id,cat_name from “. $GLOBALS['ecs']-&#62;table(&#8216;category&#8217;) . ” WHERE parent_id = &#8216;$cat_id&#8217;”); 2:在ecshop模板的cat_goods.lbi中增加以下代码。 {$child.cat_name&#124;escape:html}{if $smarty.foreach.childname1.last} {else}-{/if}]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop-cat-goods.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ecshop后台商店设置增加文本域</title>
		<link>http://www.iphpmysql.cn/ecshop-shopconfig.html</link>
		<comments>http://www.iphpmysql.cn/ecshop-shopconfig.html#comments</comments>
		<pubDate>Thu, 28 Apr 2011 03:42:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=789</guid>
		<description><![CDATA[譬如说想在goods.php商品页面增加一个进货说明之类的一段文字信息,偷懒的方法可以在goods.dwt这个模板文件直接写死。但是对于不懂程序的人来说，不利于编辑。实际上这快可以在后台商店设置里面进行添加一个编辑区域进行实现。 在管理中心商店设置语言文件languages/zh_cn/admin/shop_config.php添加： $_LANG['cfg_name']['goods_notice'] = &#8216;进货说明&#8217;;（主要用于后台显示加载） 在前台语言文件languages/zh_cn/common.php添加: $_LANG['goods_notce'] = &#8216;进货说明&#8217;; （主要用于前台显示） 另外还需要在数据表shop_config中添加一个字段： goods_notice 其中type可以参考shop_notice设置,value的值就是文本框内显示的内容,也就是我们要在页面上显示的内容。]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop-shopconfig.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ecshop后台左侧菜单修改及相关文件说明</title>
		<link>http://www.iphpmysql.cn/ecshop.html</link>
		<comments>http://www.iphpmysql.cn/ecshop.html#comments</comments>
		<pubDate>Mon, 25 Apr 2011 05:51:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ECSHOP]]></category>

		<guid isPermaLink="false">http://www.iphpmysql.cn/?p=786</guid>
		<description><![CDATA[       根据文件的入口找到admin/index.php,里面的$_REQUEST[‘act’]==’menu’指定了$menu的结构赋值。并且从代码中也可以看出调用了两个php文件,一个是目录结构,一个是权限结构. 目录结构为admin/includes/inc_menu.php,里面主要放置了目录的唯一标识和连接地址。 权限判断文件为admin/includes/inc_priv.php里面放置了权限对照表. 系统语言文件,从 languages中的各个语言包的admin/common.php和admin/priv_action.php中可以找到对应菜单的名称 以上三个信息在index.php中进行处理后就形成了$menu。menu中指定了模板文件为admin/template/menu.htm，在里面可以看到目录的调用是通过$menus的二级分类实现的。 最后还要进行一次数据库的操作：在表ec_admin_action中需要根据你之前填写的信息加入一笔权限数据，目的是在添加角色时候可以控制角色对应的操作权限，如果没有权限限制就不需要进行该操作。 新建栏目权限数组数组元素和admin/includes/inc_menu.php页面的数组相同，对应的值自定义 并将自定义的该值添加的表ecs_admin_action表中 首先在表中新建你的一级栏目parent_id 为0 action_code 为数组元素的名字 然后添加二级栏目的 信息 parent_id为你的一级菜单的action_id action_code 为打开admin/includes/inc_priv.php文件中 自定义的值 好了，就样你就添加的一个后台管理栏目，并可在新建管理后进行权限管理.]]></description>
		<wfw:commentRss>http://www.iphpmysql.cn/ecshop.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

