Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

conf.htm 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="overflow-y: scroll;min-width:auto;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page min-hg-c-10">
  7. {include file="language/bar" /}
  8. <form class="form-horizontal" id="post_form" action="{:url('Language/conf')}" method="post">
  9. <div class="ncap-form-default">
  10. <dl class="row">
  11. <dt class="tit">
  12. <label>语言分离</label>
  13. </dt>
  14. <dd class="opt" style="width: auto;">
  15. <label class="curpoin"><input type="radio" id="language_split_1" name="language[language_split]" value="1" {notempty name="$global['language_split']"} checked="checked" {/notempty}/>开启</label>&nbsp;&nbsp;
  16. <label class="curpoin"><input type="radio" id="language_split_0" name="language[language_split]" value="0" {empty name="$global['language_split']"} checked="checked" {/empty}/>关闭</label>&nbsp;&nbsp;
  17. <p class="notic">开启后,数据不再同步,这些模块可以单独操作(栏目、广告、友情链接、留言表单等)</p>
  18. <input type="hidden" id="language_split_old" value="{$global['language_split']|default=0}">
  19. </dd>
  20. </dl>
  21. {eq name="'Language@customvar_arctype'|is_check_access" value="1"}
  22. {if condition="empty($global['language_split'])"}
  23. <dl class="row">
  24. <dt class="tit">
  25. <label>模板栏目变量</label>
  26. </dt>
  27. <dd class="opt" style="width: auto;">
  28. <a href="javascript:void(0);" data-href="{:url('Language/customvar_arctype')}" class="ncap-btn ncap-btn-green" onclick="openFullframe(this, '模板栏目变量', '90%', '90%');">管理</a>
  29. <span class="err"></span>
  30. <p class="notic"></p>
  31. </dd>
  32. </dl>
  33. {/if}
  34. {/eq}
  35. {eq name="'Language@pack_index'|is_check_access" value="1"}
  36. <dl class="row">
  37. <dt class="tit">
  38. <label>模板语言变量</label>
  39. </dt>
  40. <dd class="opt" style="width: auto;">
  41. <a href="javascript:void(0);" data-href="{:url('Language/pack_index')}" class="ncap-btn ncap-btn-green" onclick="openFullframe(this, '模板语言变量', '90%', '90%');">管理</a>
  42. <span class="err"></span>
  43. <p class="notic"></p>
  44. </dd>
  45. </dl>
  46. {/eq}
  47. {eq name="'Language@official_pack_index'|is_check_access" value="1"}
  48. <dl class="row">
  49. <dt class="tit">
  50. <label>官方语言包变量</label>
  51. </dt>
  52. <dd class="opt" style="width: auto;">
  53. <a href="javascript:void(0);" data-href="{:url('Language/official_pack_index')}" class="ncap-btn ncap-btn-green" onclick="openFullframe(this, '官方语言包变量', '90%', '90%');">管理</a>
  54. <span class="err"></span>
  55. <p class="notic"></p>
  56. </dd>
  57. </dl>
  58. {/eq}
  59. </div>
  60. </form>
  61. </div>
  62. <script type="text/javascript">
  63. $(function(){
  64. $('input[name="language[language_split]"]').click(function(){
  65. var language_split = $(this).val();
  66. var title = '开启语言分离后,栏目等数据将不再同步,如有执行栏目的增删改,将不能切换回关闭状态,否则会报错;<br/>有修改,如需要切换回关闭状态,建议删除语言包并重新创建。';
  67. layer.confirm(title, {
  68. shade: layer_shade,
  69. area: ['480px', '220px'],
  70. move: false,
  71. title: '提示',
  72. btnAlign:'r',
  73. closeBtn: 3,
  74. btn: ['确定', '取消'] ,//按钮
  75. success: function () {
  76. $(".layui-layer-content").css('text-align', 'left');
  77. }
  78. }, function (index, layero) {
  79. layer_loading('正在保存');
  80. $.ajax({
  81. type : 'post',
  82. url : "{:url('Language/conf', ['_ajax'=>1])}",
  83. data : $('#post_form').serialize(),
  84. dataType : 'json',
  85. success : function(res){
  86. layer.closeAll();
  87. if(res.code == 1){
  88. layer.msg(res.msg, {shade: layer_shade, time: 1000}, function(){
  89. window.location.reload();
  90. });
  91. }else{
  92. showErrorMsg(res.msg);
  93. }
  94. },
  95. error: function(e){
  96. layer.closeAll();
  97. showErrorAlert(e.responseText);
  98. }
  99. });
  100. }, function (index) {
  101. $('#language_split_'+$('#language_split_old').val()).prop('checked',true);
  102. layer.close(index);
  103. });
  104. });
  105. });
  106. </script>
  107. {include file="public/footer" /}