158 lines
7.1 KiB
Plaintext
158 lines
7.1 KiB
Plaintext
<%/*Type:Page*/%>
|
|
<%//Def:{"body_attributes":"","cache_time":"","codeStatus":"","codeevents":"","conditions":";if(sp.isLogged() && \"yes\".equals(sp.getGlobal(\"IsPostInInstalled\",\"\")))","contents":"main,mypostin","contents_type":",","css":"","custom_url_failure":"","description":"","father":"index","groups":"central,sx","importance":"","library":"","links":"","menu_label_father":"","menu_label_links":"","menu_urls_links":"","meta":"","meta_description":"","model":"","modelselected":"","name":"default","offline":"false","on_security_failure":"login","page_image":"","page_parameters":"","parameters":",","query":"","query_params":"","redirect":"","roles":"","security":"logged","server_cache_time":"","shared_manifest":"false","sp_theme":"false","template":"default_tpl","theme":"","title":"Start Page 2","titles":",","type":"Page","type_category":"","ua_priority":"false","urls":"!start_page_logo_portlet.jsp,postin_list_all_portlet.jsp","user_agent":"DEFAULT","x":"337","y":"153"}%>
|
|
<%/*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");%><%if(!sp.isLogged()){%>
|
|
<script>
|
|
window.location=<%=JSPLib.ToJSValue(JSPLib.SPWebRootURL(request),true)%>+'/servlet/cp_login?m_cURL='+<%=JSPLib.ToJSValue(JSPLib.SPWebRootURL(request),true)%>+'/'+<%=JSPLib.ToJSValue(request.getRequestURI().substring(JSPLib.RAt("/",request.getRequestURI(),2)),true)%>+'&'+<%=JSPLib.ToJSValue(request.getQueryString(),true)%>
|
|
</script>
|
|
<%if(true) return;%>
|
|
<%}%>
|
|
<%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");
|
|
Map central_group;//gruppo
|
|
if(ht.containsKey("central_group")){
|
|
central_group=(Map)ht.get("central_group");
|
|
}else{
|
|
central_group=new LinkedHashMap();
|
|
ht.put("central_group",central_group);
|
|
}
|
|
//Inserimento della Risorsa e le sue props
|
|
Map main=new HashMap();
|
|
main.put("name","main");
|
|
main.put("url","!start_page_logo_portlet.jsp");
|
|
main.put("title","main");
|
|
main.put("opened","");
|
|
ht.put("main",main);
|
|
central_group.put("main",main);
|
|
Map sx_group;//gruppo
|
|
if(ht.containsKey("sx_group")){
|
|
sx_group=(Map)ht.get("sx_group");
|
|
}else{
|
|
sx_group=new LinkedHashMap();
|
|
ht.put("sx_group",sx_group);
|
|
}
|
|
if(sp.isLogged() && "yes".equals(sp.getGlobal("IsPostInInstalled",""))){
|
|
//Inserimento della Risorsa e le sue props
|
|
Map mypostin=new HashMap();
|
|
mypostin.put("name","mypostin");
|
|
mypostin.put("url","postin_list_all_portlet.jsp");
|
|
mypostin.put("title","mypostin");
|
|
mypostin.put("opened","");
|
|
ht.put("mypostin",mypostin);
|
|
sx_group.put("mypostin",mypostin);
|
|
}
|
|
}else{
|
|
if(!server_side_included && !client_side_included){
|
|
%>
|
|
<!DOCTYPE html>
|
|
<HTML>
|
|
<HEAD>
|
|
<base href=<%=JSPLib.ToHTMLValue( JSPLib.SPWebRootURL(request)+"/jsp/default.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 2")%></TITLE>
|
|
<%}%>
|
|
<!--Plan Editor main -->
|
|
<%
|
|
Hashtable ht=new Hashtable();
|
|
request.setAttribute("content_boxes",ht);
|
|
Map central_group;//gruppo
|
|
if(ht.containsKey("central_group")){
|
|
central_group=(Map)ht.get("central_group");
|
|
}else{
|
|
central_group=new LinkedHashMap();
|
|
ht.put("central_group",central_group);
|
|
}
|
|
//Inserimento della Risorsa e le sue props
|
|
Map main=new HashMap();
|
|
main.put("name","main");
|
|
main.put("url","!start_page_logo_portlet.jsp");
|
|
main.put("title","main");
|
|
main.put("opened","");
|
|
ht.put("main",main);
|
|
central_group.put("main",main);
|
|
Map sx_group;//gruppo
|
|
if(ht.containsKey("sx_group")){
|
|
sx_group=(Map)ht.get("sx_group");
|
|
}else{
|
|
sx_group=new LinkedHashMap();
|
|
ht.put("sx_group",sx_group);
|
|
}
|
|
if(sp.isLogged() && "yes".equals(sp.getGlobal("IsPostInInstalled",""))){
|
|
//Inserimento della Risorsa e le sue props
|
|
Map mypostin=new HashMap();
|
|
mypostin.put("name","mypostin");
|
|
mypostin.put("url","postin_list_all_portlet.jsp");
|
|
mypostin.put("title","mypostin");
|
|
mypostin.put("opened","");
|
|
ht.put("mypostin",mypostin);
|
|
sx_group.put("mypostin",mypostin);
|
|
}
|
|
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%>','default','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="default_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%>', 'default');
|
|
this.Calc=function(pagelet){
|
|
this.pagelet.EnablePageCall('central');
|
|
this.pagelet.EnablePageCall('sx');
|
|
}
|
|
this.main=this.pagelet.main;
|
|
this.mypostin=this.pagelet.mypostin;
|
|
this.central=this.pagelet.central;
|
|
this.sx=this.pagelet.sx;
|
|
|
|
}
|
|
window['<%=forcePageletId%>'].EnablePageCall('central');
|
|
window['<%=forcePageletId%>'].EnablePageCall('sx');
|
|
ZtVWeb.addPage('<%=PageId%>', <%=PageId%>, 'default','<%=includerPageletId%>' );
|
|
<%if(!server_side_included){%>
|
|
window.<%=PageId%>.Loaded();
|
|
<%}%>
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<%if(!server_side_included && !client_side_included){
|
|
%></BODY>
|
|
</HTML><%}
|
|
}%>
|