Ignore:
Timestamp:
Feb 7, 2013, 11:01:56 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: OneToMany vazba ve formulářích nyní využívá rozšířenou definici tabulky pomocí pole 'View'.
  • Přidáno: Zobrazení síťových propojení ve správě dat.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Types/OneToMany.php

    r448 r483  
    1010    if($Item['Value'] != '')
    1111    {
     12      if(array_key_exists('View', $Type['Parameters'])) $Table = $Type['Parameters']['View'];
     13        else $Table = $Type['Parameters']['Table'];
    1214      $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name'].
    13         ' AS `Name` FROM `'.$Type['Parameters']['Table'].'` WHERE `'.
     15        ' AS `Name` FROM '.$Table.' WHERE `'.
    1416        $Type['Parameters']['Id'].'`='.$Item['Value']);
    1517      $DbRow = $DbResult->fetch_assoc();
     
    3133      $Output .= '<option value=""'.$Selected.'></option>';
    3234    }
    33     $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name'].' AS `Name`,'.$Type['Parameters']['Id'].' AS `Id` FROM `'.$Type['Parameters']['Table'].'`'.$Where.' ORDER BY `Name`');
     35    if(array_key_exists('View', $Type['Parameters'])) $Table = $Type['Parameters']['View'];
     36      else $Table = $Type['Parameters']['Table'];
     37    $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name'].' AS `Name`,'.$Type['Parameters']['Id'].' AS `Id` FROM '.$Table.''.$Where.' ORDER BY `Name`');
    3438    while($DbRow = $DbResult->fetch_assoc())
    3539    {
Note: See TracChangeset for help on using the changeset viewer.