当前位置: 首页>>代码示例>>PHP>>正文


PHP ajaxmsg函数代码示例

本文整理汇总了PHP中ajaxmsg函数的典型用法代码示例。如果您正苦于以下问题:PHP ajaxmsg函数的具体用法?PHP ajaxmsg怎么用?PHP ajaxmsg使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ajaxmsg函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mactlogout_bak

 public function mactlogout_bak()
 {
     $this->_memberloginout();
     ajaxmsg("注销成功");
 }
开发者ID:GStepOne,项目名称:CI,代码行数:5,代码来源:MobilecommonAction.class.php

示例2: cancel

 /**
  *  撤销债权转让
  * 
  */
 public function cancel()
 {
     $invest_id = $_REQUEST['invest_id'];
     $paypsss = strval($_POST['paypass']);
     !$invest_id && ajaxmsg(L('parameter_error'), 0);
     if ($this->Debt->cancel($invest_id, $paypsss)) {
         ajaxmsg(L('撤销成功'), 1);
     } else {
         ajaxmsg(L('撤销失败'), 0);
     }
 }
开发者ID:caotieshuan,项目名称:ishoutou,代码行数:15,代码来源:DebtAction.class.php

示例3: delfile

 public function delfile()
 {
     $id = intval($_POST['id']);
     $model = M('member_data_info');
     $vo = $model->field("uid,status")->where("id={$id}")->find();
     if (!is_array($vo)) {
         ajaxmsg("提交数据有误", 0);
     } else {
         if ($vo['uid'] != $this->uid) {
             ajaxmsg("不是你的资料", 0);
         } else {
             if ($vo['status'] == 1) {
                 ajaxmsg("审核通过的资料不能删除", 0);
             } else {
                 $newid = $model->where("id={$id}")->delete();
             }
         }
     }
     if ($newid) {
         ajaxmsg();
     } else {
         ajaxmsg('删除失败,请重试', 0);
     }
 }
开发者ID:GStepOne,项目名称:CI,代码行数:24,代码来源:MemberinfoAction.class.php

示例4: bindbank

 public function bindbank()
 {
     $bank_info = M('member_banks')->field("uid, bank_num")->where("uid=" . $this->uid)->find();
     !$bank_info['uid'] && ($data['uid'] = $this->uid);
     $data['bank_num'] = text($_POST['account']);
     $data['bank_name'] = text($_POST['bankname']);
     $data['bank_address'] = text($_POST['bankaddress']);
     $data['bank_province'] = text($_POST['province']);
     $data['bank_city'] = text($_POST['cityName']);
     $data['add_ip'] = get_client_ip();
     $data['add_time'] = time();
     if ($bank_info['uid']) {
         /////////////////////新增银行卡修改锁定开关 开始 20130510 fans///////////////////////////
         if (intval($this->glo['edit_bank']) != 1 && $bank_info['bank_num']) {
             ajaxmsg("为了您的帐户资金安全,银行卡已锁定,如需修改,请联系客服", 0);
         }
         /////////////////////新增银行卡修改锁定开关 结束 20130510 fans///////////////////////////
         $old = text($_POST['oldaccount']);
         if ($bank_info['bank_num'] && $old != $bank_info['bank_num']) {
             ajaxmsg('原银卡号不对', 0);
         }
         $newid = M('member_banks')->where("uid=" . $this->uid)->save($data);
     } else {
         $newid = M('member_banks')->add($data);
     }
     if ($newid) {
         MTip('chk2', $this->uid);
         ajaxmsg();
     } else {
         ajaxmsg('操作失败,请重试', 0);
     }
 }
开发者ID:kinglong366,项目名称:p2p,代码行数:32,代码来源:BankController.class.php

示例5: repayment

 public function repayment()
 {
     $pre = C('DB_PREFIX');
     $borrow_id = intval($_POST['bid']);
     $sort_order = intval($_POST['sort_order']);
     //$vo = M("borrow_info")->field('id')->where("id={$borrow_id} AND borrow_uid={$this->uid}")->find();
     //if(!is_array($vo)) ajaxmsg("数据有误",0);
     $vo = M("borrow_info")->field('borrow_uid,danbao')->where("id={$borrow_id}")->find();
     if ($vo['borrow_uid'] == $this->uid && $vo['danbao'] == $this->uid) {
         ajaxmsg("担保公司不能为借款人", 0);
     } else {
         if ($vo['borrow_uid'] == $this->uid) {
             $type = 1;
         } else {
             if ($vo['danbao'] == $this->uid) {
                 $type = 3;
             } else {
                 ajaxmsg("数据有误", 0);
             }
         }
     }
     $res = borrowRepayment($borrow_id, $sort_order, $type);
     //$this->display("Public:_footer");
     if (true === $res) {
         ajaxmsg();
     } elseif (!empty($res)) {
         ajaxmsg($res, 0);
     } else {
         ajaxmsg("还款失败,请重试或联系客服", 0);
     }
 }
开发者ID:GStepOne,项目名称:CI,代码行数:31,代码来源:BorrowdetailAction.class.php

示例6: apply

 public function apply()
 {
     $xtime = strtotime("-1 month");
     $vo = M('member_apply')->field('apply_status')->where("uid={$this->uid}")->order("id DESC")->find();
     $xcount = M('member_apply')->field('add_time')->where("uid={$this->uid} AND add_time>{$xtime}")->order("id DESC")->find();
     if (is_array($vo) && $vo['apply_status'] == 0) {
         $xs = "是您的申请正在审核,请等待此次审核结束再提交新的申请";
         ajaxmsg($xs, 0);
     } elseif (is_array($xcount)) {
         $timex = date("Y-m-d", $xcount['add_time']);
         $xs = "一个月内只能进行一次额度申请,您已在{$timex}申请过了,如急需额度,请直接联系客服";
         ajaxmsg($xs, 0);
     } else {
         $apply['uid'] = $this->uid;
         $apply['apply_type'] = intval($_POST['apply_type']);
         $apply['apply_money'] = floatval($_POST['apply_money']);
         $apply['apply_info'] = text($_POST['apply_info']);
         $apply['add_time'] = time();
         $apply['apply_status'] = 0;
         $apply['add_ip'] = get_client_ip();
         $nid = M('member_apply')->add($apply);
     }
     if ($nid) {
         ajaxmsg('申请已提交,请等待审核');
     } else {
         ajaxmsg('申请提交失败,请重试', 0);
     }
 }
开发者ID:kinglong366,项目名称:p2p,代码行数:28,代码来源:MoneylimitController.class.php

示例7: bindbank

 public function bindbank()
 {
     $oldaccount = M('member_banks')->getFieldByUid($this->uid, 'bank_num');
     $data['uid'] = $this->uid;
     $data['bank_num'] = text($_POST['account']);
     $data['bank_name'] = text($_POST['bankname']);
     $data['bank_address'] = text($_POST['bankaddress']);
     $data['bank_province'] = text($_POST['province']);
     $data['bank_city'] = text($_POST['cityName']);
     $data['add_ip'] = get_client_ip();
     $data['add_time'] = time();
     //短信校验
     $smscode = text($_POST['smscode']);
     if (!is_verify($this->uid, $smscode, 11, 10 * 60)) {
         ajaxmsg('短信验证码不对,请重新输入!', 0);
     }
     if ($oldaccount) {
         $old = text($_POST['oldaccount']);
         if ($old != $oldaccount) {
             ajaxmsg('原银卡号不对', 0);
         }
         $newid = M('member_banks')->save($data);
     } else {
         $newid = M('member_banks')->add($data);
     }
     if ($newid) {
         MTip('chk2', $this->uid);
         ajaxmsg();
     } else {
         ajaxmsg('操作失败,请重试', 0);
     }
 }
开发者ID:hutao1004,项目名称:yintt,代码行数:32,代码来源:BankAction.class.php

示例8: savetip

 public function savetip()
 {
     $duration = explode(",", text($_POST['loancycle']));
     $data['uid'] = $this->uid;
     $data['account_money'] = floatval($_POST['miniamount']);
     $data['borrow_type'] = intval($_POST['borrowkind']);
     $data['interest_rate'] = intval($_POST['interestrates']);
     $data['duration_from'] = intval($duration[0]);
     $data['duration_to'] = intval($duration[1]);
     $c = M('borrow_tip')->field('id')->where("uid={$this->uid}")->find();
     if (is_array($c)) {
         $data['id'] = $c['id'];
         $newid = M('borrow_tip')->save($data);
         if ($newid) {
             ajaxmsg("修改成功", 1);
         } else {
             ajaxmsg("修改失败,请重试", 0);
         }
     } else {
         $newid = M('borrow_tip')->add($data);
         if ($newid) {
             ajaxmsg("添加成功", 1);
         } else {
             ajaxmsg("添加失败,请重试", 0);
         }
     }
 }
开发者ID:kinglong366,项目名称:p2p,代码行数:27,代码来源:NewtipController.class.php

示例9: actupleve

 public function actupleve()
 {
     $money = intval($_POST['upmoney']);
     $vo = M('members')->field('user_leve,account_money,time_limit,recommend_id')->find($this->uid);
     $levemoney = $vo['account_money'] - $money;
     if ($levemoney < 0) {
         ajaxmsg("帐户余额不足", 0);
     }
     $vo['time_limit'] > time() ? $oldtime = $vo['time_limit'] : ($oldtime = time());
     if ($money == 25) {
         $time_limit = strtotime(date("Y-m-d", strtotime("+1 months", $oldtime)) . " 23:59:59");
     } elseif ($money == 100) {
         $time_limit = strtotime(date("Y-m-d", strtotime("+6 months", $oldtime)) . " 23:59:59");
     } elseif ($money == 150) {
         $time_limit = strtotime(date("Y-m-d", strtotime("+12 months", $oldtime)) . " 23:59:59");
     }
     $res = memberMoneyLog($this->uid, 2, $money, "会员特权延长至" . date("Y-m-d", $time_limit) . "到期");
     if ($res) {
         $xmoney = M('members')->getFieldById($vo['recommend_id'], 'reward_money');
         memberMoneyLog($vo['recommend_id'], 13, 5, session('u_user_name') . "升级特权会员奖励");
         $sdata['id'] = $this->uid;
         $sdata['time_limit'] = $time_limit;
         $sdata['user_leve'] = 1;
         $newid = M('members')->save($sdata);
         if ($newid) {
             ajaxmsg();
         } else {
             ajaxmsg("升级出错,请重试", 0);
         }
     } else {
         ajaxmsg("帐户余额处理出错,请重试", 0);
     }
 }
开发者ID:kinglong366,项目名称:p2p,代码行数:33,代码来源:ServerController.class.php

示例10: changepin

 public function changepin()
 {
     $old = md5($_POST['oldpwd']);
     $newpwd1 = md5($_POST['newpwd1']);
     $c = M('members')->where("id={$this->uid}")->find();
     if ($old == $newpwd1) {
         ajaxmsg("设置失败,请勿让新密码与老密码相同。", 0);
     }
     if (empty($c['pin_pass'])) {
         if ($c['user_pass'] == $old) {
             $newid = M('members')->where("id={$this->uid}")->setField('pin_pass', $newpwd1);
             if ($newid) {
                 ajaxmsg();
             } else {
                 ajaxmsg("设置失败,请重试", 0);
             }
         } else {
             ajaxmsg("原支付密码(即登陆密码)错误,请重试", 0);
         }
     } else {
         if ($c['pin_pass'] == $old) {
             $newid = M('members')->where("id={$this->uid}")->setField('pin_pass', $newpwd1);
             if ($newid) {
                 ajaxmsg();
             } else {
                 ajaxmsg("设置失败,请重试", 0);
             }
         } else {
             ajaxmsg("原支付密码错误,请重试", 0);
         }
     }
 }
开发者ID:GStepOne,项目名称:CI,代码行数:32,代码来源:UserAction.class.php

示例11: savelong

 public function savelong()
 {
     $x = M('members')->field("time_limit,user_leve")->find($this->uid);
     $x['time_limit'] > 0 && $x['user_leve'] == 1 ? $is_vip = 1 : ($is_vip = 0);
     intval($_POST['tendAmount']) == 0 && $is_vip == 1 ? $is_full = 1 : ($is_full = 0);
     $duration = explode(",", text($_POST['loancycle']));
     $data['uid'] = $this->uid;
     $data['account_money'] = floatval($_POST['miniamount']);
     $data['borrow_type'] = intval($_POST['borrowtype']);
     $data['interest_rate'] = intval($_POST['interest']);
     $data['duration_from'] = intval($duration[0]);
     $data['end_time'] = strtotime($_POST['expireddate'] . " 00:00:00");
     $data['duration_to'] = intval($duration[1]);
     $data['is_auto_full'] = $is_full;
     $data['invest_money'] = floatval($_POST['tendAmount']);
     $data['add_ip'] = get_client_ip();
     $data['add_time'] = time();
     $c = M('auto_borrow')->field('id')->where("uid={$this->uid} AND borrow_type={$data['borrow_type']}")->find();
     if (is_array($c)) {
         $data['id'] = $c['id'];
         $newid = M('auto_borrow')->save($data);
         if ($newid) {
             ajaxmsg("修改成功", 1);
         } else {
             ajaxmsg("修改失败,请重试", 0);
         }
     } else {
         $newid = M('auto_borrow')->add($data);
         if ($newid) {
             ajaxmsg("添加成功", 1);
         } else {
             ajaxmsg("添加失败,请重试", 0);
         }
     }
 }
开发者ID:hutao1004,项目名称:yintt,代码行数:35,代码来源:AutoAction.class.php

示例12: face

 public function face()
 {
     if (!$this->uid) {
         ajaxmsg("请先登陆", 0);
     }
     $vs = M('members_status')->getFieldByUid($this->uid, 'face_status');
     if ($vs == 1) {
         ajaxmsg("您已通过现场认证,无需再次认证", 0);
     }
     $vxs = M('face_apply')->where("uid={$this->uid} AND apply_status=0")->count('id');
     if ($vxs >= 1) {
         ajaxmsg("您已经提交申请,请等待客服人员处理", 0);
     }
     $newid = memberMoneyLog($this->uid, 26, -$this->glo['fee_face'], $info = "申请现场认证");
     if ($newid) {
         $save['uid'] = $this->uid;
         $save['add_time'] = time();
         $save['add_ip'] = get_client_ip();
         $save['apply_status'] = 0;
         $newidx = M('face_apply')->add($save);
         if ($newidx) {
             ajaxmsg("申请成功,请等待客服与您联系");
         } else {
             ajaxmsg("申请失败,请重试");
         }
     } else {
         ajaxmsg("申请失败,请重试");
     }
 }
开发者ID:kinglong366,项目名称:p2p,代码行数:29,代码来源:CommonController.class.php

示例13: setNewBorrowRemind

 public function setNewBorrowRemind()
 {
     $sms_remind = $_POST['sms_remind'];
     $email_remind = $_POST['email_remind'];
     $mstatus = M("members_status")->getByUid($this->uid);
     if (!empty($mstatus)) {
         M("members_status")->where(array("uid" => $this->uid))->save(array("new_borrow_sms_remind" => $sms_remind, "new_borrow_email_remind" => $email_remind));
     } else {
         M("members_status")->add(array("uid" => $this->uid, "new_borrow_sms_remind" => $sms_remind, "new_borrow_email_remind" => $email_remind));
     }
     ajaxmsg();
 }
开发者ID:hutao1004,项目名称:yintt,代码行数:12,代码来源:PushmesssetAction.class.php

示例14: buy

 /**
  * 确认购买
  * 流程: 检测购买条件
  * 购买
  */
 public function buy()
 {
     $paypass = strval($_REQUEST['paypass']);
     $invest_id = intval($_REQUEST['invest_id']);
     D("DebtBehavior");
     $Debt = new DebtBehavior($this->uid);
     // 检测是否可以购买  密码是否正确,余额是否充足
     $result = $Debt->buy($paypass, $invest_id);
     if ($result === 'TRUE') {
         ajaxmsg('购买成功');
     } else {
         ajaxmsg($result, 1);
     }
 }
开发者ID:GStepOne,项目名称:CI,代码行数:19,代码来源:WotouziAction.class.php

示例15: sendinnermsg

 public function sendinnermsg()
 {
     $massid = text($_POST['massid']);
     $postid = text($_POST['postid']);
     if (innerMsgSend($massid)) {
         $data['status'] = 1;
         M('inner_msg')->where(array("mass_id" => $massid, "uid" => 0))->save($data);
         $logText = "将站内信成功发送";
         saveCommonLog($postid, $logText, "members", session('adminname'), $this->admin_id, $this->logOpType["MSG_OPT"][0]);
         ajaxmsg('', 1);
     } else {
         ajaxmsg('', 0);
     }
 }
开发者ID:hutao1004,项目名称:yintt,代码行数:14,代码来源:InnermsgAction.class.php


注:本文中的ajaxmsg函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。