index.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2018/2/27/027
  6. * Time: 18:16
  7. */
  8. use yii\helpers\Url;
  9. use backend\assets\AppAsset;
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/js/index.js");
  11. ?>
  12. <div class="layui-layout layui-layout-admin">
  13. <!-- 顶部 -->
  14. <div class="layui-header header">
  15. <div class="layui-main mag0">
  16. <a href="#" class="logo">易购房</a>
  17. <!-- 显示/隐藏菜单 -->
  18. <a href="javascript:;" class="seraph hideMenu icon-caidan"></a>
  19. <!-- 顶级菜单 移动-->
  20. <ul class="layui-nav mobileTopLevelMenus" mobile>
  21. <li class="layui-nav-item" data-menu="contentManagement">
  22. <a href="javascript:;"><i class="seraph icon-caidan"></i><cite>菜单栏</cite></a>
  23. <dl class="layui-nav-child">
  24. <?php foreach ($model as $key=>$val){?>
  25. <dd class="<?php if($key == 0) echo 'layui-this'?>" data-menu="<?= $val['id']?>"><a href="javascript:;"><i class="layui-icon" data-icon="&#xe63c;">&#xe63c;</i><cite><?= $val['name']?></cite></a></dd>
  26. <?php } ?>
  27. </dl>
  28. </li>
  29. </ul>
  30. <!-- 顶级菜单 -->
  31. <ul class="layui-nav topLevelMenus" pc>
  32. <?php foreach ($model as $key=>$val){?>
  33. <li class="layui-nav-item <?php if($key == 0) echo 'layui-this'?>" data-menu="<?= $val['id']?>" >
  34. <a href="javascript:;"><i class="layui-icon" data-icon="&#xe63c;">&#xe63c;</i><cite><?= $val['name']?></cite></a>
  35. </li>
  36. <?php }?>
  37. </ul>
  38. <!-- 顶部右侧菜单 -->
  39. <ul class="layui-nav top_menu" style="background-color:inherit !important; position:absolute; right:0;top:0;">
  40. <!-- <li class="layui-nav-item" pc>-->
  41. <!-- <a href="javascript:;" class="clearCache"><i class="layui-icon" data-icon="&#xe640;">&#xe640;</i><cite>清除缓存</cite><span class="layui-badge-dot"></span></a>-->
  42. <!-- </li>-->
  43. <li class="layui-nav-item" id="userInfo">
  44. <a href="javascript:;">
  45. <!-- <img src="images/face.jpg" class="layui-nav-img userAvatar" width="35" height="35">-->
  46. <cite class="adminName"><?php echo Yii::$app->session['user_info']['user']?></cite></a>
  47. <dl class="layui-nav-child">
  48. <!-- <dd><a href="javascript:;" data-url="page/user/userInfo.html"><i class="seraph icon-ziliao" data-icon="icon-ziliao"></i><cite>个人资料</cite></a></dd>-->
  49. <dd><a href="javascript:;" data-url="/user/pwdsave"><i class="seraph icon-xiugai" data-icon="icon-xiugai"></i><cite>修改密码</cite></a></dd>
  50. <dd><a href="/public/logout" class="signOut"><i class="seraph icon-tuichu"></i><cite>退出</cite></a></dd>
  51. </dl>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. <!-- 左侧导航 -->
  57. <div class="layui-side layui-bg-black">
  58. <!-- <div class="user-photo">
  59. <a class="img" title="我的头像" ><img src="images/face.jpg" class="userAvatar"></a>
  60. <p>你好!<span class="userName">用户1</span>, 欢迎登录</p>
  61. </div> -->
  62. <!-- 搜索 -->
  63. <!-- <div class="layui-form component">
  64. <select name="search" id="search" lay-search lay-filter="searchPage">
  65. <option value="">搜索页面或功能</option>
  66. <option value="1">layer</option>
  67. <option value="2">form</option>
  68. </select>
  69. <i class="layui-icon">&#xe615;</i>
  70. </div> -->
  71. <div class="navBar layui-side-scroll" id="navBar">
  72. <ul class="layui-nav layui-nav-tree">
  73. <li class="layui-nav-item layui-this">
  74. <a href="javascript:;" data-url="<?= Url::to('index/main')?>"><i class="layui-icon" data-icon=""></i><cite>后台首页</cite></a>
  75. </li>
  76. </ul>
  77. </div>
  78. </div>
  79. <!-- 右侧内容 -->
  80. <div class="layui-body layui-form">
  81. <div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
  82. <ul class="layui-tab-title top_tab" id="top_tabs">
  83. <li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>后台首页</cite></li>
  84. </ul>
  85. <ul class="layui-nav closeBox" id="closeBox">
  86. <li class="layui-nav-item">
  87. <a href="javascript:;">
  88. <i class="layui-icon caozuo">&#xe643;</i> 页面操作</a>
  89. <dl class="layui-nav-child">
  90. <dd><a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#x1002;</i> 刷新当前</a></dd>
  91. <dd><a href="javascript:;" class="closePageOther"><i class="seraph icon-prohibit"></i> 关闭其他</a></dd>
  92. <dd><a href="javascript:;" class="closePageAll"><i class="seraph icon-guanbi"></i> 关闭全部</a></dd>
  93. </dl>
  94. </li>
  95. </ul>
  96. <div class="layui-tab-content clildFrame">
  97. <div class="layui-tab-item layui-show">
  98. <iframe src="<?= Url::to('/index/main')?>"></iframe>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <!-- 底部 -->
  104. <div class="layui-footer footer">
  105. <p><span>海南品房阁 @2018 </span>  </p>
  106. </div>
  107. </div>
  108. <!-- 移动导航 -->
  109. <div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
  110. <div class="site-mobile-shade"></div>