Changeset 540 for trunk/Common/Form/Types
- Timestamp:
- May 28, 2013, 10:19:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/OneToMany.php
r536 r540 12 12 if($Item['Value'] != '') 13 13 { 14 /*if(array_key_exists('View', $Type['Parameters'])) $Table = $Type['Parameters']['View'];15 else $Table = $Type['Parameters']['Table'];16 $DbResult = $this->Database->query('SELECT '.$Type['Parameters']['Name'].17 ' AS `Name` FROM `'.$Table.'` WHERE `'.18 $Type['Parameters']['Id'].'`='.$Item['Value']);19 $DbRow = $DbResult->fetch_assoc();20 $Output = '<a href="?t='.$Type['Parameters']['Table'].'&a='.21 'view'.'&i='.$Item['Value'].'">'.$DbRow['Name'].'</a>';*/22 14 $Output = '<a href="?t='.$Type['Parameters']['Table'].'&a='. 23 15 'view'.'&i='.$Item['Value'].'">'.$Item['Filter'].'</a>'; … … 46 38 } 47 39 $Output .= '</select>'; 48 $Output .= '<img src="'.$this->FormManager->Root.'/images/select.png" alf="Vybrat" language="javascript" '. 49 'onclick="return popupwindow("'.$this->FormManager->Root.'/is/?a=select&t='.$Table.'&r='.$Item['Name'].'","test");" style="cursor:hand;cursor:pointer"/>'; 40 if($this->FormManager->ShowRelation) 41 $Output .= '<img src="'.$this->FormManager->Root.'/images/select.png" alf="Vybrat" language="javascript" '. 42 'onclick="return popupwindow("'.$this->FormManager->Root.'/is/?a=select&t='.$Table.'&r='.$Item['Name'].'","test");" style="cursor:hand;cursor:pointer"/>'; 50 43 return($Output); 51 44 }
Note:
See TracChangeset
for help on using the changeset viewer.