📄 sidebar.jsp
字号:
<% // sidebar variables
String[] sidebarItems = {
"Install Checklist",
"Language",
"Database",
"Admin Setup"
};
String[] links = {
"setup.jsp",
"setup2.jsp",
"setup3.jsp",
"setup5.jsp"
};
boolean[] sidebarActive = new boolean[4];
for (int i=0; i<sidebarActive.length; i++) {
sidebarActive[i] = getSessionBoolean(session,"sidebar."+i+".active");
}
String[] lights = new String[4];
for (int i=0; i<lights.length; i++) {
String temp = getSessionString(session,"sidebar."+i+".light");
if (temp == null) {
temp = RED;
}
lights[i] = temp;
}
%>
<center>
<font size="-2">Install Status</font>
</center>
<p>
<% for (int i=0; i<sidebarItems.length; i++) {
boolean active = sidebarActive[i];
boolean link = lights[i].equals(YELLOW) || lights[i].equals(GREEN);
%>
<table bgcolor="<%= active?"#999999":"#cccccc" %>" cellpadding="0" cellspacing="0" border="0" width="160">
<tr>
<td>
<table bgcolor="<%= active?"#999999":"#cccccc" %>" cellpadding="3" cellspacing="1" border="0" width="100%">
<tr bgcolor="#eeeeee">
<td width="1%"><%= lights[i] %></td>
<td width="99%" background="images/grad_gray.gif">
<font size="-1"<%= active?"":" color=\"#666666\"" %>>
<%= link?("<a href=\""+links[i]+"\">"):"" %><b><%= sidebarItems[i] %></b><%= link?"</a>":"" %>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<% } %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -