public function ajax_page($current_id) { isset($_GET['current_id']) && ($current_id = intval($_GET['current_id'])); $Page = D('Page'); import("ORG.Util.Page"); $count = M("current_investor")->where("current_id = {$current_id} and `order` <> ''")->count('id'); $Page = new Page($count, 5); $show = $Page->ajax_show(); $this->assign('page', $show); if ($_GET['current_id']) { $list = M("current_investor t")->join("lzh_members s ON s.id = t.invest_uid")->where("t.current_id = {$current_id} and t.order <> ''")->order('t.id')->limit($Page->firstRow . ',' . $Page->listRows)->select(); $str = ''; foreach ($list as $k => $v) { $str .= "<ul class='items'>\n\t\t\t\t\t\t<li class='col_1'>" . hidecard($v['user_name'], 5) . "</li>\n\t\t\t\t\t\t<li class='col_2'>" . $v['buy_money'] . "</li>\n\t\t\t\t\t\t<li class='col_3'>" . date("Y-m-d H:i", $v['add_time']) . "</li>\n\t\t\t\t\t\t<li class='col_4'><span class='succ'><i class='icons cm-green'></i>成功</span></li>\t\t\t\t\t\t\n\t\t\t\t\t</ul>"; } $data = array(); $data['html'] = empty($str) ? '暂时没有投资记录' : $str; $data['count'] = $count; echo json_encode($data); } }
<div id="head_ne2"><h5>近30天还款情况<span>(<?php echo ($nearlyStartDate); ?>至<?php echo ($nearlyEndDate); ?>)</span></h5></div> <div id="bottomPart"> <table width="958" border="0" cellspacing="0" cellpadding="0"> <tr> <th>借款人</th> <th>还款截止日期</th> <th>金额(含利息)</th> <th>已还期数/总期数</th> <th>当前期数</th> <th>状态</th> <th>实际还款时间</th> <th>备注</th> </tr> <?php if(is_array($nearlylist)): $i = 0; $__LIST__ = $nearlylist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nl): $mod = ($i % 2 );++$i;?><tr> <td align="center"><a href="javascripg:void(0);"><?php echo (hidecard($nl["borrow_user"],8)); ?></a></td> <td align="center"><?php echo (date("Y-m-d",$nl["deadline"])); ?></td> <td align="center"><?php echo (fmoney($nl["repay_money"],false)); ?></td> <td align="center"><?php echo (($nl["back"])?($nl["back"]):"0"); ?>/<?php echo ($nl["total"]); ?>(<?php if($nl["repayment_type"] == 1): ?>天<?php else: ?>月<?php endif; ?>)</td> <td align="center"><?php echo ($nl["sort_order"]); ?></td> <td align="center"><?php if($nl['repayment_time'] != 0): ?>已还<?php else: ?>待还<?php endif; ?></td> <td align="center"><?php if($nl['repayment_time'] != 0): echo (date("Y-m-d H:i",$nl["repayment_time"])); else: ?>-<?php endif; ?></td> <td align="left"><a href="<?php echo (getinvesturl($nl["borrow_id"])); ?>" target="_blank"><?php echo ($nl["borrow_name"]); ?></a></td> </tr><?php endforeach; endif; else: echo "" ;endif; ?> </table> <div class="pages"><?php echo ($pagebar); ?></div> </div> </div> <script language=javascript src="__ROOT__/Style/Js/gchart/jquery.gchart.min.js" type=text/javascript></script> <script language=javascript src="__ROOT__/Style/Js/gchart/jquery.gchart.icons.min.js" type=text/javascript></script> <script language=javascript src="__ROOT__/Style/Js/gchart/jquery.gchart.graphviz.min.js" type=text/javascript></script>
<h4>推广系统说明</h4> <p><span>一、</span>请不要发送邀请信给不熟悉的人士,避免给别人带来不必要的困扰。</p> <p><span>二、</span>请把下边的链接地址发给您的好友,这样您就成了他的上线用户。</p> <p><span>三、</span>您的线下用户在网站投资(不包含秒还标、净值标交易、天标按天数/30来算奖励),立即送您他投资金额千分之 2 的奖金(依次累计),赶快行动吧。</p> <p><span>四、</span>永久有效只要他在网站投资无论何时您都可以得到奖金。</p> <p><span>五、</span>奖金即时自动结算不会延时。</p> <p><span>六、</span>奖金不封顶 无论线下用户投资多少您都可以拿到奖金。</p> <h6>登陆陆会员账号之后,您可以看到推广的邀请链接,邀请好友成功投标后,您即可获得丰厚奖励!<br /> 现新推出会员推广号,好友在注册时填写会员推广号成功投标后,也可获得丰厚奖励!</h6> </div> </div> <div id="ext_r"> <h4>推广收入排名<span>前10名</span></h4> <ul> <li><h6>会员名单</h6><h6>奖金贡献</h6></li> <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><p><?php echo (hidecard($vo["user_name"],8)); ?></p><p><?php echo (($vo["jiangli"])?($vo["jiangli"]):0); ?></p></li><?php endforeach; endif; else: echo "" ;endif; ?> </ul> </div> </div> <script type="text/javascript" src="__ROOT__/Style/ZeorClipboard/ZeroClipboard.js"></script> <script type="text/javascript" src="__ROOT__/Style/ZeorClipboard/mod_showcodes.js"></script> <script type="text/javascript"> var newTitle = '<?php echo ($glo["web_name"]); ?>提醒您:'; function copyToClipboard(obj) { if (obj) { var clipBoardContent = obj.value; $(obj).select(); try { window.clipboardData.setData("Text", clipBoardContent); $.jBox.tip("您好,链接复制成功!",'info');
public function actlogin() { $jsoncode = file_get_contents("php://input"); $arr = array(); $arr = json_decode($jsoncode, true); setcookie('LoginCookie', '', time() - 10 * 60, "/"); //uc登录 require_once "./config.inc.php"; require "./uc_client/client.php"; //uc登录 list($uid, $username, $password, $email) = uc_user_login(text($arr['username']), $arr['password']); false !== strpos($arr['username'], "@") ? $data['user_email'] = text($arr['username']) : ($data['user_name'] = text($arr['username'])); $vo = M('members')->field('id,user_name,user_email,user_pass,is_ban')->where($data)->find(); if ($vo['is_ban'] == 1) { ajaxmsg("您的帐户已被冻结,请联系客服处理!", 0); } if ($uid > 0) { if (!$vo) { $regdata['txtUser'] = text($arr['username']); $regdata['txtPwd'] = text($arr['password']); $regdata['txtEmail'] = $email; $newuid = $this->ucreguser($regdata); if (is_numeric($newuid) && $newuid > 0) { //用户登录成功,设置 Cookie,加密直接用 uc_authcode 函数,用户使用自己的函数 //setcookie('LoginCookie', uc_authcode($uid."\t".$username, 'ENCODE')); //生成同步登录的代码 //$ucsynlogin = uc_user_synlogin($uid); //echo json_encode($ucsynlogin);exit; if (is_array($vo)) { if ($vo['user_pass'] == md5($arr['password'])) { //本站登录成功 $this->_memberlogin($vo['id']); //alogs("login",'','1',session("u_id")."登录成功"); $arr2 = array(); $arr2['type'] = 'actlogin'; $arr2['deal_user'] = $vo['user_name']; $arr2['tstatus'] = '1'; $arr2['deal_time'] = time(); $arr2['deal_info'] = $vo['user_name'] . "app登录成功"; $newid = M("auser_dologs")->add($arr2); $mess = array(); $mess['uid'] = intval(session("u_id")); $mess['username'] = $vo['user_name']; //$mess['phone'] = intval(session("u_user_phone")); $mess['head'] = get_avatar($mess['uid']); //头像 $minfo = getMinfo($mess['uid'], true); $mess['credits'] = getLeveIco($minfo['credits'], 3); //会员等级 $membermoney = M("member_money")->field(true)->where("uid={$mess['uid']}")->find(); if (is_array($membermoney)) { $mess['mayuse'] = $membermoney['account_money'] + $membermoney['back_money']; //可用 $mess['freeze'] = $membermoney['money_freeze']; //冻结 $mess['collect'] = $membermoney['money_collect']; //代收 $mess['total'] = $mess['mayuse'] + $mess['freeze'] + $mess['collect']; //总额 } else { $mess['total'] = 0; $mess['mayuse'] = 0; $mess['freeze'] = 0; $mess['collect'] = 0; } $pre = C('DB_PREFIX'); $vo = M("members m")->field("m.user_email,m.user_phone,m.id,m.user_leve,m.time_limit,m.pin_pass,s.id_status,s.phone_status,s.email_status,s.video_status,s.face_status")->join("{$pre}members_status s ON s.uid=m.id")->where("m.id={$mess['uid']}")->find(); $str = ""; if ($vo['id_status'] == 1) { $mess['id_status'] = 1; $vm = M("member_info")->field('idcard,real_name')->find($mess['uid']); $mess['real_name'] = $vm['real_name']; $mess['idcard'] = hidecard($vm['idcard'], 1); } elseif ($vo['id_status'] == 3) { $mess['id_status'] = 2; } else { $mess['id_status'] = 0; } if ($vo['phone_status'] == 1) { $mess['phone_status'] = 1; $mess['phone'] = hidecard($vo['user_phone'], 2); } else { $mess['phone_status'] = 0; } if ($vo['email_status'] == 1) { $mess['email_status'] = 1; $mess['email'] = $vo['user_email']; } else { $mess['email_status'] = 0; } /*if(M('escrow_account')->where("uid={$this->uid}")->count('uid')){ // ajaxmsg('您已经绑定了托管账户,无需重复绑定',0); $mess['escrow']=1; }else{ $mess['escrow']=0; } $user_qdd = M('escrow_account')->field("invest_auth,secondary_percent")->where("uid=".$this->uid)->find(); if($user_qdd['invest_auth'] == 0 || $user_qdd['secondary_percent'] == 0) { $mess['escrow_auth']=0; }else{ $mess['escrow_auth']=1; } */ $vobank = M("member_banks")->field(true)->where("uid = {$this->uid} and bank_num !=''")->find(); if (empty($vobank['bank_num'])) { $mess['bank_status'] = 0; } else { $mess['bank_status'] = 1; } $money_info = M("member_money")->field("account_money, back_money")->where("uid={$this->uid}")->find(); $mess['common_money'] = $money_info['account_money']; $money_info = M("member_money")->field("account_money, back_money")->where("uid={$this->uid}")->find(); $mess['back_money'] = $money_info['back_money']; } else { //本站登录不成功 // ajaxmsg("kk用户名或者密码错误!", 0); } } ajaxmsg($mess); } else { ajaxmsg($newuid, 0); } } else { session('u_id', $localuser['id']); session('u_user_name', $data['user_name']); $ucsynlogin = uc_user_synlogin($uid); if (is_array($vo)) { if ($vo['user_pass'] == md5($arr['password'])) { //本站登录成功 $this->_memberlogin($vo['id']); //alogs("login",'','1',session("u_id")."登录成功"); $arr2 = array(); $arr2['type'] = 'actlogin'; $arr2['deal_user'] = $vo['user_name']; $arr2['tstatus'] = '1'; $arr2['deal_time'] = time(); $arr2['deal_info'] = $vo['user_name'] . "app登录成功"; $newid = M("auser_dologs")->add($arr2); $mess = array(); $mess['uid'] = intval(session("u_id")); $mess['username'] = $vo['user_name']; //$mess['phone'] = intval(session("u_user_phone")); $mess['head'] = get_avatar($mess['uid']); //头像 $minfo = getMinfo($mess['uid'], true); $mess['credits'] = getLeveIco($minfo['credits'], 3); //会员等级 $membermoney = M("member_money")->field(true)->where("uid={$mess['uid']}")->find(); if (is_array($membermoney)) { $mess['mayuse'] = $membermoney['account_money'] + $membermoney['back_money']; //可用 $mess['freeze'] = $membermoney['money_freeze']; //冻结 $mess['collect'] = $membermoney['money_collect']; //代收 $mess['total'] = $mess['mayuse'] + $mess['freeze'] + $mess['collect']; //总额 } else { $mess['total'] = 0; $mess['mayuse'] = 0; $mess['freeze'] = 0; $mess['collect'] = 0; } $pre = C('DB_PREFIX'); $vo = M("members m")->field("m.user_email,m.user_phone,m.id,m.user_leve,m.time_limit,m.pin_pass,s.id_status,s.phone_status,s.email_status,s.video_status,s.face_status")->join("{$pre}members_status s ON s.uid=m.id")->where("m.id={$mess['uid']}")->find(); $str = ""; if ($vo['id_status'] == 1) { $mess['id_status'] = 1; $vm = M("member_info")->field('idcard,real_name')->find($mess['uid']); $mess['real_name'] = $vm['real_name']; $mess['idcard'] = hidecard($vm['idcard'], 1); } elseif ($vo['id_status'] == 3) { $mess['id_status'] = 2; } else { $mess['id_status'] = 0; } if ($vo['phone_status'] == 1) { $mess['phone_status'] = 1; $mess['phone'] = hidecard($vo['user_phone'], 2); } else { $mess['phone_status'] = 0; } if ($vo['email_status'] == 1) { $mess['email_status'] = 1; $mess['email'] = $vo['user_email']; } else { $mess['email_status'] = 0; } /*if(M('escrow_account')->where("uid={$this->uid}")->count('uid')){ // ajaxmsg('您已经绑定了托管账户,无需重复绑定',0); $mess['escrow']=1; }else{ $mess['escrow']=0; } $user_qdd = M('escrow_account')->field("invest_auth,secondary_percent")->where("uid=".$this->uid)->find(); if($user_qdd['invest_auth'] == 0 || $user_qdd['secondary_percent'] == 0) { $mess['escrow_auth']=0; }else{ $mess['escrow_auth']=1; } */ $vobank = M("member_banks")->field(true)->where("uid = {$this->uid} and bank_num !=''")->find(); if (empty($vobank['bank_num'])) { $mess['bank_status'] = 0; } else { $mess['bank_status'] = 1; } $money_info = M("member_money")->field("account_money, back_money")->where("uid={$this->uid}")->find(); $mess['common_money'] = $money_info['account_money'] ? $money_info['account_money'] : 0; $money_info = M("member_money")->field("account_money, back_money")->where("uid={$this->uid}")->find(); $mess['back_money'] = $money_info['back_money'] ? $money_info['back_money'] : 0; } else { //本站登录不成功 ajaxmsg("kk用户名或者密码错误!", 0); } } ajaxmsg($mess); //echo json_encode($ucsynlogin);exit; } } elseif ($uid == -1) { ajaxmsg("用户不存在,或被删除!", 0); } elseif ($uid == -2) { ajaxmsg("密码错误!", 0); } else { ajaxmsg("未知错误!", 0); } }
public function only_stock() { ///////////////配资盈利列表//////////// $jsoncode = file_get_contents("php://input"); $arr = array(); $arr = json_decode($jsoncode, true); if (!is_array($arr) || empty($arr) || empty($arr['uid'])) { ajaxmsg("数据错误", 0); } //$data['uid']=$arr['uid']; //var_dump($data);die; $shares_list = M("shares_record r")->join("lzh_shares_apply a ON a.id = r.shares_id")->where("r.uid={$arr['uid']}")->field("r.profit_loss,a.principal,a.shares_money,a.u_name")->select(); //var_dump($shares_list);die; $data = getRetRate($shares_list); foreach ($data as $key => $v) { $list[$key]['profit_loss'] = $v['profit_loss']; $list[$key]['principal'] = $v['principal']; $list[$key]['shares_money'] = $v['shares_money']; $list[$key]['u_name'] = hidecard($v['u_name'], 5); $list[$key]['retrate'] = $v['retrate']; } $redata['list'] = $list; ajaxmsg($redata); }
public function investRecord($borrow_id = 0) { isset($_GET['borrow_id']) && ($borrow_id = intval($_GET['borrow_id'])); $Page = D('Page'); import("ORG.Util.Page"); $count = M("borrow_investor")->where('borrow_id=' . $borrow_id)->count('id'); $Page = new \Org\Util\Page($count, 10); $show = $Page->ajax_show(); $this->assign('page', $show); if ($_GET['borrow_id']) { $list = M("borrow_investor as b")->join(C(DB_PREFIX) . "members as m on b.investor_uid = m.id")->join(C(DB_PREFIX) . "borrow_info as i on b.borrow_id = i.id")->field('i.borrow_interest_rate, i.repayment_type, b.investor_capital, b.add_time, b.is_auto, m.user_name')->where('b.borrow_id=' . $borrow_id)->order('b.id')->limit($Page->firstRow . ',' . $Page->listRows)->select(); /*foreach($list as $k=>$v){ $relult=$k%2; if(!$relult){ $string .= "<tr style='background-color: rgb(255, 255, 255);' class='borrowlist3'> <td width='148' class='txtC'>".hidecard($v['user_name'],5)."</td> <td width='148' class='txtC'>"; }else{ $string .= "<tr style='background-color: rgb(236, 249, 255);' class='borrowlist5'> <td width='148' class='txtC'>".hidecard($v['user_name'],5)."</td> <td width='148' class='txtC'>"; } $string .= $v['is_auto']?'自动':'手动'; $string .= "</td> <td width='128' class='txtRight pr30'>".Fmoney($v['investor_capital'])."元</td> <td width='198' class='txtC'>".date("Y-m-d H:i",$v['add_time'])."</td> <td></td></tr>"; }*/ foreach ($list as $k => $v) { echo '<div class="c_jilu">'; echo '<div class="c_tbjl01">' . hidecard($v['user_name'], 4) . '</div>'; echo '<div class="c_tbjl02">' . $v['borrow_interest_rate'] . '%</div>'; echo '<div class="c_tbjl03">' . Fmoney($v['investor_capital']) . '</div>'; echo '<div class="c_tbjl04">' . date("Y-m-d", $v['add_time']) . ' <span>' . date("H:i", $v['add_time']) . '</span></div>'; echo '<div class="c_tbjl05">'; echo $v['is_auto'] ? '自动' : '手动'; echo '</div>'; echo '<div class="c_tbjl06"><img src="/Style/H/images/images/wancheng2.png" width="21" height="21" /></div>'; echo '<div class="clear"></div>'; echo '</div>'; } } }
function popusers2() { // fang@14/11/12 //投资排行榜 $MonthA = strtotime(date("Y-m-1")); $thirty = strtotime(date("Y-m-30")); $affect_money9 = M('member_moneylog l')->field("abs(sum(l.affect_money))as affect ,m.user_name,l.add_time ")->join("lzh_members m ON l.uid = m.id ")->where("(l.type = 6 or l.type = 39) and (l.add_time < {$thirty} and l.add_time > {$MonthA})")->group("l.uid")->order("affect DESC")->limit("20")->select(); $html = '<ul class="popbox">'; foreach ($affect_money9 as $i => $rows) { $html .= '<li><span class="ln">' . ($i + 1) . '</span><span class="user">' . hidecard($rows['user_name'], 5) . '</span><span class="money">' . $rows['affect'] . '</span></li>'; } return $html . '</ul>'; }
public function news_user() { ///////////////配资列表//////////// $shares_apply = M("shares_apply")->where("status in(2,3,6)")->field("u_name,shares_money,examine_time")->order("examine_time DESC")->limit(20)->select(); foreach ($shares_apply as $key => $v) { $list[$key]['u_name'] = hidecard($v['u_name'], 5); $list[$key]['shares_money'] = $v['shares_money']; $list[$key]['examine_time'] = $v['examine_time']; } $redata['list'] = $list; ajaxmsg($redata); }
function hasErr() { return $(".alertDiv ul li").length > 0; } </script> <div class="us_rb11"> <div class="u12_clew"> <p><img src="__ROOT__/Style/H/images/ministar.gif" style="margin-right: 5px;"> 尊敬的<?php echo ($voinfo["real_name"]); ?>先生/女士,提现操作涉及您的资金安全,敬请仔细操作。</p> </div> <div style="width: 716px; display: none; margin-left:20px" class="alertDiv"> <ul style="display: block;"> </ul> </div> <ul> <li><p>您当前的银行账号:</p><?php echo (hidecard($vobank["bank_num"],3,'还没有登记您的银行账号')); ?></li> <li><p>您当前的银行名称:</p><div class="sel_border"><div class="selNr"><select name="bank_name" id="bank_name" class="c_select sel"><option value="">--请选择--</option><?php foreach($bank_list as $key=>$v){ if($vobank["bank_name"]==$key && $vobank["bank_name"]!=""){ ?><option value="<?php echo ($key); ?>" selected="selected"><?php echo ($v); ?></option><?php }else{ ?><option value="<?php echo ($key); ?>"><?php echo ($v); ?></option><?php }} ?></select><span id="tip_bank_name" class="tip">*</span></div></div></li> <li><p><span>*</span>您银行账户户主姓名:</p><?php echo ($voinfo["real_name"]); ?></li> <li><p><span>*</span>输入您的当前的银行帐号:</p><input type="text" class="u11_tex1" id="txt_oldaccount" /><h6>(为了您的资金安全,请输入您当前的银行账号)</h6></li> <li><p><span>*</span>输入您新的银行帐号:</p><input type="text" class="u11_tex1" id="txt_account" /><h6>(信用卡帐号无法提现,请不要误填)</h6></li> <li><p><span>*</span>确认您新的银行帐号:</p><input type="text" class="u11_tex1" id="txt_confirmaccount" /><h6>(请再次确认您添加的银行账号)</h6></li> <li><p><span>*</span>开户银行城市:</p> <div class="sel_border"><div class="selNr"><select name="selectp" id="province" class="sel"><option value="0">请选择省份 </option></select></div></div> <div class="sel_border"><div class="selNr"><select name="selectc" id="city" class="sel"><option value="0">请选择城市</option></select></div></div> <div class="sel_border"><div class="selNr"><select name="selectc" id="district" style="display:none" class="sel"><option value="0">请选择地区</option></select></div></div> </li> <li><p><span>*</span>输入开户行支行名称:</p><input type="text" class="u11_tex1" name="txt_bankName" id="txt_bankName" value="<?php echo ($vobank["bank_address"]); ?>"/><h6>(如不能确定,请拨打开户行的客服热线咨询)</h6></li> <li><p><span>*</span>输入手机验证码:</p><input type="text" class="u11_tex1" id="code" name="code" maxlength="6"/><h6><a href="javascript:;" onclick="sendMobileValidSMSCode()" id="btnSendMsg">获取短信验证码</a></h6><div class="spTip" id="sendSMSTip"></div></li> <li><p> </p><input type="button" class="u11_but" value="提交更新" id="btn_set"/></li> </ul> </div>
/** * ajax 获取投资记录 * */ public function investRecord($re = false, $page = false) { isset($_GET['id']) && ($borrow_id = intval($_GET['id'])); //$Page = D('Page'); import("ORG.Util.Page"); $count = M("borrow_investor")->where('borrow_id=' . $borrow_id)->count('id'); $Page = new Page($count, 10); $show = $Page->ajax_show(); $this->assign('page', $show); if (true === $page) { return true; } if ($borrow_id) { $list = M("borrow_investor as b")->join(C(DB_PREFIX) . "members as m on b.investor_uid = m.id")->join(C(DB_PREFIX) . "borrow_info as i on b.borrow_id = i.id")->field('b.id,b.ent,i.borrow_interest_rate, i.repayment_type, b.investor_capital, b.add_time, b.is_auto, m.user_name')->where('b.borrow_id=' . $borrow_id)->order('b.id')->limit($Page->firstRow . ',' . $Page->listRows)->select(); $string = ''; if (true === $re) { return array('count' => $count, 'list' => $list); } foreach ($list as $k => $v) { $relult = $k % 2; if (!$relult) { $string .= "<tr class='h_tdblue'><td width='148' class='txtC'>" . hidecard($v['user_name'], 5) . "</td>"; } else { $string .= "<tr><td width='148' class='txtC'>" . hidecard($v['user_name'], 5) . "</td>"; } $string .= "<td width='148' class='txtC" . ($v['ent'] ? ' new_add' : '') . "'>"; if ($v['ent']) { $string .= <<<EOT <em class="new_wechat_tit">微信</em><i class="new_wechat" data-id='{$v['id']}'></i> <p class="sweep_wechat" style="display: none;" id='sweep_wechat_{$v['id']}'> <em class="point1"></em> <img src="/Style/img/wechat.jpg" width="140" height="138"> <span class="sweep_wechat_con">扫码注册领<i>百元</i>红包</span> <span class="sweep_wechat_con">微信投标享<i>干二</i>奖励</span> </p> EOT; } else { $string .= $v['is_auto'] ? '自动' : '手动'; } $string .= "</td>\n <td width='128' class='txtRight pr30'>" . Fmoney($v['investor_capital']) . "元</td>\n <td width='198' class='txtC'>" . date("Y-m-d H:i:s", $v['add_time']) . "</td>\n <td></td></tr>"; } echo empty($string) ? '暂时没有投资记录' : $string; } }
</div> <!--<div id="discuss"> <div id="discuss_h"><h4>评论<span>(<?php echo ($commentcount); ?>)</span></h4></div> <div id="dis_repost"> <div id="dis_repost_l"><?php if(!empty($UID)): ?><p><a href="__APP__/member/user#fragment-1"><img src="<?php echo (get_avatar($UID)); ?>" width="80" height="80" alt="" /></a></p><p><a href="__APP__/member"><?php echo session('u_user_name');?></a></p><?php endif; ?></div> <div id="dis_repost_r"> <textarea class="disr_text" name="comments" id="comments"></textarea> <input type="button" class="disr_but" value="发 表" onClick="addComment();" /> </div> </div> <?php if(is_array($commentlist)): $i = 0; $__LIST__ = $commentlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vc): $mod = ($i % 2 );++$i;?><div class="dis_review"> <div class="dis_review_l"><p><a href="javascript:void(0)"><img src="<?php echo (get_avatar($vc["uid"])); ?>" width="80" height="80" alt="" /></a></p><p><a href="javascript:void(0)"><?php echo (hidecard($vc["uname"],8)); ?></a></p></div> <div class="dis_review_div"></div> <div class="dis_review_r"> <p><?php echo ($vc["comment"]); ?></p> <h6><?php echo (date("Y-m-d H:i:s",$vc["add_time"])); ?></h6> </div> </div><?php endforeach; endif; else: echo "" ;endif; ?> </div>--> <!-- Left // --> </div> <?php $parm = array(); $parm['type_id'] = 392; $parm['limit'] = 6; $questionList = getArticleList($parm); $recentList = getRecentList(10); $nearlyStartTime = strtotime("-3 days"); $nearlyStartDate = date('Y-m-d', $nearlyStartTime); $nearlyEndTime = strtotime("$nearlyStartDate 1 month -1 day"); $map = array(); $map['d.status'] = array("neq", 0); $map['d.deadline'] = array("between", $nearlyStartTime.','.$nearlyEndTime); $nearlylist = getTenderList($map, null, 10, 'd.deadline asc'); $recentPayList = $nearlylist['list']; ?> <div id="right"> <!-- Right -->
<?php else: ?> <li><div class="rt_6ov"></div><a href="javascript:void(0)" onclick="faceverify();">现场认证</a></li><?php endif; ?> --> </ul> </div> <div class="us_rh"> <ul> <li class="cen">账户安全</li> </ul> </div> <div class="us_rb1"> <p>真实姓名:<?php echo (($memberdetail["real_name"])?($memberdetail["real_name"]):"<span>还未验证</span>"); if($mstatus["id_status"] != '1'): ?><a href="__APP__/member/verify#fragment-3">[马上验证]</a><?php else: ?><samp>已验证通过</samp><?php endif; ?></p> <p>身份证号:<?php echo (hidecard($memberdetail["idcard"],1,"<span>还未验证</span>")); if($mstatus["id_status"] != '1'): ?><a href="__APP__/member/verify#fragment-3">[马上验证]</a><?php else: ?><samp>已验证通过</samp><?php endif; ?></p> <p>登录密码:<span class="yellow">安全度中</span><a href="../member/user#fragment-2">[修改密码]</a></p> <p>安全问题:<?php if($mstatus["safequestion_status"] != '1'): ?><span>还未设置</span><a href="__APP__/member/verify#fragment-7">[马上设置]</a><?php else: ?><samp>已设置</samp><a href="__APP__/member/safe#fragment-2">[马上修改]</a><?php endif; ?></p> <p>手机号码:<?php echo (hidecard($memberinfo["user_phone"],2,"<span>还未验证</span>")); if($mstatus["phone_status"] != '1'): ?><a href="__APP__/member/verify#fragment-2">[马上验证]</a><?php else: ?><samp>已验证通过</samp><?php endif; ?></p> <p>电子邮箱:<?php echo (($memberinfo["user_email"])?($memberinfo["user_email"]):"<span>还未验证</span>"); if($mstatus["email_status"] != '1' ): ?><a href="__APP__/member/verify#fragment-1">[马上验证]</a><?php else: ?><samp>已验证通过</samp><?php endif; ?></p> </div> <div class="us_rh"> <ul> <li class="cen"><a href="javascript:void(0)">资金信息</a></li> <li class="usrhDiv"></li> </ul> </div> <div class="us_rb2"> <div class="us_rb2_upper"> <h4>账户总额 :<span title="账户总额=可用余额+冻结总额+待收总额" class="xtitle"><?php echo Fmoney(getFloatvalue($minfo['account_money']+$minfo['money_collect']+$minfo['money_freeze'],2));?></span></h4> <input type="button" class="rb2_but1" value="投 资" onclick="window.location.href='__APP__/invest/index.html'" /> <input type="button" class="rb2_but2" value="充 值" onclick="window.location.href='__APP__/member/charge#fragment-1'" /> <input type="button" class="rb2_but2" value="提 现" onclick="window.location.href='__APP__/member/withdraw#fragment-1'" />
public function id_status() { $ids = M('members_status')->getFieldByUid($this->uid, 'id_status'); if ($ids == 1) { $data['id_status'] = 1; $vo = M("member_info")->field('idcard,real_name')->find($this->uid); $data['real_name'] = $vo['real_name']; $data['idcard'] = hidecard($vo['idcard'], 1); } elseif ($ids == 3) { $data['id_status'] = 2; } else { $data['id_status'] = 0; } ajaxmsg($data); }
public function dogetpass() { $data['user_name'] = text($_POST['u']); $v = text($_POST['v']); if (empty($v) && !ListMobile()) { ajaxmsg('验证码不能为空!', 2); } if ($_SESSION['verify'] != md5(strtolower($v)) && !ListMobile()) { ajaxmsg("验证码错误!", 2); } if (empty($data['user_name'])) { ajaxmsg('用户名不能为空!', 3); } $vo = M('members')->field('user_name,user_phone')->where($data)->find(); if (is_array($vo)) { if ($vo['user_phone']) { session('retrieve_name', $vo['user_name']); // session('retrieve',$vo['user_phone']); ajaxmsg(hidecard($vo['user_phone'], 2)); } else { ajaxmsg('您的手机未通过认证,不能自动取回密码,请联系客服!', 4); } } else { ajaxmsg('用户名不存在!', 3); } }
public function bank() { $ids = M('members_status')->getFieldByUid($this->uid, 'id_status'); if ($ids != 1) { ajaxmsg("您还未完成身份验证,请先进行实名认证", 0); } else { if (!M('escrow_account')->where("uid={$this->uid} and account <>''")->count('uid')) { ajaxmsg("你还未绑定托管账户,请先绑定托管账户", 0); } $voinfo = M("member_info")->field('idcard,real_name')->find($this->uid); $vobank = M("member_banks")->field(true)->where("uid = {$this->uid} and bank_num !=''")->find(); $vobank['bank_province'] = M('area')->getFieldByid("{$vobank['bank_province']}", 'name'); $vobank['bank_city'] = M('area')->getFieldByid("{$vobank['bank_city']}", 'name'); if (!empty($vobank['bank_num'])) { $data['bank_num'] = hidecard($vobank['bank_num'], 3); $data['bank_name'] = hidecard($vobank['bank_name'], 4); $data['real_name'] = cnsubstr($voinfo['real_name'], 1, 0, 'utf-8', false) . str_repeat("*", strlen($voinfo['real_name']) - 1); $data['bank_province'] = "开户银行所在省份:" . $vobank['bank_province']; $data['bank_city'] = "开户银行所在市:" . $vobank['bank_city']; $data['bank_address'] = "开户行支行名称:" . $vobank['bank_address']; ajaxmsg($data); } else { $data['real_name'] = cnsubstr($voinfo['real_name'], 1, 0, 'utf-8', false) . str_repeat("*", strlen($voinfo['real_name']) - 1); ajaxmsg($data, 2); //ajaxmsg("您还未绑定银行卡",0); } } }
public function two_verify() { $jsoncode = file_get_contents("php://input"); $arr = array(); $arr = json_decode($jsoncode, true); if ($arr['uid'] != $this->uid) { ajaxmsg("数据有误!", 0); } $pre = C('DB_PREFIX'); $vo = M("members m")->field("m.user_email,m.user_phone,m.id,m.user_leve,m.time_limit,s.id_status,s.phone_status,s.email_status,s.video_status,s.face_status")->join("{$pre}members_status s ON s.uid=m.id")->where("m.id={$this->uid}")->find(); $str = ""; if ($vo['id_status'] == 1) { $mess['id_status'] = 1; $vm = M("member_info")->field('idcard,real_name')->find($mess['uid']); $mess['real_name'] = $vm['real_name']; $mess['idcard'] = hidecard($vm['idcard'], 1); } elseif ($vo['id_status'] == 3) { $mess['id_status'] = 2; } else { $mess['id_status'] = 0; } if ($vo['phone_status'] == 1) { $mess['phone_status'] = 1; $mess['phone'] = hidecard($vo['user_phone'], 2); } else { $mess['phone_status'] = 0; } if ($vo['email_status'] == 1) { $mess['email_status'] = 1; $mess['email'] = $vo['user_email']; } else { $mess['email_status'] = 0; $mess['email'] = $vo['user_email']; } ajaxmsg($mess); }
public function getBorrowInvestnew($bid, $where) { $db = core::db()->getConnect('CAILAI', true); $sql = sprintf("SELECT b.id,b.investor_uid as investorid,b.investor_capital AS invest_money,b.add_time AS invest_time,b.is_auto AS invest_type,m.user_name AS invest_name,b.invest_channel FROM %s AS b LEFT JOIN %s AS m ON b.investor_uid = m.id WHERE b.borrow_id = '%s' AND %s ORDER BY b.id desc ", $this->tablebi, $this->tablem, $bid, $where); $zw = $db->query($sql); while ($row = $db->fetchArray($zw)) { $row['invest_name'] = hidecard($row['invest_name'], 5); $row['invest_money'] = (double) $row['invest_money']; $data[] = $row; } return $data; }
public function newinvestRecord($id = 0) { isset($_GET['id']) && ($id = intval($_GET['id'])); $Page = D('Page'); import("ORG.Util.Page"); $count = M("newbie_record")->where('status=7')->count('id'); $Page = new Page($count, 100); // $show = $Page->ajax_show(); // $this->assign('pager', $show); if ($_GET['id']) { $list = M("newbie_record as b")->field('b.username,b.invest_money,b.invest_time')->where('b.status=7')->order('b.invest_time desc')->limit($Page->firstRow . ',' . $Page->listRows)->select(); $string = ''; foreach ($list as $k => $v) { $relult = $k % 2; if (!$relult) { $string .= "<tr style='background-color: rgb(255, 255, 255);' class='borrowlist3'>\n <td width='148' class='txtC'>" . hidecard($v['username'], 5) . "</td>\n <td width='148' class='txtC'>"; } else { $string .= "<tr style='background-color: rgb(236, 249, 255);' class='borrowlist5'>\n <td width='148' class='txtC'>" . hidecard($v['username'], 5) . "</td>\n <td width='148' class='txtC'>"; } $string .= $v['is_auto'] ? '新手标' : '新手标'; $string .= "</td>\n <td width='128' class='txtRight pr30'>" . Fmoney($v['invest_money']) . "元</td>\n <td width='198' class='txtC'>" . date("Y-m-d H:i", $v['invest_time']) . "</td>\n <td></td></tr>"; } echo empty($string) ? '暂时没有投资记录' : $string; } }
/** * ajax 获取投资记录 * */ public function tinvestRecord($borrow_id = 0) { isset($_GET['borrow_id']) && ($borrow_id = intval($_GET['borrow_id'])); $Page = D('Page'); import("ORG.Util.Page"); $count = M("borrow_investor")->where('borrow_id=' . $borrow_id)->count('id'); $Page = new Page($count, 10); $show = $Page->ajax_show(); $this->assign('page', $show); if ($_GET['borrow_id']) { $list = M("borrow_investor as b")->join(C(DB_PREFIX) . "members as m on b.investor_uid = m.id")->join(C(DB_PREFIX) . "borrow_info as i on b.borrow_id = i.id")->field('i.borrow_interest_rate, i.repayment_type, b.investor_capital, b.add_time, b.is_auto, m.user_name')->where('b.borrow_id=' . $borrow_id)->order('b.id')->limit($Page->firstRow . ',' . $Page->listRows)->select(); $string = ''; foreach ($list as $k => $v) { $relult = $k % 2; if (!$relult) { $string .= "<tr style='background-color: rgb(255, 255, 255);' class='borrowlist3'>\n <td width='148' class='txtC'>" . hidecard($v['user_name'], 5) . "</td>\n <td width='148' class='txtC'>"; } else { $string .= "<tr style='background-color: rgb(236, 249, 255);' class='borrowlist5'>\n <td width='148' class='txtC'>" . hidecard($v['user_name'], 5) . "</td>\n <td width='148' class='txtC'>"; } $string .= $v['is_auto'] ? '自动' : '手动'; $string .= "</td>\n <td width='128' class='txtRight pr30'>" . Fmoney($v['investor_capital']) . "元</td>\n <td width='198' class='txtC'>" . date("Y-m-d H:i", $v['add_time']) . "</td>\n <td></td></tr>"; } echo empty($string) ? '暂时没有投资记录' : $string; } }
<div class="u12_clew"> <p><img src="__ROOT__/Style/H/images/ministar.gif" style="margin-right: 5px;"> 尊敬的<?php echo ($vo["real_name"]); ?>,您可以将账户中的余额提取到银行卡中,敬请仔细操作 </p> </div> <div class="u12_clew"> <p> 1、尊敬的<?php echo ($vo["real_name"]); ?>,提现操作涉及您的资金变动,请仔细核对您的提现信息<br> 2、一般用户单日提现上限为30万元<br> 3、涉及到您的资金安全,请仔细操作</p> </div> <table width="758" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="110">您的银行账号是:</th> <td> <div style="height: 20px; line-height: 20px;"> <?php echo (hidecard($vo["bank_num"],3,'还没有登记您的银行账号')); ?> [<a href="__APP__/member/bank#fragment-1">点此修改</a>] </div> <div style="height: 20px; line-height: 20px;"> <?php echo ($vo["bank_name"]); ?> -- <?php echo ($vo["bank_address"]); ?> </div> </td> </tr> <tr> <th>您的真实姓名:</th> <td><?php echo ($vo["real_name"]); ?>(必须和您银行账户姓名一致)</td> </tr> <tr> <th>联络手机:</th> <td><?php echo (($vo["user_phone"])?($vo["user_phone"]):"还未验证"); ?> (<?php echo ($glo["web_name"]); ?>划款时会通知您)[<a href="__APP__/member/safe#fragment-3">点此修改</a>]</td>
public function downdingtoubao() { $per = C('DB_PREFIX'); $borrow_config = (require C("APP_ROOT") . "Conf/borrow_config.php"); $type = $borrow_config['REPAYMENT_TYPE']; $invest_id = intval($_GET['id']); if (empty($invest_id)) { $this->display("dingtoubao"); } $datag = get_global_setting(); $fee_rate = $datag['fee_invest_manage']; //投资者成交管理费费率 $iinfo = M("transfer_borrow_investor")->field(true)->where("investor_uid={$this->uid} AND id={$invest_id}")->find(); $binfo = M('transfer_borrow_info')->field(true)->find($iinfo['borrow_id']); $tou = M('transfer_investor_detail')->where("invest_id={$iinfo['id']} AND investor_uid={$this->uid} ")->find(); $detail = M("transfer_detail")->field(true)->find($iinfo['borrow_id']); $mBorrow = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,mi.address,mi.cell_phone,m.user_name')->where("m.id={$binfo['borrow_uid']}")->find(); $mInvest = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,mi.address,mi.cell_phone,mi.idcard,m.user_name,m.user_email')->where("m.id={$iinfo['investor_uid']}")->find(); $danbao = M('article')->field('id,title,art_img')->where("id={$binfo['danbao']}")->find(); if (!is_array($tou)) { $mBorrow['real_name'] = hidecard($mBorrow['real_name'], 4); } $binfo['repayment_name'] = $type[$binfo['repayment_type']]; $this->assign("bid", "LZBHT-" . str_repeat("0", 5 - strlen($iinfo['id'])) . $iinfo['id']); $detailinfo = M('transfer_investor_detail d')->join("{$per}transfer_borrow_investor bi ON bi.id=d.invest_id")->join("{$per}members m ON m.id=d.investor_uid")->field('d.borrow_id,d.investor_uid,d.borrow_uid,d.capital,sum(d.capital+d.interest-d.interest_fee) benxi,d.total,m.user_name,bi.investor_capital,bi.add_time')->where("d.borrow_id={$iinfo['borrow_id']} and d.invest_id ={$iinfo['id']}")->group('d.investor_uid')->find(); $time = M('transfer_borrow_investor')->field('id,add_time,deadline')->where("borrow_id={$iinfo['borrow_id']} order by add_time asc")->limit(1)->find(); $deadline_last = $time['deadline']; $this->assign('deadline_last', $deadline_last); $this->assign('detailinfo', $detailinfo); $type1 = $this->gloconf['BORROW_USE']; $binfo['borrow_use'] = $type1[$binfo['borrow_use']]; $type = $borrow_config['REPAYMENT_TYPE']; //echo $binfo['repayment_type']; $binfo['repayment_name'] = $type[$binfo['repayment_type']]; $iinfo['repay'] = getFloatValue(($iinfo['investor_capital'] + $iinfo['investor_interest']) / $binfo['borrow_duration'], 2); $Bconfig = (require C("APP_ROOT") . "Conf/borrow_config.php"); $ht = M('hetong')->field('hetong_img,name,dizhi,tel')->find(); $this->assign("ht", $ht); $this->assign("fee_rate", $fee_rate); $this->assign("Bconfig", $Bconfig); $this->assign('iinfo', $iinfo); $this->assign('binfo', $binfo); $this->assign('tou', $tou); $this->assign('mBorrow', $mBorrow); $this->assign('mInvest', $mInvest); $this->assign('danbao', $danbao); $this->assign('detail', $detail); $detail_list = M('transfer_investor_detail')->field(true)->where("invest_id={$invest_id}")->select(); $this->assign("detail_list", $detail_list); $ht = M('hetong')->field('hetong_img,name,dizhi,tel')->find(); $this->assign("ht", $ht); $this->display("dingtoubao"); }
public function anquan() { $jsoncode = file_get_contents("php://input"); // alogsm("anquan",0,1,session("u_id").$jsoncode); //$minfo =getMinfo($this->uid,true); //$this->assign("minfo",$minfo); //$this->assign("MinfoDone",getMemberInfoDone($this->uid)); //$this->assign("mstatus", M('members_status')->field(true)->find($this->uid)); //$this->assign("capitalinfo", getMemberBorrowScan($this->uid)); //$this->assign("memberinfo", M('members')->find($this->uid)); //$this->assign("memberdetail", M('member_info')->find($this->uid)); $mstatus = M('members_status')->field('safequestion_status,email_status')->find($this->uid); $memberinfo = M('members')->field('pin_pass,user_phone,user_email')->find($this->uid); $memberdetail = M('member_info')->field('real_name')->find($this->uid); if ($memberdetail['real_name'] != "") { $arr['real_name'] = $memberdetail['real_name']; } else { $arr['real_name'] = '还未验证'; } if ($mstatus['safequestion_status'] != 0) { $arr['safequestion_status'] = '已设置'; } else { $arr['safequestion_status'] = '还未验证'; } if ($memberinfo['pin_pass'] != "") { $arr['pin_pass'] = "******"; } else { $arr['pin_pass'] = '******'; } if ($memberinfo['user_phone'] != "") { $arr['user_phone'] = hidecard($memberinfo['user_phone'], 2); } else { $arr['user_phone'] = '还未验证'; } if ($mstatus['email_status'] == 1) { $arr['user_email'] = "已验证"; } else { $arr['user_email'] = '还未验证'; } $arr['denglu_pass'] = '******'; echo ajaxmsg($arr); //$this->display(); }
public function downliuzhuanfile() { $per = C('DB_PREFIX'); $borrow_config = (require C("APP_ROOT") . "Conf/borrow_config.php"); $type = $borrow_config['REPAYMENT_TYPE']; $invest_id = intval($_GET['id']); $iinfo = M("transfer_borrow_investor")->field(true)->where("investor_uid={$this->uid} AND id={$invest_id}")->find(); $binfo = M('transfer_borrow_info')->field(true)->find($iinfo['borrow_id']); $tou = M('transfer_investor_detail')->where(" borrow_id={$iinfo['borrow_id']} AND investor_uid={$this->uid} ")->find(); $mBorrow = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,m.user_name')->where("m.id={$binfo['borrow_uid']}")->find(); $mInvest = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,m.user_name')->where("m.id={$iinfo['investor_uid']}")->find(); if (!is_array($tou)) { $mBorrow['real_name'] = hidecard($mBorrow['real_name'], 5); } $binfo['repayment_name'] = $type[$binfo['repayment_type']]; $this->assign("bid", "LZBHT-" . str_repeat("0", 5 - strlen($binfo['id'])) . $binfo['id']); $detailinfo = M('transfer_investor_detail d')->join("{$per}transfer_borrow_investor bi ON bi.id=d.invest_id")->join("{$per}members m ON m.id=d.investor_uid")->field('d.borrow_id,d.investor_uid,d.borrow_uid,d.capital,sum(d.capital+d.interest-d.interest_fee) benxi,d.total,m.user_name,bi.investor_capital,bi.add_time')->where("d.borrow_id={$iinfo['borrow_id']} and d.invest_id ={$iinfo['id']}")->group('d.investor_uid')->find(); $time = M('transfer_borrow_investor')->field('id,add_time')->where("borrow_id={$iinfo['borrow_id']} order by add_time asc")->limit(1)->find(); $deadline_last = strtotime("+{$binfo['borrow_duration']} month", $time['add_time']); $this->assign('deadline_last', $deadline_last); $this->assign('detailinfo', $detailinfo); $type1 = $this->gloconf['BORROW_USE']; $binfo['borrow_use'] = $type1[$binfo['borrow_use']]; $type = $borrow_config['REPAYMENT_TYPE']; //echo $binfo['repayment_type']; $binfo['repayment_name'] = $type[$binfo['repayment_type']]; $iinfo['repay'] = getFloatValue(($iinfo['investor_capital'] + $iinfo['investor_interest']) / $binfo['borrow_duration'], 2); $iinfo['investor_capital'] = cny($iinfo['investor_capital']); $binfo['borrow_interest_rate'] = substr(cny($binfo['borrow_interest_rate']), 0, -3); $this->assign('iinfo', $iinfo); //dump($binfo);die; $this->assign('binfo', $binfo); $this->assign('mBorrow', $mBorrow); $this->assign('mInvest', $mInvest); $detail_list = M('transfer_investor_detail')->field(true)->where("invest_id={$invest_id}")->select(); $this->assign("detail_list", $detail_list); $ht = M('hetong')->field('hetong_img,name,dizhi,tel')->find(); $this->assign("ht", $ht); if (isset($_GET['dl'])) { // 带有flag标记并且为dl Vendor('Mpdf.mpdf'); $mpdf = new mPDF('UTF-8', 'A4', '', '', 15, 15, 44, 15); $mpdf->useAdobeCJK = true; $mpdf->SetAutoFont(AUTOFONT_ALL); $mpdf->SetDisplayMode('fullpage'); $mpdf->SetAutoFont(); $mpdf->SetHTMLFooter(' >>{PAGENO}<<'); $mpdf->WriteHTML($this->fetch('transfer')); $mpdf->Output('zgtrbao.pdf', 'I'); exit; } $this->display("transfer"); }