PHP的栏目导航程序
2002-01-03 16:36:59 来源:WEB开发网核心提示:<?php$d_label=array("service"=>"有偿服务","teach"=>"家教中心","union"=>"校园服务联盟","job"=
<?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="-><a href=\"$d_link\">$d_text</a>";
$d_komplettx=$d_curx.$d_komplettx;
$directory=dirname($directory);
}
echo "栏目导航:".$d_komplettx;
?>
$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="-><a href=\"$d_link\">$d_text</a>";
$d_komplettx=$d_curx.$d_komplettx;
$directory=dirname($directory);
}
echo "栏目导航:".$d_komplettx;
?>
更多精彩
赞助商链接