上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: $this->User->id = $user['User']['id']; $this->User->saveField("last_login", time()); 阅读全文
posted @ 2013-04-23 18:16 linksgo2011 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1、数据库必须要有的字段,email(会员邮箱地址)key(随机激活码,可以使用md5(rand(10000,99999)这样极简单的)active(bool类型,默认为0,激活后变成1)还可以有其它信息之类的字段2、注册的时候插入数据库里的有:填写的邮箱、生成一个随机的字符串放在key里、active默认为03、插入数据后发送邮件,你可以搜索phpmailer,比较简单,发送的类容是一条链接,格式如下:http://www.xxxxxx.com/active.php?username=用户名&active=激活码4、你建一个active.php的文件,内容就是查询该用户的资料,如果u 阅读全文
posted @ 2013-04-23 11:58 linksgo2011 阅读(449) 评论(0) 推荐(0) 编辑
摘要: $db = $this->UserAccount->getDataSource(); $db->begin(); $this->UserAccount->updateAll(array('amount' => 'UserAccount.amount - ' . $total_price), array('user_id' => $user_id, 'amount >=' => $total_price)); $affectedrows = $this->UserAccou 阅读全文
posted @ 2013-04-19 16:42 linksgo2011 阅读(150) 评论(0) 推荐(0) 编辑
摘要: if ($this->request->is('post')) { $products_id = $product['TradeProduct']['id']; $fee = $this->request->data('Trade.price'); $bankCode = $this->request->data('Trade.bankCode'); $pay_type = $this->request->data('Trade.payType'); 阅读全文
posted @ 2013-04-19 16:20 linksgo2011 阅读(273) 评论(0) 推荐(0) 编辑
摘要: $data = $this->paginate('MerchantProductOrder');如果不给入参数,就是当前控制器合适的模型的分页即可 阅读全文
posted @ 2013-04-19 14:07 linksgo2011 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1、下拉菜单的制作方法 $('#nav .nav >li').mouseover(function(){ $(this).children('ul').show(); }).mouseout(function(){ $(this).children('ul').hide(); })2、输入框的文字提示 var tmp; $('.user').focus(function(){ tmp = $(this... 阅读全文
posted @ 2013-04-17 10:35 linksgo2011 阅读(241) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css">@import url("/templates/main/default/css_ma_ico.css");</style>好处: 1、加载次数少 2、可以在页面中间引用 阅读全文
posted @ 2013-04-15 14:39 linksgo2011 阅读(139) 评论(0) 推荐(0) 编辑
摘要: $this->MerchantProduct->recursive = -1; $data = $this->MerchantProduct->find('first', array( 'fields' => array( 'MerchantProduct.*', 'Merchant.*' ), 'joins' => array( array( 'table' => 'me... 阅读全文
posted @ 2013-04-11 10:53 linksgo2011 阅读(137) 评论(0) 推荐(0) 编辑
摘要: $this->paginate = array( 'limit' => $limit, 'order' => array('MerchantProductOrder.id' => 'desc'), 'fields' => array( 'MerchantProductOrder.*', 'MerchantProduct.*', 'Merchant.*' ), 'joins' => ... 阅读全文
posted @ 2013-04-10 09:46 linksgo2011 阅读(120) 评论(0) 推荐(0) 编辑
摘要: public function product($media_ad_id = 0, $product_id = 0) { $this->MediaAd->id = $media_ad_id; $media_ad = $this->MediaAd->read(); if (!$media_ad) { $this->redirect(array( 'action' => 'nofound' )); } //这段代码用于验证用户操作 ... 阅读全文
posted @ 2013-04-10 09:39 linksgo2011 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页