01 2016 档案
摘要:// 热门推荐悬浮效果 $("#recom_con li img").mouseenter(function(){ (this).stop(true, true); w = parseInt((this).width())+10; (this).animate({'width':$w},30
阅读全文
摘要:问题描述:php提交数据的时候遇到特殊符号,需要转义才可以提交数据 如:提交单引号,双引号...php代码:str = "我但是'sdf6448"; data['goods_name'] = "'".addslashes(htmlspecialchars($str))."'";字段存储: 我...
阅读全文
摘要:include/cls_mysql.php正常操作例如:sql = “UPDATE ecs_user SET user = ‘buxuan’ WHERE user_id = 1″;db->query(sql);用ecshop的autoExecute操作,只需要table = “ecs_use...
阅读全文
摘要:文件地址include/lib_order.php ,要引用需要先导入 lib_order.phprequire_once(ROOT_PATH . 'includes/lib_order.php');/** * 得到新订单号 * @return string */function get_or...
阅读全文
摘要:html{insert_scripts files='region.js,utils.js'} php代码/* 取得国家列表、商店所在国家、商店所在国家的省列表 */ $smarty->assign('country_list', ...
阅读全文
摘要:文件位置:include/init.php1.新建文件lib_xxx.php(lib_liangxin.php)2.在文件init.php 第74行加入代码require(ROOT_PATH . 'includes/inc_constant.php');require(ROOT_PATH . 'in...
阅读全文
摘要:private function createNonceStr($length = 16) { chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; str = ""; for ($i...
阅读全文
摘要:// 判断订单状态 public function get_order_status(os,ps,$ss){ arr = array('已取消','待付款','待发货','待收货','确认收货','无效'); if(os==OS_CANCELED){ ...
阅读全文