webmain/main/userinfo/userinfoAction.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class userinfoClassAction extends Action
{
public function userinfobefore($table)
{
$table = '`[Q]admin` a left join `[Q]userinfo` b on a.id=b.id';
$s = '';
$key = $this->post('key');
if($key!=''){
$s = " and (a.`name` like '%$key%' or a.`user` like '%$key%' or a.`ranking` like '%$key%' or a.`deptname` like '%$key%') ";
}
if(ISMORECOM)$s.= ' and a.`companyid`='.m('admin')->getcompanyid().'';
return array(
'table' => $table,
'where' => $s,
'fields'=> 'a.name,a.deptname,a.id,a.status,a.ranking,b.id as ids,b.dkip,b.dkmac,b.iskq,b.isdwdk,b.isdaily,b.finger'
);
}
public function userinfoafter($table, $rows)
{
$db = m($table);
foreach($rows as $k=>$rs){
if(isempt($rs['ids'])){
$db->insert(array(
'id' => $rs['id'],
'name' => $rs['name'],
'deptname' => $rs['deptname'],
'ranking' => $rs['ranking']
));
}
}
return array('rows'=>$rows);
}
public function fieldsafters($table, $fid, $val, $id)
{
$fields = 'sex,ranking,tel,mobile,workdate,email,quitdt';
if(contain($fields, $fid)){
if($fid=='quitdt'){
$dbs = m($table);
if(isempt($val)){
$dbs->update('`state`=0', "`id`='$id' and `state`=5");
}else{
$dbs->update('`state`=5', "`id`='$id'");
}
}
m('admin')->update(array($fid=>$val), $id);
}
}
public function userinfobeforegeren()
{
return ' and id='.$this->adminid.'';
}
//人员分析
public function useranaybefore()
{
后面还有 112 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
