Nessuna descrizione
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.

web2.htm 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="overflow-y: scroll;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page min-hg-c-10">
  6. {include file="system/bar" /}
  7. <form method="post" id="handlepost" action="{:U('System/web2')}" enctype="multipart/form-data" name="form1">
  8. <div class="ncap-form-default">
  9. <dl class="row">
  10. <dt class="tit">系统模式</dt>
  11. <dd class="opt">
  12. <label class="curpoin"><input type="radio" name="web_cmsmode" value="2" {if condition='!isset($config.web_cmsmode) || $config.web_cmsmode eq 2'}checked="checked"{/if}>开发</label>
  13. &nbsp;
  14. <label class="curpoin"><input type="radio" name="web_cmsmode" value="1" {if condition='isset($config.web_cmsmode) && $config.web_cmsmode eq 1'}checked="checked"{/if}>运营</label>
  15. <br/>
  16. <p class="notic2">开发模式:方便修改模板,及时预览前台效果,没缓存,一改便生效。<br/>运营模式:提高前台响应速度,利于收录;改模板及采集、导入文档等操作需执行【<a href="{:U('System/clear_cache')}">更新缓存</a>】后才能在前台展示。</p>
  17. </dd>
  18. </dl>
  19. {eq name="upgrade" value="true"}
  20. <dl class="row">
  21. <dt class="tit">
  22. <label for="site_url">升级提醒</label>
  23. </dt>
  24. <dd class="opt">
  25. <label class="curpoin" title="第一时间收到系统更新并弹窗提醒"><input type="radio" name="web_show_popup_upgrade" value="1" {if condition='!isset($config.web_show_popup_upgrade) || $config.web_show_popup_upgrade eq 1'}checked="checked"{/if}>开启提示</label>
  26. &nbsp;
  27. <label class="curpoin" title="仅收到系统更新提醒,静默不弹窗"><input type="radio" name="web_show_popup_upgrade" value="-1" {if condition='isset($config.web_show_popup_upgrade) && $config.web_show_popup_upgrade eq -1'}checked="checked"{/if}>静默模式</label>
  28. &nbsp;
  29. {if condition="$php_servicemeal > 0"}
  30. <label class="curpoin" title="不再收到系统更新提醒"><input type="radio" name="web_show_popup_upgrade" value="2" {if condition='isset($config.web_show_popup_upgrade) && $config.web_show_popup_upgrade eq 2'}checked="checked"{/if}>完全关闭</label>
  31. {else /}
  32. <label class="curpoin" title="不再收到系统更新提醒" onclick="showErrorAlert('仅限于授权域名使用', 4);"><input type="radio" name="web_show_popup_upgrade" value="2" {if condition='isset($config.web_show_popup_upgrade) && $config.web_show_popup_upgrade eq 2'}checked="checked"{/if} disabled="disabled">完全关闭</label>
  33. {/if}
  34. &nbsp;
  35. <p class="notic">1.开启提示:第一时间收到系统更新并弹窗提醒<br>2.静默模式:仅收到系统更新提醒,静默不弹窗<br>3.完全关闭:不再收到系统更新提醒</p>
  36. </dd>
  37. </dl>
  38. {/eq}
  39. <dl class="row">
  40. <dt class="tit">
  41. <label for="web_mobile_domain_open">手机站域名</label>
  42. </dt>
  43. <dd class="opt">
  44. <label class="curpoin"><input type="radio" name="web_mobile_domain_open" value="1" {if condition='isset($config.web_mobile_domain_open) && $config.web_mobile_domain_open eq 1'}checked="checked"{/if}>开启</label>
  45. &nbsp;
  46. <label class="curpoin"><input type="radio" name="web_mobile_domain_open" value="0" {if condition='empty($config.web_mobile_domain_open)'}checked="checked"{/if}>关闭</label>
  47. <p class="notic"></p>
  48. </dd>
  49. </dl>
  50. <dl class="row {if condition='empty($config.web_mobile_domain_open)'}none{/if}" id="dl_web_mobile_domain">
  51. <dt class="tit">
  52. <label for="web_mobile_domain"></label>
  53. </dt>
  54. <dd class="opt">
  55. {eq name="$is_localhost" value="1"}
  56. <p class="red">本地url路径不支持指定手机站二级域名</p>
  57. {else /}
  58. <input id="web_mobile_domain" name="web_mobile_domain" value="{$config.web_mobile_domain|default=''}" type="text" placeholder="手机域名" onKeyUp="this.value=this.value.replace(/[^0-9a-z]/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^0-9a-z]/g,''));" style="width: 60px;" />.{$Request.rootDomain}__ROOT_DIR__
  59. <p class="notic">为了更好的体验效果,IP访问不会自动跳转到手机站域名访问。</p>
  60. <p class="{empty name='$config.web_mobile_domain'}none{/empty} red" id="p_web_mobile_domain">先做好子域名 <span id="span_web_mobile_domain">{$config.web_mobile_domain|default=''}</span>.{$Request.rootDomain} 的解析及绑定 ,已处理请忽略! <a href="JavaScript:void(0);" onclick="click_to_eyou_1575506523('https://www.eyoucms.com/plus/view.php?aid=8432&origin_eycms=1','域名解析与绑定')">【操作示例】</a></p>
  61. {/eq}
  62. </dd>
  63. </dl>
  64. <dl class="row">
  65. <dt class="tit">
  66. <label for="site_url">URL启用https</label>
  67. </dt>
  68. <dd class="opt">
  69. <label class="curpoin"><input type="radio" name="web_is_https" value="1" {if condition='isset($config.web_is_https) && $config.web_is_https eq 1'}checked="checked"{/if}>开启</label>
  70. &nbsp;
  71. <label class="curpoin"><input type="radio" name="web_is_https" value="0" {if condition='empty($config.web_is_https)'}checked="checked"{/if}>关闭</label>
  72. <p class="notic">开启之后,sitemap.xml地图以及全站URL将带有https头协议</p>
  73. <p class="notic2">开启前,请先在空间正确配置SSL证书。<br/>在能正常访问https://域名的情况下,才开启这个功能,使整站的URL都强制采用https协议访问。</p>
  74. </dd>
  75. </dl>
  76. <dl class="row">
  77. <dt class="tit">
  78. <label for="switch">回收站</label>
  79. </dt>
  80. <dd class="opt">
  81. <label class="curpoin"><input type="radio" name="web_recycle_switch" value="0" {if condition='empty($config.web_recycle_switch)'}checked="checked"{/if}>开启</label>
  82. &nbsp;
  83. <label class="curpoin"><input type="radio" name="web_recycle_switch" value="1" {if condition='!empty($config.web_recycle_switch)'}checked="checked"{/if}>关闭</label>
  84. <input type="hidden" name="recycle_is_clear" id="recycle_is_clear" value="1">
  85. </dd>
  86. </dl>
  87. <dl class="row">
  88. <dt class="tit">
  89. <label for="other_pcwapjs">pc跳转手机端js</label>
  90. </dt>
  91. <dd class="opt">
  92. <label class="curpoin"><input type="radio" name="other_pcwapjs" value="0" {if condition='empty($other_pcwapjs)'}checked="checked"{/if}>追加</label>
  93. &nbsp;
  94. <label class="curpoin"><input type="radio" name="other_pcwapjs" value="1" {if condition='!empty($other_pcwapjs)'}checked="checked"{/if}>关闭</label>
  95. <p class="notic">追加之后,生成静态模式下,自动在PC端模板头部head标签出现一段PC跳转手机端的JS代码,当在手机端访问PC端URL时,自动跳到相应的手机端URL。</p>
  96. </dd>
  97. </dl>
  98. <dl class="row">
  99. <dt class="tit">
  100. <label for="web_stypeid_open">文档副栏目</label>
  101. </dt>
  102. <dd class="opt">
  103. <label class="curpoin"><input type="radio" name="web_stypeid_open" value="1" {if condition='isset($config.web_stypeid_open) && $config.web_stypeid_open eq 1'}checked="checked"{/if}>开启</label>
  104. &nbsp;
  105. <label class="curpoin"><input type="radio" name="web_stypeid_open" value="0" {if condition='empty($config.web_stypeid_open)'}checked="checked"{/if}>关闭</label>
  106. <p class="notic">开启之后,将在发布/编辑文档的页面出现选择副栏目,该功能会过多消耗性能,请悉知。</p>
  107. </dd>
  108. </dl>
  109. <dl class="row">
  110. <dt class="tit">
  111. <label for="absolute_path_open">启用绝对网址</label>
  112. </dt>
  113. <dd class="opt">
  114. <label class="curpoin"><input type="radio" name="absolute_path_open" value="1" {if condition='isset($config.absolute_path_open) && $config.absolute_path_open eq 1'}checked="checked"{/if}>开启</label>
  115. &nbsp;
  116. <label class="curpoin"><input type="radio" name="absolute_path_open" value="0" {if condition='empty($config.absolute_path_open)'}checked="checked"{/if}>关闭</label>
  117. <p class="notic">开启此项后附件、图片、栏目链接、文档链接等启用绝对网址</p>
  118. </dd>
  119. </dl>
  120. <!--
  121. {if condition="$php_servicemeal >= 2"}
  122. <dl class="row">
  123. <dt class="tit">
  124. <label for="web_citysite_open">多站点</label>
  125. </dt>
  126. <dd class="opt">
  127. <label class="curpoin"><input type="radio" name="web_citysite_open" value="1" {if condition='isset($config.web_citysite_open) && $config.web_citysite_open eq 1'}checked="checked"{/if}>开启</label>
  128. &nbsp;
  129. <label class="curpoin"><input type="radio" name="web_citysite_open" value="0" {if condition='empty($config.web_citysite_open)'}checked="checked"{/if}>关闭</label>
  130. <p class="notic">开启之后,如果当前URL模式是静态页面,系统自动切换动态URL,多城市目前仅支持动态URL、伪静态这两种模式。</p>
  131. </dd>
  132. </dl>
  133. {/if}
  134. -->
  135. <dl class="row none">
  136. <dt class="tit">
  137. <label for="web_cmspath">系统安装目录</label>
  138. </dt>
  139. <dd class="opt">
  140. <input id="web_cmspath" name="web_cmspath" value="{$config.web_cmspath|default=''}" class="input-txt" type="text" />
  141. <p class="notic">目录后面不要带 / 反斜杆,一般适用于EyouCms安装在子目录</p>
  142. </dd>
  143. </dl>
  144. <dl class="row">
  145. <dt class="tit">
  146. <label for="web_tpl_theme">前台模板风格</label>
  147. </dt>
  148. <dd class="opt">
  149. <select name="web_tpl_theme">
  150. <option value="">默认风格</option>
  151. {volist name='$tpl_theme_list' id='vo'}
  152. {notin name="$vo" value="default,plugins,weapp,pc,mobile,bom_backup"}
  153. <option value="{$vo}" {eq name='$config.web_tpl_theme' value='$vo'}selected{/eq}>{$vo}</option>
  154. {/notin}
  155. {/volist}
  156. </select>
  157. &nbsp;<a href="JavaScript:void(0);" onclick="click_to_eyou_1575506523('https://www.eyoucms.com/plus/view.php?aid=9976&origin_eycms=1','如何防止网站模板文件被仿盗?')" style="font-size: 12px;padding-left: 38px;position:absolute;top: 18px;">查看教程?</a>
  158. <p class="notic">如果是静态URL模式,每次切换请重新生成所有静态页面!</p>
  159. </dd>
  160. </dl>
  161. <div class="bot">
  162. <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onClick="adsubmit();">确认提交</a>
  163. </div>
  164. </div>
  165. </form>
  166. </div>
  167. <input type="hidden" id="show_uiset" value="{$show_uiset|default=''}">
  168. <script type="text/javascript">
  169. $(document).ready(function(){
  170. // 可视化编辑入口
  171. var show_uiset = $('#show_uiset').val();
  172. if ('pc+mobile' == show_uiset) { // 显示PC和手机入口
  173. $('#Uiset_index', window.parent.document).show();
  174. $('#Uiset_pc', window.parent.document).show();
  175. $('#Uiset_mobile', window.parent.document).show();
  176. } else if ('pc' == show_uiset) { // 显示PC入口
  177. $('#Uiset_index', window.parent.document).show();
  178. $('#Uiset_pc', window.parent.document).show();
  179. $('#Uiset_mobile', window.parent.document).hide();
  180. } else if ('mobile' == show_uiset) { // 显示手机入口
  181. $('#Uiset_index', window.parent.document).show();
  182. $('#Uiset_pc', window.parent.document).hide();
  183. $('#Uiset_mobile', window.parent.document).show();
  184. } else { // 隐藏PC和手机入口
  185. $('#Uiset_index', window.parent.document).hide();
  186. $('#Uiset_pc', window.parent.document).hide();
  187. $('#Uiset_mobile', window.parent.document).hide();
  188. }
  189. // 升级提醒
  190. // $('input[name=web_show_popup_upgrade]').click(function(){
  191. // var value = $(this).val();
  192. // if(value == 1){
  193. // layer.alert('第一时间收到系统更新并弹窗提醒', {icon: 6, title: false, closeBtn: false, btn:['确定']});
  194. // } else if (value == -1) {
  195. // layer.alert('不弹窗提醒,请及时点击系统更新', {icon: 7, title: false, closeBtn: false, btn:['确定']});
  196. // } else if (value == 2) {
  197. // layer.alert('不更新可能有安全隐患,请知悉!', {icon: 5, title: false, closeBtn: false, btn:['确定']});
  198. // }
  199. // });
  200. // 手机域名配置
  201. $('input[name=web_mobile_domain_open]').click(function(){
  202. if($(this).val() == 1){
  203. $('#dl_web_mobile_domain').show();
  204. }else{
  205. $('#dl_web_mobile_domain').hide();
  206. }
  207. });
  208. // 输入手机站域名的事件
  209. $('#web_mobile_domain').keyup(function(){
  210. var web_mobile_domain = $(this).val();
  211. if (web_mobile_domain != '') {
  212. $('#p_web_mobile_domain').show();
  213. $('#span_web_mobile_domain').html(web_mobile_domain);
  214. } else {
  215. $('#p_web_mobile_domain').hide();
  216. }
  217. });
  218. $('input[name="web_is_https"]').click(function(){
  219. if (1 == $(this).val()) {
  220. layer.confirm('确认空间已配置SSL证书,否则网站无法访问?', {
  221. shade: layer_shade,
  222. area: ['480px', '190px'],
  223. move: false,
  224. title: '提示',
  225. btnAlign:'r',
  226. closeBtn: 3,
  227. btn: ['确定', '取消'] ,//按钮
  228. success: function () {
  229. $(".layui-layer-content").css('text-align', 'left');
  230. }
  231. }, function (index) {
  232. layer.close(index);
  233. }, function (index) {
  234. $('label[for=web_is_https1]').removeClass('selected');
  235. $('#web_is_https1').attr('checked','');
  236. $('label[for=web_is_https0]').addClass('selected');
  237. $('#web_is_https0').attr('checked','checked');
  238. layer.close(index);
  239. });
  240. }
  241. });
  242. $('input[name="web_recycle_switch"]').click(function(){
  243. if (1 == $(this).val()) {
  244. layer.confirm('是否清空回收站并关闭?', {
  245. shade: layer_shade,
  246. area: ['480px', '190px'],
  247. move: false,
  248. title: '提示',
  249. btnAlign:'r',
  250. closeBtn: 3,
  251. btn: ['确定', '取消'] ,//按钮
  252. success: function () {
  253. $(".layui-layer-content").css('text-align', 'left');
  254. }
  255. }, function (index) {
  256. layer.close(index);
  257. $('#recycle_is_clear').val(1);
  258. }, function (index) {
  259. layer.close(index);
  260. $('#recycle_is_clear').val(0);
  261. });
  262. } else {
  263. $('#recycle_is_clear').val(0);
  264. }
  265. });
  266. // $('input[name="web_citysite_open"]').click(function(){
  267. // if (1 == $(this).val()) {
  268. // $.ajax({
  269. // type : 'get',
  270. // url : "{:url('System/ajax_check_language_open', ['_ajax'=>1])}",
  271. // data : {},
  272. // dataType : 'json',
  273. // success : function(res){
  274. // if (res.code == 0) {
  275. // $('label[for=web_citysite_open1]').removeClass('selected');
  276. // $('#web_citysite_open1').attr('checked','');
  277. // $('label[for=web_citysite_open0]').addClass('selected');
  278. // $('#web_citysite_open0').attr('checked','checked');
  279. // layer.confirm('当前已开启多语言功能,不支持多城市站点!', {
  280. // shade: layer_shade,
  281. // area: ['480px', '190px'],
  282. // move: false,
  283. // title: '提示',
  284. // btnAlign:'r',
  285. // closeBtn: 3,
  286. // btn: ['确定'] ,//按钮
  287. // success: function () {
  288. // $(".layui-layer-content").css('text-align', 'left');
  289. // }
  290. // });
  291. // }
  292. // },
  293. // error: function(e){
  294. // showErrorAlert(e.responseText);
  295. // }
  296. // });
  297. // }
  298. // });
  299. });
  300. function adsubmit(){
  301. // 手机域名开关
  302. var web_mobile_domain_obj = $('input[name=web_mobile_domain]');
  303. if ($('input[name=web_mobile_domain_open]:checked').val() == 1) {
  304. if (web_mobile_domain_obj.val() == "{$subDomain|default='www'}") {
  305. showErrorMsg('手机站域名配置不能与主站域名一致!');
  306. web_mobile_domain_obj.focus();
  307. return false;
  308. }
  309. }
  310. layer_loading('正在处理');
  311. $('#handlepost').submit();
  312. }
  313. </script>
  314. {include file="public/footer" /}