ecshop的一些东西,来看看
\includes\lib_commom.php =>公用函数库
\includes\lib_main.php =>前台公用函数库
\includes\lib_init.php =>初始化,供/index.php调用
\includes\lib_insert.php =>动态内容函数库 模板{insert name='ads' id=$ads_id num=$ads_num} 所调用的函数即是 function insert_ads
\includes\cls_template.php =>含有格式化函数 模板{$goods.name|escape:html}
\includes\inc_constant.php=>常量定义
【foreach的使用方法】
1:foreach使用规则,他有以下几个参数 from ,item name iteration index
2:如何使用foreach循环
如果php要传递一个数组(如:$array)给ecshop的smarty模板.那么我们将通过from=$array 来接受,写法是{foreach from = $array item = item}
3:
ecshop中smarty的下标如何表示,请看下面的例子:
{foreach from = $array item = item name=name}
{$smarty.foreach.name.iteration}
{/foreach}
这里的iteration就是从1开始的下标,
如果要从0开始的下标,应该使用{$smarty.foreach.name.index}
4:如何判断是否是foreach循环的开始和结束,最后一个元素.
{if $smarty.foreach.last}表示循环的最后一个元素.{if $smarty.freach.first}表示循环的开始.
5:如何使用双重循环.
举例如下:
{foreach from = $test item =item}
{foreach from=$item.children item=child}
{$child.name}
{/foreach}
{/foreach}
6:from传参形式
模板:<!-- {foreach name=nav_middle_list from=$navigator_list.middle item=nav} -->
smarty:$smarty->assign('navigator_list', get_navigator($ctype, $catlist));
模板里引用的from值[middle]就是参数
【smarty->display函数的用法】
根据id显示不同页面:
http://127.0.0.13/article_cat.php?id=6
http://127.0.0.13/article_cat.php?id=7
if($cat_id==6){
$smarty->display('article_cat_xgzn.dwt', $cache_id);
}elseif($cat_id==7){
$smarty->display('article_cat_boke.dwt', $cache_id);
}else{
$smarty->display('article_cat.dwt', $cache_id);
}
【小技巧】
转换UNIX时间戳: $goods[$idx]['sj_date'] = date($GLOBALS['_CFG']['date_format'], $row['sj_date']);
文本格式化:{$cat_goods.name|escape:html}
字符串截取:{$brand.brand_desc|truncate:11}、{$article.short_title|truncate:15:"...":true}
处理换行:{$title|nl2br}将php中的换行符变成HTML中的<br>
过滤HTML标签:{$title|strip_tags}
goods.dwt大图:{$pictures.0.img_url}
【后台模板二次开发】
1.增加商品属性:
a.向数据表(*_goods)添加字段(sj_date)。
b.向模板(admin/templates/goods_info.htm)添加
c.向后台提交数据处理函数添加字段进行入库(admin/goods.php)。
d.前台显示函数进行处理(includes\lib_goods.php)。
2.设置后台模板[商品分类页模板]增加新品上架:
a.向数据表(*_template)新增记录
b.向/admin/includes/lib_template.php添加新增的库 (3代表可编辑数量)
3.在模板中多维数组的遍历:
a.数组原型:print_r打印
b.模板foreach遍历
留言板二次开发:
完成功能:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAh4AAAIjCAIAAADDRYVuAAAdZUlEQVR4nO3dTYwk533Y4T74FiG6BAh1iCLEMqJbB+gkPsXUIYAF6UAEKEA+qJEAsmMEvtZBBwcwxBhCG4hosQzYCRwY4Aq2KAbRVGIJ5tKSYjGUKFgasqSmJGuXskxRFCl+ancFOuZGbw49PVNdXdUfs/+u7p15HgzInp7+qKqZrl+/b9XMDj73uc+llFJKLrjggguX/MITv/7r3xkMDvXjY3+bUnqhfH7x+ufLF1JKf/ux9Tee3TKl41e7Hvz4Y2uW4b7yrbSRwWY3A7j4fvSrv7rvfuwqLc+XL6R0fPOkLtuo9+a+8q2U3irvay7bx44byyAtACee/8AH9t2P3aTlvvKt9MLN+04Cc4ejlo3SciDjUBdccMGFvV+o3v3uffdjN2lZuHEvaUkApJRSuv6Od+y7H+vSspWODm1naUJsE9ICcOL6Pffsux89pKWXw/gHMg51wQUXXNj7hernf37f/dj6w4QYwEH7wfvfv/dUBKVl1Y23tnA6gLQAbONHH/7w3lOxbUI60/Kx47SUge5Ry2YfzhBzwQUXXNj2whO/9mt7T8hO03KnHw7jA2zrzSef/Kuf+7m9V2R3adl6QqxxtEZaAM7huXvv3XtFdpyWF27et8kz3nfzhfa0mBBzwQUXXNjuwo8/8pG9V+Rw09L14TA+wApvPvnk937hF/YeEmkBuFBe+a3f2ntIutKyLWkBOAj/99q17//iL+69JTtLyzakBSDKzc98Zu8tudO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9z+EAXDqN/fDFTMu+FwHgEpEWAIJtnpaqyEajvNz1ArU+cVZUi9eV+Wjpum7SAtCnTdNS5qMuW+zjz6Wqiny0VLUy3zx00gLQp03SUuaj0SjLsmZFqmLpqp0p81FWlEV2rr5JC0Cf1qalzGv77dnYJS9PxjC9TI+VeevzbDMlJi0AfdrqMH5jVqyXAcvJdNgdHW2RFoA+rUvLQk0ao4eqPj+10xFMS0ekBeBQbTZqWXEQv7ejLSuXY3XYpAWgTxun5Wzn3fykh7QYtQDcRe6KUUtbRqQF4FDdDaOW1ueQFoBDdReMWtojIi0Ah+oco5bmV3acltNnWNm3lUfypQWgT/48JQDBpAWAYNICQDBpASCYtAAQTFoACCYtAASTFgCCSQsAwaQFgGDSAkAwaQEgmLQAEExaAAgmLQAEkxYAgkkLAMGkBYBg0gJAMGkBIJi0ABBMWgAIJi0ABJMWAIJJCwDBpAWAYNICQDBpASCYtAAQTFoACCYtAASTFgCCLe91/z+I0+nOzKoZ5wAAAABJRU5ErkJggg==" alt="" />
1.\includes\inc_constant.php line:129 添加 define('M_SELL', 7); // 出售
2.\languages\zh_cn\common.php line:634 添加 $_LANG['message_type'][M_SELL] = '出售';
3.\languages\zh_cn\admin\user_msg.php line:35 修改 $_LANG['type'] = array('留言','投诉','询问','售后','求购','商家留言','评论','出售');//注意下标
4.向数据表(*_feedback
)添加字段
5./message.php line:72 $message数组中接收页面传递的数据
6./includes/lib_clips.php line:197 $sql中添加向数据库插入字段
7.后台查看显示 更改模板msg_info.htm
ecshop的一些东西,来看看的更多相关文章
- Ecshop 学习之路一 2016年6月30日
以前下载ecshop 都是在ecshop官网上下载,前后台模板都很难看.功能也不太齐全,这次在模板堂下载了ecshop 模板 仿小米的.做一个简单的电商网站. 页面结构还是挺简单的.功能也齐全.用ec ...
- ectouch第十讲 之ecshop中 dwt, lbi 文件详解
原文:http://www.yunmoban.cn/article-241.html Ecshop包括的文件夹有admin.api.cert.data.images.includes.js. lang ...
- ecshop第一讲之安装
今天开始对Ectouch做一些研究,但是发现网上资源很少,而且官网对服务都需收费:并且提供的wiki.官方文档等都是空的,瞬间感觉,,,,后来开始海量搜索,最后发现只有论坛还有些东西可以看看,并对海量 ...
- 【PHP开源产品】Ecshop的商品筛选功能实现分析之一
一.首先,说明一下为什么要对category.php文件进行分析. 原因如下: ①个人对商城类商品筛选功能的实现比较好奇: ②对商城中关于商品的数据表设计比较感兴趣.(该功能涉及到与数据库的交互,而且 ...
- 我的ECshop二次开发从零开始
我是一个EC新手,EC就算做再多的模板,肯定也满足不了我们的需要,更何况各行有各行的门道,EC统一做出来的模板也不一定合适于我们这个行业用,因此,只有我们真正掌握了自己做模板,修改模板的功夫,才能真正 ...
- ECshop 二次开发模板教程3
<p>商品列表</p> <table width="70%" border="1"> <tr> <td&g ...
- ECshop 二次开发模板教程2
不知道大家是学会用循环了呢,还是我的言语实在有问题,大家实在无法完成阅读哦,居然大家都没有问题,暂时心里安慰,把他当做好事情,大家都会调用了,呵呵,那我们继续循环调用商品了!好,继续在我们昨天的基础上 ...
- ECshop 二次开发模板教程1
本教程适用于了解 ECshop 和 ECshop模板DIY 以及它们的日常使用,在查看前阁下需要至少会使用一种编辑器(exp:Dreamweaver, editplus, emacs, vi, ee ...
- ECSHOP v2.5数据库字典
ECSHOP v2.5 数据库字典 ECSHOP R&D Team 2007年4月16日 商品相关表 商品分类表 category 此表用来维护商品分类信息 字段名 字段描述 字段类型 默认值 ...
随机推荐
- datatable 分组
public static void PrintPersons() { //准备数据 DataTable dt = new DataTable(); dt.Columns.Add(new DataCo ...
- MySQL5
MySQL数据库5 mysqldump备份恢复数据库 冷备份还原数据库 逻辑卷快照备份还原数据库 xtrabackup备份还原数据库 1. 备份和恢复概述 适用场景 硬件故障.软件故障.自然灾害.黑客 ...
- linux top-显示或管理执行中的程序
推荐:更多linux 性能监测与优化 关注:linux命令大全 top命令可以实时动态地查看系统的整体运行情况,是一个综合了多方信息监测系统性能和运行信息的实用工具.通过top命令所提供的互动式界面, ...
- Django-REST-Framework JWT 实现SSO认证(上)
一.什么是Django-REST-Framework? Django-REST-framework 是基于Django框架的一个web RESTful风格开发的框架,它可以实现API接口的快速开发,但 ...
- docke容器使用
Docker 容器使用 Docker 客户端 docker 客户端非常简单 ,我们可以直接输入 docker 命令来查看到 Docker 客户端的所有命令选项. runoob@runoob:~# do ...
- Linux学习总结(19)——Linux中文本编辑器vim特殊使用方法
1. vim比对功能 在linux的环境下 用于观察两个文件的一致性的时候我们一般用diff这个命令来比对,但是这个命令不能你特别详细的比对出 具体的位置或者行对比.这里就用到了vim的对比功能 vi ...
- [luoguP2158] [SDOI2008]仪仗队(数论)
传送门 可以看出 (i, j) 能被看到,(i * k, j * k) 都会被挡住 暴力 所以 gcd(i, j) == 1 的话 ans ++ 那么可以枚举一半(中轴对称),求解答案,只能拿30分 ...
- 矩形面积求并(codevs 3044)
题目描述 Description 输入n个矩形,求他们总共占地面积(也就是求一下面积的并) 输入描述 Input Description 可能有多组数据,读到n=0为止(不超过15组) 每组数据第一行 ...
- vim下多行注释与解注释
1.多行注释 (1)按esc进入命令行模式 (2)按下Ctrl+v,进入区块模式,并使用上下键选择需要注释的多行 (3)按下“I”(大写)键,进入插入模式 (4)输入注释符(“//”或“#”等) (5 ...
- @Autowired中无法注入RestTemplate的问题
1.在启动类中添加 @Beanpublic RestTemplate restTemplate(){ return new RestTemplate();} 即可解决无法注入RestTemplate的 ...