Application/Admin/Controller/AjaxController.class.php
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*******************************************************************\
| |
| 房佳(新房报备ERP管理系统) |
| |
| © 2020-2023 http://www.kaidandashi.com/ All rights reserved. |
| |
| 本系统由淮南市银泰软件科技有限公司提供技术支持 |
| |
| QQ号:984784483 |
| |
\*******************************************************************/
namespace Admin\Controller;
use Think\Controller;
use QL\QueryList;
class AjaxController extends CommonController {
//获取报备楼盘
public function get_bblp(){
$condition = "e.gongsiid = '".session('gongsiid')."'";
$x = _rbac_lists_where(963,0);
if ($x && $x != "all" && $x != "me") {
$condition .= " and e.bumen in ({$x})";
} elseif ($x == "me") {
$condition .= " and e.id = '".session('uid')."'";
} elseif ($x == false) {
$condition .= " and e.id = 0";
}
$txt = sql_check_param(I('txt'));
if ($txt) {
$condition .= " and (a.xiaoqum like '%$txt%' or a.pinyinjs like '%$txt%' or a.xiaoqubm like '%$txt%' or a.jiedao like '%$txt%' or a.xiaoqudz like '%$txt%' or e.ygmingcheng like '%$txt%' or e.pinyinjs like '%$txt%' or e.dianhua like '%$txt%')";
}
$xiaoqu = M('xiaoqu')->alias('a')->join('jjrxt_yonghu e on a.whrid=e.id')->field('a.id,a.xiaoqum')->where($condition)->order('id desc')->limit(10)->select();
$data = array('status'=>1,'lists'=>$xiaoqu);
header("Content-type: application/json");
exit(json_encode($data));
}
// 我的报备
public function wodekh(){
$jindu = I('jindu',0,'int');
$status = I('status',0,'int');
if (I('is_ajax')) {
$condition = "gongsiid = '".session('gongsiid')."' and whrid = '".session('uid')."'";
$shijian = I('shijian');
$sousuo = sql_check_param(I('sousuo'));
if ($jindu) {
$condition .= " and jindu = '$jindu'";
}
if ($status) {
$condition .= " and status = '$status'";
}
if ($shijian) {
$time_s = explode(' - ',$shijian);
$time_s1 = strtotime($time_s[0]);
$time_s2 = strtotime($time_s[1])+86400;
$condition .= " and addtime >= '".$time_s1."' and addtime < '".$time_s2."'";
}
后面还有 409 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
