11 2015 档案
摘要:// 订单 待付款、待发货、待收货、确认收货 public function get_serch_order(type/∗,limit_statrt,limitend,serch*/){ m=M()−>pre.′orderinfo′;userid...
阅读全文
摘要:js代码function confirm_redirect(msg, url){ if (confirm(msg)) { location.href=url; }}html删除
阅读全文
摘要:设置位置:ecs_users标的 country字段,默认是0,默认地址是 users_address 的address_id设置默认收货地址/** * 设置默认地址 * * @access public * @param integer $id 收货地址id * @return bool...
阅读全文
摘要:/** * 取得状态列表 * @param string type类型:all|order|shipping|payment∗/functiongetstatuslist(type = 'all'){ global LANG;list = ar...
阅读全文
摘要:1.基本使用 var OrderMenu = new Swiper('#OrderMenu',{ loop: false, // 是否循环 autoplay: 1000, // 时间 slidesPerView: 4, // 显示四列 prevButton:'#country_ban_prev',
阅读全文
摘要:手机端1.C, 系统默认所有配置输出:print_r(C())
阅读全文
摘要:mobile手机端1.common位置:include\apps\default\common\ function.php show_message 成功跳转页面 其他页面引用 show_message()扩展: function show_mg(){} 自行创建跳转insert.php
阅读全文
摘要:第一步:找到admin/tempate/good_info.htm文件把改为:把改为:第二步:修改文件admin/goods.php将里面的:goods[′promotestartdate′]=localdate(′Y−m−d′,goods['promote_start_date']);$...
阅读全文
摘要:get_goods_info(goodsid)商品详情getsalescount(goods_id) 商品销量get_promote_goods() 参与促销商品 Mobile
阅读全文
摘要:this−>assing(′result′.result)html页面代码{vo['username']}{$vo['time']|date='Y-m-d H:i:s',###} //这里的### 相当{$vo['time']}与v){}?>{$vo['username']}
阅读全文
摘要:public function index(){ result=M(′content′)−>select()this->assig('result',result);this->display()}简化public function index(){ $this->assig...
阅读全文
摘要:result=M(′content′)−>where(′id>0′)−>deleteresult =M('content')->where(array('id'=>array('gt',0)))->delete这两个效果一样,删除id>0的记录
阅读全文
摘要:m=M(′content′);//与m = new Model('content')效果一样$date = array( 'username' => I('username','','htmlspecialchars'); 'content' => I('content','',...
阅读全文
摘要:如果在上面表单中 ,填写 输出结果(echo _get['name']): 会有一个弹窗 111用(echo I("name")):弹窗111echo I('name','','htmlspecialchar') :echo this->_GET('name'): 出现弹窗是因为没有进行实例化解...
阅读全文
摘要:php文件输出U() 跳转地址,echo U('Index/index',array('uid'=>1,'username'=>'wang','time'=>165465121))相当于 index.php?m=Index&a=index&uid=1&username=wang&time=1654...
阅读全文
摘要:1.public function index(){ $this->display()}// 默认输出的是index.html模板2.public function index(){ $this->display('select')}输出的是select.html模板;如果是select.htm...
阅读全文
摘要:ConterReplaceBehavior.class.php查找__PUBLIC__protected function templateContentReplace($content) { // 系统默认的特殊变量替换 $replace = array( ...
阅读全文
摘要:1.在Common目录下创建Common.php(系统会自动加载Common.php)代码:function say(){echo '0000'; }在IndecAction.php输出public function show(){ print_r(say()); }如果在...
阅读全文
摘要:要求:前台,后台;只需要配置一个config.php 其他文件共享默认配置是Index/Conf/config.phpAdmin/Conf/config.php代码:return array( DB_HOST' => '127.0.0.1', // 服务器地址 ...
阅读全文
摘要:版本:3.1.1连接数据库的具体位置 thinkphp/Config/convention.php,默认修改数据库在这里就可以了但是为了方便,把数据库配置写到Index/Conf/config.php 写到这里最佳(如果config.php里面已经有了配置,系统就会默认提取config.php参数而...
阅读全文
摘要:1.load('@.function') 临时性加载指的是Common文件下的 function如 function select(){} , locad中的function实际指的就是 common目录下的select.php文件用法:class IndexAction extends Actio...
阅读全文
摘要:基础版: 只有thinkphp基础运行功能完整版:基础运行能力,还有图片、上传等各种处理类(建议下载完整版)重要的三个变量define('APP_DEBUG',True);// 定义应用目录define('APP_NAME','Index/');define('APP_PATH','./php/')...
阅读全文