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

51 lines
1.8KB

  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;?>-<?php echo $cfg_webname;?></title>
  7. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css">
  10. <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script>
  11. </head>
  12. <body>
  13. <?php pasterTempletDiy('top.htm');?>
  14. <div class="container py-3">
  15. <div class="ctitle">
  16. <h3><?php echo $diy->name;?>详细内容</h3>
  17. </div>
  18. <div class="cbox mceneter">
  19. <div class="maplist">
  20. <table cellspacing="1" class="table">
  21. <?php
  22. echo '<tbody>';
  23. echo '<tr><td bgcolor="#f8f8f8" width="20%">id</td><td bgcolor="#f8f8f8">'.$row['id'].'</td></tr>';
  24. $allowhtml = array('htmltext');
  25. foreach($fieldlist as $field=>$fielddata)
  26. {
  27. if ($row[$field]=='') continue;
  28. if ($fielddata[1]=='img')
  29. {
  30. $row[$field] = "<a href='{$row[$field]}' target='_blank'><img src='{$row[$field]}'/></a>";
  31. }
  32. else if ($fielddata[1]=='addon')
  33. {
  34. $row[$field] = "<a href='{$row[$field]}' target='_blank'><img src='img/addon.gif'> 相关附件</a>";
  35. } else {
  36. if (!in_array($fielddata[1], $allowhtml))
  37. {
  38. $row[$field] = htmlspecialchars($row[$field]);
  39. }
  40. }
  41. echo '<tr><td>'.$fielddata[0].'</td><td>'.$row[$field].'</td></tr>';
  42. }
  43. echo '</tbody>';
  44. ?>
  45. </table>
  46. </div>
  47. </div>
  48. </div>
  49. <?php pasterTempletDiy('foot.htm');?>
  50. </body>
  51. </html>