f096f58a8194ca8168afa88db590a9c1.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php /*a:5:{s:59:"/data/web/mall.valimart.net/app/admin/view/index/index.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/topnav.html";i:1657785098;s:59:"/data/web/mall.valimart.net/app/admin/view/public/left.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/footer.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="admincp-header">
  32. <div class="logo">
  33. <img src="<?php echo ds_get_pic('admin/common',config('ds_config.admin_backlogo')); ?>"/>
  34. </div>
  35. <div class="navbar">
  36. <ul class="fl" style="float:left;">
  37. <?php if(is_array($menu_list) || $menu_list instanceof \think\Collection || $menu_list instanceof \think\Paginator): if( count($menu_list)==0 ) : echo "" ;else: foreach($menu_list as $key=>$menu): ?>
  38. <li id="nav_<?php echo htmlentities($menu['name']); ?>" <?php if(!$menu['show']): ?>style="display:none"<?php endif; ?>>
  39. <a href="javascript:void(0)" onclick="openItem('<?php echo htmlentities($menu['name']); ?>')"><?php echo htmlentities($menu['text']); ?></a>
  40. </li>
  41. <?php endforeach; endif; else: echo "" ;endif; ?>
  42. </ul>
  43. <ul class="fr" style="float:right">
  44. <li>
  45. <span><?php echo htmlentities(lang('topnav_hello')); ?>,<?php echo session('admin_name'); ?></span>
  46. <div class="sub-meun">
  47. <dl>
  48. <dd><a href="<?php echo url('Index/modifypw'); ?>" target="main-frame"><i class="iconfont">&#xe67b;</i><?php echo htmlentities(lang('topnav_edit_password')); ?></a></dd>
  49. <dd><a href="javascript:dsLayerConfirm('<?php echo url('Login/logout'); ?>','<?php echo htmlentities(lang('topnav_logout_confirm')); ?>')"><i class="iconfont">&#xe70c;</i><?php echo htmlentities(lang('topnav_logout')); ?></a></dd>
  50. </dl>
  51. </div>
  52. </li>
  53. <li><a href="javascript:dsLayerConfirm('<?php echo url('Index/clear'); ?>','<?php echo htmlentities(lang('topnav_clear_confirm')); ?>')" target="main-frame"><?php echo htmlentities(lang('topnav_cache')); ?></a></li>
  54. <li><a href="<?php echo url('/home/Index/index'); ?>" target="_blank"><?php echo htmlentities(lang('topnav_visit_home')); ?></a></li>
  55. </ul>
  56. </div>
  57. </div>
  58. <div class="admincp-container">
  59. <div class="admincp-container-left">
  60. <div id="mainMenu">
  61. <?php if(is_array($menu_list) || $menu_list instanceof \think\Collection || $menu_list instanceof \think\Paginator): if( count($menu_list)==0 ) : echo "" ;else: foreach($menu_list as $menu_k=>$menu): ?>
  62. <ul id="sort_<?php echo htmlentities($menu['name']); ?>" <?php if($menu_k != 'dashboard'): ?>style="display:none"<?php endif; ?>>
  63. <?php if(is_array($menu['children']) || $menu['children'] instanceof \think\Collection || $menu['children'] instanceof \think\Paginator): if( count($menu['children'])==0 ) : echo "" ;else: foreach($menu['children'] as $submenu_key=>$submenu): $args_array = explode(",",$submenu['args']); ?>
  64. <li id="left_<?php echo $args_array[2].$args_array[1].$args_array[0] ?>"><a href="javascript:void(0)" onclick="openItem('<?php echo htmlentities($submenu['args']); ?>')" ><i class="iconfont"><?php echo (isset($submenu['ico']) && ($submenu['ico'] !== '')?$submenu['ico']:'&#xe652;'); ?></i><?php echo htmlentities($submenu['text']); ?></a></li>
  65. <?php endforeach; endif; else: echo "" ;endif; ?>
  66. </ul>
  67. <?php endforeach; endif; else: echo "" ;endif; ?>
  68. </div>
  69. </div>
  70. <div class="admincp-container-right">
  71. <div class="top-border"></div>
  72. <iframe src="<?php echo url('Dashboard/index'); ?>" id="main-frame" name="main-frame" style="overflow: visible;" frameborder="0" width="100%" height="94%" scrolling="yes" onload="window.parent"></iframe>
  73. </div>
  74. </div>
  75. <script>
  76. $(function() {
  77. $('#welcome,dashboard,dashboard').addClass('active');
  78. if ($.cookie('now_location_controller') != null) {
  79. openItem($.cookie('now_location_action') + ',' + $.cookie('now_location_controller') + ',' + $.cookie('now_location_module'));
  80. } else {
  81. $('#mainMenu>ul').first().css('display', 'block');
  82. //第一次进入后台时,默认定到欢迎界面
  83. $('#item_welcome').addClass('selected');
  84. $('#workspace').attr('src', ADMINSITEURL+'/Dashboard/welcome.html');
  85. }
  86. $('#iframe_refresh').click(function() {
  87. var fr = document.frames ? document.frames("workspace") : document.getElementById("workspace").contentWindow;
  88. fr.location.reload();
  89. });
  90. });
  91. function openItem(args) {
  92. spl = args.split(',');
  93. action = spl[0];
  94. try {
  95. controller = spl[1];
  96. module = spl[2];
  97. }
  98. catch (ex) {
  99. }
  100. if (typeof(controller) == 'undefined') {
  101. var module = args;
  102. }
  103. //顶部导航样式处理
  104. $('.actived').removeClass('actived');
  105. $('#nav_' + module).addClass('actived');
  106. //清除左侧样式
  107. $('.selected').removeClass('selected');
  108. //show
  109. $('#mainMenu ul').css('display', 'none');
  110. $('#sort_' + module).css('display', 'block');
  111. if (typeof(controller) == 'undefined') {
  112. //顶部菜单事件
  113. html = $('#sort_' + module + '>li').first().html();
  114. str = html.match(/openItem\('(.*)'\)/ig);
  115. arg = str[0].split("'");
  116. spl = arg[1].split(',');
  117. action = spl[0];
  118. controller = spl[1];
  119. module = spl[2];
  120. first_obj = $('#sort_' + module + '>li').first();
  121. $(first_obj).addClass('selected');
  122. } else {
  123. //左侧菜单事件
  124. //location
  125. $.cookie('now_location_module', module);
  126. $.cookie('now_location_controller', controller);
  127. $.cookie('now_location_action', action);
  128. $("#left_"+ module + controller + action).addClass('selected');
  129. }
  130. src = ADMINSITEURL + '/' + controller + '/' + action + '/';
  131. $('#main-frame').attr('src', src);
  132. }
  133. </script>