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

78 lines
2.6KB

  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>
  13. </div>
  14. <div class="title">
  15. <?php echo $diy->name; ?>
  16. &nbsp; [<a href='diy.php?action=post&diyid=<?php echo $diy->diyid; ?>'>发布信息</a>]
  17. </div>
  18. </div>
  19. <div class="cmain">
  20. <div class="ctitle">
  21. <h1><?php echo $diy->name; ?>内容列表</h1>
  22. <span></span>
  23. </div>
  24. <div class="cbox mceneter">
  25. <div class="maplist">
  26. <br />
  27. {dede:datalist}
  28. <table class='listtable' cellspacing="1">
  29. <?php
  30. if(!empty($fields))
  31. {
  32. echo '<tbody>';
  33. echo '<tr><td bgcolor="#eeeeee" width="20%">id</td>';
  34. 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>';
  35. foreach($fieldlist as $field=>$fielddata)
  36. {
  37. if($fields[$field]=='') continue;
  38. if($fielddata[1]=='img')
  39. {
  40. $fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif' border='0' /> 图片附件</a>\r\n";
  41. }
  42. else if($fielddata[1]=='addon')
  43. {
  44. $fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='img/addon.gif' border='0' /> 其它附件</a>";
  45. }
  46. else
  47. {
  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 bgcolor='#ffffff'>{$fielddata[0]}</td><td bgcolor='#ffffff'>{$fields[$field]}</td></tr>\r\n";
  56. }
  57. echo '</tbody>';
  58. }else{
  59. echo "<tr><td bgcolor='#ffffff'>暂无记录</td></tr>";
  60. }
  61. ?>
  62. </table>
  63. {/dede:datalist}
  64. <table class='listtable' cellspacing="2">
  65. <tr><td bgcolor="#ffffff">{dede:pagelist listsize=5 /}</td></tr>
  66. </table>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="copyright mceneter">
  72. 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.
  73. </div>
  74. </body>
  75. </html>