Changeset 429 for trunk/is/index.php


Ignore:
Timestamp:
Oct 11, 2012, 2:08:59 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Rozpracované zobrazování referencí v seznamech.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/is/index.php

    r428 r429  
    3939  function ShowTable($FormClass)
    4040  {   
    41     global $Type;
     41    global $Type, $FormTypes;
    4242   
    4343    $DbResult = $this->Database->query('SELECT COUNT(*) FROM `'.$FormClass['Table'].'`');
     
    6262      {
    6363        //$Output .= '<td>'.$Row[$ItemIndex].'</td>';
    64         $Output .= '<td>'.$Type->ExecuteTypeEvent($FormItem['Type'], 'OnView',
     64        if(array_key_exists($FormItem['Type'], $FormTypes))
     65           $Output .= '<td>'.$Type->ExecuteTypeEvent('OneToMany', 'OnView',
     66            array('Value' => $Row[$ItemIndex], 'Name' => $ItemIndex,
     67            'Type' => array('Parameters' => array($FormTypes[$FormItem['Type']]))).'</td>';
     68        else $Output .= '<td>'.$Type->ExecuteTypeEvent($FormItem['Type'], 'OnView',
    6569          array('Value' => $Row[$ItemIndex], 'Name' => $ItemIndex)).'</td>';
    6670      }
Note: See TracChangeset for help on using the changeset viewer.