blob: 7a125e20c71fc41d8ceed10b0c74adf08ac57e87 (
plain) (
tree)
|
|
<?php
$filters = array (
"order" => array (
"nbUsers" => "popularity",
"name" => "name",
"owner" => "author",
),
"way" => $ord_ways,
);
$fdefaults = array (
"order" => "nbUsers",
"way" => "DESC",
);
$decks = array();
$n = sql(
"SELECT decks.id AS id, decks.name AS name, account.login AS owner, 0 AS nbUsers ".
"FROM decks LEFT JOIN account ON decks.owner = account.id ".
"ORDER BY " . get_filter("order") . " " . get_filter("way")
);
while ($nn = mysql_fetch_assoc($n)) $decks[] = $nn;
require("tpl/deck/index.php");
|