mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	output nice folder row in object check list
This commit is contained in:
		
							parent
							
								
									32a855b740
								
							
						
					
					
						commit
						dbc79f62aa
					
				|  | @ -47,37 +47,22 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style { | |||
| 			$tmparr = explode(':', $path); | ||||
| 			array_shift($tmparr); | ||||
| 			if(count($tmparr) != count(array_unique($tmparr))) { | ||||
| 				print "<tr>\n"; | ||||
| 				print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\"><img src=\"".$this->getImgPath("folder.svg")."\" width=18 height=18 border=0></a></td>"; | ||||
| 				print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\">"; | ||||
| 				print htmlspecialchars($path); | ||||
| 				print "</a></td>"; | ||||
| 				 | ||||
| 				$owner = $folder->getOwner(); | ||||
| 				print "<td>".htmlspecialchars($owner->getFullName())."</td>"; | ||||
| 				echo $this->folderListRowStart($folder); | ||||
| 				echo $this->folderListRow($folder, true); | ||||
| 				print "<td>Folder path contains cyclic relation</td>"; | ||||
| 				echo "<td>"; | ||||
| 				if($repair) { | ||||
| 					print "<span class=\"success\">".getMLText('repaired')."</span>\n"; | ||||
| 				} | ||||
| 				echo "</td>"; | ||||
| 				print "</tr>\n"; | ||||
| 				echo $this->folderListRowEnd($folder); | ||||
| 			} | ||||
| 			$folderList = $folder->getFolderList(); | ||||
| 			/* Check the folder */ | ||||
| 			if($folderList != $path) { | ||||
| 				print "<tr>\n"; | ||||
| 				echo $this->folderListRowStart($folder); | ||||
| 				echo $this->folderListRow($folder, true); | ||||
| 				$this->needsrepair = true; | ||||
| 				print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\"><img src=\"".$this->getImgPath("folder.svg")."\" width=18 height=18 border=0></a></td>"; | ||||
| 				print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\">"; | ||||
| 				$tmppath = $folder->getPath(); | ||||
| 				for ($i = 1; $i  < count($tmppath); $i++) { | ||||
| 					print "/".htmlspecialchars($tmppath[$i]->getName()); | ||||
| 				} | ||||
| 				print "</a></td>"; | ||||
| 				 | ||||
| 				$owner = $folder->getOwner(); | ||||
| 				print "<td>".htmlspecialchars($owner->getFullName())."</td>"; | ||||
| 				print "<td>Folderlist is '".$folderList."', should be '".$path."'</td>"; | ||||
| 				echo "<td>"; | ||||
| 				if($repair) { | ||||
|  | @ -85,7 +70,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style { | |||
| 					print "<span class=\"success\">".getMLText('repaired')."</span>\n"; | ||||
| 				} | ||||
| 				echo "</td>"; | ||||
| 				print "</tr>\n"; | ||||
| 				echo $this->folderListRowEnd($folder); | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
|  | @ -228,8 +213,8 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style { | |||
| 		print "<thead>\n<tr>\n"; | ||||
| 		print "<th></th>\n"; | ||||
| 		print "<th>".getMLText("name")."</th>\n"; | ||||
| 		print "<th>".getMLText("owner")."</th>\n"; | ||||
| 		print "<th></th>\n"; | ||||
| 		print "<th>".getMLText("status")."</th>\n"; | ||||
| 		print "<th>".getMLText("action")."</th>\n"; | ||||
| 		print "<th>".getMLText("error")."</th>\n"; | ||||
| 		print "</tr>\n</thead>\n<tbody>\n"; | ||||
| 		$this->needsrepair = false; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann