Ignore:
Timestamp:
Apr 7, 2020, 11:53:58 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Admin/Admin.php

    r78 r92  
    4141  function Show()
    4242  {
    43     if(array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; else $Operation = '';
    44     switch($Operation)
     43    if (array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; else $Operation = '';
     44    switch ($Operation)
    4545    {
    4646      case 'Add':
     
    5959        $Output = $this->ShowNone();
    6060    }
    61     return($Output);
     61    return $Output;
    6262  }
    6363
     
    7070
    7171    $Result = $this->Database->select('Measure', '*', '1 ORDER BY Description');
    72     while($Measure = $Result->fetch_array())
     72    while ($Measure = $Result->fetch_array())
    7373    {
    7474      array_push($Table['Rows'], array($Measure['Description'], MakeLink('?Operation=Edit&MeasureId='.$Measure['Id'], 'Editovat').' '.MakeLink('?Operation=Delete&MeasureId='.$Measure['Id'], 'Odstranit').' '.MakeLink('?Operation=RebuildCache&MeasureId='.$Measure['Id'], 'Přestavět cache')));
    7575    }
    7676    $Output = '<h3>Seznam měření</h3>'.Table($Table).MakeLink('?Operation=Add', 'Přidat');
    77     return($Output);
     77    return $Output;
    7878  }
    7979
     
    8383    $Values = array();
    8484    $Values = $DbResult->fetch_array();
    85     return(ShowEditTable('Measure', $Values));
     85    return ShowEditTable('Measure', $Values);
    8686  }
    8787
     
    8989  {
    9090    $Values = array();
    91     return(ShowEditTable('Measure', $Values));
     91    return ShowEditTable('Measure', $Values);
    9292  }
    9393
Note: See TracChangeset for help on using the changeset viewer.