PHPFusion\Forums\Admin\ForumAdminRanks::displayRankList PHP Метод

displayRankList() защищенный Метод

Ranks Listing
protected displayRankList ( ) : string
Результат string
    protected function displayRankList()
    {
        $rank_list_query = "\n        SELECT * FROM " . DB_FORUM_RANKS . "\n        " . (multilang_table("FR") ? "WHERE rank_language='" . LANGUAGE . "'" : "") . "\n        ORDER BY rank_type DESC, rank_apply DESC, rank_posts\n        ";
        $result = dbquery($rank_list_query);
        if (dbrows($result) > 0) {
            $html = "<table class='table table-responsive table-striped table-hover center m-t-20'>\n<thead>\n<tr>\n" . "<th class='col-xs-4'>" . self::$locale['430'] . "</th>\n" . "<th>" . self::$locale['431'] . "</th>\n" . "<th>" . self::$locale['432'] . "</th>\n" . "<th>" . self::$locale['438'] . "</th>\n" . "<th class='text-center'>" . self::$locale['434'] . "</th>\n" . "</tr>\n" . "</thead>\n<tbody>\n";
            $i = 0;
            while ($data = dbarray($result)) {
                $html .= "<tr>\n" . "<td '>" . $data['rank_title'] . "</td>\n" . "<td>" . ($data['rank_apply'] == 104 ? self::$locale['425'] : getgroupname($data['rank_apply'])) . "</td>\n" . "<td class='col-xs-2'>" . ForumServer::show_forum_rank($data['rank_posts'], $data['rank_apply'], $data['rank_apply']) . "</td>\n" . "<td>";
                if ($data['rank_type'] == 0) {
                    $html .= $data['rank_posts'];
                } elseif ($data['rank_type'] == 1) {
                    $html .= self::$locale['429b'];
                } else {
                    $html .= self::$locale['429a'];
                }
                $html .= "</td>\n<td width='1%' style='white-space:nowrap'>" . "<a href='" . clean_request("rank_id=" . $data['rank_id'] . "&section=fr&ref=rank_form", array("rank_id", "ref"), false) . "'>" . self::$locale['435'] . "</a> -\n" . "<a href='" . clean_request("delete=" . $data['rank_id'] . "&section=fr&ref=rank_form", array("rank_id", "ref"), false) . "'>" . self::$locale['436'] . "</a></td>\n</tr>\n";
                $i++;
            }
            $html .= "</tbody>\n</table>";
        } else {
            $html = "<div class='well text-center'>" . self::$locale['437'] . "</div>\n";
        }
        return $html;
    }