国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.0KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
  5. <title><?php echo $diy->name;?> - powered by dedecms</title>
  6. <link href="./img/nspage.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9. <div class="main mceneter">
  10. <div class="toplogo">
  11. <div class="logo">
  12. <a href="/"><img src="<?php echo $cfg_templeturl; ?>/default/images/logo.gif" /></a> </div>
  13. <div class="title">
  14. <a href='diy.php?action=list&diyid=<?php echo $diy->diyid; ?>'><?php echo $diy->name; ?></a> &gt; 详细内容
  15. </div>
  16. </div>
  17. <div class="cmain">
  18. <div class="ctitle">
  19. <h1><?php echo $diy->name;?>详细内容</h1>
  20. <span></span>
  21. </div>
  22. <div class="cbox mceneter">
  23. <div class="maplist">
  24. <br />
  25. <table class='listtable' cellspacing="1">
  26. <?php
  27. echo '<tbody>';
  28. echo '<tr><td bgcolor="#eeeeee" width="20%">id</td><td bgcolor="#eeeeee">'.$row['id'].'</td></tr>';
  29. $allowhtml = array('htmltext');
  30. foreach($fieldlist as $field=>$fielddata)
  31. {
  32. if($row[$field]=='') continue;
  33. if($fielddata[1]=='img')
  34. {
  35. $row[$field] = "<a href='{$row[$field]}' target='_blank'><img src='{$row[$field]}'/></a>\r\n";
  36. }
  37. else if($fielddata[1]=='addon')
  38. {
  39. $row[$field] = "<a href='{$row[$field]}' target='_blank'><img src='img/addon.gif' border='0' /> 相关附件</a>";
  40. }
  41. else
  42. {
  43. if(!in_array($fielddata[1], $allowhtml))
  44. {
  45. $row[$field] = htmlspecialchars($row[$field]);
  46. }
  47. }
  48. echo '<tr><td bgcolor="#ffffff">'.$fielddata[0].'</td><td bgcolor="#ffffff">'.$row[$field].'</td></tr>';
  49. }
  50. echo '</tbody>';
  51. ?>
  52. </table>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="copyright mceneter">
  58. Powered by <a href="http://www.dedecms.com" target="_blank">DedeCMS</a> &copy; 2004-2020 <a href="http://www.desdev.cn" target="_blank">DesDev</a> Inc.
  59. </div>
  60. </body>
  61. </html>