Changeset 92 for trunk/Modules/Admin/Admin.php
- Timestamp:
- Apr 7, 2020, 11:53:58 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Admin/Admin.php
r78 r92 41 41 function Show() 42 42 { 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) 45 45 { 46 46 case 'Add': … … 59 59 $Output = $this->ShowNone(); 60 60 } 61 return ($Output);61 return $Output; 62 62 } 63 63 … … 70 70 71 71 $Result = $this->Database->select('Measure', '*', '1 ORDER BY Description'); 72 while ($Measure = $Result->fetch_array())72 while ($Measure = $Result->fetch_array()) 73 73 { 74 74 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'))); 75 75 } 76 76 $Output = '<h3>Seznam měření</h3>'.Table($Table).MakeLink('?Operation=Add', 'Přidat'); 77 return ($Output);77 return $Output; 78 78 } 79 79 … … 83 83 $Values = array(); 84 84 $Values = $DbResult->fetch_array(); 85 return (ShowEditTable('Measure', $Values));85 return ShowEditTable('Measure', $Values); 86 86 } 87 87 … … 89 89 { 90 90 $Values = array(); 91 return (ShowEditTable('Measure', $Values));91 return ShowEditTable('Measure', $Values); 92 92 } 93 93
Note:
See TracChangeset
for help on using the changeset viewer.