. */ require_once('Widget.class.php'); include $gfcommon.'docman/DocumentFactory.class.php'; /** * Widget_MyProjectsLastDocuments * * PROJECT LIST */ class Widget_MyProjectsLastDocuments extends Widget { function Widget_MyProjectsLastDocuments() { $this->Widget('myprojectslastdocuments'); } function getTitle() { return _("The 5 Last Documents in My Projects"); } function getContent() { $html_my_projects = ''; global $HTML; $user = session_get_user(); $groups = $user->getGroups(); if (count ($groups) < 1) { $html_my_projects .= '
' : ''). $hide_url.''. $g->getPublicName().' | ||||
'._('No documents').' | ||||
'.$dg->getPath().' | ||||
'.html_image($doc->getFileTypeImage(), '22', '22', array('alt'=>$doc->getFileType())).' | '; $html .= ''.$doc->getFilename().' | '; $html .= ''.make_user_link($doc->getCreatorUserName(), $doc->getCreatorRealName()).' | '; if ( $doc->getUpdated() ) { $html .= ''.date(_('Y-m-d H:i'), $doc->getUpdated()).' | '; } else { $html .= ''.date(_('Y-m-d H:i'), $doc->getCreated()).' | '; } $html .= '