42 lines
1.8 KiB
Plaintext
42 lines
1.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin.jspf"%><%
|
|
String sTitle = CurPage.getParameter("Title");
|
|
String sUrl = CurPage.getParameter("Url");
|
|
String isAddMain= CurPage.getParameter("isAddMain");
|
|
String sParas = CurPage.getParameter("Paras");
|
|
ASResultSet rs = null;
|
|
String sql="SELECT fi.itemdescribe mainpath FROM user_info ui LEFT OUTER JOIN ( ";
|
|
sql=sql+" SELECT itemno,itemdescribe FROM CODE_LIBRARY WHERE codeno='FirstPage') fi ON ui.mainpath=fi.itemno ";
|
|
sql=sql+" WHERE ui.userid=:loginid ";
|
|
|
|
SqlObject asql = new SqlObject(sql);
|
|
asql.setParameter("loginid", CurUser.getUserID());
|
|
rs = Sqlca.getASResultSet(asql);
|
|
String mainPath="/Main.jsp";
|
|
if(rs.next()){
|
|
mainPath=rs.getString("mainpath");
|
|
if(mainPath==null||mainPath.length()==0){mainPath="/Main.jsp";}
|
|
}
|
|
String mainTtitle="Ê×Ò³";
|
|
String mainUrl="AppMain/Welcome/Welcome.jsp";
|
|
if(mainPath.equals("/Tenwa/HomePage/DefaultHome/Main.jsp")){
|
|
mainUrl="/Tenwa/HomePage/DefaultHome/HomePage.jsp";
|
|
}
|
|
String mainsParas="ComponentID=Main&sToDestroyAllComponent=Y";
|
|
if(isAddMain==null){isAddMain="false";}
|
|
if(sTitle == null) sTitle = "";
|
|
if(sParas != null) sParas = sParas.replace("~", "&");
|
|
String sTabStrip[][] =null;
|
|
if(isAddMain.equalsIgnoreCase("true")){
|
|
CurPage.setAttribute("First","1");
|
|
String cflag="true";
|
|
if(sParas.indexOf("isCache=false")>=0){cflag="false";}
|
|
sTabStrip=new String[][]{
|
|
{"true",mainTtitle,mainUrl,mainsParas,"null","false","false"},
|
|
{"true", sTitle, sUrl, sParas,"null","true",cflag}
|
|
};
|
|
}else{
|
|
sTabStrip=new String[][]{{"true", sTitle, sUrl, sParas}};
|
|
}
|
|
%><%@ include file="/Resources/CodeParts/Tab01.jsp"%>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |