source: Dev/branches/Cartis/breadcrumbs.php @ 297

Last change on this file since 297 was 239, checked in by cartis, 13 years ago

Backup -> working version 18-01-2012

File size: 516 bytes
Line 
1<?php
2
3$ul_id = 'crumbs';
4$bc = explode("/", $_SERVER["PHP_SELF"]);
5echo '<ul id="' . $ul_id . '"><li><a href="/branches/cartis">Home</a></li>';
6while (list($key, $val) = each($bc)) {
7    $dir = '';
8    if ($key > 1) {
9        $n = 1;
10        while ($n < $key) {
11            $dir.='/' . $bc[$n];
12            $val = $bc[$n];
13            $n++;
14        }
15        if ($key < count($bc) - 1)
16            echo '<li><a href="' . $dir . '">' . $val . '</a></li>';
17    }
18}
19echo '<li>' . $pagetitle . '</li>';
20echo '</ul>';
21?>
Note: See TracBrowser for help on using the repository browser.