Changeset 635 for trunk/Common/Setup/Setup.php
- Timestamp:
- Jan 19, 2014, 9:36:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Setup.php
r619 r635 207 207 208 208 $Output = ''; 209 $PageList = GetPageList(count($this->System->ModuleManager->Modules)); 210 211 $Output .= $PageList['Output']; 212 $Output .= '<table class="WideTable" style="font-size: small;">'; 213 214 $TableColumns = array( 215 array('Name' => 'Name', 'Title' => 'Jméno'), 216 array('Name' => 'Creator', 'Title' => 'Tvůrce'), 217 array('Name' => 'Version', 'Title' => 'Verze'), 218 array('Name' => 'License', 'Title' => 'Licence'), 219 array('Name' => 'Installed', 'Title' => 'Instalováno'), 220 array('Name' => 'Enabled', 'Title' => 'Povoleno'), 221 array('Name' => 'Description', 'Title' => 'Popis'), 222 array('Name' => 'Dependencies', 'Title' => 'Závislosti'), 223 array('Name' => '', 'Title' => 'Akce'), 224 ); 225 $Order = GetOrderTableHeader($TableColumns, 'Name', 0); 226 $Output .= $Order['Output']; 227 209 210 $Pageing = new Pageing(); 211 $Pageing->TotalCount = count($this->System->ModuleManager->Modules); 212 $Table = new Table(); 213 $Table->SetColumns(array( 214 array('Name' => 'Name', 'Title' => 'Jméno'), 215 array('Name' => 'Creator', 'Title' => 'Tvůrce'), 216 array('Name' => 'Version', 'Title' => 'Verze'), 217 array('Name' => 'License', 'Title' => 'Licence'), 218 array('Name' => 'Installed', 'Title' => 'Instalováno'), 219 array('Name' => 'Enabled', 'Title' => 'Povoleno'), 220 array('Name' => 'Description', 'Title' => 'Popis'), 221 array('Name' => 'Dependencies', 'Title' => 'Závislosti'), 222 array('Name' => '', 'Title' => 'Akce'), 223 )); 228 224 foreach($this->System->ModuleManager->Modules as $Module) 229 225 { … … 239 235 } else $Actions .= ' <a href="?action=modules&op=install&name='.$Module->Name.'">Instalovat</a>'; 240 236 241 $Output .= '<tr><td>'.$Module->Name.'</td>'. 242 '<td>'.$Module->Creator.'</td>'. 243 '<td>'.$Module->Version.'</td>'. 244 '<td>'.$Module->License.'</td>'. 245 '<td>'.$YesNo[$Module->Installed].'</td>'. 246 '<td>'.$YesNo[$Module->Enabled].'</td>'. 247 '<td>'.$Module->Description.'</td>'. 248 '<td>'.$Dependencies.'</td>'. 249 '<td>'.$Actions.'</td></tr>'; 250 } 251 $Output .= '</table>'; 252 $Output .= $PageList['Output']; 237 $Table->Cells[] = array($Module->Name, 238 $Module->Creator, $Module->Version, 239 $Module->License, $YesNo[$Module->Installed], 240 $YesNo[$Module->Enabled], $Module->Description, 241 $Dependencies, $Actions); 242 } 243 $Output .= $Pageing->Show(); 244 $Output .= $Table->Show(); 245 $Output .= $Pageing->Show(); 253 246 //$Output .= '<p><a href="?A=SaveToDb">Uložit do databáze</a></p>'; 254 247 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.