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

45 lines
1.6KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/style.css">
  10. </head>
  11. <body>
  12. <?php obtaintheme('top.htm');?>
  13. <main class="container py-3">
  14. <nav aria-label="breadcrumb">
  15. <ol class="breadcrumb">
  16. <li class="breadcrumb-item"><a href="/">首页</a></li>
  17. <li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>"><?php echo $diy->name;?>列表</a></li>
  18. </ol>
  19. </nav>
  20. <div class="mb-3">
  21. <a href="<?php echo $cfg_phpurl?>/diy.php?action=post&diyid=<?php echo $diy->diyid;?>" class="btn btn-success btn-sm">发布信息</a>
  22. </div>
  23. {dede:datalist}
  24. <table class="table">
  25. <?php
  26. if (!empty($fields)) {
  27. echo "<tbody>";
  28. echo '<tr><td>表单'.$fields['id'].' <a href="diy.php?action=view&diyid='.$diy->diyid.'&id='.$fields['id'].'" target="_blank" class="btn btn-light btn-sm">详细</a></td></tr></td>';
  29. foreach($fieldlist as $field=>$fielddata)
  30. {
  31. if ($fields[$field]=='') continue;
  32. echo "<tr><td>{$fielddata[0]}</td></tr><tr><td>{$fields[$field]}</td></tr>";
  33. }
  34. echo "</tbody>";
  35. } else {
  36. echo "<tr><td>暂无记录</td></tr>";
  37. }
  38. ?>
  39. </table>
  40. {/dede:datalist}
  41. {dede:pagelist listsize='6'/}
  42. </main>
  43. <?php obtaintheme('foot.htm');?>
  44. </body>
  45. </html>