File tree Expand file tree Collapse file tree 12 files changed +18
-16
lines changed
Expand file tree Collapse file tree 12 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class DB_Sql {
5858
5959
6060 /* public: constructor */
61- function DB_Sql ($ query = "" ) {
61+ function __construct ($ query = "" ) {
6262 $ this ->query ($ query );
6363 }
6464
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class of_checkbox extends of_element {
1111 var $ checked ;
1212
1313 // Constructor
14- function of_checkbox ($ a ) {
14+ function __construct ($ a ) {
1515 $ this ->setup_element ($ a );
1616 }
1717
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class of_date extends of_text {
1717 var $ size ;
1818
1919 // Constructor
20- function of_date ($ a ) {
20+ function __construct ($ a ) {
2121 $ this ->setup_element ($ a );
2222 if ($ a ["type " ]=="password " )
2323 $ this ->pass =1 ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class of_file extends of_element {
1111 var $ isfile = true ;
1212 var $ size ;
1313
14- function of_file ($ a ) {
14+ function __construct ($ a ) {
1515 $ this ->setup_element ($ a );
1616 }
1717
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class of_htmlarea extends of_element {
2424 var $ style = "css/style.css " ;
2525
2626 // Constructor
27- function of_htmlarea ($ a ) {
27+ function __construct ($ a ) {
2828 $ this ->setup_element ($ a );
2929 }
3030
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class of_password extends of_element {
1818 var $ size ;
1919
2020 // Constructor
21- function of_password ($ a ) {
21+ function __construct ($ a ) {
2222 $ this ->setup_element ($ a );
2323 if ($ a ["type " ]=="password " )
2424 $ this ->pass =1 ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class of_radio extends of_element {
1111 var $ valid_e ;
1212
1313 // Constructor
14- function of_radio ($ a ) {
14+ function __construct ($ a ) {
1515 $ this ->setup_element ($ a );
1616 }
1717
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class of_select extends of_element {
1313 var $ valid_e ;
1414
1515 // Constructor
16- function of_select ($ a ) {
16+ function __construct ($ a ) {
1717 $ this ->setup_element ($ a );
1818 if ($ a ["type " ]=="select multiple " ) $ this ->multiple =1 ;
1919 }
@@ -56,7 +56,7 @@ class of_select extends of_element {
5656 reset ($ this ->options );
5757 while (list ($ k ,$ o ) = each ($ this ->options )) {
5858 $ str .= "<option " ;
59- if (is_array ($ o )) $ value = $ o ["value " ] ? $ o ["value " ] : $ o ["label " ]; else $ value = $ o ;
59+ if (is_array ($ o )) $ value = isset ( $ o ["value " ]) ? $ o ["value " ] : $ o ["label " ]; else $ value = $ o ;
6060 $ str .= " value=' $ value' " ;
6161 if (!$ this ->multiple && ($ this ->value ==$ value )) {
6262 $ str .= " selected='selected' " ;
@@ -65,7 +65,7 @@ class of_select extends of_element {
6565 elseif ($ this ->multiple && is_array ($ this ->value )) {
6666 reset ($ this ->value );
6767 while (list ($ tk ,$ v ) = each ($ this ->value )) {
68- if (is_array ($ o )) $ value = $ o ["value " ] ? $ o ["value " ] : $ o ["label " ]; else $ value = $ o ;
68+ if (is_array ($ o )) $ value = isset ( $ o ["value " ]) ? $ o ["value " ] : $ o ["label " ]; else $ value = $ o ;
6969 if ($ v ==$ value ) {
7070 $ str .= " selected='selected' " ;
7171 $ found = true ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class of_text extends of_element {
1818 var $ size ;
1919
2020 // Constructor
21- function of_text ($ a ) {
21+ function __construct ($ a ) {
2222 $ this ->setup_element ($ a );
2323 if ($ a ["type " ]=="password " )
2424 $ this ->pass =1 ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class of_textarea extends of_element {
1616 var $ wrap ;
1717
1818 // Constructor
19- function of_textarea ($ a ) {
19+ function __construct ($ a ) {
2020 $ this ->setup_element ($ a );
2121 }
2222
@@ -43,7 +43,9 @@ class of_textarea extends of_element {
4343 $ str .= htmlspecialchars ($ this ->value );
4444 $ str .= "\"> \n" ;
4545 #$str .= "<table border=0><tr><td>\n";
46+ $ str .= "<span id=' $ this ->name '> " ;
4647 $ str .= nl2br ($ this ->value );
48+ $ str .= "</span> \n" ;
4749 #$str .= "\n</td></tr></table>\n";
4850
4951 $ count = 1 ;
You can’t perform that action at this time.
0 commit comments