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

76 lines
2.9KB

  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. <nav class="navbar navbar-expand-lg">
  20. <ul class="navbar-nav mr-auto mt-2">
  21. <li class="nav-item">
  22. <h3><?php echo $diy->name; ?>内容列表</h3>
  23. </li>
  24. </ul>
  25. <span class="navbar-text"><a href="diy.php?action=post&diyid=<?php echo $diy->diyid;?>" class="btn btn-success btn-sm">发布信息</a></span>
  26. </nav>
  27. </div>
  28. <div class="cbox mceneter">
  29. <div class="maplist">
  30. {dede:datalist}
  31. <table class='table' cellspacing="1">
  32. <?php
  33. if(!empty($fields))
  34. {
  35. echo '<tbody>';
  36. echo '<tr><td bgcolor="#eeeeee" width="20%">id</td>';
  37. echo '<td bgcolor="#eeeeee"><div class="left">'.$fields['id'].'</div><div class="right"><a href="diy.php?action=view&diyid='.$diy->diyid.'&id='.$fields['id'].'" target="_blank">详细</a> &nbsp;</div></td></tr>';
  38. foreach($fieldlist as $field=>$fielddata)
  39. {
  40. if($fields[$field]=='') continue;
  41. if($fielddata[1]=='img')
  42. {
  43. $fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif'> 图片附件</a>";
  44. }
  45. else if($fielddata[1]=='addon')
  46. {
  47. $fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif'> 其它附件</a>";
  48. } else {
  49. if($fielddata[1]=='htmltext') $fields[$field] = html2text($fields[$field]);
  50. else $fields[$field] = dede_htmlspecialchars($fields[$field]);
  51. if( strlen($fields[$field]) > 250 )
  52. {
  53. $fields[$field] = cn_substr( $fields[$field], 250).'';
  54. }
  55. }
  56. echo "<tr><td>{$fielddata[0]}</td><td>{$fields[$field]}</td></tr>";
  57. }
  58. echo '</tbody>';
  59. } else {
  60. echo "<tr><td>暂无记录</td></tr>";
  61. }
  62. ?>
  63. </table>
  64. {/dede:datalist}
  65. <table class="listtable" cellspacing="2">
  66. <tr>
  67. <td>{dede:pagelist listsize='6'/}</td>
  68. </tr>
  69. </table>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <?php include(DEDETEMPLATE."/plus/plus_footer.htm") ;?>
  75. </body>
  76. </html>