source: branches/posledni/pages/stahovani.php

Last change on this file was 711, checked in by george, 15 years ago
  • Zkopírováno: Větev trunk do branches jako posledni.
File size: 659 bytes
Line 
1<?php
2
3include('files.php');
4echo('<h2 class="PageTitle">Soubory ke stažení:</h2>');
5echo('<table class="DownloadTable">');
6$DbResult = $System->Database->query('SELECT * FROM FileCategory ORDER BY Name');
7while($Category = $DbResult->fetch_assoc())
8{
9 echo('<h3>'.$Category['Name'].'</h3>');
10 $DbResult2 = $System->Database->query('SELECT * FROM File WHERE Category = '.$Category['Id'].' ORDER BY Name');
11 while($File = $DbResult2->fetch_assoc())
12 {
13 echo('<a href="'.$File['Location'].'">'.$File['Name'].'</a>');
14 if($File['Description'] != '') echo(' - '.$File['Description']);
15 echo('<br/>');
16 }
17 echo('<br/>');
18}
19
20?>
Note: See TracBrowser for help on using the repository browser.