17 if (!defined(
"PSF_ENTRY_POINT"))
18 die(
"Not a valid psf entry point");
20 require_once (dirname(__FILE__) .
"/button.php");
21 require_once (dirname(__FILE__) .
"/form.php");
22 require_once (dirname(__FILE__) .
"/checkbox.php");
23 require_once (dirname(__FILE__) .
"/combobox.php");
24 require_once (dirname(__FILE__) .
"/textbox.php");
25 require_once (dirname(__FILE__) .
"/label.php");
29 public $Format = NULL;
30 public $DefaultUser =
"";
31 private $UserInput = NULL;
32 private $PassInput = NULL;
33 private $bSubmit = NULL;
35 public function __construct($_parent = NULL)
37 parent::__construct($_parent = NULL);
39 $ic = $this->AutoInsertChilds;
40 $this->AutoInsertChilds =
true;
41 $this->Action =
"?login";
42 $this->Method = FormMethod::Post;
43 $this->UserInput =
new TextBox(
"loginUsername",
"", $this);
44 $this->UserInput->Placeholder =
"Username";
45 $this->AppendLineBreak();
46 $this->PassInput =
new TextBox(
"loginPassword",
"", $this);
47 $this->PassInput->Placeholder =
"Password";
48 $this->PassInput->Password =
true;
49 $this->AppendLineBreak();
50 $this->bSubmit =
new Button(
"login",
"Login", $this);
52 $this->AutoInsertChilds = $ic;