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

91 line
3.8KB

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