list.temp.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <title><?=$pagetitle?> - Powered by EmpireCMS</title>
  12. <meta name="keywords" content="<?=$pagekey?>" />
  13. <meta name="description" content="<?=$pagedes?>" />
  14. <link href="skin/default/css/style.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <p><b>列表:</b><?=$pagetitle?></p>
  18. <p>
  19. <?php
  20. while($r=$empire->fetch($sql))
  21. {
  22. $titleurl="show.php?classid=".$r[classid]."&amp;id=".$r[id]."&amp;style=".$wapstyle."&amp;bclassid=".$bclassid."&amp;cid=".$classid."&amp;cpage=".$page;
  23. $r['title']=stripSlashes($r['title']);
  24. //截取字数
  25. if($pr['wapsubtitle'])
  26. {
  27. $r[title]=sub($r[title],0,$pr['wapsubtitle'],false);
  28. }
  29. //时间格式
  30. $r[newstime]=date($pr['wapshowdate'],$r[newstime]);
  31. ?>
  32. <a href="<?=$titleurl?>"><?=$r['title']?></a> <small>(<?=$r[newstime]?>)</small><br />
  33. <?php
  34. }
  35. ?>
  36. </p>
  37. <?php
  38. if($returnpage)
  39. {
  40. ?>
  41. <p><?=$returnpage?><br /></p>
  42. <?php
  43. }
  44. ?>
  45. <p><a href="index.php?style=<?=$wapstyle?>&amp;bclassid=<?=$bclassid?>">返回</a> <a href="index.php?style=<?=$wapstyle?>">网站首页</a></p>
  46. </body>
  47. </html>