index.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <title>{block name="title"}{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}{/block}</title>
  5. <meta charset="utf-8">
  6. <meta name="renderer" content="webkit">
  7. <meta name="format-detection" content="telephone=no">
  8. <meta name="apple-mobile-web-app-capable" content="yes">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=0.4">
  12. <link rel="shortcut icon" href="{:sysconf('site_icon')}">
  13. <link rel="stylesheet" href="__ROOT__/static/plugs/awesome/fonts.css?at={:date('md')}">
  14. <link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?at={:date('md')}">
  15. <link rel="stylesheet" href="__ROOT__/static/theme/css/console.css?at={:date('md')}">
  16. {block name="style"}{/block}
  17. <script>window.ROOT_URL = '__ROOT__';</script>
  18. <script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
  19. <style>
  20. .layui-header .layui-layout-right li a{
  21. padding-right: 35px;
  22. }
  23. .tangram-suggestion-main{
  24. z-index: 999;
  25. }
  26. </style>
  27. <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=E4Y9cdBjAvDM6DjGcOmBA4v2GcEXAWvG"></script>
  28. </head>
  29. <body class="layui-layout-body">
  30. {block name='body'}
  31. <div class="layui-layout layui-layout-admin layui-layout-left-hide">
  32. <!-- 顶部菜单 开始 -->
  33. <div class="layui-header notselect">
  34. <a href="{:url('@')}" class="layui-logo layui-elip">
  35. {:sysconf('app_name')} {if sysconf('app_version')}<sup class="padding-left-5">{:sysconf('app_version')}</sup>{/if}
  36. </a>
  37. <ul class="layui-nav layui-layout-left">
  38. <li class="layui-nav-item" lay-unselect>
  39. <a class="text-center" data-target-menu-type>
  40. <i class="layui-icon layui-icon-spread-left"></i>
  41. </a>
  42. </li>
  43. {foreach $menus as $oneMenu}
  44. <li class="layui-nav-item">
  45. <a data-menu-node="m-{$oneMenu.id}" data-open="{$oneMenu.url}">
  46. {notempty name='oneMenu.icon'}<span class='{$oneMenu.icon} padding-right-5'></span>{/notempty}
  47. <span>{$oneMenu.title|default=''}</span>
  48. </a>
  49. </li>
  50. {/foreach}
  51. </ul>
  52. <ul class="layui-nav layui-layout-right">
  53. <li lay-unselect class="layui-nav-item"><a data-reload><i class="layui-icon layui-icon-refresh-3"></i></a></li>
  54. {notempty name='Think.session.user.username'}
  55. <li class="layui-nav-item">
  56. <dl class="layui-nav-child">
  57. <!-- <dd lay-unselect><a data-modal="{:url('admin/index/info',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-set-fill margin-right-5"></i>基本资料</a></dd>-->
  58. <dd lay-unselect><a data-modal="{:url('admin/index/pass',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-component margin-right-5"></i>安全设置</a></dd>
  59. {notempty name='GLOBALS.AdminUserRightOption'}{foreach $GLOBALS.AdminUserRightOption as $option}{if auth($option.node)}
  60. <dd lay-unselect><a data-{$option.type}="{$option.action}"><i class="{$option.icon} margin-right-5"></i>{$option.title}</a></dd>
  61. {/if}{/foreach}{/notempty}
  62. <dd lay-unselect><a data-confirm="确定要退出登录吗?" data-load="{:url('admin/login/out')}"><i class="layui-icon layui-icon-release margin-right-5"></i>退出登录</a></dd>
  63. </dl>
  64. <a><span><i class="layui-icon layui-icon-username margin-right-5"></i> {:session('user.username')}</span></a>
  65. </li>
  66. {else}
  67. <li class="layui-nav-item">
  68. <a data-href="{:url('@admin/login')}"><i class="layui-icon layui-icon-username"></i> 立即登录</a>
  69. </li>
  70. {/notempty}
  71. </ul>
  72. </div>
  73. <!-- 顶部菜单 结束 -->
  74. <!-- 左则菜单 开始 -->
  75. <div class="layui-side layui-bg-black notselect">
  76. <div class="layui-side-scroll">
  77. {foreach $menus as $oneMenu}
  78. {notempty name='oneMenu.sub'}
  79. <ul class="layui-nav layui-nav-tree layui-hide" data-menu-layout="m-{$oneMenu.id}">
  80. {foreach $oneMenu.sub as $twoMenu}
  81. {empty name='twoMenu.sub'}
  82. <li class="layui-nav-item">
  83. <a data-target-tips="{$twoMenu.title}" data-menu-node="m-{$oneMenu.id}-{$twoMenu.id}" data-open="{$twoMenu.url}">
  84. <span class='{$twoMenu.icon|default="layui-icon layui-icon-link"}'></span>
  85. <span class="nav-text padding-left-5">{$twoMenu.title}</span>
  86. </a>
  87. </li>
  88. {else}
  89. <li class="layui-nav-item" data-submenu-layout='m-{$oneMenu.id}-{$twoMenu.id}'>
  90. <a data-target-tips="{$twoMenu.title}" style="background:#393D49">
  91. <span class='nav-icon layui-hide {$twoMenu.icon|default="layui-icon layui-icon-triangle-d"}'></span>
  92. <span class="nav-text padding-left-5">{$twoMenu.title}</span>
  93. </a>
  94. <dl class="layui-nav-child">
  95. {foreach $twoMenu.sub as $thrMenu}
  96. <dd>
  97. <a data-target-tips="{$thrMenu.title}" data-open="{$thrMenu.url}" data-menu-node="m-{$oneMenu.id}-{$twoMenu.id}-{$thrMenu.id}">
  98. <span class='nav-icon padding-left-5 {$thrMenu.icon|default="layui-icon layui-icon-link"}'></span>
  99. <span class="nav-text padding-left-5">{$thrMenu.title}</span>
  100. </a>
  101. </dd>
  102. {/foreach}
  103. </dl>
  104. </li>
  105. {/empty}
  106. {/foreach}
  107. </ul>
  108. {/notempty}
  109. {/foreach}
  110. </div>
  111. </div>
  112. <!-- 左则菜单 结束 -->
  113. <!-- 主体内容 开始 -->
  114. <div class="layui-body layui-bg-gray">{block name='content'}{/block}</div>
  115. <!-- 主体内容 结束 -->
  116. </div>
  117. {/block}
  118. <script src="__ROOT__/static/plugs/layui/layui.all.js"></script>
  119. <script src="__ROOT__/static/plugs/require/require.js"></script>
  120. <script src="__ROOT__/static/admin.js"></script>
  121. {block name='script'}{/block}
  122. </body>
  123. </html>