* @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ require_once("class.Bootstrap.php"); /** * Include class to preview documents */ require_once("SeedDMS/Preview.php"); /** * Class which outputs the html page for ExpiredDocuments view * * @category DMS * @package SeedDMS * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann * @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_ExpiredDocuments extends SeedDMS_Bootstrap_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $orderby = $this->params['orderby']; $cachedir = $this->params['cachedir']; $previewwidth = $this->params['previewWidthList']; $timeout = $this->params['timeout']; $xsendfile = $this->params['xsendfile']; $db = $dms->getDB(); $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout, $xsendfile); $this->htmlStartPage(getMLText("expired_documents")); $this->globalNavigation(); $this->contentStart(); $this->pageNavigation(getMLText("expired_documents"), "admin_tools"); $this->contentHeading(getMLText("expired_documents")); $this->contentContainerStart(); if($docs = $dms->getDocumentsExpired(-1400)) { print ""; print "\n\n"; print ""; print "\n"; print "\n"; print "\n"; // print "\n"; print "\n"; print "\n\n\n"; $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout, $xsendfile); foreach ($docs as $document) { print "\n"; $latestContent = $document->getLatestContent(); $previewer->createPreview($latestContent); print ""; print "\n"; $status = $latestContent->getStatus(); print ""; print ""; // print ""; print ""; print "\n"; } print "
".getMLText("name")."".getMLText("status")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
getID()."&version=".$latestContent->getVersion()."\">"; if($previewer->hasPreview($latestContent)) { print "getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; } else { print "getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; } print "getID()."\">" . htmlspecialchars($document->getName()) . "".getOverallStatusText($status["status"])."".$latestContent->getVersion()."".$status["statusDate"]." ". htmlspecialchars($status["statusName"])."".(!$document->getExpires() ? "-":getReadableDate($document->getExpires()))."
"; } else printMLText("empty_notify_list"); $this->contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ } ?>