mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	show icon if a document content has a waiting workflow transition (bug #4)
This commit is contained in:
		
							parent
							
								
									57c58a09c7
								
							
						
					
					
						commit
						c818242b66
					
				|  | @ -80,6 +80,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style { | ||||||
| 		$enableClipboard = $this->params['enableClipboard']; | 		$enableClipboard = $this->params['enableClipboard']; | ||||||
| 		$showtree = $this->params['showtree']; | 		$showtree = $this->params['showtree']; | ||||||
| 		$cachedir = $this->params['cachedir']; | 		$cachedir = $this->params['cachedir']; | ||||||
|  | 		$workflowmode = $this->params['workflowmode']; | ||||||
| 		$enableRecursiveCount = $this->params['enableRecursiveCount']; | 		$enableRecursiveCount = $this->params['enableRecursiveCount']; | ||||||
| 		$maxRecursiveCount = $this->params['maxRecursiveCount']; | 		$maxRecursiveCount = $this->params['maxRecursiveCount']; | ||||||
| 
 | 
 | ||||||
|  | @ -237,6 +238,13 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style { | ||||||
| 				$previewer->createPreview($latestContent); | 				$previewer->createPreview($latestContent); | ||||||
| 				$version = $latestContent->getVersion(); | 				$version = $latestContent->getVersion(); | ||||||
| 				$status = $latestContent->getStatus(); | 				$status = $latestContent->getStatus(); | ||||||
|  | 				$needwkflaction = false; | ||||||
|  | 				if($workflowmode == 'advanced') { | ||||||
|  | 					$workflow = $latestContent->getWorkflow(); | ||||||
|  | 					if($workflow) { | ||||||
|  | 						$needwkflaction = $latestContent->needsWorkflowAction($user); | ||||||
|  | 					} | ||||||
|  | 				} | ||||||
| 				 | 				 | ||||||
| 				/* Retrieve attacheѕ files */ | 				/* Retrieve attacheѕ files */ | ||||||
| 				$files = $document->getDocumentFiles(); | 				$files = $document->getDocumentFiles(); | ||||||
|  | @ -265,9 +273,15 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style { | ||||||
| 				print "</td>\n"; | 				print "</td>\n"; | ||||||
| 				print "<td>".htmlspecialchars($owner->getFullName())."</td>"; | 				print "<td>".htmlspecialchars($owner->getFullName())."</td>"; | ||||||
| 				print "<td>"; | 				print "<td>"; | ||||||
|  | 				$attentionstr = ''; | ||||||
| 				if ( $document->isLocked() ) { | 				if ( $document->isLocked() ) { | ||||||
| 					print "<img src=\"".$this->getImgPath("lock.png")."\" title=\"". getMLText("locked_by").": ".htmlspecialchars($document->getLockingUser()->getFullName())."\"> "; | 					$attentionstr .= "<img src=\"".$this->getImgPath("lock.png")."\" title=\"". getMLText("locked_by").": ".htmlspecialchars($document->getLockingUser()->getFullName())."\"> "; | ||||||
| 				} | 				} | ||||||
|  | 				if ( $needwkflaction ) { | ||||||
|  | 					$attentionstr .= "<img src=\"".$this->getImgPath("attention.gif")."\" title=\"". getMLText("workflow").": "."\"> "; | ||||||
|  | 				} | ||||||
|  | 				if($attentionstr) | ||||||
|  | 					print $attentionstr."<br />"; | ||||||
| 				print "<small>"; | 				print "<small>"; | ||||||
| 				if(count($files)) | 				if(count($files)) | ||||||
| 					print count($files)." ".getMLText("linked_files")."<br />"; | 					print count($files)." ".getMLText("linked_files")."<br />"; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann