Application/Admin/Controller/BaobeiController.class.php
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*******************************************************************\
| |
| 房佳(新房报备ERP管理系统) |
| |
| © 2020-2023 http://www.kaidandashi.com/ All rights reserved. |
| |
| 本系统由淮南市银泰软件科技有限公司提供技术支持 |
| |
| QQ号:984784483 |
| |
\*******************************************************************/
namespace Admin\Controller;
use Think\Controller;
class BaobeiController extends CommonController {
// 报备列表
public function index(){
if (I('is_ajax')) {
$condition = "e.gongsiid = '".session('gongsiid')."'";
$x = _rbac_lists_where(968,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";
}
$shijian = I('shijian');
$bumen = I('bumen',0,'int');
$jindu = I('jindu',0,'int');
$status = I('status',0,'int');
$sousuo = sql_check_param(I('sousuo'));
if ($bumen) {
$string = get_bm_sz($bumen,2);
$condition .= " and e.bumen in ($string)";
}
if ($jindu) {
$condition .= " and a.jindu = '$jindu'";
}
if ($status) {
$condition .= " and a.status = '$status'";
}
if ($shijian) {
$time_s = explode(' - ',$shijian);
$time_s1 = strtotime($time_s[0]);
$time_s2 = strtotime($time_s[1])+86400;
$condition .= " and a.addtime >= '".$time_s1."' and a.addtime < '".$time_s2."'";
}
if ($sousuo) {
$condition .= " and (a.bianhao like '%$sousuo%' or a.khxingming like '%$sousuo%' or a.dianhua like '%$sousuo%' or e.ygmingcheng like '%$sousuo%' or e.pinyinjs like '%$sousuo%' or e.dianhua like '%$sousuo%')";
}
$field = I('field'); //排序字段名
$order = I('order'); //排序方式
$limit = I('limit',30,'int'); //每页条数
$limit = $limit > 150 ? 150 : $limit;
if ($field && $order) {
$rzpx = "a.".$field." ".$order;
后面还有 384 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
