File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,19 +79,19 @@ function addInput($params) {
7979 if (isset ($ params ['format ' ])) $ el ->setFormat ($ params ['format ' ]);
8080 break ;
8181
82+ case 'textarea ' :
83+ import ('form.TextArea ' );
84+ $ el = new TextArea ($ params ['name ' ]);
85+ if (isset ($ params ['cols ' ])) $ el ->setColumns ($ params ['cols ' ]);
86+ if (isset ($ params ['rows ' ])) $ el ->setRows ($ params ['rows ' ]);
87+ if (isset ($ params ['maxlength ' ])) $ el ->setMaxLength ($ params ['maxlength ' ]);
88+ break ;
89+
90+ case 'checkbox ' :
91+ import ('form.Checkbox ' );
92+ $ el = new Checkbox ($ params ['name ' ]);
8293// TODO: refactoring ongoing down from here.
83- case "textarea " :
84- import ('form.TextArea ' );
85- $ el = new TextArea ($ params ["name " ]);
86- $ el ->setColumns (@$ params ["cols " ]);
87- $ el ->setRows (@$ params ["rows " ]);
88- if (isset ($ params ["maxlength " ])) $ el ->setMaxLength ($ params ["maxlength " ]);
89- break ;
90-
91- case "checkbox " :
92- import ('form.Checkbox ' );
93- $ el = new Checkbox ($ params ["name " ]);
94- if (@$ params ["checked " ]) $ el ->setChecked (true );
94+ if (@$ params ["checked " ]) $ el ->setChecked (true );
9595 $ el ->setData (@$ params ["data " ]);
9696 break ;
9797
Original file line number Diff line number Diff line change 2727// +----------------------------------------------------------------------+
2828
2929import ('form.FormElement ' );
30-
30+
3131class TextField extends FormElement {
3232
33- function __construct ($ name ,$ value= "" )
34- {
35- $ this ->class = 'TextField ' ;
36- $ this ->name = $ name ;
37- $ this ->value = $ value ;
38- }
33+ function __construct ($ name , $ value = '' )
34+ {
35+ $ this ->class = 'TextField ' ;
36+ $ this ->name = $ name ;
37+ $ this ->value = $ value ;
38+ }
3939
40+ // TODO: refactoring ongoing down from here.
4041 function getHtml () {
4142 if (!$ this ->isEnabled ()) {
4243 $ html = "<input name= \"$ this ->name \" value= \"" .htmlspecialchars ($ this ->getValue ())."\" readonly> \n" ;
Original file line number Diff line number Diff line change 2929import ('form.FormElement ' );
3030
3131class UploadFile extends FormElement {
32- var $ class = 'UploadFile ' ;
33- var $ mMaxSize = 100000 ; // 100kb
32+ var $ mMaxSize = 100000 ; // 100kb // TODO: refactor this.
3433
35- function __construct ($ name ,$ value ="" )
36- {
37- $ this ->name = $ name ;
38- $ this ->value = $ value ;
39- }
40-
34+ function __construct ($ name , $ value = '' )
35+ {
36+ $ this ->class = 'UploadFile ' ;
37+ $ this ->name = $ name ;
38+ $ this ->value = $ value ;
39+ }
40+
41+ // TODO: refactoring ongoing down from here.
4142 function setMaxSize ($ value ) { $ this ->mMaxSize = $ value ; }
4243 function getMaxSize () { return $ this ->mMaxSize ; }
4344
Original file line number Diff line number Diff line change 1212 <br >
1313 <table cellspacing =" 0" cellpadding =" 4" width =" 100%" border =" 0" >
1414 <tr >
15- <td align =" center" >  ; Anuko Time Tracker 1.10.38.3616 | Copyright © ; <a href =" https://www.anuko.com/lp/tt_3.htm" target =" _blank" >Anuko</a > |
15+ <td align =" center" >  ; Anuko Time Tracker 1.10.38.3617 | Copyright © ; <a href =" https://www.anuko.com/lp/tt_3.htm" target =" _blank" >Anuko</a > |
1616 <a href =" https://www.anuko.com/lp/tt_4.htm" target =" _blank" >{ $i18n .footer.credits} </a > |
1717 <a href =" https://www.anuko.com/lp/tt_5.htm" target =" _blank" >{ $i18n .footer.license} </a > |
1818 <a href =" https://www.anuko.com/lp/tt_7.htm" target =" _blank" >{ $i18n .footer.improve} </a >
You can’t perform that action at this time.
0 commit comments