|
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
- <title>添加自定义页面</title>
- <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
- <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="/static/web/css/admin.css">
- <script src="/static/web/js/jquery.min.js"></script>
- <script src="/static/web/js/bootstrap.min.js"></script>
- <script src="/static/web/js/admin.main.js"></script>
- </head>
- <body>
- <div class="container-fluid">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
- <li class="breadcrumb-item"><a href="templets_one.php">文档单页管理</a></li>
- <li class="breadcrumb-item active">添加自定义页面</li>
- </ol>
- <div class="card shadow-sm">
- <div class="card-header">文档单页管理</div>
- <div class="card-body">
- <div class="alert alert-info">文档单页管理等同于单页文档,例如:页面标题标签{dede:field.title/}调用</div>
- <form name="form1" action="templets_one_add.php" method="post">
- <input type="hidden" name="dopost" value="save">
- <div class="table-responsive">
- <table class="table table-borderless">
- <tbody>
- <tr>
- <td width="260">页面标题</td>
- <td><input type="text" name="title" id="title" class="admin-input-lg" required></td>
- </tr>
- <tr>
- <td>页面关键词</td>
- <td><input type="text" name="keywords" id="keywords" class="admin-input-lg"></td>
- </tr>
- <tr>
- <td>页面摘要信息</td>
- <td><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td>
- </tr>
- <tr>
- <td>关联标识</td>
- <td>
- <input type="text" name="likeid" id="likeid" class="admin-input-lg">
- <?php
- echo "<select name='likeidsel' id='likeidsel' class='admin-input-sm'>";
- $dsql->Execute('s',"SELECT likeid FROM `#@__sgpage` GROUP BY likeid ");
- echo "<option value='default'>default</option>";
- while($arr = $dsql->GetArray('s'))
- {
- echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>";
- }
- echo "</select>";
- ?>
- <span>(通过标识区分同类页面,标签{dede:likesgpage id='标识'/}调用相同标识页面)</span>
- </td>
- </tr>
- <tr>
- <td>保存位置</td>
- <td><input type="text" name="nfilename" id="nfilename" value="<?php echo $cfg_arcdir.'/diy.html';?>" class="admin-input-lg">(填写路径文件夹)</td>
- </tr>
- <tr>
- <td>模板文件名</td>
- <td><input type="text" name="template" id="template" value="{style}/index_article.htm" class="admin-input-lg">(填写模板名称)</td>
- </tr>
- <tr>
- <td>是否编译文档</td>
- <td>
- <?php if (!DEDEBIZ_SAFE_MODE) {?><label><input type="radio" name="ismake" value="1"> 含模板标记,要编译</label><?php }?>
- <label><input type="radio" name="ismake" value="0" checked> 不含模板标记,不需要编译</label>
- </td>
- </tr>
- <tr>
- <td colspan="2"><?php GetEditor("body","","400","Default","print","false");?></td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <button type="submit" class="btn btn-success btn-sm">保存</button>
- <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </form>
- </div>
- </div>
- </div>
- </body>
- </html>
|