Authored by mali

样式调整

... ... @@ -11,14 +11,6 @@
<script type="text/javascript" src="../../js/jquery/easyui/jquery.easyui.min.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
$(".div2").click(function(){
$(this).next("div").slideToggle("slow")
.siblings(".div3:visible").slideUp("slow");
});
});
</script>
<style>
body{ margin:0;font-family:微软雅黑;}
.left{ width:200px; height:100%; border-right:1px solid #CCCCCC ;#FFFFFF; color:#000000; font-size:14px; text-align:center;}
... ... @@ -34,8 +26,8 @@
</style>
<div class="easyui-accordion left" style="width:500px;">
<div class="div1" style="width: 200px">
<div class="div2"><div class="jbsz"> </div>基本管理</div>
<div class="div1">
<!--<div class="div2"><div class="jbsz"> </div>基本管理</div>
<div class="div3">
<ul>
<li> 网站配置</li>
... ... @@ -50,7 +42,7 @@
<li> 文章分类</li>
<li> 添加文章</li>
</ul>
</div>
</div>-->
</div>
</div>
... ... @@ -89,6 +81,11 @@
}
});
});
$(".div2").click(function(){
$(this).next("div").slideToggle("slow")
.siblings(".div3:visible").slideUp("slow");
});
}
$.post(contextPath + "/loginController/getLoginUserMenu.do", function(data) {
... ... @@ -96,40 +93,27 @@
for (var key in data) {
var dataList = data[key];
var subMenuDiv = '';
var subMenuHeight = 0;
var liList = '';
for (var subMenu in dataList) {
subMenuDiv += '<p class="menuClass" url="';
subMenuDiv += dataList[subMenu]['menu_url'];
subMenuDiv += '" menu_id="';
subMenuDiv += dataList[subMenu]['id'];
subMenuDiv += '">';
subMenuDiv += dataList[subMenu]['menu_name'];
subMenuDiv += '</p>';
liList += '<li class="menuClass" url="';
liList += dataList[subMenu]['menu_url'];
liList += '" menu_id="';
liList += dataList[subMenu]['id'];
liList += '">';
liList += dataList[subMenu]['menu_name'];
liList += '</li>';
subMenuHeight = subMenu * 30 + 30;
}
var divGroup = '<div class="panel" style="width: 498px;">';
divGroup += '<div class="panel-header accordion-header accordion-header-selected" style="height: 16px; width: 488px;">';
divGroup += '<div class="panel-title">' + key + '</div>';
divGroup += '<div class="panel-tool">';
divGroup += '<a href="javascript:void(0)" class="panel-tool-collapse" style="display: none;"></a>';
divGroup += '<a href="javascript:void(0)" class="accordion-collapse"></a>';
divGroup += '</div>';
divGroup += '</div>';
divGroup += '<div title="" style="padding: 10px; width: 300px; height: ';
divGroup += subMenuHeight;
divGroup += 'px;" class="panel-body accordion-body" id="">';
divGroup += subMenuDiv;
divGroup += '</div>';
divGroup += ' </div>';
var divGroup = '<div class="div2"><div class="jbsz"> </div>' + key + '</div>';
divGroup += '<div class="div3">';
divGroup += '<ul>';
divGroup += liList;
divGroup += '</ul>';
divGroup += '</div>';
//$('.easyui-accordion').append(divGroup);
$('.div1').append(divGroup);
}
//$("#leftMenu").myTabs("select", 0);
menuClickInit();
});
... ...