国内流行的内容管理系统(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.

56 lines
2.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="{dede:global name='cfg_soft_lang'/}">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title><?php echo $diy->name;?>-Powered by DedeBIZ</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/font/css/font-awesome.min.css">
  10. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css">
  11. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css">
  12. <script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script>
  13. </head>
  14. <body>
  15. <div class="main mceneter">
  16. <?php include(DEDETEMPLATE."/plus/plus_header.htm") ;?>
  17. <div class="container">
  18. <div class="ctitle">
  19. <h3><?php echo $diy->name;?>详细内容</h3>
  20. </div>
  21. <div class="cbox mceneter">
  22. <div class="maplist">
  23. <br>
  24. <table cellspacing="1" class="table">
  25. <?php
  26. echo '<tbody>';
  27. echo '<tr><td bgcolor="#f8f8f8" width="20%">id</td><td bgcolor="#f8f8f8">'.$row['id'].'</td></tr>';
  28. $allowhtml = array('htmltext');
  29. foreach($fieldlist as $field=>$fielddata)
  30. {
  31. if($row[$field]=='') continue;
  32. if($fielddata[1]=='img')
  33. {
  34. $row[$field] = "<a href='{$row[$field]}' target='_blank'><img src='{$row[$field]}'/></a>";
  35. }
  36. else if($fielddata[1]=='addon')
  37. {
  38. $row[$field] = "<a href='{$row[$field]}' target='_blank'><img src='img/addon.gif'> 相关附件</a>";
  39. } else {
  40. if(!in_array($fielddata[1], $allowhtml))
  41. {
  42. $row[$field] = htmlspecialchars($row[$field]);
  43. }
  44. }
  45. echo '<tr><td>'.$fielddata[0].'</td><td>'.$row[$field].'</td></tr>';
  46. }
  47. echo '</tbody>';
  48. ?>
  49. </table>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <?php include(DEDETEMPLATE."/plus/plus_footer.htm") ;?>
  55. </body>
  56. </html>