12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- if(!defined('InEmpireCMS'))
- {
- exit();
- }
- $add='';
- $bclassid=(int)$_GET['bclassid'];
- if($pr['wapshowmid'])
- {
- $add=" and modid in (".$pr['wapshowmid'].")";
- }
- ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title><?=$pagetitle?> - Powered by EmpireCMS</title>
- <meta name="keywords" content="<?=$pagekey?>" />
- <meta name="description" content="<?=$pagedes?>" />
- <link href="skin/default/css/style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <?php
- if($bclassid)
- {
- $returnurl="index.php?style=$wapstyle&bclassid=".($class_r[$bclassid]['bclassid']?$class_r[$bclassid]['bclassid']:0);
- ?>
- <p><b>子栏目列表:</b><?=$class_r[$bclassid]['classname']?></p>
- <?php
- }
- else
- {
- $returnurl="index.php?style=$wapstyle";
- ?>
- <p><b>网站栏目:</b><?=$pagetitle?></p>
- <?php
- }
- ?>
- <p>
- <?php
- $sql=$empire->query("select classid,classname,islast from {$dbtbpre}enewsclass where bclassid='$bclassid' and showclass=0 and wburl=''".$add." order by myorder,classid");
- while($r=$empire->fetch($sql))
- {
- $classurl="list.php?classid=".$r[classid]."&style=".$wapstyle."&bclassid=".$bclassid;
- $indexurl="index.php?style=".$wapstyle."&bclassid=".$r[classid];
- if($r['islast'])
- {
- $showsonclass="";
- }
- else
- {
- $showsonclass=" <small>(<a href=\"$indexurl\">下级栏目</a>)</small>";
- }
- ?>
- <a href="<?=$classurl?>"><?=$r['classname']?></a><?=$showsonclass?><br />
- <?php
- }
- ?>
- </p>
- <p><a href="<?=$returnurl?>">返回</a> <a href="index.php?style=<?=$wapstyle?>">网站首页</a></p>
- </body>
- </html>
|