国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

89 行
3.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>添加自定义页面</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/admin.css">
  10. <script src="/static/web/js/jquery.min.js"></script>
  11. <script src="/static/web/js/bootstrap.min.js"></script>
  12. <script src="/static/web/js/admin.main.js"></script>
  13. </head>
  14. <body>
  15. <ol class="breadcrumb">
  16. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  17. <li class="breadcrumb-item"><a href="templets_one.php">文档单页管理</a></li>
  18. <li class="breadcrumb-item active">添加自定义页面</li>
  19. </ol>
  20. <div class="card shadow-sm">
  21. <div class="card-header">文档单页管理</div>
  22. <div class="card-body">
  23. <div class="alert alert-info">文档单页管理等同于单页文档,例如:页面标题标签{dede:field.title/}调用</div>
  24. <form name="form1" action="templets_one_add.php" method="post">
  25. <input type="hidden" name="dopost" value="save">
  26. <div class="table-responsive">
  27. <table class="table table-borderless">
  28. <tbody>
  29. <tr>
  30. <td width="260">页面标题</td>
  31. <td><input type="text" name="title" id="title" class="admin-input-lg" required></td>
  32. </tr>
  33. <tr>
  34. <td>页面关键词</td>
  35. <td><input type="text" name="keywords" id="keywords" class="admin-input-lg"></td>
  36. </tr>
  37. <tr>
  38. <td>页面摘要信息</td>
  39. <td><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
  40. </tr>
  41. <tr>
  42. <td>关联标识</td>
  43. <td>
  44. <input type="text" name="likeid" id="likeid" class="admin-input-lg">
  45. <?php
  46. echo "<select name='likeidsel' id='likeidsel' class='admin-input-sm'>";
  47. $dsql->Execute('s',"SELECT likeid FROM `#@__sgpage` GROUP BY likeid ");
  48. echo "<option value='default'>default</option>";
  49. while($arr = $dsql->GetArray('s'))
  50. {
  51. echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>";
  52. }
  53. echo "</select>";
  54. ?>
  55. <span>(通过标识区分同类页面,标签{dede:likesgpage id='标识'/}调用相同标识页面)</span>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td>保存位置</td>
  60. <td><input type="text" name="nfilename" id="nfilename" value="<?php echo $cfg_arcdir.'/diy.html';?>" class="admin-input-lg">(填写路径文件夹)</td>
  61. </tr>
  62. <tr>
  63. <td>模板文件名</td>
  64. <td><input type="text" name="template" id="template" value="{style}/index_article.htm" class="admin-input-lg">(填写模板名称)</td>
  65. </tr>
  66. <tr>
  67. <td>是否编译文档</td>
  68. <td>
  69. <?php if (!DEDEBIZ_SAFE_MODE) {?><label><input type="radio" name="ismake" value="1"> 含模板标记,要编译</label><?php }?>
  70. <label><input type="radio" name="ismake" value="0" checked> 不含模板标记,不需要编译</label>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td colspan="2"><?php GetEditor("body","","400","Default","print","false");?></td>
  75. </tr>
  76. <tr>
  77. <td colspan="2" align="center">
  78. <button type="submit" class="btn btn-success btn-sm">保存</button>
  79. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </div>
  85. </form>
  86. </div>
  87. </div>
  88. </body>
  89. </html>