Ignore:
Timestamp:
Nov 24, 2009, 9:13:38 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Přepracován základový webový systém
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Base/Types/Enumeration.php

    r40 r42  
    11<?php
     2
     3include_once(dirname(__FILE__).'/Base.php');
    24
    35class TypeEnumeration extends TypeBase
     
    57  function OnView($Item)
    68  {
    7     $Type = GetTypeDefinition($Item['Type']);
    8     $Output = $Type['Parameters'][$Item['Value']];
     9    $Type = $this->System->Type->GetTypeDefinition($Item['Type']);
     10    if(array_key_exists($Item['Value'], $Type['Parameters']))
     11      $Output = $Type['Parameters'][$Item['Value']];
     12      else $Output = $Item['Value'];
    913    return($Output);
    1014  }
     
    1216  function OnEdit($Item)
    1317  {
    14     $Type = GetTypeDefinition($Item['Type']);
     18    $Type = $this->System->Type->GetTypeDefinition($Item['Type']);
    1519    $Output = '<select name="'.$Item['Name'].'">';
    1620    foreach($Type['Parameters'] as $Index => $StateName)
Note: See TracChangeset for help on using the changeset viewer.