Ignore:
Timestamp:
Apr 7, 2020, 10:15:48 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

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

    r843 r880  
    3131  function Show()
    3232  {
    33     if(array_key_exists('action', $_GET))
     33    if (array_key_exists('action', $_GET))
    3434    {
    35       if($_GET['action'] == 'item') $Output = $this->ShowItem();
     35      if ($_GET['action'] == 'item') $Output = $this->ShowItem();
    3636      else $Output = $this->ShowList();
    3737    } else $Output = $this->ShowList();
    38     return($Output);
     38    return $Output;
    3939  }
    4040
    4141  function ShowItem()
    4242  {
    43     if(array_key_exists('id', $_GET))
     43    if (array_key_exists('id', $_GET))
    4444    {
    4545      $YesNo = array('Ne', 'Ano');
    4646      $DbResult = $this->System->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.($_GET['id']*1));
    47       if($DbResult->num_rows > 0)
     47      if ($DbResult->num_rows > 0)
    4848      {
    4949        $Version = $DbResult->fetch_assoc();
     
    6060        '</table>';
    6161        $Output .= '<div><a href="?">'.T('All versions list').'</a></div>';
    62         if($Version['Imported'])
     62        if ($Version['Imported'])
    6363          $Output .= '<div><a href="'.$this->System->Link('/progress/?Version='.
    6464            $Version['Version']).'">'.T('Progress').'</a></div>';
    6565      } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL);
    6666    } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL);
    67     return($Output);
     67    return $Output;
    6868  }
    6969
     
    9292
    9393    $DbResult = $this->System->Database->query('SELECT * FROM ClientVersion '.$Order['SQL'].$PageList['SQLLimit']);
    94     while($Version = $DbResult->fetch_assoc())
     94    while ($Version = $DbResult->fetch_assoc())
    9595    {
    9696      $Output .= '<tr><td><a href="?action=item&amp;id='.$Version['Id'].'">'.
     
    101101    $Output .= '</table>'.
    102102      $PageList['Output'];
    103     return($Output);
     103    return $Output;
    104104  }
    105105}
Note: See TracChangeset for help on using the changeset viewer.