function hd_partinfos_switch()
{
    if ($_GET["switchtab"] == "status") {
        hd_partinfos_status();
        exit;
    }
    if ($_GET["switchtab"] == "lvm") {
        echo "<div id='lvm_status'>";
        lvm_status();
        echo "</div>";
        exit;
    }
    if ($_GET["switchtab"] == "hdparm") {
        echo hdparm();
        exit;
    }
    if ($_GET["switchtab"] == "tasks") {
        echo hd_tasks();
        exit;
    }
}
    exit;
}
if (isset($_GET["infos"])) {
    infos();
    exit;
}
if (isset($_GET["tasks"])) {
    tasks();
    exit;
}
if (isset($_GET["lvm"])) {
    lvm();
    exit;
}
if (isset($_GET["lvm_status"])) {
    lvm_status();
    exit;
}
if (isset($_GET["autofs-connect"])) {
    autofs_connect();
    exit;
}
if (isset($_POST["btrfs-convert"])) {
    btrfs_convert();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();