当前位置: 首页>>代码示例>>PHP>>正文


PHP getgroupname函数代码示例

本文整理汇总了PHP中getgroupname函数的典型用法代码示例。如果您正苦于以下问题:PHP getgroupname函数的具体用法?PHP getgroupname怎么用?PHP getgroupname使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getgroupname函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: forum_subcats

function forum_subcats($forum_id)
{
    global $settings, $locale, $userdata, $lastvisited;
    $a_result = dbquery("SELECT * FROM " . DB_FORUMS . " f LEFT JOIN " . DB_USERS . " u on f.forum_lastuser=u.user_id WHERE " . groupaccess('f.forum_access') . " AND forum_parent='" . $_GET['forum_id'] . "' ORDER BY forum_order");
    if (dbrows($a_result) != 0) {
        echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border forum_idx_table'>\n<tr>\n";
        echo "<td colspan='2' class='tbl2'>" . $locale['401'] . "</td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['402'] . "</td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['403'] . "</td>\n";
        echo "<td width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['404'] . "</td>\n";
        echo "</tr>\n";
        while ($a_data = dbarray($a_result)) {
            echo "<tr>\n";
            $moderators = "";
            if ($a_data['forum_moderators']) {
                $mod_groups = explode(".", $a_data['forum_moderators']);
                foreach ($mod_groups as $mod_group) {
                    if ($moderators) {
                        $moderators .= ", ";
                    }
                    $moderators .= $mod_group < 101 ? "<a href='" . BASEDIR . "profile.php?group_id=" . $mod_group . "'>" . getgroupname($mod_group) . "</a>" : getgroupname($mod_group);
                }
            }
            if ($a_data['forum_lastpost'] > $lastvisited) {
                $forum_match = "\\|" . $a_data['forum_lastpost'] . "\\|" . $a_data['forum_id'];
                if (iMEMBER && ($a_data['forum_lastuser'] == $userdata['user_id'] || preg_match("({$forum_match}\\.|{$forum_match}\$)", $userdata['user_threads']))) {
                    $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />";
                } else {
                    $fim = "<img src='" . get_image("foldernew") . "' alt='" . $locale['560'] . "' />";
                }
            } else {
                $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />";
            }
            echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>{$fim}</td>\n";
            echo "<td class='tbl1 forum_name'><!--forum_name--><a href='viewforum.php?forum_id=" . $a_data['forum_id'] . "'>" . $a_data['forum_name'] . "</a><br />\n";
            if ($a_data['forum_description'] || $moderators) {
                echo "<span class='small'>" . $a_data['forum_description'] . ($a_data['forum_description'] && $moderators ? "<br />\n" : "");
                echo ($moderators ? "<strong>" . $locale['411'] . "</strong>" . $moderators . "</span>\n" : "</span>\n") . "\n";
            }
            echo "</td>\n";
            echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $a_data['forum_threadcount'] . "</td>\n";
            echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . $a_data['forum_postcount'] . "</td>\n";
            echo "<td width='1%' class='tbl2' style='white-space:nowrap'>";
            if ($a_data['forum_lastpost'] == 0) {
                echo $locale['405'] . "</td>\n</tr>\n";
            } else {
                echo showdate("forumdate", $a_data['forum_lastpost']) . "<br />\n";
                echo "<span class='small'>" . $locale['406'] . profile_link($a_data['forum_lastuser'], $a_data['user_name'], $a_data['user_status']) . "</span></td>\n";
                echo "</tr>\n";
            }
        }
        echo "</table>";
    }
}
开发者ID:keddyboys,项目名称:kmods,代码行数:54,代码来源:subcats_forums_include.php

示例2: profile

function profile()
{
    global $logged;
    $id = intval(htmlspecialchars($_GET['profile;id']));
    $sql = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1;");
    if (mysql_num_rows($sql) <= 0) {
        pageerror("Profile Error", "Doesn't exists.", "Sorry, but it looks like this user wasn't created or was deleted.");
    }
    $information = mysql_fetch_array($sql);
    $Temp = new Template();
    $Temp->dir = $logged['dskin'];
    $Temp->file = "profile.tpl";
    $Temp->tp();
    $Temp->tr(array('USERNAME' => $information['username'], 'POSTS' => $information['post'], 'GROUP' => getgroupname($information['level']), 'JOINED' => empty($information['joined']) ? 'unknown' : date("m-d-y", $information['joined']), 'AVY' => '', 'MSN' => empty($information['msn']) ? 'unknown' : $information['msn'], 'GTALK' => 'unknown', 'EMAIL' => 'unknown'));
    echo $Temp->html;
}
开发者ID:exts,项目名称:nab145,代码行数:16,代码来源:profile.php

示例3: articles_admin_subcats

function articles_admin_subcats($id)
{
    global $aidlink, $locale, $i, $data;
    $sublist = "";
    $result2 = dbquery("SELECT article_cat_id, article_cat_name, article_cat_description, article_cat_access FROM " . DB_ARTICLE_CATS . " WHERE article_cat_parent='" . (int) $id . "' ORDER BY article_cat_name");
    while ($data2 = dbarray($result2)) {
        $cell_color = $i % 2 == 0 ? "tbl1" : "tbl2";
        $sublist .= "<tr>\n";
        $sublist .= "<td class='{$cell_color}'><strong>-" . $data2['article_cat_name'] . "</strong><br />\n";
        $sublist .= "<span class='small'>" . trimlink($data2['article_cat_description'], 45) . "</span></td>\n";
        $sublist .= "<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'>" . getgroupname($data2['article_cat_access']) . "</td>\n";
        $sublist .= "<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&action=edit&cat_id=" . $data2['article_cat_id'] . "'>" . $locale['443'] . "</a> -\n";
        $sublist .= "<a href='" . FUSION_SELF . $aidlink . "&action=delete&cat_id=" . $data2['article_cat_id'] . "' onclick=\"return confirm('" . $locale['450'] . "');\">" . $locale['444'] . "</a></td>\n";
        $sublist .= "</tr>\n";
    }
    return $sublist;
}
开发者ID:keddyboys,项目名称:kmods,代码行数:17,代码来源:subcats_articles_include.php

示例4: subcats

function subcats($forum_id)
{
    global $settings, $locale, $userdata, $lastvisited, $cache_subcats;
    $access = '';
    // Pimped: access
    $aresult = dbquery("SELECT forum_access FROM " . DB_FORUMS . " WHERE forum_parent='" . (int) $_GET['forum_id'] . "' ORDER BY forum_order ASC");
    while ($adata = dbarray($aresult)) {
        if ($access != '') {
            $access .= "|";
        }
        $access .= $adata['forum_access'];
    }
    $a_result = dbquery("SELECT f.forum_id, f.forum_name, f.forum_description, f.forum_moderators, f.forum_lastpost, f.forum_image, f.forum_postcount, f.forum_threadcount, f.forum_lastuser, u.user_name, u.user_status FROM " . DB_FORUMS . " f LEFT JOIN " . DB_USERS . " u on f.forum_lastuser=u.user_id WHERE " . groupaccess('f.forum_access', $access) . " AND forum_parent='" . (int) $_GET['forum_id'] . "' ORDER BY forum_order");
    if (dbrows($a_result) != 0) {
        echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border forum_idx_table'>\n<tr>\n";
        echo "<td width='1%' class='tbl2' style='white-space:nowrap'>&nbsp;</td>\n";
        echo "<td class='tbl2' " . ($settings['forum_cat_icons'] == "1" ? "colspan='2' " : "") . ">" . $locale['413'] . "</td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['402'] . "</td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['403'] . "</td>\n";
        echo "<td width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['404'] . "</td>\n";
        echo "</tr>\n";
        while ($a_data = dbarray($a_result)) {
            $cache_subcats[] = $a_data['forum_id'];
            // Pimped
            echo "<tr>\n";
            $moderators = '';
            if ($a_data['forum_moderators']) {
                $mod_groups = explode(".", $a_data['forum_moderators']);
                foreach ($mod_groups as $mod_group) {
                    if ($moderators) {
                        $moderators .= ", ";
                    }
                    $moderators .= $mod_group < nMEMBER ? group_link($mod_group, getgroupname($mod_group)) : getgroupname($mod_group);
                    // Pimped: group_link()
                }
            }
            if ($a_data['forum_lastpost'] > $lastvisited) {
                $forum_match = "\\|" . $a_data['forum_lastpost'] . "\\|" . $a_data['forum_id'];
                if (iMEMBER && preg_match("({$forum_match}\\.|{$forum_match}\$)", $userdata['user_threads'])) {
                    $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />";
                } else {
                    $fim = "<img src='" . get_image("foldernew") . "' alt='" . $locale['560'] . "' />";
                }
            } else {
                $fim = "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' />";
            }
            echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>{$fim}</td>\n";
            if ($settings['forum_cat_icons'] == "1") {
                echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>";
                if ($a_data['forum_image'] != '' && file_exists(IMAGES_FC . $a_data['forum_image'])) {
                    echo "<img src='" . IMAGES_FC . $a_data['forum_image'] . "' border='0' alt='' title='" . $a_data['forum_name'] . "' />";
                } else {
                    echo "<img src='" . IMAGES_FC . "default.png' border='0' alt='' title='" . $a_data['forum_name'] . "' />";
                }
                echo "</td>";
            }
            echo "<td class='tbl1 forum_name'><!--forum_name--><a href='" . make_url(FORUM . "viewforum.php?forum_id=" . $a_data['forum_id'], BASEDIR . "forum-" . $a_data['forum_id'] . "-", $a_data['forum_name'], ".html") . "'>" . $a_data['forum_name'] . "</a><br />\n";
            // Pimped: make_url
            if ($a_data['forum_description'] || $moderators) {
                echo "<span class='small'>" . $a_data['forum_description'] . ($a_data['forum_description'] && $moderators ? "<br />\n" : "");
                echo ($moderators ? "<strong>" . $locale['411'] . "</strong>" . $moderators . "</span>\n" : "</span>\n") . "<br />\n";
            }
            whoishere_show("index", $a_data['forum_id']);
            // Pimped: Who is here
            echo "</td>\n";
            echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $a_data['forum_threadcount'] . "</td>\n";
            echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . $a_data['forum_postcount'] . "</td>\n";
            echo "<td width='1%' class='tbl2' style='white-space:nowrap'>";
            if ($a_data['forum_lastpost'] == 0) {
                echo $locale['405'] . "</td>\n</tr>\n";
            } else {
                // Pimped ->
                $thread_data = dbarray(dbquery("SELECT t.thread_id, t.thread_subject, t.thread_lastpostid FROM " . DB_THREADS . " t\r\n\t\t\t\tleft join " . DB_POSTS . " p on p.post_id=t.thread_lastpostid\r\n\t\t\t\tWHERE t.thread_lastpost='" . $a_data['forum_lastpost'] . "'"));
                echo "<a href='" . make_url(FORUM . "viewthread.php?thread_id=" . $thread_data['thread_id'], BASEDIR . "forum-thread-" . $thread_data['thread_id'] . "-", $thread_data['thread_subject'], ".html") . "#post_" . $thread_data['thread_lastpostid'] . "' title='" . $thread_data['thread_subject'] . "'>" . trimlink($thread_data['thread_subject'], 35) . "</a><br />";
                // Pimped: make_url
                echo showdate("forumdate", $a_data['forum_lastpost']) . "<br />\n";
                echo "<span class='small'>" . $locale['406'] . profile_link($a_data['forum_lastuser'], $a_data['user_name'], $a_data['user_status']) . "</span></td>\n";
                echo "</tr>\n";
                // Pimped Sub Cats <--
            }
        }
        echo "</table>";
        echo "<div style='margin:5px'></div>";
    }
}
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:85,代码来源:viewforum.php

示例5: elseif

 } elseif ($data['action'] == "admin_wl_edited") {
     echo "Weblink edited: " . $data['subject'] . "";
 } elseif ($data['action'] == "admin_wl_deleted") {
     echo "Weblink deleted: " . $data['subject'] . "";
 } elseif ($data['action'] == "admin_wel_panel_edited") {
     echo "Welcome Panel updated";
 } elseif ($data['action'] == "admin_del_log") {
     echo $locale['130'] . " (" . $locale[$data['subject']] . ")";
 } elseif ($data['action'] == "admin_adminrights_added") {
     echo $locale['131'] . " " . getusername($data['subject']);
 } elseif ($data['action'] == "admin_adminrights_removed") {
     echo $locale['132'] . " " . getusername($data['subject']);
 } elseif ($data['action'] == "admin_adminrights_changed") {
     echo $locale['133'] . " " . getusername($data['subject']);
 } elseif ($data['action'] == "admin_groupadminrights_changed") {
     echo "Groupadminrights changed: " . getgroupname($data['subject']);
 } elseif ($data['action'] == "admin_blacklist_added") {
     echo $locale['134'];
 } elseif ($data['action'] == "admin_blacklist_removed") {
     echo $locale['135'];
 } elseif ($data['action'] == "admin_blacklist_changed") {
     echo $locale['136'];
 } elseif ($data['action'] == "admin_moderator_added") {
     echo "Moderator added:" . " " . getusername($data['subject']);
 } elseif ($data['action'] == "admin_moderator_removed") {
     echo "Moderator removed:" . " " . getusername($data['subject']);
 } elseif ($data['action'] == "admin_forumrank_added") {
     echo $locale['137'];
 } elseif ($data['action'] == "admin_forumrank_removed") {
     echo $locale['138'];
 } elseif ($data['action'] == "admin_forumrank_changed") {
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:31,代码来源:admin_log.php

示例6: closetable

    closetable();
    opentable($locale['402']);
    echo "<table width='400' cellspacing='1' cellpadding='0' class='tbl-border center'>\n";
    $result = dbquery("SELECT download_cat_id, download_cat_name, download_cat_description, download_cat_access FROM " . DB_DOWNLOAD_CATS . " ORDER BY download_cat_name");
    if (dbrows($result) != 0) {
        $i = 0;
        echo "<tr>\n";
        echo "<td class='tbl2'>" . $locale['440'] . "</td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['441'] . "</td>\n";
        echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $locale['442'] . "</td>\n";
        echo "</tr>\n";
        while ($data = dbarray($result)) {
            $cell_color = $i % 2 == 0 ? "tbl1" : "tbl2";
            echo "<tr>\n";
            echo "<td class='" . $cell_color . "'>" . $data['download_cat_name'] . "\n";
            if ($data['download_cat_description']) {
                echo "<br /><span class='small'>" . trimlink($data['download_cat_description'], 45) . "</span>";
            }
            echo "</td>\n<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'>" . getgroupname($data['download_cat_access']) . "</td>\n";
            echo "<td align='center' width='1%' class='{$cell_color}' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&amp;action=edit&amp;cat_id=" . $data['download_cat_id'] . "'>" . $locale['443'] . "</a> -\n";
            echo "<a href='" . FUSION_SELF . $aidlink . "&amp;action=delete&amp;cat_id=" . $data['download_cat_id'] . "' onclick=\"return confirm('" . $locale['450'] . "');\">" . $locale['444'] . "</a></td>\n";
            echo "</tr>\n";
            $i++;
        }
        echo "</table>\n";
    } else {
        echo "<tr><td align='center' class='tbl1'>" . $locale['445'] . "</td></tr>\n</table>\n";
    }
    closetable();
}
require_once THEMES . "templates/footer.php";
开发者ID:dioda,项目名称:phpfusion,代码行数:31,代码来源:download_cats.php

示例7: opentable

opentable($locale['addondb401']);
$q_addon_cats = dbquery("SELECT tc.*, COUNT(tm.addon_id) AS addon_count\r\n\tFROM " . DB_ADDON_CATS . " tc LEFT JOIN " . DB_ADDONS . " tm USING(addon_cat_id)\r\n\tGROUP BY addon_cat_id ORDER BY addon_cat_type,addon_cat_order");
$rows = dbrows($q_addon_cats);
if ($rows != 0) {
    echo "<table width='100%' align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\r\n\t<tr>\r\n\t<td class='forum-caption'>" . $locale['addondb402'] . " - " . $locale['addondb441'] . "</td>\r\n\t<td class='forum-caption'>Type</td>\r\n\t<td class='forum-caption'>" . $locale['addondb405'] . "</td>\r\n\t<td class='forum-caption' align='center'>" . $locale['addondb433'] . "</td>\r\n\t<td class='forum-caption' align='center' colspan='2'>" . $locale['addondb432'] . "</td>\r\n\t<td class='forum-caption' align='right'>" . $locale['addondb420'] . "</td>\r\n\t</tr>";
    $r = 0;
    $up_down = "";
    while ($d_addon_cats = dbarray($q_addon_cats)) {
        if ($rows != 1) {
            $addon_cat_id = $d_addon_cats['addon_cat_id'];
            $up = $d_addon_cats['addon_cat_order'] - 1;
            $down = $d_addon_cats['addon_cat_order'] + 1;
            if ($d_addon_cats['addon_cat_order'] == 1) {
                $up_down = "<a href='" . FUSION_SELF . $aidlink . "&amp;action=move_down&order=" . $down . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb703'] . "'><img src='" . ADDON_IMG . "down.png' border='0' /></a>";
            } elseif ($d_addon_cats['addon_cat_order'] < $rows) {
                $up_down = "<a href='" . FUSION_SELF . $aidlink . "&amp;action=move_up&order=" . $up . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb702'] . "'><img src='" . ADDON_IMG . "up.png' border='0' /></a>&nbsp;";
                $up_down .= "<a href='" . FUSION_SELF . $aidlink . "&amp;action=move_down&order=" . $down . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb703'] . "'><img src='" . ADDON_IMG . "down.png' border='0' /></a>";
            } else {
                $up_down = "<a href='" . FUSION_SELF . $aidlink . "&amp;action=move_up&order=" . $up . "&addon_cat_id=" . $addon_cat_id . "' title='" . $locale['addondb702'] . "'><img src='" . ADDON_IMG . "up.png' border='0' /></a>";
            }
        }
        $cls = $r++ % 2 == 0 ? "tbl1" : "tbl2";
        echo " <tr>\r\n\t\t<td class='" . $cls . "'><a href='" . FUSION_SELF . $aidlink . "&amp;action=edit&addon_cat_id=" . $d_addon_cats['addon_cat_id'] . "' title='" . $locale['addondb700'] . "'>" . $d_addon_cats['addon_cat_name'] . "</a></td>\r\n\t\t<td class='" . $cls . "'><span class='small'>" . get_addon_type($d_addon_cats['addon_cat_type']) . "</span></td>\r\n\t\t<td class='" . $cls . "'><span class='small'>" . getgroupname($d_addon_cats['addon_cat_access']) . "</span></td>\r\n\t\t<td class='" . $cls . "' align='center'><span class='small'>" . $d_addon_cats['addon_count'] . "</span></td>\r\n\t\t<td class='" . $cls . "' align='center'><span class='small'>" . $d_addon_cats['addon_cat_order'] . "</span></td>\r\n\t\t<td class='" . $cls . "' align='center'>" . $up_down . "</td>\r\n\t\t<td class='" . $cls . "' align='right'><span class='small'>" . ($d_addon_cats['addon_count'] == 0 ? "<a href='" . FUSION_SELF . $aidlink . "&amp;action=delete&addon_cat_id=" . $d_addon_cats['addon_cat_id'] . "' onClick=\"return confirmDeleteAddonCat('" . $d_addon_cats['addon_cat_name'] . "')\" title='" . $locale['addondb701'] . "'>" . $locale['addondb422'] . "</a>" : "-") . "</span></td>\r\n\t\t</tr>\n";
    }
    echo "</table>";
    echo "<script language='JavaScript'>\r\n\tfunction confirmDeleteAddonCat(addon_cat_name) {\r\n\t\treturn confirm('" . $locale['addondb439'] . "\\''+addon_cat_name+'\\'');\r\n\t}\r\n\t</script>\n";
} else {
    echo "<center><br />" . $locale['addondb434'] . "<br /><br /></center>\n";
}
closetable();
require_once THEMES . "templates/footer.php";
开发者ID:xXxthebeastxXx,项目名称:addondb,代码行数:31,代码来源:cats.php

示例8: while

 echo "<td class='tbl2'><strong>" . $locale['430'] . "</strong></td>\n";
 echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['431'] . "</strong></td>\n";
 echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['432'] . "</strong></td>\n";
 echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['433'] . "</strong></td>\n";
 echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['434'] . "</strong></td>\n";
 echo "</tr>\n";
 $i = 0;
 while ($data = dbarray($result)) {
     $row_color = $i % 2 == 0 ? "tbl1" : "tbl2";
     echo "<tr>\n";
     echo "<td align='center' width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . ($i + 1) . "</td>\n";
     echo "<td class='" . $row_color . "'>" . $data['rank_title'] . "</td>\n";
     echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>";
     if ($data['rank_group'] != "0") {
         // Pimped
         echo "Group: " . getgroupname($data['rank_group']);
     } elseif ($data['rank_apply'] == nMEMBER) {
         echo $locale['424'];
     } elseif ($data['rank_apply'] == nADMIN) {
         echo $locale['426'];
     } elseif ($data['rank_apply'] == nSUPERADMIN) {
         echo $locale['427'];
     } elseif ($data['rank_apply'] == nMODERATOR) {
         echo $locale['425'];
     }
     echo "</td>\n";
     echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'><img src='" . IMAGES . "ranks/" . $data['rank_image'] . "' alt='' style='border:0;' /></td>\n";
     echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . $data['rank_posts'] . "</td>\n";
     echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&amp;rank_id=" . $data['rank_id'] . "'>" . $locale['435'] . "</a> ::\n";
     echo "<a href='" . FUSION_SELF . $aidlink . "&amp;delete=" . $data['rank_id'] . "'>" . $locale['436'] . "</a></td>\n";
     echo "</tr>\n";
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:31,代码来源:forum_ranks.php

示例9: prp_count_cats

            }
            if (!checkgroup($data['access']) && $prp->settings['hide_cats']) {
                continue;
            }
            $cnt_cats = prp_count_cats($id);
            $cnt_downs = prp_count_dl($all_cats, $id);
            $cats[$id] = array("name" => $data['name'], "cnt_downs" => $cnt_downs, "cnt_cats" => $cnt_cats, "desc" => parseubb($data['desc']));
        }
    }
    prp_render_cats($catid, $review->id, $path, $cats);
    unset($path, $cats);
    if (!is_null($access_group)) {
        if ($prp->settings['hide_cats']) {
            fallback("error.php?type=access");
        }
        show_info('<img src="icons/lock.png" alt="' . $locale['prp_locked'] . '" /> ' . str_replace('%s', getgroupname($access_group), $locale['PRP215']));
    }
}
/***************************************************************************
 *  DOWNLOADS                                                              *
 ***************************************************************************/
if (is_null($access_group) && !$review->id && (!isset($catid) || $catid != 0)) {
    $rowstart = 0;
    if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])) {
        $rowstart = $_GET['rowstart'];
    }
    $downs = array();
    if (isset($catid)) {
        $get = array('type' => 'cat', 'data' => $catid);
    } else {
        $get = array('type' => 'none');
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:review.php

示例10: dbquery

 $result = dbquery("SELECT rank_id, rank_title, rank_image, rank_posts, rank_type, rank_apply FROM " . DB_FORUM_RANKS . " " . (multilang_table("FR") ? "WHERE rank_language='" . LANGUAGE . "'" : "") . " ORDER BY rank_type DESC, rank_apply DESC, rank_posts");
 if (dbrows($result)) {
     echo "<table cellpadding='0' cellspacing='1' class='table table-responsive tbl-border center'>\n<thead>\n<tr>\n";
     echo "<th class='tbl2'><strong>" . $locale['430'] . "</strong></th>\n";
     echo "<th width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['431'] . "</strong></th>\n";
     echo "<th width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['432'] . "</strong></th>\n";
     echo "<th width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['438'] . "</strong></th>\n";
     echo "<th align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['434'] . "</strong></th>\n";
     echo "</tr>\n";
     echo "</thead>\n<tbody>\n";
     $i = 0;
     while ($data = dbarray($result)) {
         $row_color = $i % 2 == 0 ? "tbl1" : "tbl2";
         echo "<tr>\n";
         echo "<td class='" . $row_color . "'>" . $data['rank_title'] . "</td>\n";
         echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . ($data['rank_apply'] == 104 ? $locale['425'] : getgroupname($data['rank_apply'])) . "</td>\n";
         echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'><img src='" . RANKS . $data['rank_image'] . "' alt='' style='border:0;' /></td>\n";
         echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>";
         if ($data['rank_type'] == 0) {
             echo $data['rank_posts'];
         } elseif ($data['rank_type'] == 1) {
             echo $locale['429b'];
         } else {
             echo $locale['429a'];
         }
         echo "</td>\n<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>";
         echo "<a href='" . FUSION_SELF . $aidlink . "&amp;rank_id=" . $data['rank_id'] . "&amp;section=fr'>" . $locale['435'] . "</a> -\n";
         echo "<a href='" . FUSION_SELF . $aidlink . "&amp;delete=" . $data['rank_id'] . "&amp;section=fr'>" . $locale['436'] . "</a></td>\n</tr>\n";
         $i++;
     }
     echo "</tbody>\n</table>";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:forum_ranks.php

示例11: elseif

         } elseif (file_exists(PHOTOS . "nophoto.jpg")) {
             echo "<img src='" . PHOTOS . "nophoto.jpg' alt='' title='" . $locale['460'] . "' style='border:0px' />";
         } else {
             echo $locale['461'];
         }
         $sub = dbcount("(album_id)", DB_PHOTO_ALBUMS, "album_parent='" . $data['album_id'] . "'");
         // Pimped: Subcategories
         echo "</a><br /><br />\n<span class='small'>" . $up;
         echo "<a href='" . FUSION_SELF . $aidlink . "&amp;action=edit&amp;album_id=" . $data['album_id'] . "'>" . $locale['468'] . "</a> &middot;\n";
         echo "<a href='" . FUSION_SELF . $aidlink . "&amp;action=delete&amp;album_id=" . $data['album_id'] . "' onclick=\"return PhotosWarning('" . dbcount("(album_id)", DB_PHOTOS, "album_id='" . $data['album_id'] . "'") . "');\">" . $locale['469'] . "</a> " . $down;
         echo "<br /><br />\n";
         echo $locale['447'] . $sub . "<br />";
         // Pimped: Subcategories
         echo $locale['462'] . showdate("shortdate", $data['album_datestamp']) . "<br />\n";
         echo $locale['463'] . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "<br />\n";
         echo $locale['464'] . getgroupname($data['album_access']) . "<br />\n";
         echo $locale['465'] . dbcount("(photo_id)", DB_PHOTOS, "album_id='" . $data['album_id'] . "'") . "</span><br />\n";
         echo "</td>\n";
         $counter++;
         $k++;
     }
     echo "</tr>\n<tr>\n<td align='center' colspan='" . $settings['thumbs_per_row'] . "' class='tbl2'><a href='" . FUSION_SELF . $aidlink . "&amp;action=refresh'>" . $locale['470'] . "</a></td>\n</tr>\n</table>\n";
     if ($rows > $settings['thumbs_per_page']) {
         echo "<div align='center' style='margin-top:5px;'>\n" . pagination(true, $_GET['rowstart'], $settings['thumbs_per_page'], $rows, 3, FUSION_SELF . $aidlink . "&amp;") . "\n</div>\n";
     }
 } else {
     echo "<div style='text-align:center'>" . $locale['471'] . "</div>\n";
 }
 echo "<script type='text/javascript'>\n" . "function PhotosWarning(value) {\n";
 echo "return confirm ('" . $locale['500'] . "');\n}\n</script>";
 closetable();
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:31,代码来源:photoalbums.php

示例12: renderUserGroups

 private function renderUserGroups()
 {
     global $locale;
     $this->html .= "<div style='margin:5px'></div>\n";
     $this->html .= "<table cellpadding='0' cellspacing='1' width='400' class='profile tbl-border center '>\n<tr>\n";
     $this->html .= "<td class='tbl2'><strong>" . $locale['u057'] . "</strong></td>\n";
     $this->html .= "</tr>\n<tr>\n";
     $this->html .= "<td class='tbl1'>\n";
     $user_groups = strpos($this->userData['user_groups'], ".") == 0 ? substr($this->userData['user_groups'], 1) : $this->userData['user_groups'];
     $user_groups = explode(".", $user_groups);
     for ($i = 0; $i < count($user_groups); $i++) {
         $this->html .= "<div style='float:left'><a href='" . FUSION_SELF . "?group_id=" . $user_groups[$i] . "'>" . getgroupname($user_groups[$i]) . "</a></div>\n";
         $this->html .= "<div style='float:right'>" . getgroupname($user_groups[$i], true) . "</div>\n";
         $this->html .= "<div style='float:none;clear:both'></div>\n";
     }
     $this->html .= "</td>\n</tr>\n</table>\n";
 }
开发者ID:WuChEn,项目名称:PHP-Fusion,代码行数:17,代码来源:UserFields.class.php

示例13: str_repeat

    //	$order_cols = "<td class='$tbl'>".str_repeat("&nbsp;", $data['level']*5)
    //		.$data['order'].":".$data['level']."</td>";
    $order_cols = "";
    for ($i = 0; $i < $data['level']; ++$i) {
        $order_cols .= "<td></td>";
    }
    $order_cols .= "<td>" . $data['order'] . "</td>";
    for ($i = $data['level'] + 1; $i < $maxlevel; ++$i) {
        $order_cols .= "<td></td>";
    }
    echo '
<tr class="tbl' . (1 + ++$count % 2) . '">
	<td>' . $edit_icon . '</td>
	<td>' . str_repeat('&nbsp;', $data['level'] * 5) . $data['name'] . '</td>
	' . $order_cols . '
	<td style="white-space:nowrap;">' . getgroupname($data['access']) . '</td>
	<td style="white-space:nowrap;">' . getgroupname($data['upload_access']) . '</td>
	<td style="white-space:nowrap;">' . getgroupname($data['review_access']) . '</td>
	<td align="center">' . $locale['PRP823'][$sorting[0]] . '<br />' . '<span class="small2">' . $locale['PRP824'][$sorting[1]] . '</span></td>
	<td width="16">' . $view_icon . '</td>
	<td align="center">' . $dl_count . '</td>
	<td>' . $del_icon . '</td>
</tr>';
}
if (count($cats_for_table)) {
    echo '
</tbody>
</table>';
}
closetable();
require_once '../include/die.php';
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:cats.php

示例14: panel_reactor

 /**
  * The container for each grid positions
  * @param $side
  * @return string
  */
 private function panel_reactor($side)
 {
     global $locale, $aidlink;
     $grid_opts = self::get_panel_grid();
     $type = $grid_opts[$side];
     $k = 0;
     $count = dbcount("('panel_id')", DB_PANELS, "panel_side='" . $side . "'");
     $title = $type . " <span id='side-" . $side . "' class='badge num pull-right'>" . $count . "</span>";
     $html = '';
     $html .= "<div class='panel panel-default' style='border-style: dashed'>\n<div class='panel-body clearfix'>\n";
     $html .= "<i class='fa fa-desktop m-r-10'></i> {$title} ";
     $html .= "</div>\n";
     $html .= "<ul id='panel-side" . $side . "' data-side='" . $side . "' style='list-style: none;' class='panels-list connected list-group p-10'>\n";
     if (isset($this->panel_data[$side])) {
         foreach ($this->panel_data[$side] as $data) {
             $row_color = $k % 2 == 0 ? "tbl1" : "tbl2";
             $type = $data['panel_type'] == "file" ? $locale['423'] : $locale['424'];
             $html .= "<li id='listItem_" . $data['panel_id'] . "' style='border:1px solid #ddd;' class='pointer list-group-item " . $row_color . ($data['panel_status'] == 0 ? " pdisabled" : '') . "'>\n";
             $html .= "<div class='handle'>\n";
             $html .= "<i class='pull-right display-inline-block m-t-5 m-r-10 fa fa-arrows-alt' title='move'></i>\n";
             $html .= "<div class='overflow-hide'>\n";
             $html .= "<a class='dropdown-toggle' data-toggle='dropdown'>\n";
             $html .= "<strong>" . $data['panel_name'] . "</strong> <span class='caret'></span>\n\n";
             $html .= "</a>\n";
             $html .= "<ul class='dropdown-menu' role='panel-options'>\n";
             $html .= "<li style='padding:3px 20px;'>\n<i class='fa fa-bullseye m-r-10 m-t-5'></i> " . getgroupname($data['panel_access']) . "</li>\n";
             $html .= "<li style='padding:3px 20px;'>\n<i class='fa fa-file-o m-r-10 m-t-5'></i> " . $type . "</li>\n";
             $html .= "<li style='padding:3px 20px;'>\n<i class='fa fa-arrows-v m-r-10'></i> " . $data['panel_order'] . "</li>\n";
             $html .= "<li class='divider'></li>\n";
             $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&amp;section=panelform&amp;action=edit&amp;panel_id=" . $data['panel_id'] . "'><i class='fa fa-pencil m-r-10 m-t-5'></i>" . $locale['434'] . "</a>\n</li>\n";
             if ($data['panel_status'] == 0) {
                 $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&amp;action=setstatus&amp;panel_status=1&amp;panel_id=" . $data['panel_id'] . "'><i class='fa fa-check m-r-10 m-t-5'></i>" . $locale['435'] . "</a>\n</li>\n";
             } else {
                 $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&amp;action=setstatus&amp;panel_status=0&amp;panel_id=" . $data['panel_id'] . "'><i class='fa fa-close m-r-10 m-t-5'></i>" . $locale['436'] . "</a>\n</li>\n";
             }
             $html .= "<li>\n<a href='" . FUSION_SELF . $aidlink . "&amp;action=delete&amp;panel_id=" . $data['panel_id'] . "' onclick=\"return confirm('" . $locale['440'] . "');\"><i class='fa fa-trash m-r-10 m-t-5'></i>" . $locale['437'] . "</a>\n</li>\n";
             $html .= "</ul>\n";
             $html .= "</div>\n";
             $html .= "</div>\n";
             $html .= "</li>\n";
             $k++;
         }
     }
     $html .= "</ul>\n";
     $html .= "</div>\n";
     return $html;
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:52,代码来源:panels.php

示例15: display_news_listing


//.........这里部分代码省略.........
            $cat_edit_link = FUSION_SELF . $aidlink . "&amp;action=edit&amp;ref=news_category&amp;cat_id=" . $data['news_cat_id'];
            $image_thumb = get_news_image_path($data['news_image'], $data['news_image_t1'], $data['news_image_t2']);
            if (!$image_thumb) {
                $image_thumb = IMAGES . "imagenotfound70.jpg";
            }
            ?>
                <tr>
                    <td><?php 
            echo form_checkbox("news_id[]", "", "", array("value" => $data['news_id'], "class" => 'm-0'));
            ?>
</td>
                    <td>
                        <a class="text-dark" href="<?php 
            echo $edit_link;
            ?>
">
                            <?php 
            echo $data['news_subject'];
            ?>
                        </a>
                    </td>
                    <td>
                        <a class="text-dark" href="<?php 
            echo $cat_edit_link;
            ?>
">
                            <?php 
            echo $data['news_cat_name'];
            ?>
                        </a>
                    </td>
                    <td>
                        <?php 
            echo getgroupname($data['news_visibility']);
            ?>
                    </td>
                    <td>
                        <span class="badge"><?php 
            echo $data['news_sticky'] ? $locale['yes'] : $locale['no'];
            ?>
</span>
                    </td>
                    <td>
                        <span class="badge"><?php 
            echo $data['news_draft'] ? $locale['yes'] : $locale['no'];
            ?>
</span>
                    </td>

                    <td><?php 
            echo $data['comments_count'];
            ?>
</td>
                    <td><?php 
            echo $data['ratings_count'];
            ?>
</td>
                    <td>
                        <div class="pull-left"><?php 
            echo display_avatar($data, "20px", "", FALSE, "img-rounded");
            ?>
</div>
                        <div class="overflow-hide"><?php 
            echo profile_link($data['user_id'], $data['user_name'], $data['user_status']);
            ?>
</div>
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:67,代码来源:news.php


注:本文中的getgroupname函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。