JSP实现树型组织架构(3)--管理页面orgManage.jsp__教程 |
|
日期:2007-5-20 1:14:54 人气:94 [大 中 小] |
|
|
|
<td width="19%" height="18"><%=rs5.getString("name")%></td> <td width="19%" height="18"> </td> <td width="19%" height="18"><a href="orgDelete.jsp?name=<%=rs5.getString("name")%>">刪除部門</a></td> </tr> <%
/* ps=conn.prepareStatement(queryC2); ResultSet qd2=ps.executeQuery(); int cd2=0; while(qd2.next()) {cd2++;} out.println(cd2); ps=conn.prepareStatement(queryCount); if(cd2>0) { queryNameCondition="D"+(i+19)+"%";} else { queryNameCondition="D"+(i+9)+"%";}*/ ps=conn.prepareStatement(queryCount);
queryNameCondition=qcTemp1+"%";
//out.println(queryNameCondition); ps.setString(1, queryNameCondition); ResultSet rs6=ps.executeQuery(); int result3=1; while(rs6.next()) { result3++;} //out.println(result3); for( i=1; i<=result3; i++){ ps=conn.prepareStatement(queryName) ; ps.setString(1, queryNameCondition); ResultSet rs7=ps.executeQuery(); while( rs7.next()){ %> <tr bgcolor="#F0F8FF"> <td width="29%" height="18"> </td> <td width="19%" height="18"> </td> <td width="19%" height="18"> </td> <td width="19%" height="18"><%=rs7.getString("name")%></td> <td width="19%" height="18"><a href="orgDelete.jsp?name=<%=rs7.getString("name")%>">刪除部門</a></td> </tr> <% ps=conn.prepareStatement(queryCount); queryNameCondition="E"+(i+9)+"%"; //out.println(queryNameCondition); ps.setString(1, queryNameCondition); ResultSet rs8=ps.executeQuery(); int result4=1; while(rs8.next()) { result4++;} //out.println(result3); for( i=1; i<=result4; i++){ ps=conn.prepareStatement(queryName) ; ps.setString(1, queryNameCondition); ResultSet rs9=ps.executeQuery(); while(rs9.next()){ rs9.getString("name"); %> <%}}%> <%}}%> <% }}%> <% }}%> <%}}%>
</table> </body> <%} catch(SQLException se1) {se1.printStackTrace();} finally{conn.close();}%> </html> |
|
出处:本站原创 作者:佚名 |
|
|