Ei kuvausta
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.

ajax_weapp_quickmenu.htm 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  8. <!-- Apple devices fullscreen -->
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <!-- Apple devices fullscreen -->
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  12. <link href="__SKIN__/css/main.css?v={$version}" rel="stylesheet" type="text/css">
  13. <link href="__SKIN__/font/css/font-awesome.min.css?v={$version}" rel="stylesheet" />
  14. <link href="__SKIN__/css/index.css?v={$version}" rel="stylesheet" type="text/css">
  15. <!--[if IE 7]>
  16. <link rel="stylesheet" href="__SKIN__/font/css/font-awesome-ie7.min.css">
  17. <![endif]-->
  18. <link href="__SKIN__/css/diy_style.css?v={$version}" rel="stylesheet" type="text/css" />
  19. {include file="public/theme_css" /}
  20. <script type="text/javascript">
  21. var eyou_basefile = "{$Request.baseFile}";
  22. var module_name = "{$Think.const.MODULE_NAME}";
  23. var __root_dir__ = "__ROOT_DIR__";
  24. var __lang__ = "{$admin_lang}";
  25. var __main_lang__ = "{$main_lang}";
  26. </script>
  27. <script type="text/javascript" src="__STATIC__/common/js/jquery.min.js?v={$version}"></script>
  28. <script type="text/javascript" src="__SKIN__/js/jquery-ui/jquery-ui.min.js?v={$version}"></script>
  29. <script type="text/javascript" src="__PUBLIC__/plugins/layer-v3.1.0/layer.js?v={$version}"></script>
  30. <script src="__SKIN__/js/global.js?v={$version}"></script>
  31. </head>
  32. <body style="background-color:#F4F4F4;padding:6px; overflow: auto;min-width:auto;">
  33. {empty name="menuList"}
  34. <div class="bDiv" style="height: auto;">
  35. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  36. <table style="width: 100%;">
  37. <tbody>
  38. <tr>
  39. <td class="no-data" align="center" axis="col0" colspan="50" style="height: 50px;">
  40. <div class="no_row" style="line-height: 38px;min-height: 50px;">
  41. 没有发现已安装的插件
  42. </div>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. {else/}
  50. <form id="post_form">
  51. <div class="navboxs sort-list">
  52. {volist name='$menuList' id='vo'}
  53. <div>
  54. <label style="cursor: pointer;">
  55. <span><input type="checkbox" name="checkedids[]" value="{$vo.id}" {if condition="$vo.checked"}checked{/if} /></span>{$vo.name}
  56. <input type="hidden" name="ids[]" value="{$vo.id}" />
  57. </label>
  58. </div>
  59. {/volist}
  60. </div>
  61. <div class="navboxs_bt" onclick="check_submit();">确认提交</div>
  62. </form>
  63. {/empty}
  64. <script type="text/javascript">
  65. $(function () {
  66. /** 拖动排序相关 js*/
  67. $( ".sort-list" ).sortable({
  68. start: function( event, ui) {
  69. }
  70. ,stop: function( event, ui ) {
  71. }
  72. });
  73. $( ".sort-list" ).disableSelection();
  74. });
  75. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  76. // 表单提交
  77. function check_submit(){
  78. layer_loading('正在处理');
  79. $.ajax({
  80. url: "{:url('Index/ajax_weapp_quickmenu', ['_ajax'=>1])}",
  81. type: 'POST',
  82. dataType: 'JSON',
  83. data: $('#post_form').serialize(),
  84. success: function(res){
  85. layer.closeAll();
  86. if (res.code == 1) {
  87. var _parent = parent;
  88. _parent.layer.close(parentObj);
  89. _parent.layer.msg(res.msg, {shade: layer_shade, time: 1000}, function(){
  90. _parent.gourl(res.url);
  91. });
  92. } else {
  93. showErrorMsg(res.msg);
  94. }
  95. },
  96. error: function(e){
  97. layer.closeAll();
  98. layer.alert(e.responseText, {icon:5, time:1500});
  99. }
  100. });
  101. return false;
  102. }
  103. </script>
  104. {include file="public/footer" /}