摘要: 阅读全文
posted @ 2016-10-11 14:56 _DongGe 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 在对应的表单模板 \phpcms\templates\default\formguide\show.html 中添加验证码显示 <form method="post" action="?m=formguide&c=index&a=show&formid=14&siteid=<?php echo $t 阅读全文
posted @ 2016-10-11 14:02 _DongGe 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 在modules/content/content.php 的public_categorys方法里 把if (!empty($categorys)) {}里面的代码改为以下的: 阅读全文
posted @ 2016-10-11 13:56 _DongGe 阅读(161) 评论(0) 推荐(0) 编辑
摘要: function isPriceNumber(_keyword){ if(_keyword == "0" || _keyword == "0." || _keyword == "0.0" || _keyword == "0.00"){ _keyword = "0"; return true; }else{ v... 阅读全文
posted @ 2016-10-11 13:52 _DongGe 阅读(3520) 评论(2) 推荐(0) 编辑
摘要: 验证中国电话号码(包括手机号码和固定电话):(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}电话号码正则表达式(支持手机号码,3-4位区号,7-8位直播号码,1-4位分机号) ((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7... 阅读全文
posted @ 2016-10-11 13:47 _DongGe 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 模板页 php程序 jquery.more.js 阅读全文
posted @ 2016-10-08 14:28 _DongGe 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1、在phpcms/model创建一个自定义的模型查询product_model.class.php 2、在phpcms/modules/content/index.php中添加如下代码 3、模板页调用:phpcms/templates/default/content/list_products.h 阅读全文
posted @ 2016-10-08 11:30 _DongGe 阅读(1625) 评论(1) 推荐(1) 编辑
摘要: 因分类多级,需要使用ajax进行获取分类的数据,原本的框架无法满足,故写ajax获取分类数据方法,做记录 1、模板页 phpcms/templates/default/content/product_left.html 2、js文件 statics/js/new/main.js 3、程序控制 路径: 阅读全文
posted @ 2016-09-28 09:58 _DongGe 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-18 17:09 _DongGe 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 转载的 demo.css 阅读全文
posted @ 2016-09-07 09:23 _DongGe 阅读(9596) 评论(0) 推荐(0) 编辑