Changeset 880 for trunk/Modules/ClientVersion
- Timestamp:
- Apr 7, 2020, 10:15:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/ClientVersion/ClientVersion.php
r843 r880 31 31 function Show() 32 32 { 33 if (array_key_exists('action', $_GET))33 if (array_key_exists('action', $_GET)) 34 34 { 35 if ($_GET['action'] == 'item') $Output = $this->ShowItem();35 if ($_GET['action'] == 'item') $Output = $this->ShowItem(); 36 36 else $Output = $this->ShowList(); 37 37 } else $Output = $this->ShowList(); 38 return ($Output);38 return $Output; 39 39 } 40 40 41 41 function ShowItem() 42 42 { 43 if (array_key_exists('id', $_GET))43 if (array_key_exists('id', $_GET)) 44 44 { 45 45 $YesNo = array('Ne', 'Ano'); 46 46 $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) 48 48 { 49 49 $Version = $DbResult->fetch_assoc(); … … 60 60 '</table>'; 61 61 $Output .= '<div><a href="?">'.T('All versions list').'</a></div>'; 62 if ($Version['Imported'])62 if ($Version['Imported']) 63 63 $Output .= '<div><a href="'.$this->System->Link('/progress/?Version='. 64 64 $Version['Version']).'">'.T('Progress').'</a></div>'; 65 65 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 66 66 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 67 return ($Output);67 return $Output; 68 68 } 69 69 … … 92 92 93 93 $DbResult = $this->System->Database->query('SELECT * FROM ClientVersion '.$Order['SQL'].$PageList['SQLLimit']); 94 while ($Version = $DbResult->fetch_assoc())94 while ($Version = $DbResult->fetch_assoc()) 95 95 { 96 96 $Output .= '<tr><td><a href="?action=item&id='.$Version['Id'].'">'. … … 101 101 $Output .= '</table>'. 102 102 $PageList['Output']; 103 return ($Output);103 return $Output; 104 104 } 105 105 }
Note:
See TracChangeset
for help on using the changeset viewer.