示例#1
0
    //LOGIN END
    $computername = script("getcomputername");
    $windowsver = script("windows");
    $windowsver = dosencode($windowsver);
    // INTERFACE
    echo '<form name="accform" action="confirm_computername.php" onsubmit="return validateForm()" method="post">';
    // INFORMATIONS GENERALES
    echo "<table align=center>";
    menu_img("logout", "logout", "Se déconnecter");
    echo '<td><INPUT type="text" value="' . $computername . '" name="computername"></td>';
    menu_img("shutdown", "shutdown", "Arrêter WebManage");
    echo '</table>';
    text($windowsver);
    // CONFIGURATION
    title('Configuration');
    echo '<table align=center>';
    menu("reseau", "network", "Configuration Réseau");
    menu_popup("chat", "messagerie", "Messagerie");
    menu("lan", "scan_net", "Voisinage réseau");
    menu("dos", "dos", "Invite de commande");
    echo '</table>';
    title('Administration');
    echo '<table align=center>';
    menu("admin", "admin", "Utilisateurs");
    menu("log", "log", "Historique des connexions");
    echo '</table>';
    submit();
    echo '</form>';
    footer_show();
    echo '<SCRIPT LANGUAGE="Javascript" SRC="js/accueil.js"> </SCRIPT>';
}
示例#2
0
    while ($a = mysql_fetch_array($rs)) {
        if ($a['desmenu'] != "") {
            $menu .= 'menu_' . $id . '.addMenuItem("' . $a['desmenu'] . '","location=\'' . $a['desurl'] . '\'");' . chr(10);
        }
    }
    return array($menu);
    //return $menu.chr(10);
}
function menu_popup()
{
    $x = montaMenu(1);
    $y = montaMenu(2);
    if ($x != "") {
        $texto = '<script> function mmLoadMenus(){' . chr(10);
        $texto .= $x . chr(10);
        $i = 1;
    }
    if ($y != "") {
        $texto .= chr(10) . $y;
        $i = 2;
    }
    if ($x != "") {
        $texto .= 'menu_' . $i . ".writeMenus();";
        $texto .= '}' . chr(10);
        //	$texto .= 'mmLoadMenus();'.chr(10).'
        $texto .= '			  </script>';
    }
    return $texto;
}
echo @menu_popup();
Conexao($opcao = 'close');