Loading [MathJax]/jax/element/mml/optable/BasicLatin.js
私人领地

10 2015 档案

摘要:CSS兼容常用技巧 请尽量用xhtml格式写代码,而且DOCTYPE影响 CSS 处理,作为W3C标准,一定要加DOCTYPE声明。 1.div的垂直居中问题 vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字,就垂... 阅读全文
posted @ 2015-10-30 10:39 狂奔的蜗牛Snails 阅读(344) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2015-10-29 14:31 狂奔的蜗牛Snails 阅读(4) 评论(0) 推荐(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 阅读(170) 评论(0) 推荐(0) 编辑
摘要:php代码page=_GET['page']; //当前是第几页count=grabpromotegoodscount();//size= '99';if(pagelist),count, page,size); ... 阅读全文
posted @ 2015-10-28 16:04 狂奔的蜗牛Snails 阅读(169) 评论(0) 推荐(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) 推荐(0) 编辑
摘要:html代码 {$lang.lab_picture} {if $goods.goods_img} {else} ... 阅读全文
posted @ 2015-10-28 10:20 狂奔的蜗牛Snails 阅读(391) 评论(0) 推荐(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) 推荐(0) 编辑
摘要:引用:row[goodsimg]=getimagepath(row['goods_id'], row['goods_img']);lib_common.php/** * 重新获得商品图片与商品相册的地址 * * @param int goods_id 商品ID * @param... 阅读全文
posted @ 2015-10-27 17:11 狂奔的蜗牛Snails 阅读(476) 评论(0) 推荐(0) 编辑
摘要:ECSHOP开发中心(www.68ecshop.com)教程介绍一下如何去除后台云服务中心菜单:打开admin/templates/menu.htm,把415行的document.getElementById("menu-ul").innerHTML = document.getElementByI... 阅读全文
posted @ 2015-10-26 14:53 狂奔的蜗牛Snails 阅读(322) 评论(0) 推荐(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) 推荐(0) 编辑
摘要:preventClicks:false,加上属性 阅读全文
posted @ 2015-10-24 11:19 狂奔的蜗牛Snails 阅读(502) 评论(0) 推荐(0) 编辑
摘要:淘宝装修,不支持float,和position属性全屏代码 去掉1... 阅读全文
posted @ 2015-10-23 15:14 狂奔的蜗牛Snails 阅读(1672) 评论(0) 推荐(0) 编辑
摘要:注意事项:{insert name='bought_notes' id=id} 有了产品ID一切都好说html代码php代码this->assign('id','产品ID') 阅读全文
posted @ 2015-10-23 15:11 狂奔的蜗牛Snails 阅读(242) 评论(0) 推荐(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 阅读(108) 评论(0) 推荐(0) 编辑
摘要:前提:价格阶梯只能设置一级需要用到: jquery,transport.js(transport_jquery.js),Ajax.callhtml页面js代码,还需要插入jquery,transport.js(支持ajax插件的)文件/** * 点选可选属性或改变数量时修改商品价格的函数 */ va... 阅读全文
posted @ 2015-10-21 18:40 狂奔的蜗牛Snails 阅读(424) 评论(0) 推荐(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 阅读(135) 评论(0) 推荐(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 阅读(139) 评论(0) 推荐(0) 编辑
摘要:产生原因:是因为产品设置了多属性解决办法:打开group_buy.php 第 267行找到empty(product_info) ? product_info = array('product_number' => 0, 'product_id' => 0) : ''; /* 查询:判断指... 阅读全文
posted @ 2015-10-19 10:22 狂奔的蜗牛Snails 阅读(255) 评论(0) 推荐(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 阅读(5118) 评论(0) 推荐(0) 编辑
摘要:无法取值的主要原因在form.代码2 3 阅读全文
posted @ 2015-10-14 16:57 狂奔的蜗牛Snails 阅读(481) 评论(0) 推荐(0) 编辑
摘要:html代码 1111 css代码.user2-register-bg{padding: 10px;padding: 10px;background:rgba(0,0,0,0.3)!important;bac... 阅读全文
posted @ 2015-10-09 18:09 狂奔的蜗牛Snails 阅读(258) 评论(0) 推荐(0) 编辑
摘要:转载: 最近刚接触ecshop不久,感觉是非常的强大,做商城网站,整个流程都差不多搞好了,就是支付流程要自己完善完善,不过也有不足,文章功能还不够好。 通过几天的应用,总结出了ec模版中foreach的常见用法。 foreach 语法: 假如后台:smarty->assign('test',te 阅读全文
posted @ 2015-10-09 14:01 狂奔的蜗牛Snails 阅读(871) 评论(0) 推荐(0) 编辑
摘要:获得商品的信息,get_goods_info($goods_id) 获取前10销量排名,get_top10() 阅读全文
posted @ 2015-10-09 10:18 狂奔的蜗牛Snails 阅读(206) 评论(0) 推荐(0) 编辑
摘要:把一下代码放到 lib_main.php1.统计某个下单商品的人数function get_goods_ordernum($goods_id){ sql = "select count(goods_number) from " . GLOBALS['ecs']->table('o... 阅读全文
posted @ 2015-10-08 18:55 狂奔的蜗牛Snails 阅读(525) 评论(0) 推荐(0) 编辑
摘要:找到lib_goods.php第147行,代码sql = 'SELECT g.goods_id, g.goods_name, g.shop_price,g.goods_thumb, SUM(og.goods_number) as goods_number ' .1.替换一下代码sql = 'SE... 阅读全文
posted @ 2015-10-08 17:36 狂奔的蜗牛Snails 阅读(159) 评论(0) 推荐(0) 编辑
摘要:原代码 cart category_tree history recommend_best goods_list pages 增加一个recommend_hot ,就能把非可编辑区改为可编辑区 ... 阅读全文
posted @ 2015-10-07 15:25 狂奔的蜗牛Snails 阅读(252) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示