86 lines
4.5 KiB
Plaintext
86 lines
4.5 KiB
Plaintext
<%/*Type:Page*/%>
|
|
<%//Def:{"body_attributes":"","cache_time":"","codeStatus":"","codeevents":"","conditions":"","contents":"","contents_type":"","css":"","custom_url_failure":"","description":"","father":"","groups":"","importance":"","library":"","links":"default","menu_label_father":"","menu_label_links":"","menu_urls_links":"","meta":"","meta_description":"","model":"","modelselected":"","name":"index","offline":"false","on_security_failure":"login","page_image":"","page_parameters":"","parameters":"","query":"","query_params":"","redirect":"","roles":"","security":"none","server_cache_time":"","shared_manifest":"false","sp_theme":"false","template":"index_tpl","theme":"","title":"Start Page","titles":"","type":"Page","type_category":"","ua_priority":"false","urls":"","user_agent":"DEFAULT","x":"57","y":"36"}%>
|
|
<%/*Description:*/%>
|
|
<%/*PlanName:main*/%>
|
|
<%@ page import="java.util.*" %><%@ page import="com.zucchetti.SPBridge.*" %><%@ page import="com.zucchetti.PortalStudio.*" %><%@ page import="com.zucchetti.sitepainter.Library" %><%@ page import="com.zucchetti.sitepainter.SPPrxycizer" %><%@page extends="com.zucchetti.PortalStudio.PortalStudioBase" %><%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %><%
|
|
Sitepainter sp=Sitepainter.getSitepainter(request);
|
|
if (JSPLib.checkApplication(request, response, out, sp, 37,"main","UTF-8")) {return; }
|
|
boolean server_side_included = null!=request.getAttribute("javax.servlet.include.request_uri");%><%
|
|
String ps_skin=sp.getParameter("skinName","");
|
|
if(!Library.Empty(ps_skin)){
|
|
sp.setSkin(ps_skin);
|
|
}
|
|
%>
|
|
<%boolean client_side_included = "true".equals(request.getParameter("clientsideinclusion"));
|
|
boolean template_yet_called = null!=request.getAttribute("com.zucchetti.pagelet.main_template");
|
|
boolean plan_page_yet_called = null!=request.getAttribute("content_boxes");
|
|
String queryStringInclude=(String)request.getAttribute("javax.servlet.include.query_string");
|
|
if(plan_page_yet_called && !template_yet_called){//merging
|
|
Hashtable ht=(Hashtable)request.getAttribute("content_boxes");
|
|
}else{
|
|
if(!server_side_included && !client_side_included){
|
|
%>
|
|
<!DOCTYPE html>
|
|
<HTML>
|
|
<HEAD>
|
|
<base href=<%=JSPLib.ToHTMLValue( JSPLib.SPWebRootURL(request)+"/jsp/index.jsp"+(!Library.Empty(request.getQueryString())?"?"+request.getQueryString():"") )%>/>
|
|
<%Library.WriteMetaTags(request,response,out);%>
|
|
<script src='../<%=SPPrxycizer.proxycizedPath("stdFunctions.js")%>'></script>
|
|
<script src='../<%=SPPrxycizer.proxycizedPath("visualweb/VisualWEB.js")%>'></script>
|
|
<style type="text/css">
|
|
body {margin:0px}
|
|
</style>
|
|
<link rel='shortcut icon' href='../favicon.ico' />
|
|
<TITLE><%=sp.translate("Start Page")%></TITLE>
|
|
<%}%>
|
|
<!--Plan Editor main -->
|
|
<%
|
|
Hashtable ht=new Hashtable();
|
|
request.setAttribute("content_boxes",ht);
|
|
if(!server_side_included && !client_side_included){
|
|
%></HEAD>
|
|
<BODY <%= sp.GetBodyClassAttribute("") %>>
|
|
<%= Sitepainter.GetBodyMobileScript(request) %><%}
|
|
String includerPageletId= (request.getAttribute("PageletId")!= null ? (String)request.getAttribute("PageletId"):sp.getParameter("PageletId",""));
|
|
String SPParentObjId=(request.getAttribute("SPParentObjId")!=null?(String)request.getAttribute("SPParentObjId"):sp.getParameter("SPParentObjId",""));
|
|
String PageId = JSPLib.NewCPCCCHK();
|
|
%>
|
|
<script>
|
|
/*JS_MARKER_START*/
|
|
ZtVWeb.POM.addObj('<%=PageId%>','index','planObj','<%=SPParentObjId%>');
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<%
|
|
request.setAttribute("planName",PageId);
|
|
request.setAttribute("SPParentObjId",PageId);
|
|
String forcePageletId = JSPLib.NewCPCCCHK();
|
|
request.setAttribute("forcePageletId",forcePageletId);
|
|
String t=request.getParameter("tpl");
|
|
if (t==null) t="index_tpl";
|
|
if(Library.Empty(t) && !Library.Empty((String)ht.get("SpLayoutPage")))
|
|
t=(String)ht.get("SpLayoutPage");
|
|
out.flush();
|
|
if(!com.zucchetti.sitepainter.Library.includeResource(request,response,"/"+sp.getSkin()+"/"+t+".jsp",true))
|
|
com.zucchetti.sitepainter.Library.includeResource(request,response,"/jsp/"+t+".jsp"+(queryStringInclude!=null?"?"+queryStringInclude:""),false);
|
|
request.setAttribute("com.zucchetti.pagelet.template."+sp.getSkin()+"."+t,null);
|
|
|
|
%>
|
|
<script>
|
|
/*JS_MARKER_START*/
|
|
window.<%=PageId%>=new function(){
|
|
ZtVWeb.PageCtrl(this,'<%=PageId%>', '<%=forcePageletId%>', 'index');
|
|
this.Calc=function(pagelet){
|
|
}
|
|
|
|
}
|
|
ZtVWeb.addPage('<%=PageId%>', <%=PageId%>, 'index','<%=includerPageletId%>' );
|
|
<%if(!server_side_included){%>
|
|
window.<%=PageId%>.Loaded();
|
|
<%}%>
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<%if(!server_side_included && !client_side_included){
|
|
%></BODY>
|
|
</HTML><%}
|
|
}%>
|