webmain/model/homeitemsModel.php

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
/**
*	桌面项目
*/
class homeitemsClassModel extends Model
{
	public function getmyshow()
	{
		$str 	= m('admin')->getjoinstr('receid', $this->adminid, 1);
		$rows 	= $this->getall('`status`=1 and ('.$str.')','`num`,`row`,`name`,`sort`','`row`,`sort`');
		return $rows;
	}
	
	/**
	*	桌面项目数据读取
	*/
	public function getitemsdata($nums='')
	{
		if(isempt($nums))$nums = 'apply,gong,meet';
		$numarr	= explode(',', $nums);
		$barr 	= array();
		$xhtype = getconfig('xinhutype');
		$obj 	= false;
		if(!isempt($xhtype))$obj = m($xhtype);
		foreach($numarr as $num){
			$act = 'get_'.$num.'_arr';
			if(method_exists($this, $act)){
				$barr[''.$num.'arr'] = $this->$act();
			}else if($obj){
				if(method_exists($obj, $act))
					$barr[''.$num.'arr'] = $obj->$act();
			}
		}
		$barr['total'] = $this->gettotals($this->adminid);//统计角标
		return $barr;
	}
	
	//快捷入口红数字的统计的(根据菜单编号来的)
	public function gettotals($uid)
	{
		$optdt 	= $this->rock->now;
		$arr 	= array();
		$bidb	= m('flowbill');
		
		$todo			= m('todo')->rows("uid='$uid' and `status`=0 and `tododt`<='$optdt'");
		$arr['todo']	= $todo;
		
		$obj 	= false;
		$cbarr	= array();
		$xhtype = getconfig('xinhutype');
		if(!isempt($xhtype))$obj = m($xhtype);
		if($obj){
			if(method_exists($obj, 'menutotals')){
				$cbarr = $obj->menutotals();
				if(is_array($cbarr))foreach($cbarr as $k=>$v)$arr[$k]=$v;
			}
		}
		
		$nubar = array();
		$nuarr = m('menu')->getall('`status`=1 and num is not null');
后面还有 117 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。