|
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <title>手机端配置</title>
- <link rel="stylesheet" href="../static/web/font/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>
- </head>
- <body>
- <form action="makehtml_m_config.php" method="post" name="form1" _lpchecked="1">
- <input type="hidden" name="dopost" value="save">
- <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
- <tr>
- <td bgcolor="#f5f5f5" colspan="3">手机端配置</td>
- </tr>
- <tr>
- <td colspan="3">
- <div class="alert alert-info mb-0">
- <ul>
- <li>1、手机端模板启用静态链接,如列表“[field:typeurl/]”标签,文档“[field:arcurl/]”标签。那么手机端模模板中css和js等,建议用绝对路径引用,以免手机端更新后页面错误。缩略图标签前加电脑端链接为http://xxx.com[field:picname/],文档正文标签为{dede:field.body function='str_replace("/static/allimg/","http:xxx.com/static/allimg/",@me)'/},后台-系统设置-系统配置变量-是否支持多站点选择否,最后更新目录中有静态文件,则更新成功。</li>
- <li>2、手机端模板启用动态链接,如列表list.php?tid=[field:id/]形式,文档view.php?aid=[field:id/]形式,手机端伪静态规则参考电脑端。</li>
- <li>3、手机端自定义文档更新规则,如规则/html/{aid}.html形式,把view.php?aid=[field:id/]改为/m/html/[field:id/].html</li>
- </ul>
- </div>
- </td>
- </tr>
- <tr>
- <td width="260">手机端更新目录:</td>
- <td>
- <input type="text" name="data[dedebiz_path]" id="dedebiz_path" class="w-75" value="<?php echo $data['dedebiz_path']?$data['dedebiz_path']:'/m'?>">
- <input type="hidden" name="info[dedebiz_path]" id="path_info" class="w-75" value="手机端更新目录默认为m文件夹">
- </td>
- <td>手机端更新目录默认为m文件夹</td>
- </tr>
- <tr>
- <td>电脑端栏目链接规则:</td>
- <td>
- <label><input type="radio" name="data[dedebiz_usetype]" value="1" <?php echo $data['dedebiz_usetype']==1?'checked':''?>> 启用</label>
- <label><input type="radio" name="data[dedebiz_usetype]" value="0" <?php echo $data['dedebiz_usetype']==0?'checked':''?>> 禁用</label>
- <input type="hidden" name="info[dedebiz_usetype]" id="usetype_info" class="w-75" value="是否启用电脑端栏目链接规则更新">
- </td>
- <td>是否启用电脑端栏目链接规则更新</td>
- </tr>
- <tr>
- <td>电脑端文档链接规则:</td>
- <td>
- <label><input type="radio" name="data[dedebiz_usearc]" value="1" <?php echo $data['dedebiz_usearc']==1?'checked':''?>> 启用</label>
- <label><input type="radio" name="data[dedebiz_usearc]" value="0" <?php echo $data['dedebiz_usearc']==0?'checked':''?>> 禁用</label>
- <input type="hidden" name="info[dedebiz_usearc]" id="usearc_info" class="w-75" value="是否启用电脑端文档链接规则更新">
- </td>
- <td>是否启用电脑端文档链接规则更新</td>
- </tr>
- <tr>
- <td>手机端栏目链接规则:</td>
- <td>
- <input type="text" name="data[dedebiz_typerule]" id="dedebiz_typerule" class="w-75" value="<?php echo $data['dedebiz_typerule']?$data['dedebiz_typerule']:'{typedir}/{tid}-{page}.html'?>">
- <input type="hidden" name="info[dedebiz_typerule]" id="typerule_info" class="w-75" value="禁用电脑端栏目链接规则时生效">
- </td>
- <td>禁用电脑端栏目链接规则时生效</td>
- </tr>
- <tr>
- <td>手机端文档链接规则:</td>
- <td>
- <input type="text" name="data[dedebiz_arcrule]" id="dedebiz_arcrule" class="w-75" value="<?php echo $data['dedebiz_arcrule']?$data['dedebiz_arcrule']:'{typedir}/{aid}.html'?>">
- <input type="hidden" name="info[dedebiz_arcrule]" id="arcrule_info" class="w-75" value="禁用电脑端文档链接规则时生效">
- </td>
- <td>禁用电脑端文档链接规则时生效</td>
- </tr>
- <tr>
- <td bgcolor="#f5f5f5" colspan="3" align="center">
- <button type="submit" class="btn btn-success btn-sm">保存</button>
- <button type="button" class="btn btn-outline-success btn-sm" onclick="document.form1.reset()">重置</button>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
|