DedeV6移动版
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.

81 line
4.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>手机端配置</title>
  7. <link rel="stylesheet" href="../static/web/font/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. </head>
  12. <body>
  13. <form action="makehtml_m_config.php" method="post" name="form1" _lpchecked="1">
  14. <input type="hidden" name="dopost" value="save">
  15. <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
  16. <tr>
  17. <td bgcolor="#f5f5f5" colspan="3">手机端配置</td>
  18. </tr>
  19. <tr>
  20. <td colspan="3">
  21. <div class="alert alert-info mb-0">
  22. <ul>
  23. <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>
  24. <li>2、手机端模板启用动态链接,如列表list.php?tid=[field:id/]形式,文档view.php?aid=[field:id/]形式,手机端伪静态规则参考电脑端。</li>
  25. <li>3、手机端自定义文档更新规则,如规则/html/{aid}.html形式,把view.php?aid=[field:id/]改为/m/html/[field:id/].html</li>
  26. </ul>
  27. </div>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td width="260">手机端更新目录:</td>
  32. <td>
  33. <input type="text" name="data[dedebiz_path]" id="dedebiz_path" class="w-75" value="<?php echo $data['dedebiz_path']?$data['dedebiz_path']:'/m'?>">
  34. <input type="hidden" name="info[dedebiz_path]" id="path_info" class="w-75" value="手机端更新目录默认为m文件夹">
  35. </td>
  36. <td>手机端更新目录默认为m文件夹</td>
  37. </tr>
  38. <tr>
  39. <td>电脑端栏目链接规则:</td>
  40. <td>
  41. <label><input type="radio" name="data[dedebiz_usetype]" value="1" <?php echo $data['dedebiz_usetype']==1?'checked':''?>> 启用</label>
  42. <label><input type="radio" name="data[dedebiz_usetype]" value="0" <?php echo $data['dedebiz_usetype']==0?'checked':''?>> 禁用</label>
  43. <input type="hidden" name="info[dedebiz_usetype]" id="usetype_info" class="w-75" value="是否启用电脑端栏目链接规则更新">
  44. </td>
  45. <td>是否启用电脑端栏目链接规则更新</td>
  46. </tr>
  47. <tr>
  48. <td>电脑端文档链接规则:</td>
  49. <td>
  50. <label><input type="radio" name="data[dedebiz_usearc]" value="1" <?php echo $data['dedebiz_usearc']==1?'checked':''?>> 启用</label>
  51. <label><input type="radio" name="data[dedebiz_usearc]" value="0" <?php echo $data['dedebiz_usearc']==0?'checked':''?>> 禁用</label>
  52. <input type="hidden" name="info[dedebiz_usearc]" id="usearc_info" class="w-75" value="是否启用电脑端文档链接规则更新">
  53. </td>
  54. <td>是否启用电脑端文档链接规则更新</td>
  55. </tr>
  56. <tr>
  57. <td>手机端栏目链接规则:</td>
  58. <td>
  59. <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'?>">
  60. <input type="hidden" name="info[dedebiz_typerule]" id="typerule_info" class="w-75" value="禁用电脑端栏目链接规则时生效">
  61. </td>
  62. <td>禁用电脑端栏目链接规则时生效</td>
  63. </tr>
  64. <tr>
  65. <td>手机端文档链接规则:</td>
  66. <td>
  67. <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'?>">
  68. <input type="hidden" name="info[dedebiz_arcrule]" id="arcrule_info" class="w-75" value="禁用电脑端文档链接规则时生效">
  69. </td>
  70. <td>禁用电脑端文档链接规则时生效</td>
  71. </tr>
  72. <tr>
  73. <td bgcolor="#f5f5f5" colspan="3" align="center">
  74. <button type="submit" class="btn btn-success btn-sm">保存</button>
  75. <button type="button" class="btn btn-outline-success btn-sm" onclick="document.form1.reset()">重置</button>
  76. </td>
  77. </tr>
  78. </table>
  79. </form>
  80. </body>
  81. </html>