Tarea #443 -> Poner enlace a documentos personales en el tablero

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@16 eb19766c-00d9-a042-a3a0-45cb8ec72764
This commit is contained in:
David Arranz 2010-09-17 10:55:16 +00:00
parent 4b47fdb018
commit 41573c77d6
3 changed files with 19 additions and 4 deletions

View File

@ -282,8 +282,23 @@ class MyDropDocumentsPage extends KTStandardDispatcher {
global $default;
$default->log->debug('Error retrieving dropped documents - '.$aDocumentTransactions->getMessage());
}
$sReturnTable = _kt('<span class="descriptiveText"> You do not have any dropped documents </span><br><br><br>');
$subFolders = Folder::getByParentId($iDropDocsFolderID);
if(PEAR::isError($subFolders) || empty($subFolders)){
$iMyDocsFolderID = $iDropDocsFolderID;
}else{
foreach ($subFolders as $sub){
if($sub->getName() == $sUserName){
$iMyDocsFolderID = $sub->getID();
break;
}
}
}
$location = 'browse.php?fFolderId='.$iMyDocsFolderID;
return _kt('<span class="descriptiveText"> You do not have any dropped documents </span><br><br><br>');
$sReturnTable .= '<a href="'.$location.'">'._kt(' View All').' </a>';
return $sReturnTable;
}
$maxcount = 5;

View File

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Knowledgetree Spanish\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-06 07:51+0200\n"
"PO-Revision-Date: 2010-09-14 10:18-0800\n"
"PO-Revision-Date: 2010-09-17 03:50-0800\n"
"Last-Translator: Juan Tobar <jptobar@gmail.com>\n"
"Language-Team: Juan Tobar <jptobar@gmail.com>\n"
"MIME-Version: 1.0\n"
@ -44,7 +44,7 @@ msgstr " Nota: El grupo está definido como administrador de unidad pero no est
#: plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php:344
msgid " View All"
msgstr "Ver Todo"
msgstr "Ir a mi carpeta personal"
#: lib/browse/Criteria.inc:1021
msgid " ago"
@ -505,7 +505,7 @@ msgstr ""
#: plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php:193
#: plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php:286
msgid "<span class=\"descriptiveText\"> You do not have any dropped documents </span><br><br><br>"
msgstr "<span class=\"descriptiveText\"> Usted no tiene ningún documento en su carpeta de documentos personales </span><br><br><br>"
msgstr "<span class=\"descriptiveText\"> No hay ningún documento en su carpeta personal.</span><br>"
#: i18n/templates.c:5351
msgid "<strong>Deleted</strong>, which completely removes the selected items from the lookup. Note that this may not be possible if some other aspect of the system depends on a particular lookup."