Exemplo n.º 1
0
//$combo->Show ();
$combogroup = new ComboGroup("opciones2");
$pares = array();
$impares = array();
for ($i = 0; $i < 20; $i++) {
    if ($i % 2 == 0) {
        $pares[] = new ComboOption("numero {$i}", "N�mero {$i}");
    } else {
        $impares[] = new ComboOption("numero {$i}", "N�mero {$i}");
    }
}
$combogroup->AddGroup("pares", "pares", $pares);
$combogroup->AddGroup("impares", "impares", $impares, true);
$combogroup->SetDefault("N�mero 2");
//$combogroup->Show ();
$comboimage = new ComboImage("comboimage");
$comboimage->AddOption("Jaws Proyect", "jawsproject", STOCK_CANCEL);
$comboimage->AddOption("Piwi Proyect", "piwi", STOCK_CANCEL);
$comboimage->AddOption("mBloggy", "mbloggy", "http://www.w3schools.com/images/dnicon.gif");
$comboimage->SetDefault("mbloggy");
//$comboimage->Show ();
$textarea = new TextArea("textarea", "Hola Mundo!");
//$textarea->Show ();
$radio = new RadioButtons("favoritos", "vertical");
$radio->AddOption("Jaws Project", "jawsproject");
$radio->AddOption("Piwi Project", "piwiproject");
$radio->SetDefault("piwiproject");
//$radio->Show ();
$check = new CheckButtons("favoritos2", "vertical");
$check->AddOption("Jaws Project", "jawsproject");
$check->AddOption("Piwi Project", "piwiproject");
Exemplo n.º 2
0
    }
}
$combogroup->AddGroup("pares", "pares", $pares);
$combogroup->AddGroup("impares", "impares", $impares, true);
$combogroup->SetDefault("pares", "Número 2");
echo $combogroup->GetPiwiXML();
echo "\n\n\n";
$textarea = new TextArea("textarea", "Texto");
echo $textarea->GetPiwiXML();
echo "\n\n\n";
$entry = new Entry("cajita", "Una cosa");
$entry->AddEvent(new JSEvent(ON_CHANGE, "javascript:alert(this.value)"));
$entry->AddEvent(new JSEvent(ON_CHANGE, "javascript:alert(calcMD5(this.value));", "http://jaws.com.mx/templates/controlpanel/md5.js"));
echo $entry->GetPiwiXML();
echo "\n\n\n";
$comboimage = new ComboImage("comboimage");
$comboimage->AddOption("Jaws Proyect", "jawsproject", STOCK_CANCEL);
$comboimage->AddOption("Piwi Proyect", "piwi", STOCK_CANCEL);
$comboimage->AddOption("mBloggy", "mbloggy", "http://www.w3schools.com/images/dnicon.gif");
$comboimage->SetDefault("mbloggy");
echo $comboimage->GetPiwiXML();
echo "\n\n\n";
$radio = new RadioButtons("favoritos", "vertical");
$radio->AddOption("Jaws Project", "jawsproject");
$radio->AddOption("Piwi Project", "piwiproject");
$radio->SetDefault("piwiproject");
echo $radio->GetPiwiXML();
echo "\n\n\n";
$check = new CheckButtons("favoritos2", "vertical");
$check->AddOption("Jaws Project", "jawsproject");
$check->AddOption("Piwi Project", "piwiproject");