/*** * Register. */ $win = new SDPanel(); $win->setCaption("Create an account"); $table = new Table(); $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());
*/ $win = new SDPanel(); $win->setCaption("My Account"); $token = new InputText(80); Data::getParm($token); $table = new Table(); $table->setClass("tablebackground"); $table_form = new Table(); $table_form->setClass("tableforms"); $table_form->setRowsStyle("76dip;76dip;76dip"); $name = new InputText(); $name->setClass("inputForm"); $last_name = new InputText(); $last_name->setClass("inputForm"); $email = new InputEmail(); $email->setClass("inputForm"); $btn_save = new Button(); $btn_save->setCaption("Save"); $btn_save->setClass("buttonform"); $btn_save->onTap(save()); $table_form->addControl($name, 1, 1); $table_form->addControl($last_name, 2, 1); $table_form->addControl($email, 3, 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); $win->Render(); function refresh() {
/*** * Login */ $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());