二级菜单

setOption.java
package setOption;

import com.connection;
import java.sql.*;
public class setOption
{
	private int GroupID;
	private int parentid;
	private String GroupName;
	private String space;
	private String strsql;
	private String html;
	private connection dblink;
	private Statement  stmt;
	public setOption()
	{
		dblink = new connection();
		GroupID=0;
		parentid=0;
		GroupName="";
		html="";
		strsql="";
		stmt=null;
	}
	
	public String setGroupOptions(int level,int parentID,int val,String grouptype,String userid)
	{
		try
		{
			Connection CB=dblink.getConnection();
			stmt=CB.createStatement();
			strsql="select * from tGroupInfo where GroupType='"+grouptype+"' and CreateUserID='"+userid+"'";
			if(parentID >0)
			{
				strsql+=" and ParentID ="+parentID+"";
			}
			else
			{
				html+="
<%@page language="java"%>
<%@page contentType="text/html;charset=big5"%>
<%@page import ="java.sql.*"%>
<%@page import ="java.util.*"%>
<%@page import ="java.io.*"%>
<%@ include file="/inc/strRequest.jsp" %>
<%@ include file="/inc/sessionsec.jsp" %>


<%
 String user = (String)session.getAttribute("user");
 String userid = (String)session.getAttribute("userid");
 String  url="";
 //String userid=(String)session.getAttribute("userid");
 /*String App_ID=str(request.getParameter("App_ID"));
 if(App_ID.equals(""))
 App_ID=str((String)session.getAttribute("App_ID"));
 session.setAttribute("App_ID",App_ID);
 String CurrentPage="";*/
  String App_ID="",grouptype="", GroupMember="",LinkManID="";
 App_ID=(String)session.getAttribute("App_ID");
 if(App_ID.equals("5"))
 {
	  grouptype="Public";
	  url="publicgroupList.jsp";
  }
 else 
 {
	  grouptype="Private";
	  url="privategroupList.jsp";
  }
%>





KinYip SMS System (Add Group)


您當前位置:首頁短信系統通訊錄添加        用戶:<%= strrequest(user)%>

 添加組

 組編號    組名稱   *
 組描述    上級組  
 添加組成員  

   
<% session.removeAttribute("idList2"); session.removeAttribute("nameList2"); session.removeAttribute("titleList2"); session.removeAttribute("mobileList2"); %>
  

你可能感兴趣的:(菜单)