Application/Admin/Controller/ZiyuanController.class.php
(开头部分) 78KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*******************************************************************\
| |
| 开单大师(专业的房产中介管理系统) |
| |
| © 2017-2023 http://www.kaidandashi.com/ All rights reserved |
| |
| 本系统由淮南市银泰软件科技有限公司提供技术支持 |
| |
| QQ号:984784483 |
| |
\*******************************************************************/
namespace Admin\Controller;
use Think\Controller;
class ZiyuanController extends CommonController {
// 中介黑名单管理
public function zjhmd(){
if (I('is_ajax')) {
/*权限控制开始*/
$condition = "e.gongsiid=".session('gongsiid');
$x = _rbac_lists_where(223,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";
}
/*权限控制结束*/
$sousuo = I('sousuo');
$shijian = I('shijian');
if ($sousuo) {
$condition .= " and (a.sjh like '%$sousuo%' or a.xm like '%$sousuo%')";
}
if ($shijian) {
$time_s = explode(' - ',$shijian);
$condition .= " and a.tjsj>=".strtotime($time_s[0])." and a.tjsj<".strtotime($time_s[0])+86400;
}
$field = I('field'); //排序字段名
$order = I('order'); //排序方式
$limit = I('limit',30,'int'); //每页条数
$limit = $limit > 150 ? 150 : $limit;
if ($field && $order) {
$dlpx = "order by a.".$field." ".$order;
} else {
$dlpx = "order by a.id desc";
}
$Model = new \Think\Model();
$count = $Model->query("select count(*) from __QTJJR__ a join __YONGHU__ e on a.adduid=e.id where {$condition}");
$Page = new \Think\Page($count['0']['count(*)'],$limit);
$list = "select a.*,e.ygmingcheng,e.bumen from __QTJJR__ a join __YONGHU__ e on a.adduid=e.id where {$condition} ".$dlpx." limit ".$Page->firstRow.','.$Page->listRows;
$data = $Model->query($list);
foreach ($data as $key => $value) {
$data[$key]['tjsj'] = $value['tjsj'] ? date('Y-m-d H:i:s',$value['tjsj']) : "——";
$is_rbacgx = _rbac_btn_show(228,0,$value['adduid']);
$is_rbacsc = _rbac_btn_show(225,0,$value['adduid']);
$data[$key]['rbacgx'] = $is_rbacgx ? 1 : 0;
$data[$key]['rbacsc'] = $is_rbacsc ? 1 : 0;
后面还有 1565 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
