added a way (beta... still need work) to change the sort order.

This commit is contained in:
2018-12-01 21:08:19 -05:00
parent 6d74d3fbc7
commit 7dd118b0aa
3 changed files with 45 additions and 4 deletions

View File

@@ -4,6 +4,8 @@ ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$orderby = isset($_GET['orderby']) ? $_GET['orderby'] : "lastplayed_desc";
?>
<!DOCTYPE html>
@@ -14,7 +16,7 @@ error_reporting(E_ALL);
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript">
$( document ).ready(function(){
$("#page").load('page.php');
$("#page").load('page.php?orderby=<?php echo $orderby ?>');
});
</script>
</head>