git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@308 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
e036187a42
commit
0ea18f81ed
1 changed files with 27 additions and 5 deletions
|
@ -92,11 +92,33 @@ window.onload = playerLoad;
|
||||||
|
|
||||||
<p id="sort"><?php echo $total.' '.T_("bookmark(s)"); ?> - <?php echo T_("Sort by:"); ?>
|
<p id="sort"><?php echo $total.' '.T_("bookmark(s)"); ?> - <?php echo T_("Sort by:"); ?>
|
||||||
<?php
|
<?php
|
||||||
$dateSort = (getSortOrder()=='date_desc')? 'date_asc':'date_desc';
|
switch(getSortOrder()) {
|
||||||
$titleSort = (getSortOrder()=='title_asc')? 'title_desc':'title_asc';
|
case 'date_asc':
|
||||||
$urlSort = (getSortOrder()=='url_asc')? 'url_desc':'url_asc';
|
$dateArrow = ' ↑';
|
||||||
?> <a href="?sort=<?php echo $dateSort ?>"><?php echo T_("Date"); ?></a><span>
|
$dateSort = 'date_desc';
|
||||||
/ </span> <a href="?sort=<?php echo $titleSort ?>"><?php echo T_("Title"); ?></a><span>
|
$titleSort = 'title_asc';
|
||||||
|
break;
|
||||||
|
case 'title_asc':
|
||||||
|
$titleArrow = ' ↑';
|
||||||
|
$dateSort = 'date_desc';
|
||||||
|
$titleSort = 'title_desc';
|
||||||
|
break;
|
||||||
|
case 'title_desc':
|
||||||
|
$titleArrow = ' ↓';
|
||||||
|
$dateSort = 'date_desc';
|
||||||
|
$titleSort = 'title_asc';
|
||||||
|
break;
|
||||||
|
case 'date_desc':
|
||||||
|
default:
|
||||||
|
$dateArrow = ' ↓';
|
||||||
|
$dateSort = 'date_asc';
|
||||||
|
$titleSort = 'title_asc';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//$dateSort = (getSortOrder()=='date_desc')? 'date_asc':'date_desc';
|
||||||
|
//$titleSort = (getSortOrder()=='title_asc')? 'title_desc':'title_asc';
|
||||||
|
?> <a href="?sort=<?php echo $dateSort ?>"><?php echo T_("Date").$dateArrow; ?></a><span>
|
||||||
|
/ </span> <a href="?sort=<?php echo $titleSort ?>"><?php echo T_("Title").$titleArrow; ?></a><span>
|
||||||
/ </span> <?php
|
/ </span> <?php
|
||||||
if($currenttag!= '') {
|
if($currenttag!= '') {
|
||||||
if($user!= '') {
|
if($user!= '') {
|
||||||
|
|
Loading…
Reference in a new issue