国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

73 linhas
2.9KB

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