source: trunk/index.php

Last change on this file was 4, checked in by chronos, 8 years ago
  • Fixed: Use table prefix from Database class.
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1<?php
2
3include_once('global.php');
4
5$Output = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
6<html>
7<head>
8<title>Osobní stránky Jiřího Hajdy</title>
9<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10</head>
11<body style="font-family: Arial;">
12
13<h3>Seznam aktuálních projektů a aktivit:</h3><hr>
14<table>';
15
16$DbResult = $Database->select('projekty', '*', 'finished = 0');
17while($Row = $DbResult->fetch_assoc())
18{
19 $Output .= '<tr><td>'.
20 '<a href="'.$Row['link'].'"><img src="images/nahledy/'.$Row['image'].'_mini.png" alt="Náhled"></a>'.
21 '</td><td valign="top">'.
22 '<a href="'.$Row['link'].'">'.$Row['title'].'</a><br>'.$Row['description'].
23 '</td></tr>';
24}
25$Output .= '</table>';
26
27
28$Output .= '<h3>Seznam ukončených projektů a aktivit:</h3><hr>
29<table>';
30
31$DbResult = $Database->select('projekty', '*', 'finished = 1');
32while($Row = $DbResult->fetch_assoc())
33{
34 $Output .= '<tr><td>'.
35 '<a href="'.$Row['link'].'"><img src="images/nahledy/'.$Row['image'].'_mini.png" alt="Náhled"></a>'.
36 '</td><td valign="top">'.
37 '<a href="'.$Row['link'].'">'.$Row['title'].'</a><br>'.$Row['description'].
38 '</td></tr>';
39}
40$Output .= '</table>';
41
42$Output .= '</body></html>';
43
44echo($Output);
Note: See TracBrowser for help on using the repository browser.