示例#1
0
function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $artica_meta = new mysql_meta();
    $array["system"] = '{system}';
    if ($_GET["gpid"] == 0) {
        $isProxy = $artica_meta->isProxy($_GET["uuid"]);
        if ($isProxy) {
            $array["proxy-service"] = '{proxy_service}';
        }
        $array["services"] = '{services}';
        $array["snapshots"] = '{snapshots}';
    }
    while (list($num, $ligne) = each($array)) {
        if ($num == "services") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"artica-meta.services.php?uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "snapshots") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"artica-meta.snapshots.php?uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes&uuid=" . urlencode($_GET["uuid"]) . "&gpid={$_GET["gpid"]}\"><span style='font-size:18px'>{$ligne}</span></a></li>\n");
    }
    echo build_artica_tabs($html, "meta-hosts-{$_GET["uuid"]}{$_GET["gpid"]}");
}