Example #1
0
function getCPageLink()
{
    $pg = getsx('page');
    $sb = getsx('sortby');
    $sm = getsx('mode');
    $q = getsx('q');
    return pageLink($pg, $sb, $sm, $q);
}
Example #2
0
function iThx($t, $s, $p, $b, $m, $q, $y = "")
{
    $img = "";
    if ($s == $b) {
        $c = "a";
        $img = "<img src=\"" . IMGR . "sort" . $m . ".png\" style=\"float:right\" />";
    } else {
        $m = 0;
        $c = "";
    }
    return "<td class=\"xth\"><button class=\"xlink{$c}\" " . ($y == "" ? "" : " style=\"" . $y . "\" ") . "title=\"Sort by " . strtolower($t) . "\" onclick=\"jumpTo('" . pageLink($p, $s, $m, $q) . "')\">" . $t . $img . "</button></td>";
}
Example #3
0
File: pages.php Project: dg-wfk/dl
function pageFooter($vars = array())
{
    global $act, $pages, $style, $entry, $auth, $adminPath, $helpPath;
    echo '<div id="footer">';
    $first = true;
    foreach ($pages as $page => $title) {
        if ($entry[$page]['admin'] && !$auth['admin']) {
            continue;
        }
        if ($first) {
            $first = false;
        } else {
            echo ", ";
        }
        $title = htmlEntUTF8($title);
        if ($page == $act) {
            echo "<span>{$title}</span>";
        } else {
            echo "<a href=\"" . pageLink($page) . "\">{$title}</a>";
        }
    }
    echo ", <a href=\"{$adminPath}?u\">" . T_("Logout") . "</a>" . ", <a href=\"{$helpPath}\" target=\"_blank\">" . T_("Help") . "</a></div>";
    includeTemplate("{$style}/include/footer.php", $vars);
}
Example #4
0
        // Override page title, description, keywords and page encoding here
        break;
        //case added by Abhijith to link the Newest Images gallery to ktools newest-media feature.
    //case added by Abhijith to link the Newest Images gallery to ktools newest-media feature.
    case 'gallery':
        if ($_REQUEST['id'] == 2) {
            define('META_TITLE', $lang['newestMedia'] . ' &ndash; ' . $config['settings']['site_title']);
            // Override page title, description, keywords and page encoding here
            $mode = "newest-media";
        }
        break;
}
require_once BASE_PATH . '/assets/includes/header.inc.php';
require_once BASE_PATH . '/assets/includes/errors.php';
require_once BASE_PATH . '/assets/classes/paging.php';
$_SESSION['backButtonSession']['linkto'] = pageLink();
// Update the back button link session
try {
    $galleryID = $id;
    // Get the original ID no matter what the other settings are
    //echo $id;
    if ($config['EncryptIDs'] and $id != '0') {
        //echo "id : {$id} -";
        $id = k_decrypt($id);
        if ($id != '' and ($_SESSION['currentMode'] != 'lightbox' and $mode != 'lightbox')) {
            idCheck($id);
        }
        // Make sure ID is numeric
    }
    if ($gallerySortBy or $gallerySortType) {
        unset($_SESSION['prevNextArraySess']);
Example #5
0
    }
    echo "<tr class=\"{$class}\">";
    // selection
    echo "<td><input class=\"element checkbox\" type=\"checkbox\" name=\"sel[]\" value=\"" . $DATA['id'] . "\"/></td>";
    // tick
    echo '<td data-sort-value="' . ($DATA["downloads"] ? 1 : 0) . '">';
    if ($DATA["downloads"]) {
        echo '<img title="' . T_("Successfully downloaded") . "\" src=\"{$style}/static/tick.png\"/>";
    }
    echo "</td>";
    // download
    echo '<td><a href="' . ticketUrl($DATA) . '">' . '<img title="' . T_("Download") . "\" src=\"{$style}/static/save.png\"/></a></td>";
    // delete
    echo "<td><a href=\"" . pageLinkAct(array('purge' => null, 'sel' => $DATA['id'])) . "\">" . "<img title=\"" . T_("Purge") . "\" src=\"{$style}/static/cross.png\"/></a></td>";
    // name
    echo '<td><a title="' . $DATA['id'] . '" href="' . pageLink('tedit', array('id' => $DATA['id'], 'src' => $act)) . '" class="filename">' . htmlEntUTF8($DATA["name"]) . '</a></td>';
    // user
    echo "<td>" . htmlEntUTF8($DATA["user"]) . "</td>";
    // size/date
    echo '<td data-sort-value="' . $DATA["size"] . '">' . humanSize($DATA["size"]) . '</td>';
    echo '<td data-sort-value="' . $DATA["time"] . '">' . date($dateFmtShort, $DATA["time"]) . "</td>";
    // expiration
    $expStr = ticketExpiration($DATA, $expVal);
    echo "<td data-sort-value=\"{$expVal}\">{$expStr}</td>";
    echo "</tr>";
}
?>
    </tbody>
  </table>

  <ul>
Example #6
0
"> < </a></td>
		<?php 
    for ($n = 1; $n <= $nop; $n++) {
        ?>
		<td><a class="plink<?php 
        echo $n != $page ? "\" title=\"Go to page {$n}\" href=\"" . pageLink($n, gets('sortby'), gets('mode'), gets('q')) : "a";
        ?>
"><?php 
        echo $n;
        ?>
</a></td>
		<?php 
    }
    ?>
		<td><a class="plink<?php 
    echo $page < $nop ? "\" title=\"Go to next page\" href=\"" . pageLink($page + 1, gets('sortby'), gets('mode'), gets('q')) : "o";
    ?>
"> > </a></td>
	</tr></table>
	<?php 
}
?>
</td>
</tr></table>
<input type="hidden" id="pagelink" value="<?php 
echo $page != '' ? "&page=" . $page : "";
echo $sortby != '' ? "&sortby=" . $sortby : "";
echo $smode != '' ? "&mode=" . $sortmode : "";
echo $keyw != '' ? "&q=" . $keyw : "";
?>
"/>
Example #7
0
echo IMGR;
?>
dnarrow.png') right 4px no-repeat" onclick="showSortMenu()"><?php 
echo $sortby;
?>
			<div id="sortmenu" style="display:none;position:absolute;top:-2px;left:-4px;background:#fff;box-shadow:0px 2px 10px rgba(0,0,0,0.75)" onmouseover="enhsm=false" onmouseout="enhsm=true">
				<a href="<?php 
echo pageLink($page, 'newest');
?>
" class="sorta">newest</a>
				<a href="<?php 
echo pageLink($page, 'title');
?>
" class="sorta">title</a>
				<a href="<?php 
echo pageLink($page, 'author');
?>
" class="sorta">author</a>
			</div>
		</div>
	</div>
	</td>
	<td>
	<input id="xxx" type="text" style="position:absolute;top:-100px;left:-300px;float:left" onblur="hideSortMenu()"/>
	<input id="yyy" type="text" style="position:absolute;top:-100px;left:-300px;float:left" onblur="hideRowMenu()"/>
	</td>
	</tr></table>
</td>
</tr></table>
<table cellspacing="0" cellpadding="0"><tr valign="top"><td>
<div style="width:785px;height:600px;overflow:auto;">