source: trunk/jirihajda/index.php@ 1

Last change on this file since 1 was 1, checked in by george, 16 years ago
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1<?
2include_once('db.php');
3
4function IconedLink($Link, $Text)
5{
6 $Extension = substr($Link, strrpos($Link, '.')+1);
7 //echo($Extension);
8 $Icon = '<img src="../images/icons/'.$Extension.'.gif" alt="'.$Extension.'"> ';
9 return($Icon.'<a href="'.$Link.'">'.$Text.'</a>');
10}
11
12?>
13
14<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
15<html>
16<head>
17<title>Osobní stránky Jiøího Hajdy</title>
18<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
19</head>
20<body style="font-family: Arial;">
21
22<h3>Seznam aktuálních projektù a aktivit:</h3><hr>
23<table>
24<?
25DB_Select('projekty', '*', 'finished = 0');
26while($Row = DB_Row())
27{
28 echo('<tr><td>'.
29 '<a href="'.$Row['link'].'"><img src="images/nahledy/'.$Row['image'].'_mini.png" alt="Náhled"></a>'.
30 '</td><td valign="top">'.
31 '<a href="'.$Row['link'].'">'.$Row['title'].'</a><br>'.$Row['description'].
32 '</td></tr>');
33}
34echo('</table>');
35
36
37echo('<h3>Seznam ukonèených projektù a aktivit:</h3><hr>
38<table>');
39
40DB_Select('projekty', '*', 'finished = 1');
41while($Row = DB_Row())
42{
43 echo('<tr><td>'.
44 '<a href="'.$Row['link'].'"><img src="images/nahledy/'.$Row['image'].'_mini.png" alt="Náhled"></a>'.
45 '</td><td valign="top">'.
46 '<a href="'.$Row['link'].'">'.$Row['title'].'</a><br>'.$Row['description'].
47 '</td></tr>');
48}
49echo('</table>');
50//echo('<a href="bc_prace">Bakaláøská práce - Vyhodnocování polohy oèní zornice</a>');
51?>
52
53</body></html>
Note: See TracBrowser for help on using the repository browser.