$table->setWidth("100%"); $table->setHeight("100%"); $table->setClass("table.white"); $table_form = new Table(); $table_form->setRowsStyle("76dip;76dip;76dip"); $table_form->setClass("table.forms"); $email = new InputEmail(); $email->setInviteMessage("E-Mail"); $email->setClass("input.form"); $password = new InputText(); $password->setClass("input.form"); $password->setInviteMessage("Password"); $password->setIsPassword(true); $password_2 = new InputText(); $password_2->setClass("input.form"); $password_2->setInviteMessage("Confirm your Password"); $password_2->setIsPassword(true); $table_form->addControl($email, 1, 1); $table_form->addControl($password, 2, 1); $table_form->addControl($password_2, 3, 1); $btn_save = new Button(); $btn_save->setCaption("SIGN UP"); $btn_save->setClass("button.blue"); $btn_save->onTap(save()); $table_button = new Table(); $table_button->addControl($btn_save, 1, 1); $table->addControl($table_form, 1, 1); $table->addControl($table_button, 2, 1); $win->addControl($table); function save() {
<?php /*** * Task add screen */ $win = new SDPanel(); $win->setCaption("Add Task"); //Items definition $id = new InputNumeric(); $id->setClass("input.Common"); $name = new InputText(); $name->setInviteMessage("Task name"); $name->setClass("input.Common"); $description = new InputText(); $description->setInviteMessage("Description"); $description->setClass("input.Common"); $date = new InputDate(); $date->setLabelCaption("Task date"); $date->setClass("input.Common"); $addToCalendar = new InputBoolean(); $addToCalendar->setLabelCaption("Add to my calendar"); $addToCalendar->setLabelPosition("Right"); //Main table definition $table = new Table(); $table->setClass("table.Background"); $table_form = new Table(); $table_form->setClass("table.Form"); $table_form->setRowsStyle("65dip;65dip;120dip;55dip"); $table_form->setHeight("90%"); $table_form->addControl($name, 1, 1, 1, 2); $table_form->addControl($date, 2, 1, 1, 2);
$win = new SDPanel(); $win->setCaption("Login"); $table = new Table(); $table->setRowsStyle("100%"); $table->setWidth("100%"); $table->setHeight("100%"); $table->setClass("table.white"); $table_form = new Table(); $table_form->setRowsStyle("76dip;76dip"); $table_form->setClass("table.forms"); $username = new InputEmail(); $username->setClass("input.form"); $username->setInviteMessage("E-Mail"); $password = new InputText(); $password->setClass("input.form"); $password->setInviteMessage("Password"); $password->setIsPassword(true); $label = new Label(); $label->setCaption("OR"); $label->setClass("label.big"); $btn_save = new Button(); $btn_save->setCaption("Log in"); $btn_save->onTap(login()); $btn_save->setClass("button.blue"); $btn_register = new Button(); $btn_register->setCaption("Sign up"); $btn_register->onTap(register()); $btn_register->setClass("button.blue"); $table_form->addControl($username, 1, 1); $table_form->addControl($password, 2, 1); $table_button = new Table();
$name = new InputText(); $name->setInviteMessage("Name"); $name->setClass("inputForm"); $lastname = new InputText(); $lastname->setInviteMessage("Last Name"); $lastname->setClass("inputForm"); $email = new InputEmail(); $email->setInviteMessage("E-Mail"); $email->setClass("inputForm"); $password = new InputText(); $password->setClass("inputForm"); $password->setInviteMessage("Password"); $password->setIsPassword(true); $password_2 = new InputText(); $password_2->setClass("inputForm"); $password_2->setInviteMessage("Repite Password"); $password_2->setIsPassword(true); $btn_save = new Button(); $btn_save->setCaption("SIGN UP"); $btn_save->setClass("buttonform"); $btn_save->onTap(save()); $table_form->addControl($name, 1, 1); $table_form->addControl($lastname, 2, 1); $table_form->addControl($email, 3, 1); $table_form->addControl($password, 4, 1); $table_form->addControl($password_2, 5, 1); $table_button = new Table(); $table_button->addControl($btn_save, 1, 1); $table->addControl($table_form, 1, 1); $table->addControl($table_button, 2, 1); $win->addControl($table);