mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	check if version is accessible
don't use the latest version but the version that needs to be reviewed, approved, revised, ...
This commit is contained in:
		
							parent
							
								
									6b2d4a4b75
								
							
						
					
					
						commit
						99e52d68f4
					
				|  | @ -113,22 +113,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 									$printheader=false; | ||||
| 								} | ||||
| 							 | ||||
| 								print "<tr>\n"; | ||||
| 								$latestContent = $document->getLatestContent(); | ||||
| 								$previewer->createPreview($latestContent); | ||||
| 								print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 								if($previewer->hasPreview($latestContent)) { | ||||
| 									print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 								} else { | ||||
| 									print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 								if($content = $document->getContentByVersion($st['version'])) { | ||||
| 									print "<tr>\n"; | ||||
| 									$previewer->createPreview($content); | ||||
| 									print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 									if($previewer->hasPreview($content)) { | ||||
| 										print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 									} else { | ||||
| 										print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 									} | ||||
| 									print "</a></td>"; | ||||
| 									print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 									print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 									print "<td>".$st["version"]."</td>"; | ||||
| 									print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 									print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 									print "</tr>\n"; | ||||
| 								} | ||||
| 								print "</a></td>"; | ||||
| 								print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 								print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 								print "<td>".$st["version"]."</td>"; | ||||
| 								print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 								print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 								print "</tr>\n"; | ||||
| 							} | ||||
| 						} | ||||
| 						foreach ($reviewStatus["grpstatus"] as $st) { | ||||
|  | @ -151,22 +152,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 									$printheader=false; | ||||
| 								} | ||||
| 
 | ||||
| 								print "<tr>\n"; | ||||
| 								$latestContent = $document->getLatestContent(); | ||||
| 								$previewer->createPreview($latestContent); | ||||
| 								print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 								if($previewer->hasPreview($latestContent)) { | ||||
| 									print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 								} else { | ||||
| 									print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 								if($content = $document->getContentByVersion($st['version'])) { | ||||
| 									print "<tr>\n"; | ||||
| 									$previewer->createPreview($content); | ||||
| 									print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 									if($previewer->hasPreview($content)) { | ||||
| 										print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 									} else { | ||||
| 										print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 									} | ||||
| 									print "</a></td>"; | ||||
| 									print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 									print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 									print "<td>".$st["version"]."</td>"; | ||||
| 									print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 									print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 									print "</tr>\n"; | ||||
| 								} | ||||
| 								print "</a></td>"; | ||||
| 								print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 								print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 								print "<td>".$st["version"]."</td>"; | ||||
| 								print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 								print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 								print "</tr>\n"; | ||||
| 							} | ||||
| 						} | ||||
| 						if (!$printheader){ | ||||
|  | @ -201,22 +203,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 								$printheader=false; | ||||
| 							} | ||||
| 
 | ||||
| 							print "<tr>\n"; | ||||
| 							$latestContent = $document->getLatestContent(); | ||||
| 							$previewer->createPreview($latestContent); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($latestContent)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 							if($content = $document->getContentByVersion($st['version'])) { | ||||
| 								print "<tr>\n"; | ||||
| 								$previewer->createPreview($content); | ||||
| 								print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 								if($previewer->hasPreview($content)) { | ||||
| 									print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} else { | ||||
| 									print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} | ||||
| 								print "</a></td>"; | ||||
| 								print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 								print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 								print "<td>".$st["version"]."</td>"; | ||||
| 								print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 								print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";					 | ||||
| 								print "</tr>\n"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>"; | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 							print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";					 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 					} | ||||
| 					foreach ($approvalStatus["grpstatus"] as $st) { | ||||
|  | @ -236,22 +239,24 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 								print "</tr>\n</thead>\n<tbody>\n"; | ||||
| 								$printheader=false; | ||||
| 							} | ||||
| 							print "<tr>\n"; | ||||
| 							$latestContent = $document->getLatestContent(); | ||||
| 							$previewer->createPreview($latestContent); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($latestContent)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 
 | ||||
| 							if($content = $document->getContentByVersion($st['version'])) { | ||||
| 								print "<tr>\n"; | ||||
| 								$previewer->createPreview($content); | ||||
| 								print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 								if($previewer->hasPreview($content)) { | ||||
| 									print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} else { | ||||
| 									print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} | ||||
| 								print "</a></td>"; | ||||
| 								print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 								print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 								print "<td>".$st["version"]."</td>";				 | ||||
| 								print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 								print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 								print "</tr>\n"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revapp\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>";				 | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 							print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 					} | ||||
| 					if (!$printheader){ | ||||
|  | @ -310,22 +315,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 							} | ||||
| 						} | ||||
| 					 | ||||
| 						print "<tr>\n"; | ||||
| 						$latestContent = $document->getLatestContent(); | ||||
| 						$previewer->createPreview($latestContent); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 						if($previewer->hasPreview($latestContent)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						if($content = $document->getContentByVersion($res['version'])) { | ||||
| 							print "<tr>\n"; | ||||
| 							$previewer->createPreview($content); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 							if($previewer->hasPreview($content)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=revapp\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 							print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 							print "<td>".$res["version"]."</td>"; | ||||
| 							print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 							print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=revapp\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 						print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 						print "<td>".$res["version"]."</td>"; | ||||
| 						print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 						print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					}		 | ||||
| 					print "</tbody></table>";	 | ||||
| 					 | ||||
|  | @ -390,22 +396,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 								$printheader=false; | ||||
| 							} | ||||
| 						 | ||||
| 							print "<tr>\n"; | ||||
| 							$latestContent = $document->getLatestContent(); | ||||
| 							$previewer->createPreview($latestContent); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["document"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($latestContent)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 							if($content = $document->getContentByVersion($st['version'])) { | ||||
| 								print "<tr>\n"; | ||||
| 								$previewer->createPreview($content); | ||||
| 								print "<td><a href=\"../op/op.Download.php?documentid=".$st["document"]."&version=".$st["version"]."\">"; | ||||
| 								if($previewer->hasPreview($content)) { | ||||
| 									print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} else { | ||||
| 									print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} | ||||
| 								print "</a></td>"; | ||||
| 								print "<td><a href=\"out.ViewDocument.php?documentid=".$st["document"]."¤ttab=workflow\">".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["name"])."</a></td>"; | ||||
| 								print "<td>".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 								print "<td>".$st["version"]."</td>"; | ||||
| 								print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["document"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 								print "<td".($docIdx[$st["document"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["document"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["document"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 								print "</tr>\n"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["document"]."¤ttab=workflow\">".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>"; | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["document"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 							print "<td".($docIdx[$st["document"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["document"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["document"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 					} | ||||
| 					foreach ($workflowStatus["g"] as $st) { | ||||
|  | @ -428,22 +435,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 								$printheader=false; | ||||
| 							} | ||||
| 
 | ||||
| 							print "<tr>\n"; | ||||
| 							$latestContent = $document->getLatestContent(); | ||||
| 							$previewer->createPreview($latestContent); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["document"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($latestContent)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 							if($content = $document->getContentByVersion($st['version'])) { | ||||
| 								print "<tr>\n"; | ||||
| 								$previewer->createPreview($content); | ||||
| 								print "<td><a href=\"../op/op.Download.php?documentid=".$st["document"]."&version=".$st["version"]."\">"; | ||||
| 								if($previewer->hasPreview($content)) { | ||||
| 									print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} else { | ||||
| 									print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 								} | ||||
| 								print "</a></td>"; | ||||
| 								print "<td><a href=\"out.ViewDocument.php?documentid=".$st["document"]."¤ttab=workflow\">".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["name"])."</a></td>"; | ||||
| 								print "<td>".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 								print "<td>".$st["version"]."</td>"; | ||||
| 								print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["document"]][$st["version"]]["statusName"])."</td>"; | ||||
| 								print "<td".($docIdx[$st["document"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["document"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["document"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 								print "</tr>\n"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["document"]."¤ttab=workflow\">".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["document"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>"; | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["document"]][$st["version"]]["statusName"])."</td>"; | ||||
| 							print "<td".($docIdx[$st["document"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["document"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["document"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 					} | ||||
| 					if (!$printheader){ | ||||
|  | @ -487,22 +495,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 							} | ||||
| 						} | ||||
| 					 | ||||
| 						print "<tr>\n"; | ||||
| 						$latestContent = $document->getLatestContent(); | ||||
| 						$previewer->createPreview($latestContent); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 						if($previewer->hasPreview($latestContent)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						if($content = $document->getContentByVersion($res['version'])) { | ||||
| 							print "<tr>\n"; | ||||
| 							$previewer->createPreview($content); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 							if($previewer->hasPreview($content)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=revapp\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 							print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 							print "<td>".$res["version"]."</td>"; | ||||
| 							print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 							print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=revapp\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 						print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 						print "<td>".$res["version"]."</td>"; | ||||
| 						print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 						print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					}		 | ||||
| 					print "</tbody></table>";	 | ||||
| 					 | ||||
|  | @ -561,22 +570,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 							$printheader=false; | ||||
| 						} | ||||
| 					 | ||||
| 						print "<tr>\n"; | ||||
| 						$latestContent = $document->getLatestContent(); | ||||
| 						$previewer->createPreview($latestContent); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 						if($previewer->hasPreview($latestContent)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						if($content = $document->getContentByVersion($st['version'])) { | ||||
| 							print "<tr>\n"; | ||||
| 							$previewer->createPreview($content); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($content)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revision\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>"; | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 							print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revision\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 						print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 						print "<td>".$st["version"]."</td>"; | ||||
| 						print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 						print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 				} | ||||
| 				foreach ($revisionStatus["grpstatus"] as $st) { | ||||
|  | @ -598,22 +608,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 							$printheader=false; | ||||
| 						} | ||||
| 
 | ||||
| 						print "<tr>\n"; | ||||
| 						$latestContent = $document->getLatestContent(); | ||||
| 						$previewer->createPreview($latestContent); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 						if($previewer->hasPreview($latestContent)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						if($content = $document->getContentByVersion($st['version'])) { | ||||
| 							print "<tr>\n"; | ||||
| 							$previewer->createPreview($content); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($content)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revision\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>"; | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 							print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=revision\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 						print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 						print "<td>".$st["version"]."</td>"; | ||||
| 						print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 						print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 				} | ||||
| 				if (!$printheader){ | ||||
|  | @ -677,22 +688,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 							$printheader=false; | ||||
| 						} | ||||
| 					 | ||||
| 						print "<tr>\n"; | ||||
| 						$latestContent = $document->getLatestContent(); | ||||
| 						$previewer->createPreview($latestContent); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 						if($previewer->hasPreview($latestContent)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						if($content = $document->getContentByVersion($st['version'])) { | ||||
| 							print "<tr>\n"; | ||||
| 							$previewer->createPreview($content); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($content)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=recipients\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>"; | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 							print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=recipients\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 						print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 						print "<td>".$st["version"]."</td>"; | ||||
| 						print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>"; | ||||
| 						print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 				} | ||||
| 				foreach ($receiptStatus["grpstatus"] as $st) { | ||||
|  | @ -714,22 +726,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 							$printheader=false; | ||||
| 						} | ||||
| 
 | ||||
| 						print "<tr>\n"; | ||||
| 						$latestContent = $document->getLatestContent(); | ||||
| 						$previewer->createPreview($latestContent); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 						if($previewer->hasPreview($latestContent)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 						if($content = $document->getContentByVersion($st['version'])) { | ||||
| 							print "<tr>\n"; | ||||
| 							$previewer->createPreview($content); | ||||
| 							print "<td><a href=\"../op/op.Download.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">"; | ||||
| 							if($previewer->hasPreview($content)) { | ||||
| 								print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} else { | ||||
| 								print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 							} | ||||
| 							print "</a></td>"; | ||||
| 							print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=recipients\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 							print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 							print "<td>".$st["version"]."</td>"; | ||||
| 							print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 							print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 							print "</tr>\n"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."¤ttab=recipients\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>"; | ||||
| 						print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>"; | ||||
| 						print "<td>".$st["version"]."</td>"; | ||||
| 						print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>"; | ||||
| 						print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 				} | ||||
| 				if (!$printheader){ | ||||
|  | @ -782,22 +795,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 						} | ||||
| 					} | ||||
| 				 | ||||
| 					print "<tr>\n"; | ||||
| 					$latestContent = $document->getLatestContent(); | ||||
| 					$previewer->createPreview($latestContent); | ||||
| 					print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 					if($previewer->hasPreview($latestContent)) { | ||||
| 						print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					} else { | ||||
| 						print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					if($content = $document->getContentByVersion($res['version'])) { | ||||
| 						print "<tr>\n"; | ||||
| 						$previewer->createPreview($content); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 						if($previewer->hasPreview($content)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=revapp\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 						print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 						print "<td>".$res["version"]."</td>"; | ||||
| 						print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 						print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 					print "</a></td>"; | ||||
| 					print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."¤ttab=revapp\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 					print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 					print "<td>".$res["version"]."</td>"; | ||||
| 					print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 					print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 					print "</tr>\n"; | ||||
| 				}		 | ||||
| 				print "</tbody></table>";	 | ||||
| 				 | ||||
|  | @ -837,22 +851,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 						} | ||||
| 					} | ||||
| 				 | ||||
| 					print "<tr>\n"; | ||||
| 					$latestContent = $document->getLatestContent(); | ||||
| 					$previewer->createPreview($latestContent); | ||||
| 					print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 					if($previewer->hasPreview($latestContent)) { | ||||
| 						print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					} else { | ||||
| 						print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					if($content = $document->getContentByVersion($res['version'])) { | ||||
| 						print "<tr>\n"; | ||||
| 						$previewer->createPreview($content); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 						if($previewer->hasPreview($content)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 						print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 						print "<td>".$res["version"]."</td>"; | ||||
| 						print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 						print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 					print "</a></td>"; | ||||
| 					print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 					print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 					print "<td>".$res["version"]."</td>"; | ||||
| 					print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 					print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 					print "</tr>\n"; | ||||
| 				}		 | ||||
| 				print "</tbody></table>";	 | ||||
| 				 | ||||
|  | @ -894,22 +909,23 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 						} | ||||
| 					} | ||||
| 				 | ||||
| 					print "<tr>\n"; | ||||
| 					$latestContent = $document->getLatestContent(); | ||||
| 					$previewer->createPreview($latestContent); | ||||
| 					print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 					if($previewer->hasPreview($latestContent)) { | ||||
| 						print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					} else { | ||||
| 						print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					if($content = $document->getContentByVersion($res['version'])) { | ||||
| 						print "<tr>\n"; | ||||
| 						$previewer->createPreview($content); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 						if($previewer->hasPreview($content)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 						print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 						print "<td>".$res["version"]."</td>"; | ||||
| 						print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 						print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 					print "</a></td>"; | ||||
| 					print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 					print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 					print "<td>".$res["version"]."</td>"; | ||||
| 					print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>"; | ||||
| 					print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 					print "</tr>\n"; | ||||
| 				}		 | ||||
| 				print "</tbody></table>";	 | ||||
| 				 | ||||
|  | @ -956,23 +972,24 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { | |||
| 						} | ||||
| 					} | ||||
| 				 | ||||
| 					print "<tr>\n"; | ||||
| 					$latestContent = $document->getLatestContent(); | ||||
| 					$previewer->createPreview($latestContent); | ||||
| 					print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 					if($previewer->hasPreview($latestContent)) { | ||||
| 						print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					} else { | ||||
| 						print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; | ||||
| 					if($content = $document->getContentByVersion($res['version'])) { | ||||
| 						print "<tr>\n"; | ||||
| 						$previewer->createPreview($content); | ||||
| 						print "<td><a href=\"../op/op.Download.php?documentid=".$res["documentID"]."&version=".$res["version"]."\">"; | ||||
| 						if($previewer->hasPreview($content)) { | ||||
| 							print "<img class=\"mimeicon\" width=\"".$previewwidth."\"src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$content->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} else { | ||||
| 							print "<img class=\"mimeicon\" src=\"".$this->getMimeIcon($content->getFileType())."\" title=\"".htmlspecialchars($content->getMimeType())."\">"; | ||||
| 						} | ||||
| 						print "</a></td>"; | ||||
| 						print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 						print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 						print "<td>".$res["version"]."</td>"; | ||||
| 						print "<td>".$res["statusDate"]." ". htmlspecialchars($res["statusName"])."</td>"; | ||||
| 						//print "<td>".(!$res["expires"] ? getMLText("does_not_expire"):getReadableDate($res["expires"]))."</td>";				
 | ||||
| 						print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 						print "</tr>\n"; | ||||
| 					} | ||||
| 					print "</a></td>"; | ||||
| 					print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n"; | ||||
| 					print "<td>".getOverallStatusText($res["status"])."</td>"; | ||||
| 					print "<td>".$res["version"]."</td>"; | ||||
| 					print "<td>".$res["statusDate"]." ". htmlspecialchars($res["statusName"])."</td>"; | ||||
| 					//print "<td>".(!$res["expires"] ? getMLText("does_not_expire"):getReadableDate($res["expires"]))."</td>";				
 | ||||
| 					print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";				 | ||||
| 					print "</tr>\n"; | ||||
| 				} | ||||
| 				print "</tbody></table>"; | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann