Changeset 219 for trunk/forms.php
- Timestamp:
- May 27, 2009, 1:17:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forms.php
r202 r219 43 43 break; 44 44 case 'String': 45 $Edit = '<input type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />'; 46 break; 47 case 'Password': 48 $Edit = '<input type="password" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />'; 45 $Edit = '<input style="width: 100%;" type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />'; 46 break; 47 case 'Text': 48 $Edit = '<textarea style="width: 100%; height: 200px;" name="'.$Context.$Index.'">'.$this->Values[$Index].'</textarea>'; 49 break; 50 case 'Password': 51 $Edit = '<input style="width: 100%;" type="password" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />'; 49 52 break; 50 53 case 'Integer': 51 $Edit = '<input type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />';54 $Edit = '<input style="width: 100%;" type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />'; 52 55 break; 53 56 case 'Float': 54 $Edit = '<input type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />';57 $Edit = '<input style="width: 100%;" type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />'; 55 58 break; 56 59 case 'Time': 57 60 if($this->Values[$Index] == 'Now') $this->Values[$Index] = date('j.n.Y'); 58 $Edit = '<input type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />';61 $Edit = '<input style="width: 100%;" type="text" name="'.$Context.$Index.'" value="'.$this->Values[$Index].'" />'; 59 62 break; 60 63 case 'Array': … … 79 82 { 80 83 case 'Enumeration': 81 $Edit = '<select name="'.$Context.$Index.'">';84 $Edit = '<select style="width: 100%;" name="'.$Context.$Index.'">'; 82 85 foreach($FormTypes[$Item['Type']]['States'] as $StateIndex => $StateName) 83 86 { … … 89 92 break; 90 93 case 'Reference': 91 $Edit = '<select name="'.$Context.$Index.'">';94 $Edit = '<select style="width: 100%;" name="'.$Context.$Index.'">'; 92 95 $DbResult = $Database->select($FormTypes[$Item['Type']]['Table'], $FormTypes[$Item['Type']]['Id'].' as Id, '.$FormTypes[$Item['Type']]['Name'].' as Name', $FormTypes[$Item['Type']]['Filter'].' ORDER BY Name'); 93 96 while($Row = $DbResult->fetch_array()) … … 175 178 break; 176 179 case 'String': 180 $Values[$Index] = $_POST[$Context.$Index]; 181 break; 182 case 'Text': 177 183 $Values[$Index] = $_POST[$Context.$Index]; 178 184 break;
Note:
See TracChangeset
for help on using the changeset viewer.