예제 #1
0
파일: document.php 프로젝트: rhertzog/lcs
        $out .= '</th>' . "\n" . '<th class="title" colspan="' . (get_conf('numberOfCols', 3) - 2) . '">' . "\n" . '<p align="center">' . get_lang('Page') . '&nbsp;' . $page . '</p>' . '</th>' . "\n" . '<th class="next" colspan="1" style="width: ' . $colWidth . '%;">' . "\n";
        if (has_next_page($imageList, $page)) {
            // link to next page
            $out .= '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?docView=thumbnails&cwd=' . rawurlencode($curDirPath) . '&page=' . ($page + 1) . $searchCmdUrl)) . '">' . get_lang('Page') . '&nbsp;' . ($page + 1) . '&nbsp;&nbsp;&gt;&gt;</a>' . "\n";
        } else {
            $out .= '<!-- empty -->';
        }
        $out .= '</th>' . "\n" . '</tr>' . "\n" . display_thumbnails($imageList, $fileList, $page, get_conf('thumbnailWidth'), $colWidth, get_conf('numberOfCols'), get_conf('numberOfRows'));
    }
    $out .= '</table>' . "\n";
} else {
    $searchCmdUrl = '';
    if (isset($_REQUEST['searchPattern'])) {
        $searchCmdUrl = '&amp;cmd=exSearch&amp;searchPattern=' . rawurlencode($_REQUEST['searchPattern']);
    }
    $out .= claro_html_document_breadcrumb($curDirPath) . '<table class="claroTable emphaseLine" width="100%">' . '<thead>' . "\n";
    // CURRENT DIRECTORY LINE
    if ($cmd == 'exSearch') {
        $curDirLine = get_lang('Search result');
    } elseif ($curDirName) {
        $curDirLine = '<img src="' . get_icon_url('opendir') . '" alt="" />' . "\n" . $dspCurDirName . "\n";
    } else {
        $curDirLine = '&nbsp;';
    }
    $docViewToolbar[] = '<span class="claroCmdDisabled">' . '<img src="' . get_icon_url('document') . '" alt="" />' . "\n" . get_lang('File list') . '</span>';
    $docViewToolbar[] = '<a class="claroCmd" href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?docView=thumbnails&cwd=' . $curDirPath . $searchCmdUrl)) . '">' . '<img src="' . get_icon_url('image') . '" alt="" /> ' . "\n" . get_lang('Thumbnails') . '</a>';
    $out .= '<!-- current dir name line -->' . "\n" . '<tr>' . "\n" . '<th class="superHeader" colspan="' . $colspan . '" align="left">' . "\n" . '<div style="float: right;">' . claro_html_menu_horizontal($docViewToolbar) . '</div>' . $curDirLine . '</th>' . "\n" . '</tr>' . "\n" . '<tr align="center" valign="top">' . "\n";
    # Patch to avoid E_NOTICE when no files in directory empty
    # FIXME find a more elegant way to solve the problem
    if (count($sortUrlList) > 0) {
        $out .= '<th><a href="' . claro_htmlspecialchars(Url::Contextualize($sortUrlList['path'])) . '">' . get_lang('Name') . '</a></th>' . "\n" . '<th><a href="' . claro_htmlspecialchars(Url::Contextualize($sortUrlList['size'])) . '">' . get_lang('Size') . '</a></th>' . "\n" . '<th><a href="' . claro_htmlspecialchars(Url::Contextualize($sortUrlList['date'])) . '">' . get_lang('Last modification date') . '</a></th>' . "\n";
예제 #2
0
/**
 *
 *
 * @copyright   (c) 2001-2011, Universite catholique de Louvain (UCL)
 * @param string $curDirPath current path in the documents tree navugation
 * @return string breadcrumb trail
 */
function claro_disp_document_breadcrumb($curDirPath)
{
    pushClaroMessage((function_exists('claro_html_debug_backtrace') ? claro_html_debug_backtrace() : 'claro_html_debug_backtrace() not defined') . 'claro_disp_document_breadcrumb is deprecated , use claro_html_document_breadcrumb', 'error');
    return claro_html_document_breadcrumb($curDirPath);
}