<%
ArrayList<HashMap<String,String>> a=null;
a = request.getAttribute("departmentTree");
for(int i=0;i<a.size();i++){
HashMap<String,String> dept = a.get(i);
if ("follder".equals(dept.get("type"))){
}
}
%>
package cn.kalatu.shfy.controller.xt;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import cn.kalatu.frame.controller.KalakalaControler;
import cn.kalatu.frame.util.dbConn;
public class Guwen extends KalakalaControler {
@Override
public ModelAndView AfterSubmit(Object arg0) throws Exception {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean doBeforeValidate(HttpServletRequest arg0, Object arg1) {
// TODO Auto-generated method stub
return false;
}
@Override
public Object doBeforeViewShow(Object arg0) {
//
int gwxzxh = 1;
// 取顾问小组问题列表
String sql = "select a.WTLB_ID,a.WTLB_MC,b.WTLB_ID xzzt from dm_wtlb a "
+ "left join dm_gwxz_wtlb b on b.GWXZ_XH="
+ gwxzxh
+ " and a.WTLB_ID=b.WTLB_ID" + " where a.WTLB_FL = 0 ";
ArrayList<HashMap<String, String>> a = dbConn.getAllRecorders(sql);
request.setAttribute("wtdlList", a);
// 取顾问小组咨询师列表
return null;
}
protected Map<String, Object> referenceData(HttpServletRequest request)
throws Exception {
doBeforeViewShow(null);
return null;
}
}
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@page session="true"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%><head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title><fmt:message key="title" /></title>
<link href="css/mainFrame.css" rel="stylesheet" type="text/css" />
<script src="js/body.js" type="text/javascript"></script>
<script src="js/datetime.js" type="text/javascript"></script>
</head>
<body>
<form:form commandName="xt_guwen" action="guwen.html" method="post">
<table width="180" border="0">
<tr>
<td><button onclick ="javascript:location.href='xadd.html'">新增顾问小组</button></td>
<td><button onclick ="javascript:location.href='xg.html'">修改成员</button></td>
<td><button οnclick="actionType.value='new';userForm.submit()">删除</button></td>
</tr>
</table>
<table width="415" height="220" border="0">
<tr>
<td colspan="3">顾问小组名称</td>
</tr>
<c:forEach items="${wtdlList}" var="wtml" varStatus="stat">
<c:if test="${stat.index %3 == 0 }"> <tr> </c:if>
<td>${wtml.WTLB_MC }<input type="checkbox" name="wtml" value="${wtml.WTLB_ID }" <c:if test="${wtml.XZZT !=null }">checked</c:if> /> </td>
</c:forEach>
<c:if test="${stat.index %3 == 2 }"> </tr> </c:if>
</table>
<table width="415" height="220" border="0">
<tr>
<td colspan="3">同类问题咨询员列表 全选/取消全选</td>
</tr>
<tr>
<td><label>姓名</label>
<label>
<input type="checkbox" name="checkbox52" value="checkbox" />
</label></td>
<td><label>姓名</label>
<label>
<input type="checkbox" name="checkbox5" value="checkbox" />
</label></td>
<td>姓名
<label>
<input type="checkbox" name="checkbox9" value="checkbox" />
</label></td>
</tr>
<tr>
<td>姓名
<label>
<input type="checkbox" name="checkbox2" value="checkbox" />
</label></td>
<td>姓名
<label>
<input type="checkbox" name="checkbox6" value="checkbox" />
</label></td>
<td>姓名
<label>
<input type="checkbox" name="checkbox10" value="checkbox" />
</label></td>
</tr>
<tr>
<td>姓名
<label>
<input type="checkbox" name="checkbox3" value="checkbox" />
</label></td>
<td><label>姓名</label>
<label>
<input type="checkbox" name="checkbox7" value="checkbox" />
</label></td>
<td>姓名
<label><input type="checkbox" name="checkbox11" value="checkbox" />
</label></td>
</tr>
<tr>
<td colspan="3"><label></label>
<label> </label>
<form id="form1" name="form1" method="post" action="">
<label>
<div align="center">
<button οnclick="actionType.value='new';userForm.submit()">保存</button>
</div>
</label>
</form></td>
</tr>
</table>
</form:form>
</body>
</html>