Changeset 417 for trunk/mapa.php
- Timestamp:
- Oct 8, 2012, 9:36:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mapa.php
r78 r417 2 2 3 3 include_once('global.php'); 4 include_once('style.php');5 ShowHeader('Mapa webu', 'Mapa webu');6 4 7 echo('<ul>'); 8 foreach($PathTree as $PathTreeItem) 5 6 class WebMapPage extends Page 7 { 8 var $FullTitle = 'Mapa webu'; 9 var $ShortTitle = 'Mapa webu'; 10 11 function Show() 12 { 13 global $PathTree; 14 15 $Output = '<ul>'; 16 foreach($this->PathTree as $PathTreeItem) 9 17 { 10 18 if($PathTreeItem != '') 11 19 { 12 echo('<li>');20 $Output .= '<li>'; 13 21 if(is_array($PathTreeItem)) 14 22 { 15 23 $Title = array_shift($PathTreeItem); 16 if($Title != '') echo('<ul>');24 if($Title != '') $Output .= '<ul>'; 17 25 foreach($PathTreeItem as $PathTreeSubItem) 18 26 { 19 27 if($PathTreeSubItem != '') 20 28 { 21 echo('<li>');29 $Output .= '<li>'; 22 30 if(is_array($PathTreeSubItem)); 23 else echo($PathTreeSubItem);24 echo('</li>');31 else $Output .= $PathTreeSubItem; 32 $Output .= '</li>'; 25 33 } 26 34 } 27 if($Title != '') echo('</ul>');35 if($Title != '') $Output .= '</ul>'; 28 36 } 29 else echo($PathTreeItem);30 echo('</li>');37 else $Output .= $PathTreeItem; 38 $Output .= '</li>'; 31 39 } 32 40 } 33 echo('</ul>'); 41 $Output .= '</ul>'; 42 return($Output); 43 } 44 } 34 45 35 ShowFooter(); 46 $System->AddModule(new WebMapPage()); 47 $System->Modules['WebMapPage']->GetOutput(); 36 48 37 49 ?>
Note:
See TracChangeset
for help on using the changeset viewer.