Application/Admin/Controller/ZiyuanController.class.php
(开头部分) 80KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*******************************************************************\
| |
| 房佳(新房报备ERP管理系统) |
| |
| © 2020-2023 http://www.kaidandashi.com/ All rights reserved. |
| |
| 本系统由淮南市银泰软件科技有限公司提供技术支持 |
| |
| QQ号:984784483 |
| |
\*******************************************************************/
namespace Admin\Controller;
use Think\Controller;
class ZiyuanController extends CommonController {
// 行政区列表
public function xingzhengqu() {
if (I('is_ajax')) {
$field = I('field'); //排序字段名
$order = I('order'); //排序方式
$limit = I('limit',30,'int'); //每页条数
$limit = $limit > 150 ? 150 : $limit;
$map .= " where gongsiid=".session('gongsiid');
$x = _rbac_lists_where(372,0);
if ($x && $x != "all" && $x != "me") {
$map .= " and bumen in ({$x})";
}elseif ($x == "me") {
$map .= " and id=".session('uid');
}elseif ($x == false) {
$map .= " and id=0";
}
$condition="gongsiid=".session('gongsiid');
$sousuo = sql_check_param(I('sousuo'));
if ($sousuo) {
$condition.=" and ((xzqming like '%$sousuo%') or (pinyinjs like '%$sousuo%'))";
}
if ($field && $order) {
$xzqpx.="order by ".$field." ".$order;
} else {
$xzqpx.="order by id DESC";
}
$Model = new \Think\Model();
$count=$Model->query("select count(*) from (select * from __XINGZHENGQU__ where {$condition}) a join (select id as e_id from __YONGHU__ {$map}) e on a.whrid=e.e_id");
$Page = new \Think\Page($count['0']['count(*)'],$limit);
$list="select a.*,e.* from (select * from __XINGZHENGQU__ where {$condition}) a join (select id as e_id from __YONGHU__ {$map}) e on a.whrid=e.e_id ".$xzqpx." limit ".$Page->firstRow.','.$Page->listRows;
$data=$Model->query($list);
foreach ($data as $key => $value) {
// $data[$key]['ssbm'] = zym($value['bumen'],6);
$data[$key]['whbm'] = yhbm($value['whrid'],3);
$data[$key]['whr'] = zym($value['whrid'],5);
$data[$key]['tjr'] = zym($value['adduid'],5);
$is_rbacgx = _rbac_btn_show(375,0,$value['whrid']);
// $is_rbaczy = _rbac_btn_show(533,0,$value['whrid']);
$is_rbacsc = _rbac_btn_show(377,0,$value['whrid']);
$data[$key]['rbacgx'] = $is_rbacgx ? 1 : 0;
// $data[$key]['rbaczy'] = $is_rbaczy ? 1 : 0;
$data[$key]['rbacsc'] = $is_rbacsc ? 1 : 0;
$data[$key]['pinyinjs'] = $value['pinyinjs'] ? $value['pinyinjs'] : "——";
后面还有 1528 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
