Example #1
0
?>
			<input type="hidden" name="directory" value="<?php 
echo currentDirectory();
?>
" />
			<ul>
				<?php 
// simple history-back js-command
?>
				<li><a href="javascript:history.back()" onclick="history.back()"><?php 
imgTagIcon('back', 'Back');
?>
</a></li>
				
				<?php 
if (currentDirectory() != './') {
    # If this folder is not the folder where pdirl is
    ?>
				
					<li><a href="<?php 
    echo goParent();
    ?>
"><?php 
    imgTagIcon('parent', 'Parent Directory');
    ?>
</a></li>
					<li><a href="<?php 
    echo scriptDirectory();
    ?>
"><?php 
    imgTagIcon('home', 'Home Directory');
Example #2
0
function sortLink($key, $text)
{
    if (userSortActive()) {
        $sortlink = "<a ";
        if (sortKey() == $key) {
            $classorder = str_replace(array('SORT_ASC', 'SORT_DESC'), array('asc', 'desc'), sortOrder());
            $sortlink .= 'class="' . $classorder . '" ';
            $linkorder = sortOrder(true);
            // adesc
        } else {
            $linkorder = "SORT_ASC";
        }
        $sortlink .= ' href="' . scriptPath() . '?sortkey=' . $key . '&sortorder=' . $linkorder . '&directory=' . currentDirectory();
        if (searchTag() != '') {
            $sortlink .= '&search=' . searchTag();
        }
        $sortlink .= '">' . $text . '</a>';
    } else {
        $sortlink = $text;
    }
    echo $sortlink;
}