国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

77 Zeilen
3.4KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title><?php echo $diy->name;?></title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script>
  11. function selAll(){
  12. var a = document.getElementsByTagName("input");
  13. for (var i = 0; i < a.length; i++){
  14. if (a[i].type == "checkbox") a[i].checked = true;
  15. }
  16. }
  17. function noSelAll(){
  18. var a = document.getElementsByTagName("input");
  19. for (var i = 0; i < a.length; i++){
  20. if (a[i].type == "checkbox") a[i].checked = false;
  21. }
  22. }
  23. </script>
  24. </head>
  25. <body>
  26. <form action="diy_list.php" method="post">
  27. <input type="hidden" name="diyid" value="<?php echo $diyid;?>">
  28. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  29. <tr>
  30. <td bgcolor="#f8f8f8" colspan="3">
  31. <span class="float-left py-2"><a href="diy_main.php">自定义表单管理</a> &gt; <?php echo $diy->name;?></span>
  32. <span class="float-right mr-2"><a href="/apps/diy.php?action=list&diyid=<?php echo $diy->diyid;?>" target="_blank"><i class="fa fa-globe" title="前台预览"></i> 前台预览</a></span>
  33. </td>
  34. </tr>
  35. {dede:datalist}
  36. <?php
  37. if(!empty($fields))
  38. {
  39. $allowhtml = array('htmltext');
  40. $fields['sta'] = $fields['ifcheck'] == 1 ? '已审核':'未审核';
  41. echo '<tr bgcolor="#fbfce2"><td width="18%"><input type="checkbox" name="id[]" value="'.$fields['id'].'"></td><td><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'">'.$fields['id'].'</a> '.$fields['sta'].'</td><td width="12%" align="center"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a></td></tr>';
  42. foreach($fieldlist as $field=>$fielddata)
  43. {
  44. if($fields[$field]=='') continue;
  45. if($fielddata[1]=='img'){
  46. $fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 图片附件</a>";
  47. }
  48. else if($fielddata[1]=='addon'){
  49. $fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 其它附件</a>";
  50. } else {
  51. if(!in_array($fielddata[1],$allowhtml)){
  52. $fields[$field] = dede_htmlspecialchars($fields[$field]);
  53. }
  54. }
  55. echo '<tr><td bgcolor="#fff">'.$fielddata[0].'</td><td bgcolor="#fff" colspan="2">'.$fields[$field].'</td></tr>';
  56. }
  57. } else {
  58. echo '<tr><td bgcolor="#fff">暂无记录</td></tr>';
  59. }
  60. ?>
  61. {/dede:datalist}
  62. <tr>
  63. <td colspan="3" class="py-2">
  64. <input type="button" name="select" onClick="selAll()" class="btn btn-success btn-sm" value="全选">
  65. <input type="button" name="select" onClick="noSelAll()" class="btn btn-success btn-sm" value="取消">
  66. <label class="mr-2 ml-2"><input type="radio" name="action" value="check"> 审核</label>
  67. <label class="mr-2 ml-2"><input type="radio" name="action" value="delete"> 删除</label>
  68. <button type="submit" name="submit" class="btn btn-success btn-sm">提交</button>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td colspan="3" bgcolor="#f8f8f8" class="py-2">{dede:pagelist listsize='6'/}</td>
  73. </tr>
  74. </table>
  75. </form>
  76. </body>
  77. </html>