AlkantarClanX12

Your IP : 3.133.129.8


Current Path : /proc/self/root/opt/alt/php54/usr/share/doc/pear/ConsoleTools/docs/
Upload File :
Current File : //proc/self/root/opt/alt/php54/usr/share/doc/pear/ConsoleTools/docs/example_menu_dialog_full.php

<?php

require_once "Base/src/base.php";

function __autoload( $className )
{
    ezcBase::autoload( $className );
}

$out = new ezcConsoleOutput();

$opts = new ezcConsoleMenuDialogOptions();
$opts->text = "Please choose a possibility:\n";
$opts->validator = new ezcConsoleMenuDialogDefaultValidator(
    array(
        "A" => "Selection A",
        "B" => "Selection B",
        "C" => "Selection C",
        "D" => "Selection D",
        "Z" => "Selection Z",
    ),
    "Z"
);

$dialog = new ezcConsoleMenuDialog( $out, $opts );

$res = ezcConsoleDialogViewer::displayDialog( $dialog );
echo "User seletced $res\n";

?>