echo '<td>' . JHtml::_('grid.id', ++$i, $item->id, $item->version == $this->maxVersion) . '</td>'; } echo '<td>' . $item->version . '</td>'; if ($showDownload) { echo '<td>'; if ($item->state == JOOMDOC_STATE_PUBLISHED) { echo '<a href="' . JRoute::_(JoomDOCRoute::download($item->path, null, $item->version)) . '" title="" target="_blank">'; echo $download; echo '</a>'; } elseif ($item->state == JOOMDOC_STATE_TRASHED) { echo $trashed; } echo '</td>'; } echo '<td nowrap="nowrap">' . JoomDOCFileSystem::getFileSize(JoomDOCFileSystem::getFullPath($item->path)) . '</td>'; echo '<td nowrap="nowrap">' . JoomDOCHelper::uploaded($item->upload, false) . '</td>'; echo '<td nowrap="nowrap">' . $item->name . '</td>'; echo '<td class="center" nowrap="nowrap">' . JoomDOCHelper::number($item->hits) . '</td>'; echo '</tr>'; } echo '</tbody>'; echo '<tfoot>'; echo '<tr>'; $pagination = new JPagination($this->filter->total, $this->filter->offset, $this->filter->limit); echo '<td colspan="20">' . $pagination->getListFooter() . '</td>'; echo '</tr>'; echo '</tfoot>'; echo '</table>'; echo JHtml::_('form.token'); echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="boxchecked" value="" />';
</script>'; $name = $access->isTrashed ? JText::sprintf('JOOMDOC_TRASHED_ITEM', $access->name) : $access->name; if ($access->isFolder) { $size = $access->isFolder ? '-' : $item->getFileSize(); $update = isset($item->upload) ? JoomDOCHelper::uploaded($item->upload, false) : ''; $of = JText::_('JOOMDOC_DOCUMENTS_OPEN_FOLDER'); if ($access->canEnterFolder && !$access->isTrashed) { echo '<a onclick="JoomDOC.checkCheckBox(cb' . $i . ');JoomDOC.check(cb' . $i . ',' . $i . ');" style="display: block; width: 140px; height: 90px; text-align: center;" class="hasTip folder-big dblc" href="' . JRoute::_(JoomDOCRoute::viewDocuments($access->relativePath)) . '" title="' . $this->getTooltip($access->relativePath, $of . '<br />' . $update . '/' . $size) . '"><span style="float: left; clear: both; display: inline-block; margin-top: 53px; width: 100%;">' . $access->name . '</span></a>'; } else { echo '<a class="folder noLink" href="javascript:void(0)" title="">' . $name . '</a>'; } } else { if ($access->canDownload && !$access->isTrashed) { $size = $access->isFolder ? '-' : $item->getFileSize(); $update = isset($item->upload) ? JoomDOCHelper::uploaded($item->upload, false) : ''; $of = JText::_('JOOMDOC_DOWNLOAD_FILE'); echo '<a onclick="JoomDOC.checkCheckBox(cb' . $i . ');JoomDOC.check(cb' . $i . ',' . $i . ');" style="display: block; width: 140px; height: 90px; padding: 0px; text-align: center;" href="' . JRoute::_(JoomDOCRoute::download($access->relativePath)) . '" class="hasTip dblc file ico-big-' . $access->fileType . '" title="' . $this->getTooltip($access->relativePath, $of . '<br />' . $update . '/' . $size) . '"><span style="float: left; clear: both; display: inline-block; margin-top: 53px; width: 100%;">' . $access->name . '</span></a>'; } else { echo '<a href="javascript:void(0)" class="file noLink" title="">' . $name . '</a>'; } } /*if ($access->canRename && !$access->isTrashed) { echo '<div class="rename blind" style="width: 302px; padding: 5px 5px 0px; background: none repeat scroll 0px 0px rgb(255, 255, 255);">'; echo '<input class="pull-left" style="position: relative; width: 165px;" type="text" name="rename" value="' . $this->escape($access->name) . '" />'; //echo '<div class="btn-group pull-left">'; echo '<button class="btn" style="position: relative;" onclick="return JoomDOC.rename(this, \'' . addslashes(JoomDOCHelper::getTask(JOOMDOC_DOCUMENT, JOOMDOC_TASK_RENAME)) . '\', \'' . addslashes($access->name) . '\', \'' . addslashes($access->relativePath) . '\',\'' . JText::_('JOOMDOC_RENAME_SAME_NAME', true) . '\',\'' . JText::_('JOOMDOC_RENAME_EMPTY_NAME', true) . '\', \'' . JText::_('JOOMDOC_RENAME_FILE_EXISTS', true) . '\', \'' . JText::_('JOOMDOC_RENAME_DIR_EXISTS', true) . '\')">' . JText::_('JOOMDOC_RENAME_SAVE') . '</button>'; echo '<button class="btn" style="position: relative;" onclick="return JoomDOC.closeRename(this, \'' . addslashes($access->name) . '\')">' . JText::_('JOOMDOC_RENAME_CLOSE') . '</button>'; //echo '</div>'; echo '</div>'; }*/