webmain/system/word/wordAction.php

(开头部分) 3KB

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

<?php
class wordClassAction extends Action
{

	public function getmywordtypeAjax()
	{
		$showlx = (int)$this->post('showlx',0); //0个人,1部门
		$bo 	= $showlx==1;
		$pid 	= m('word')->getfolderid($this->adminid, $bo);
		$rows 	= m('word')->getfoldrows($this->adminid, $bo);
		$rows	= array(
			'rows' 	=> $rows,
			'pid'	=> $pid
		);
		$this->returnjson($rows);
	}
	
	public function getshatewordtypeAjax()
	{
		$rows	= array();
		$rows	= array(
			'rows' 	=> $rows
		);
		$this->returnjson($rows);
	}
	
	public function wordbeforeaction($table)
	{
		$typeid = (int)$this->post('typeid',0);
		$showlx = (int)$this->post('showlx',0); //0个人,1部门
		$bo 	= $showlx==1;
		if($showlx==0){
			//$pid 	= m('word')->getfolderid($this->adminid);
			//$where 	= " and a.optid=".$this->adminid."";
		}else{
			
		}
		
		$pid 	= m('word')->getfolderid($this->adminid, $bo);
		$alltpeid = $this->option->getalldownid($pid);
		$where  = " and a.typeid in($alltpeid)";
		
		if($pid==$typeid || $typeid==0){
			
		}else{
			$alltpeid = $this->option->getalldownid($typeid);
			$where.=" and a.typeid in($alltpeid)";
		}
		
		return array(
			'table' => '`[Q]word` a left join `[Q]file` b on a.fileid=b.id left join `[Q]option` c on c.id=a.typeid',
			'fields'=> 'b.id,a.shate,a.typeid,b.filepath,a.optname,a.optid,a.optdt,b.filename,b.fileext,b.filesizecn,b.downci,c.`name` as typename',
			'where'	=> "and b.id is not null $where",
			'order'	=> 'a.id desc'
		);
	}

	
	public function savefileAjax()
	{
后面还有 76 行代码,购买后查看完整代码

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

AI 解读 AI

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

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