Exemple #1
0
function main_icon_list_list()
{
    $ico = new deficons();
    $uid = $_SESSION["uid"];
    $tab = $_GET["icon"];
    $cache_tab_file = "ressources/profiles/{$uid}.{$tab}";
    $ini = new Bs_IniHandler("ressources/profiles/{$uid}.tabs");
    $icons = explode(",", $ini->_params[$tab]["icons"]);
    while (list($num, $ligne) = each($icons)) {
        if ($ligne == null) {
            continue;
        }
        $icon_s[$ligne] = true;
    }
    if ($_GET["ChangeClass"] == null) {
        $_GET["ChangeClass"] = "NETWORK";
    }
    $icos = $ico->Build32_widgets();
    $array = $icos[$_GET["ChangeClass"]];
    while (list($num, $ligne) = each($array)) {
        if ($count == 3) {
            $t = $t . "</tr><tr>";
            $count = 0;
        }
        if ($icon_s[$num]) {
            continue;
        }
        $t = $t . "<td valign='top'>{$ligne}</td>";
        $count = $count + 1;
    }
    $html = "<table style='width:100%'>\n\t<tr>{$t}</tr>\n\t</table>";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
Exemple #2
0
function main_icon_list_list()
{
    $uid = $_GET["uid"];
    $ini = new Bs_IniHandler();
    if ($uid != "__SESSION__") {
        $ico = new deficons($uid);
        $users = new user($uid);
        $ini->loadString($users->UsersInterfaceDatas);
    } else {
        $ico = new deficons($_SESSION["uid"]);
        $ini->loadString($_SESSION["UsersInterfaceDatas"]);
    }
    $tab = $_GET["icon"];
    $icons = explode(",", $ini->_params[$tab]["icons"]);
    while (list($num, $ligne) = each($icons)) {
        if ($ligne == null) {
            continue;
        }
        $icon_s[$ligne] = true;
    }
    if ($_GET["ChangeClass"] == null) {
        $_GET["ChangeClass"] = "menu_user";
    }
    $icos = $ico->Build32_widgets_users();
    $array = $icos[$_GET["ChangeClass"]];
    while (list($num, $ligne) = each($array)) {
        if ($count == 3) {
            $t = $t . "</tr><tr>";
            $count = 0;
        }
        if ($icon_s[$num]) {
            continue;
        }
        $t = $t . "<td valign='top'>{$ligne}</td>";
        $count = $count + 1;
    }
    $html = "<table style='width:100%'>\n\t<tr>{$t}</tr>\n\t</table>";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}