Changeset 11 for types/Boolean.php
- Timestamp:
- Oct 13, 2008, 8:05:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/Boolean.php
r10 r11 3 3 function TypeBooleanOnView($Item) 4 4 { 5 return('<input type="checkbox" name="'.$Item['Name'].'" value="'.$Item['Value'].'" disabled="1">'); 5 if($Item['Value'] == 1) $Checked = ' checked="1"'; else $Checked = ''; 6 return('<input type="checkbox" name="'.$Item['Name'].'" disabled="1"'.$Checked.'>'); 6 7 } 7 8 8 9 function TypeBooleanOnEdit($Item) 9 10 { 10 return('<input type="checkbox" name="'.$Item['Name'].'" value="'.$Item['Value'].'">'); 11 if($Item['Value'] == 1) $Checked = ' checked="1"'; else $Checked = ''; 12 return('<input type="checkbox" name="'.$Item['Name'].'"'.$Checked.'>'); 13 } 14 15 function TypeBooleanOnLoad($Item) 16 { 17 if(array_key_exists($Item['Name'], $_POST)) return(1); else return(0); 11 18 } 12 19
Note:
See TracChangeset
for help on using the changeset viewer.