submenu.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .subside{
  5. position: fixed;
  6. z-index: 10;
  7. top: 15px;
  8. left: 40px;
  9. width: 200px;
  10. bottom: 0;
  11. background: #ffffff;
  12. color: #333333;
  13. overflow: auto;
  14. padding: 10px;
  15. border-right: 1px solid #e7eaec;
  16. }
  17. .subside .subside-title{
  18. font-size: 18px;
  19. padding: 0 10px;
  20. font-weight: bold;
  21. line-height: 50px;
  22. }
  23. .subside .subside-list{
  24. font-size: 17px;
  25. padding: 0 10px;
  26. line-height: 45px;
  27. height: 45px;
  28. color: var(--themeColor);
  29. overflow: hidden;
  30. font-weight: 600;
  31. }
  32. .subside .subside-sublist{
  33. font-size: 15px;
  34. padding: 0 10px;
  35. line-height: 45px;
  36. cursor: pointer;
  37. color: #333333;
  38. height: 45px;
  39. overflow: hidden;
  40. }
  41. .subside .subside-sublist.cur{
  42. background-color: #EBF2FF;
  43. border-right: 5px solid var(--themeColor);
  44. color: var(--themeColor);
  45. }
  46. .subside .subside-sublist:hover{
  47. background-color: rgba(235, 242, 255, 0.5);
  48. }
  49. .subside .subside-sublist.cur:hover{
  50. background-color: #EBF2FF;
  51. }
  52. .submain{
  53. position: fixed;
  54. z-index: 10;
  55. top: 15px;
  56. left: 240px;
  57. right: 15px;
  58. bottom: 0;
  59. background: #ffffff;
  60. overflow: hidden;
  61. }
  62. </style>
  63. <div class="subside">
  64. <div class="subside-title">{$ptitle}</div>
  65. {volist name="submenus" id="v"}
  66. {if condition="!empty($v['child'])"}
  67. <div class="subside-list">{$v.title}</div>
  68. {volist name="v['child']" id="vo" key="k"}
  69. {if condition="$vo['url'] eq $furl"}
  70. <a class="JmenuItem" href="{$vo.url}">
  71. <div class="subside-sublist cur">{$vo.title}</div>
  72. </a>
  73. {else /}
  74. <a class="JmenuItem" href="{$vo.url}">
  75. <div class="subside-sublist">{$vo.title}</div>
  76. </a>
  77. {/if}
  78. {/volist}
  79. {else /}
  80. {if condition="$v['url'] eq $furl"}
  81. <a class="JmenuItem" href="{$v.url}">
  82. <div class="subside-sublist cur">{$v.title}</div>
  83. </a>
  84. {else /}
  85. <a class="JmenuItem" href="{$v.url}">
  86. <div class="subside-sublist">{$v.title}</div>
  87. </a>
  88. {/if}
  89. {/if}
  90. {/volist}
  91. </div>
  92. {if condition="$isAreaDispatch eq 1 and $seatinfo"}
  93. {include file="orders_dispatch/telrecord" /}
  94. {/if}
  95. <div class="submain" id="main-iframe">
  96. <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{$furl}" frameborder="0" data-id="index_v1.html" seamless></iframe>
  97. </div>
  98. {/block}
  99. {block name="script"}
  100. <script>
  101. $(window).bind("resize",function(){
  102. var width=$(".jqGrid_wrapper").width();
  103. $("#table2").setGridWidth(width);
  104. });
  105. $(function () {
  106. $(document).on('click','.JmenuItem',function () {
  107. $('.subside-sublist').removeClass('cur');
  108. $(this).find('.subside-sublist').addClass('cur');
  109. let url = $(this).attr('href');
  110. let str = '<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="'+url+'" frameborder="0" data-id="'+url+'" seamless></iframe>';
  111. $('#main-iframe').html(str);
  112. return false;
  113. });
  114. });
  115. </script>
  116. {/block}