<?php /*** * 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");
/*** * 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()); $btn_register->setClass("button.blue");