fixed a bug when changing images, not retuning to the same order and "details page"
This commit is contained in:
6
page.php
6
page.php
@@ -7,8 +7,8 @@ $sql = "SELECT * FROM game_time";
|
||||
$result = $ps4->mysql_conn($sql);
|
||||
|
||||
$rootpage = $_GET['rootpage'];
|
||||
$orderby = $_GET['orderby'];
|
||||
$details = $_GET['details'];
|
||||
$orderby = isset($_GET['orderby']) ? $_GET['orderby'] : "lastplayed_desc";
|
||||
$details = isset($_GET['details']) ? $_GET['details'] : "";
|
||||
|
||||
?>
|
||||
|
||||
@@ -53,7 +53,7 @@ $games = $ps4->games_reorder($games, $orderby);
|
||||
foreach ($games as $key => $value) {
|
||||
echo "<div class=\"game\">";
|
||||
echo "<div class=\"thumbnail\">";
|
||||
echo "<img src=\"".$ps4->thumbnailurl($games[$key]["game_id"])."\" border=0 weight=\"80px\" height=\"80px\" onclick=\"thumbnailupdateurl('". $games[$key]["game_id"] ."', '". $games[$key]["game_name"] ."');\">";
|
||||
echo "<img src=\"".$ps4->thumbnailurl($games[$key]["game_id"])."\" border=0 weight=\"80px\" height=\"80px\" onclick=\"thumbnailupdateurl('". $games[$key]["game_id"] ."', '". $games[$key]["game_name"] ."', '". $rootpage ."', '". $orderby ."', '". $details ."');\">";
|
||||
echo "</div>";
|
||||
echo "<div class=\"info\">";
|
||||
echo "<strong>". $games[$key]["game_name"] ."</strong> (". $games[$key]["game_id"] .")";
|
||||
|
||||
Reference in New Issue
Block a user