webstermobile
Fork me on GitHub
个人博客
摘要: 1 举例如首页调用方法: 2 1、先打开index.php文件找到以下代码: 3 $smarty->assign('new_articles', index_get_new_articles()); // 最新文章 4 在它下面增加以下: 5 //调用方法 6 $smarty->assign('c... 阅读全文
posted @ 2015-01-15 12:29 wpindesign 阅读(282) 评论(0) 推荐(0) 编辑
摘要: ecshop的includes下面的lib开头相关函数文件1.lib_article.php (文章及文章分类相关函数库)function get_cat_articles($cat_id, $page = 1, $size = 20 ,$requirement='') 获得文章分类下的文章列表fu... 阅读全文
posted @ 2015-01-15 12:20 wpindesign 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 首先在后台,模版管理->设置模版里面,添加分类下的商品,包括区域,内容,显示;在模版里面找到 1 2 02 3 03 4 04 5 05 6 06 {$goods_cat.name|escape:html} 7 07 8 08 ... 阅读全文
posted @ 2015-01-15 12:18 wpindesign 阅读(472) 评论(0) 推荐(0) 编辑
摘要: ECshop中验证码的调用验证码的验证if (empty($_POST['captcha'])) { show_message($_LANG['order']['captcha_empty']); } include_once('includes/cls_captch... 阅读全文
posted @ 2015-01-15 12:14 wpindesign 阅读(1442) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-01-15 12:09 wpindesign 阅读(2) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-01-13 20:59 wpindesign 阅读(4) 评论(0) 推荐(0) 编辑
摘要: cshop中的ajax非常好用,当自己第一次使用的时候,也非常吃力。当自己用多了的时候,却感觉十分简单,也特别方便。 首先,建立dwt.里面写个form进去,加个form提交时间的按扭 其次,在js中增加函数 function sub_zixun(){ var frm = document.form... 阅读全文
posted @ 2014-04-15 16:24 wpindesign 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 例如,我要修改页面底部的帮助部分,要求是 每一类帮助使用不同的样式。本篇教程只是起到一个敲门砖的作用,其他细节还需要自己发挥。 {$help_cat.cat_name} ... 阅读全文
posted @ 2014-04-15 16:13 wpindesign 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 在goods.php里面加了$smarty->assign('hot_goods', get_recommend_goods('hot')); // 获取热销商品。在goods.dwt加入了如下代码, {$hotgoods.short_style_name} ... 阅读全文
posted @ 2014-04-15 15:41 wpindesign 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 打开goods.php在$smarty->assign('goods', $goods);后面添加$smarty->assign('brand_list', get_brands()); 阅读全文
posted @ 2014-04-14 15:11 wpindesign 阅读(335) 评论(0) 推荐(0) 编辑