<%@ page contentType="text/html;charset=utf-8"%> <%@page import="com.cippe.user.web.form.LoginForm"%> <%@page import="com.cippe.common.login.LoginHandler"%> <% LoginForm uf=LoginHandler.getLoginFormFromSession(request); String type=request.getParameter("type"); if(uf==null){ session.setAttribute("temp_url", "/center/toView.jsp?type="+type); %> <% }else{ long corpid=uf.getUform().getCorpId(); if("1".equals(type)){ //去到收件夹 if(corpid>0){ session.setAttribute("office_url","/userCenterAction.do?method=pageMessageDetail&pagetypes=1&menucount=m6"); response.sendRedirect("/center/index.jsp?&menucount=m6"); }else{ session.setAttribute("office_url","/personal.do?method=pageMessageDetail&pagetypes=1&menucount=m4"); response.sendRedirect("/center/index.jsp?&menucount=m4"); } }else if("2".equals(type)){ //去到发布产品 if(corpid>0){ session.setAttribute("office_url","/product.do?method=getInProductPage&menucount=m13"); response.sendRedirect("/center/index.jsp?menu=13"); }else{ response.sendRedirect("/join/loginbase.jsp"); } } //修改公司介绍 else if("3".equals(type)){ if(corpid>0){ session.setAttribute("office_url","/corp.do?method=perfectingEnterpriseMessage&menucount=m12"); response.sendRedirect("/center/index.jsp?menu=12"); }else{ response.sendRedirect("/join/loginbase.jsp"); } }else if("4".equals(type)){ if(corpid>0){ String ruser=request.getParameter("ruser"); session.setAttribute("office_url","/center/Info_mailSend.jsp?menucount=m6&ru="+java.net.URLEncoder.encode(ruser,"utf-8")); response.sendRedirect("/center/index.jsp?menu=5"); }else{ String ruser=request.getParameter("ruser"); session.setAttribute("office_url","/center/personal/Info_mailSend.jsp?menucount=m4&pagetypes=4&ru="+java.net.URLEncoder.encode(ruser,"utf-8")); response.sendRedirect("/center/index.jsp?menu=5"); } } //发布信息管理 else if("5".equals(type)){ if(corpid>0){ session.setAttribute("office_url","/product.do?method=getProductListByCorp&menucount=m25"); response.sendRedirect("/center/index.jsp?menu=5&menucount=m25"); }else{ response.sendRedirect("/join/loginbase.jsp"); } } else if("6".equals(type)){ session.setAttribute("office_url","/center/index.jsp"); response.sendRedirect("/center/index.jsp"); }else if("7".equals(type)){ if(corpid>0){ session.setAttribute("office_url","/product.do?method=getInProductPage&menucount=m13"); response.sendRedirect("/center/index.jsp"); }else{ response.sendRedirect("/join/loginbase.jsp"); } } } %>