Changeset 24 for types


Ignore:
Timestamp:
Oct 27, 2008, 5:10:59 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Odkazy na seznamy pomocí ItemId namísto jmen tabulek.
  • Přidáno: Potvrzovací dialog při mazání položek.
Location:
types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • types/PointerOneToOne.php

    r22 r24  
    99    //print_r($Item);
    1010    $Columns = '';
    11     $TargetTable = $Type['Parameters'][0];
    12 
    13     $List = GetListDefinition($TargetTable);
     11    $List = GetListDefinition($Type['Parameters'][0]);
     12    $TargetTable = $List['TableName'];
    1413    foreach($List['Items'] as $ListItem)
    1514      if($ListItem['VisibleInPointer'] == 1) $Columns .= '`'.$ListItem['Name'].'`," ",';
     
    2827
    2928    $Columns = '';
    30     $TargetTable = $Type['Parameters'][0];
    31 
    32     $List = GetListDefinition($TargetTable);
     29    $List = GetListDefinition($Type['Parameters'][0]);
     30    $TargetTable = $List['TableName'];
    3331    foreach($List['Items'] as $ListItem)
    3432      if($ListItem['VisibleInPointer'] == 1) $Columns .= 't1.`'.$ListItem['Name'].'`," ",';
  • types/include.php

    r23 r24  
    2121define('TypeStringId', 3);
    2222define('TypeDateId', 2);
     23define('TypePointerOneToOneId', 12);
     24define('TypePointerOneToManyId', 13);
    2325define('TypePasswordId', 15);
    2426define('TypeFloatId', 16);
Note: See TracChangeset for help on using the changeset viewer.