Changeset 529 for trunk/Common/Form
- Timestamp:
- Apr 23, 2013, 7:12:53 PM (12 years ago)
- Location:
- trunk/Common/Form
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Form.php
r502 r529 138 138 array('Value' => $DbRow[$Index], 'Name' => $Index, 139 139 'Type' => $Item['Type'], 'Values' => $this->Values)); 140 141 //echo($DbRow[$Index].'='.$this->Values[$Index].'<br/>');142 140 } 143 141 } … … 172 170 $Values[$Index] = $this->FormManager->Type->ExecuteTypeEvent($UseType, 'OnSaveDb', $Parameters); 173 171 if(($Item['Type'] == 'Password') and ($Values[$Index] == '')) unset($Values[$Index]); 174 175 //echo($DbRow[$Index].'='.$this->Values[$Index].'<br/>');176 172 } 177 173 } … … 182 178 } else 183 179 $DbResult = $this->Database->update($this->Definition['Table'], 'Id='.$Id, $Values); 184 //echo($Database->LastQuery);185 180 } 186 181 … … 255 250 var $Database; 256 251 var $Type; 252 var $RootURL; 257 253 258 254 function __construct($Database) -
trunk/Common/Form/Types/OneToMany.php
r502 r529 5 5 class TypeOneToMany extends TypeBase 6 6 { 7 var $EditActions; 8 7 9 function OnView($Item) 8 10 { … … 24 26 function OnEdit($Item) 25 27 { 26 $Output = '<select name="'.$Item['Name'].'" >';28 $Output = '<select name="'.$Item['Name'].'" id="'.$Item['Name'].'">'; 27 29 $Type = $this->FormManager->Type->TypeDefinitionList[$Item['Type']]; 28 30 if(array_key_exists('Condition', $Type['Parameters'])) $Where = ' WHERE '.$Type['Parameters']['Condition']; … … 42 44 } 43 45 $Output .= '</select>'; 46 $Output .= '<img src="'.$this->FormManager->Root.'/images/select.png" alf="Vybrat" language="javascript" '. 47 'onclick="return popupwindow("'.$this->FormManager->Root.'/is/?a=select&t='.$Table.'&r='.$Item['Name'].'","test");" style="cursor:hand;cursor:pointer"/>'; 44 48 return($Output); 45 49 }
Note:
See TracChangeset
for help on using the changeset viewer.