...
|
...
|
@@ -42,9 +42,9 @@ |
|
|
<div id="sidebar">
|
|
|
<ul>
|
|
|
<li class=""><a href="#"><i class="icon icon-home"></i> <span>Dashboard</span></a></li>
|
|
|
<li class="active" onclick="clickMenuToPage('/jsp/table.jsp')"><a href="#" ><i class="icon icon-th"></i> <span>Tables</span></a></li>
|
|
|
<li><a href="#" onclick="clickMenuToPage('jsp/host/hostGroupList.jsp')"><i class="icon icon-th"></i> <span>主机组</span></a></li>
|
|
|
<li><a href="#" onclick="clickMenuToPage('jsp/host/hostInfoList.jsp')"><i class="icon icon-th"></i> <span>主机信息</span></a></li>
|
|
|
<li class="" id="jsptablejsp" onclick="clickMenuToPage('/jsp/table.jsp')"><a href="#" ><i class="icon icon-th"></i> <span>Tables</span></a></li>
|
|
|
<li class="" id="jsphosthostGroupListjsp" onclick="clickMenuToPage('jsp/host/hostGroupList.jsp')" ><a href="#" ><i class="icon icon-th"></i> <span>主机组</span></a></li>
|
|
|
<li class="" id="jsphosthostInfoListjsp" onclick="clickMenuToPage('jsp/host/hostInfoList.jsp')" ><a href="#" ><i class="icon icon-th"></i> <span>主机信息</span></a></li>
|
|
|
|
|
|
|
|
|
</ul>
|
...
|
...
|
@@ -56,7 +56,8 @@ |
|
|
|
|
|
<script type="text/javascript">
|
|
|
function clickMenuToPage(page){
|
|
|
// $(this).addClass("active");
|
|
|
var g = page.replace(/\//g,"").replace(".","");
|
|
|
$("#"+g).addClass("active").siblings().removeClass("active");
|
|
|
//加载左侧内容
|
|
|
$("#content").load(contextPath+page);
|
|
|
}
|
...
|
...
|
|