- Timestamp:
- Oct 13, 2008, 8:05:21 AM (16 years ago)
- Location:
- types
- Files:
-
- 12 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 -
types/Date.php
r10 r11 36 36 $Output .= '</select>'; 37 37 // Year 38 $Output .= '<select name="'.$Item['Name'].'- month">';38 $Output .= '<select name="'.$Item['Name'].'-year">'; 39 39 for($I = 1900; $I < 2100; $I++) 40 40 { … … 46 46 } 47 47 48 function TypeDateOnLoad($Item) 49 { 50 return($_POST[$Item['Name'].'-year'].'-'.$_POST[$Item['Name'].'-month'].'-'.$_POST[$Item['Name'].'-day']); 51 } 52 48 53 ?> -
types/Enumeration.php
r10 r11 16 16 foreach($Types[$Item['Type']]['Parameters'] as $Index => $StateName) 17 17 { 18 if($ Parameter== $Index) $Selected = ' selected="1"'; else $Selected = '';18 if($Item['Value'] == $Index) $Selected = ' selected="1"'; else $Selected = ''; 19 19 $Output .= '<option value="'.$Index.'"'.$Selected.'>'.$StateName.'</option>'; 20 20 } … … 23 23 } 24 24 25 function TypeEnumerationOnLoad($Item) 26 { 27 return($_POST[$Item['Name']]); 28 } 29 25 30 ?> -
types/Float.php
r10 r11 13 13 } 14 14 15 function TypeFloatOnLoad($Item) 16 { 17 return($_POST[$Item['Name']]); 18 } 19 15 20 ?> -
types/Hidden.php
r10 r11 13 13 } 14 14 15 function TypeHiddenOnLoad($Item) 16 { 17 return($_POST[$Item['Name']]); 18 } 19 15 20 ?> -
types/Hyperlink.php
r10 r11 13 13 } 14 14 15 function TypeHyperlinkOnLoad($Item) 16 { 17 return($_POST[$Item['Name']]); 18 } 19 15 20 ?> -
types/IPv4Address.php
r10 r11 18 18 } 19 19 20 function TypeIPv4AddressOnLoad($Item) 21 { 22 return($_POST[$Item['Name']]); 23 } 20 24 ?> -
types/Integer.php
r10 r11 13 13 } 14 14 15 function TypeIntegerOnLoad($Item) 16 { 17 return($_POST[$Item['Name']]); 18 } 19 15 20 ?> -
types/Password.php
r10 r11 15 15 } 16 16 17 function TypePasswordOnLoad($Item) 18 { 19 return($_POST[$Item['Name']]); 20 } 21 17 22 ?> -
types/PointerOneToMany.php
r10 r11 13 13 } 14 14 15 function TypePointerOneToManyOnLoad($Item) 16 { 17 return($_POST[$Item['Name']]); 18 } 19 15 20 ?> -
types/PointerOneToOne.php
r10 r11 68 68 } 69 69 70 function TypePointerOneToOneOnLoad($Item) 71 { 72 return($_POST[$Item['Name']]); 73 } 70 74 71 75 ?> -
types/String.php
r10 r11 13 13 } 14 14 15 function TypeStringOnLoad($Item) 16 { 17 return($_POST[$Item['Name']]); 18 } 19 15 20 ?>
Note:
See TracChangeset
for help on using the changeset viewer.