mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	new type foldersperuser in getStatisticalData()
This commit is contained in:
		
							parent
							
								
									42f2ce31cf
								
							
						
					
					
						commit
						14b1cd34cd
					
				|  | @ -3174,7 +3174,14 @@ class SeedDMS_Core_DMS { | |||
| 	function getStatisticalData($type='') { /* {{{ */ | ||||
| 		switch($type) { | ||||
| 			case 'docsperuser': | ||||
| 				$queryStr = "select b.`fullName` as `key`, count(`owner`) as total from `tblDocuments` a left join `tblUsers` b on a.`owner`=b.`id` group by `owner`, b.`fullName`"; | ||||
| 				$queryStr = "select concat(b.`fullName`, ' (', b.`login`, ')') as `key`, count(`owner`) as total from `tblDocuments` a left join `tblUsers` b on a.`owner`=b.`id` group by `owner`, b.`fullName`"; | ||||
| 				$resArr = $this->db->getResultArray($queryStr); | ||||
| 				if (!$resArr) | ||||
| 					return false; | ||||
| 
 | ||||
| 				return $resArr; | ||||
| 			case 'foldersperuser': | ||||
| 				$queryStr = "select concat(b.`fullName`, ' (', b.`login`, ')') as `key`, count(`owner`) as total from `tblFolders` a left join `tblUsers` b on a.`owner`=b.`id` group by `owner`, b.`fullName`"; | ||||
| 				$resArr = $this->db->getResultArray($queryStr); | ||||
| 				if (!$resArr) | ||||
| 					return false; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann