摘要:
手机端1.C, 系统默认所有配置输出:print_r(C())
阅读全文
posted @ 2015-11-23 11:07
狂奔的蜗牛Snails
阅读(236)
推荐(0)
摘要:
mobile手机端1.common位置:include\apps\default\common\ function.php show_message 成功跳转页面 其他页面引用 show_message()扩展: function show_mg(){} 自行创建跳转insert.php
阅读全文
posted @ 2015-11-20 16:21
狂奔的蜗牛Snails
阅读(499)
推荐(0)
摘要:
第一步:找到admin/tempate/good_info.htm文件把改为:把改为:第二步:修改文件admin/goods.php将里面的:$goods['promote_start_date']=local_date('Y-m-d',$goods['promote_start_date']);$...
阅读全文
posted @ 2015-11-17 14:40
狂奔的蜗牛Snails
阅读(380)
推荐(0)
posted @ 2015-11-16 17:25
狂奔的蜗牛Snails
阅读(0)
推荐(0)
摘要:
get_goods_info($goods_id) 商品详情get_sales_count($goods_id) 商品销量get_promote_goods() 参与促销商品 Mobile
阅读全文
posted @ 2015-11-16 16:05
狂奔的蜗牛Snails
阅读(136)
推荐(0)
摘要:
$this->assing('result'.$result)html页面代码{$vo['username']}{$vo['time']|date='Y-m-d H:i:s',###} //这里的### 相当{$vo['time']}与$v){}?>{$vo['username']}
阅读全文
posted @ 2015-11-08 13:44
狂奔的蜗牛Snails
阅读(204)
推荐(0)
posted @ 2015-11-08 13:41
狂奔的蜗牛Snails
阅读(90)
推荐(0)
摘要:
public function index(){ $result = M('content')->select() $this->assig('result',$result); $this->display()}简化public function index(){ $this->assig...
阅读全文
posted @ 2015-11-08 13:39
狂奔的蜗牛Snails
阅读(141)
推荐(0)
摘要:
$result = M('content')->where('id>0')->delete$result =M('content')->where(array('id'=>array('gt',0)))->delete这两个效果一样,删除id>0的记录
阅读全文
posted @ 2015-11-08 13:31
狂奔的蜗牛Snails
阅读(163)
推荐(0)
摘要:
$m = M('content'); //与 $m = new Model('content')效果一样$date = array( 'username' => I('username','','htmlspecialchars'); 'content' => I('content','',...
阅读全文
posted @ 2015-11-08 13:23
狂奔的蜗牛Snails
阅读(148)
推荐(0)
摘要:
如果在上面表单中 ,填写 输出结果(echo $_get['name']): 会有一个弹窗 111用(echo I("name")):弹窗111echo I('name','','htmlspecialchar') :echo $this->_GET('name'): 出现弹窗是因为没有进行实例化解...
阅读全文
posted @ 2015-11-08 12:54
狂奔的蜗牛Snails
阅读(527)
推荐(0)
摘要:
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...
阅读全文
posted @ 2015-11-08 12:29
狂奔的蜗牛Snails
阅读(335)
推荐(0)
摘要:
1.public function index(){ $this->display()}// 默认输出的是index.html模板2.public function index(){ $this->display('select')}输出的是select.html模板;如果是select.htm...
阅读全文
posted @ 2015-11-08 12:17
狂奔的蜗牛Snails
阅读(1539)
推荐(0)
摘要:
ConterReplaceBehavior.class.php查找__PUBLIC__protected function templateContentReplace($content) { // 系统默认的特殊变量替换 $replace = array( ...
阅读全文
posted @ 2015-11-08 12:00
狂奔的蜗牛Snails
阅读(192)
推荐(0)
摘要:
1.在Common目录下创建Common.php(系统会自动加载Common.php)代码:function say(){echo '0000'; }在IndecAction.php输出public function show(){ print_r(say()); }如果在...
阅读全文
posted @ 2015-11-08 11:40
狂奔的蜗牛Snails
阅读(308)
推荐(0)
摘要:
要求:前台,后台;只需要配置一个config.php 其他文件共享默认配置是Index/Conf/config.phpAdmin/Conf/config.php代码:return array( DB_HOST' => '127.0.0.1', // 服务器地址 ...
阅读全文
posted @ 2015-11-08 11:34
狂奔的蜗牛Snails
阅读(274)
推荐(0)
摘要:
版本:3.1.1连接数据库的具体位置 thinkphp/Config/convention.php,默认修改数据库在这里就可以了但是为了方便,把数据库配置写到Index/Conf/config.php 写到这里最佳(如果config.php里面已经有了配置,系统就会默认提取config.php参数而...
阅读全文
posted @ 2015-11-08 11:07
狂奔的蜗牛Snails
阅读(205)
推荐(0)
摘要:
1.load('@.function') 临时性加载指的是Common文件下的 function如 function select(){} , locad中的function实际指的就是 common目录下的select.php文件用法:class IndexAction extends Actio...
阅读全文
posted @ 2015-11-08 10:00
狂奔的蜗牛Snails
阅读(241)
推荐(0)
摘要:
基础版: 只有thinkphp基础运行功能完整版:基础运行能力,还有图片、上传等各种处理类(建议下载完整版)重要的三个变量define('APP_DEBUG',True);// 定义应用目录define('APP_NAME','Index/');define('APP_PATH','./php/')...
阅读全文
posted @ 2015-11-07 10:06
狂奔的蜗牛Snails
阅读(594)
推荐(0)
摘要:
CSS兼容常用技巧 请尽量用xhtml格式写代码,而且DOCTYPE影响 CSS 处理,作为W3C标准,一定要加DOCTYPE声明。 1.div的垂直居中问题 vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字,就垂...
阅读全文
posted @ 2015-10-30 10:39
狂奔的蜗牛Snails
阅读(344)
推荐(0)
posted @ 2015-10-29 14:31
狂奔的蜗牛Snails
阅读(4)
推荐(0)
摘要:
function timer() { var ts = (new Date(2018, 11, 11, 9, 0, 0)) - (new Date());//计算剩余的毫秒数 var dd = parseInt(ts / 1000 / 60 / 60 / 24, 10);//计...
阅读全文
posted @ 2015-10-29 14:27
狂奔的蜗牛Snails
阅读(171)
推荐(0)
摘要:
php代码$page = $_GET['page']; //当前是第几页$count = grab_promote_goods_count(); // 一个有多少条 $size= '99';if($page 'list'), $count, $page, $size); ...
阅读全文
posted @ 2015-10-28 16:04
狂奔的蜗牛Snails
阅读(170)
推荐(0)
摘要:
促销商品总数// 促销商品总算function grab_promote_goods_count(){ $time = gmtime(); $sql = "SELECT COUNT(*) " . "FROM " . $GLOBALS['ecs']->table('g...
阅读全文
posted @ 2015-10-28 12:01
狂奔的蜗牛Snails
阅读(205)
推荐(0)
摘要:
html代码 {$lang.lab_picture} {if $goods.goods_img} {else} ...
阅读全文
posted @ 2015-10-28 10:20
狂奔的蜗牛Snails
阅读(398)
推荐(0)
摘要:
lib_goods.php->function get_promote_goods(){}/** * 获得促销商品 * * @access public * @return array */function get_promote_goods($cats = ''){ $time = gm...
阅读全文
posted @ 2015-10-27 17:49
狂奔的蜗牛Snails
阅读(315)
推荐(0)
摘要:
引用:$row['goods_img'] = get_image_path($row['goods_id'], $row['goods_img']);lib_common.php/** * 重新获得商品图片与商品相册的地址 * * @param int $goods_id 商品ID * @param...
阅读全文
posted @ 2015-10-27 17:11
狂奔的蜗牛Snails
阅读(478)
推荐(0)
摘要:
ECSHOP开发中心(www.68ecshop.com)教程介绍一下如何去除后台云服务中心菜单:打开admin/templates/menu.htm,把415行的document.getElementById("menu-ul").innerHTML = document.getElementByI...
阅读全文
posted @ 2015-10-26 14:53
狂奔的蜗牛Snails
阅读(323)
推荐(0)
摘要:
//读取广告function get_ad_id($ad_id){ //读取指定ad_id广告 $sql = 'select * from '. $GLOBALS['ecs']->table('ad') .'where ad_id = '.$ad_id; $result = $GL...
阅读全文
posted @ 2015-10-24 11:25
狂奔的蜗牛Snails
阅读(197)
推荐(0)
摘要:
preventClicks:false,加上属性
阅读全文
posted @ 2015-10-24 11:19
狂奔的蜗牛Snails
阅读(518)
推荐(0)
摘要:
淘宝装修,不支持float,和position属性全屏代码 去掉1...
阅读全文
posted @ 2015-10-23 15:14
狂奔的蜗牛Snails
阅读(1679)
推荐(0)
摘要:
注意事项:{insert name='bought_notes' id=$id} 有了产品ID一切都好说html代码php代码$this->assign('id','产品ID')
阅读全文
posted @ 2015-10-23 15:11
狂奔的蜗牛Snails
阅读(242)
推荐(0)
摘要:
涉及到的文件及代码:lib_insert.php,comments.lbi,{insert name='comments' type=$type id=$id}html代码:php代码$smarty->assign('type', 0); // 产品评论 $smarty->assign('id',...
阅读全文
posted @ 2015-10-22 15:19
狂奔的蜗牛Snails
阅读(112)
推荐(0)
摘要:
前提:价格阶梯只能设置一级需要用到: jquery,transport.js(transport_jquery.js),Ajax.callhtml页面js代码,还需要插入jquery,transport.js(支持ajax插件的)文件/** * 点选可选属性或改变数量时修改商品价格的函数 */ va...
阅读全文
posted @ 2015-10-21 18:40
狂奔的蜗牛Snails
阅读(426)
推荐(0)
摘要:
截取字符串方法一:[field:title function="cn_substr(@me,10)"/]方法二:{dede:arclist typeid=’9′ titlelen=’40′ orderby=” limit=’0,5′}[field:title/]{/dede:arclist}说明:a...
阅读全文
posted @ 2015-10-20 10:35
狂奔的蜗牛Snails
阅读(136)
推荐(0)
摘要:
{dede:sql sql='Select content from dede_arctype where id=1' titlelen='40′} [field:content/] {/dede:sql}
阅读全文
posted @ 2015-10-20 10:34
狂奔的蜗牛Snails
阅读(142)
推荐(0)
摘要:
产生原因:是因为产品设置了多属性解决办法:打开group_buy.php 第 267行找到empty($product_info) ? $product_info = array('product_number' => 0, 'product_id' => 0) : ''; /* 查询:判断指...
阅读全文
posted @ 2015-10-19 10:22
狂奔的蜗牛Snails
阅读(256)
推荐(0)
posted @ 2015-10-16 11:06
狂奔的蜗牛Snails
阅读(31)
推荐(0)
摘要:
基础cls_images.php: functionupload_image(){}$_FILES 输出值:Array ( [group_thumb_url] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ...
阅读全文
posted @ 2015-10-14 17:25
狂奔的蜗牛Snails
阅读(5132)
推荐(0)
摘要:
无法取值的主要原因在form.代码2 3
阅读全文
posted @ 2015-10-14 16:57
狂奔的蜗牛Snails
阅读(483)
推荐(0)