webmain/model/adminModel.php
(开头部分) 23KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class adminClassModel extends Model
{
private $_getjoinstr = array();
public $nowurs,$allshow,$getsuperarrba;
public function gjoin($joinid, $glx='', $blx='bxl')
{
$uid = $did = $gid = '0';
if($glx=='')$glx = 'ud';
if(isempt($joinid))return '';
$joinid = strtolower($joinid);
if(contain($joinid, 'all'))return 'all';
if($blx!='where' && $glx!='d' && !contain($joinid,'u')
&& !contain($joinid,'d') && !contain($joinid,'g'))return $joinid;
$narr = explode(',', $joinid);
$dwhe = array();
foreach($narr as $sid){
if(isempt($sid))continue;
$lx = substr($sid, 0, 1);
$ssid = str_replace(array('u','d','g'), array('','',''), $sid);
if($lx == 'd' || $glx=='d'){
$did.=','.$ssid.'';
$dwhe[] = "instr(`deptpath`, '[$ssid]')>0";
}else if($lx=='g'){
$gid.=','.$ssid.'';
}else{
$uid.=','.$ssid.'';
}
}
$where = '';
if($gid!='0'){
$uids = $this->getgrouptouid($gid);
if($uids!='')$uid.=','.$uids.'';
}
if($did != '0'){
$where = join(' or ', $dwhe);
if($uid!='0')$where.=" or `id` in($uid)";
}else{
if($uid!='0')$where ="`id` in($uid)";
}
if($blx == 'where')return $where;
$guid = '';
if($where!=''){
$swhe = '`status`=1';
if($blx=='all')$swhe = '1=1';
$swhe.= $this->getcompanywhere();
$rows = $this->getall("$swhe and ($where)", '`id`');
foreach($rows as $k=>$rs)$guid.=','.$rs['id'].'';
if($guid !='')$guid = substr($guid, 1);
}
return $guid;
}
/**
* 根据组部门id获取底下人员ID
*/
public function gjoins($receid)
{
if(contain($receid,'u') || contain($receid, 'd') || contain($receid, 'g'))$receid = $this->gjoin($receid);
后面还有 779 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
