index.temp.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. $add='';
  7. $bclassid=(int)$_GET['bclassid'];
  8. if($pr['wapshowmid'])
  9. {
  10. $add=" and modid in (".$pr['wapshowmid'].")";
  11. }
  12. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  16. <title><?=$pagetitle?> - Powered by EmpireCMS</title>
  17. <meta name="keywords" content="<?=$pagekey?>" />
  18. <meta name="description" content="<?=$pagedes?>" />
  19. <link href="skin/default/css/style.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <?php
  23. if($bclassid)
  24. {
  25. $returnurl="index.php?style=$wapstyle&amp;bclassid=".($class_r[$bclassid]['bclassid']?$class_r[$bclassid]['bclassid']:0);
  26. ?>
  27. <p><b>子栏目列表:</b><?=$class_r[$bclassid]['classname']?></p>
  28. <?php
  29. }
  30. else
  31. {
  32. $returnurl="index.php?style=$wapstyle";
  33. ?>
  34. <p><b>网站栏目:</b><?=$pagetitle?></p>
  35. <?php
  36. }
  37. ?>
  38. <p>
  39. <?php
  40. $sql=$empire->query("select classid,classname,islast from {$dbtbpre}enewsclass where bclassid='$bclassid' and showclass=0 and wburl=''".$add." order by myorder,classid");
  41. while($r=$empire->fetch($sql))
  42. {
  43. $classurl="list.php?classid=".$r[classid]."&amp;style=".$wapstyle."&amp;bclassid=".$bclassid;
  44. $indexurl="index.php?style=".$wapstyle."&amp;bclassid=".$r[classid];
  45. if($r['islast'])
  46. {
  47. $showsonclass="";
  48. }
  49. else
  50. {
  51. $showsonclass=" <small>(<a href=\"$indexurl\">下级栏目</a>)</small>";
  52. }
  53. ?>
  54. <a href="<?=$classurl?>"><?=$r['classname']?></a><?=$showsonclass?><br />
  55. <?php
  56. }
  57. ?>
  58. </p>
  59. <p><a href="<?=$returnurl?>">返回</a> <a href="index.php?style=<?=$wapstyle?>">网站首页</a></p>
  60. </body>
  61. </html>