PHP的栏目导航程序
发布时间:2006-10-14 2:59:58   收集提供:gaoqian
<?php
$d_label=array("service"=>"有偿服务","teach"=>"家教中心","union"=>"校园服务联盟","job"=>"学生兼职","free"=>"信息库");
$directory=$REQUEST_URI;
while($directory!="/")
{
  $d_text=basename($directory);
  if(isset($d_label[$d_text])){$d_text=$d_label[$d_text];}
  $d_link=$directory;
  $d_curx="-&gt;<a href=\"$d_link\">$d_text</a>";
  $d_komplettx=$d_curx.$d_komplettx;
  $directory=dirname($directory);
}
  echo "栏目导航:".$d_komplettx;
?>


 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50