PortaleOrdiniGruppo/PostIn/jsp/postin_title_portlet.jsp
2025-03-24 15:28:26 +01:00

235 lines
16 KiB
Plaintext

<%/*Encoding:UTF-8*/%>
<%/*Type:Portlet*/%>
<%//Def:[{"actioncode":"function SetTitle(title){\n this.caption.Value(title);\n}\n\n","adaptive":"","altInterfaceFor":"","bg_image":"","bg_image_position":"","bg_image_repeat":"","bg_image_size":"","cache_in_post":"false","cache_time":"","color":"","container_bg_color":"","container_bg_image":"","container_bg_pos":"","css":"","css_class":"CustomToolbar","css_code":"[{\"type\":\"undefined_type\",\"name\":\"postIn_toolbar\",\"selector\":\".postIn_toolbar .postIn_toolbar_menu_item_icon\",\"obj\":\"{\\\"shadow_type\\\":\\\"outline\\\",\\\"border_type\\\":\\\"solid\\\",\\\"states\\\":\\\"normal,hover,:before,:after\\\",\\\"current_state\\\":\\\"normal\\\",\\\"specific_states_value\\\":{\\\"normal\\\":{\\\"border_type\\\":\\\"solid\\\",\\\"shadow_type\\\":\\\"outline\\\",\\\"code\\\":\\\"padding: 0px;\\\"},\\\"hover\\\":{},\\\":before\\\":{},\\\":after\\\":{}},\\\"font_list\\\":[],\\\"common_properties\\\":[\\\"current_state\\\",\\\"class_name\\\",\\\"h\\\",\\\"w\\\",\\\"type\\\",\\\"states\\\",\\\"specific_states_value\\\",\\\"common_properties\\\",\\\"selector\\\"],\\\"type\\\":\\\"undefined_type\\\",\\\"class_name\\\":\\\"postIn_toolbar\\\",\\\"selector\\\":\\\".postIn_toolbar .postIn_toolbar_menu_item_icon\\\",\\\"h\\\":\\\"240\\\",\\\"w\\\":\\\"480\\\",\\\"id\\\":\\\"form\\\",\\\"code\\\":\\\"padding: 0px;\\\"}\",\"code\":\".postIn_toolbar .postIn_toolbar_menu_item_icon {\\n padding: 0px;\\n}\\n\"},{\"version\":1,\"specific_states_value\":{\"normal\":{\"border_type\":\"solid\",\"shadow_type\":\"outline\",\"code\":\"padding:0\"},\"hover\":{},\":before\":{},\":after\":{}},\"current_state\":\"normal\",\"font_list\":[],\"type\":\"undefined_type\",\"class_name\":\"sptoolbar\",\"selector\":\".sptoolbar_menu_item_icon\",\"id\":\"form\",\"code\":\".sptoolbar_menu_item_icon {\\n padding: 0;\\n}\\n\"},{\"version\":1,\"specific_states_value\":{\"normal\":{\"pad_top\":\"0\",\"pad_bottom\":\"0\",\"pad_left\":\"0\",\"pad_right\":\"0\",\"code\":\"\"},\"hover\":{\"pad_top\":\"0\",\"pad_bottom\":\"0\",\"pad_left\":\"0\",\"pad_right\":\"0\",\"code\":\"\"},\":before\":{},\":after\":{}},\"current_state\":\"normal\",\"font_list\":[],\"type\":\"label\",\"class_name\":\"TitleLabel\",\"selector\":\".hoverable .postin_title_container .TitleLabel\",\"value\":\"Label text\",\"class_Css\":\"label\",\"id\":\"form\",\"code\":\".hoverable .postin_title_container .TitleLabel {\\n padding-top: 0px;\\n padding-right: 0px;\\n padding-bottom: 0px;\\n padding-left: 0px;\\n}\\n\\n.hoverable .postin_title_container .TitleLabel:hover {\\n padding-top: 0px;\\n padding-right: 0px;\\n padding-bottom: 0px;\\n padding-left: 0px;\\n}\\n\"},{\"version\":1,\"specific_states_value\":{\"normal\":{\"mar_top\":\"0\",\"code\":\"\"},\"hover\":{},\":before\":{},\":after\":{}},\"current_state\":\"normal\",\"font_list\":[],\"type\":\"undefined_type\",\"class_name\":\"toolbar_ctrl\",\"selector\":\".custom_toolbar_container.toolbar_ctrl\",\"id\":\"form\",\"code\":\".custom_toolbar_container.toolbar_ctrl {\\n margin-top: 0px;\\n}\\n\"}]","custom":"","description":"","fixed_top":"","form_action":"","form_enctype":"default","form_target":"","form_type":"false","grapesCode":"\u003cbody\u003e{{ @caption }}{{ @toolbar }}\u003c\u002fbody\u003e","grapesCss":"","h":"36","hsl":"","htmlcode":"{{ @caption }} \n{{ @toolbar }} \n","included_font":"[]","language":"false","layout_step":"","layout_steps_values":"{}","lock_items":"","manifest":"Custom manifest","max_w":"","min_w":"","mode":"NORMAL","my_library":"","offline":"false","on_security_failure":"login","page_layer":"","pages":"1","pagesProp":"[{\"title\":\"\",\"layer\":\"\",\"h\":\"36\",\"w\":\"100%\",\"layout_steps_values\":{}}]","pages_names":"","portlet_position":"","positioning":"absolute","roles":"","sec_heredity":"","security":"none","selectZone":"","server_cache_time":"","shared_manifest":"false","sp_theme":"true","steps":"","stretch_height":"","tabstrip_class":"","tabstrip_hidden":"","tag":"","title":"","title_block":"","title_url":"","type":"Form","v_line":"250","version":"37","w":"100%","wizard":""},{"align":"left","anchor":"top-left-right","assoc_input":"","bg_color":"","calculate":"","class_Css":"TitleLabel","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":"false","field":"","fixed":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":"22","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"caption","nowrap":"false","page":"1","picture":"","rapp":"","sanitize":"","sanitize_tags":"","sequence":"1","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template_code":"","type":"Label","value":"","w":"138","wireframe_props":"align,value,n_col","x":"12","y":"8","zindex":"1","zone":""},{"FAB":"","anchor":"top-right","bg_color":"","css_class":"custom_toolbar","ctrlOfVariant":"","fixed":"","h":"36","hide":"false","iconWidth":"30","layer":"false","layout_steps_values":"{}","maxToolbarItem":"","menu_bg_color":"","name":"toolbar","page":"1","rapp":"","sequence":"1","spuid":"","toolbarAlign":"","type":"SPToolbar","w":"90","wireframe_props":"","x":"160","y":"0","zindex":"2","zone":""}]%>
<%/*Description:*/%>
<%@ page import="com.zucchetti.SPBridge.*" %><%@ page import="java.util.*" %><%@ page import="com.zucchetti.PortalStudio.*" %><%@ page import="com.zucchetti.sitepainter.*" %>
<%@ page import="com.zucchetti.sitepainter.SPPrxycizer" %><%@page extends="com.zucchetti.PortalStudio.PortalStudioBase" %>
<%@ page language="java" pageEncoding="UTF-8" %><%Sitepainter sp=Sitepainter.getSitepainter(request);
String m_cJSPUID=getJSPUID();
String idPortlet=sp.getPortletId(request,sp.getParameter("ForcedPortletUID",JSPLib.NewCPCCCHK(5)));
String PageletId = (request.getAttribute("PageletId") != null ? (String)request.getAttribute("PageletId" ) : sp.getParameter("PageletId" ,"") );
String SPPortletTitleId = (request.getAttribute("SPPortletTitleId") != null ? (String)request.getAttribute("SPPortletTitleId") : sp.getParameter("SPPortletTitleId","") );
String SPParentObjId=(request.getAttribute("SPParentObjId")!=null?(String)request.getAttribute("SPParentObjId"):sp.getParameter("SPParentObjId",""));
request.setAttribute("com.zucchetti.sitepainter.PortalStudio.getCryptPwd",JSPLib.NewCPCCCHK(6));
if(sp.getParameter("SpStaticCode","").equals(m_cJSPUID)){
Library.SetMimeType(response,"text/javascript");
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
response.setHeader("Cache-Control","public");
%>
window.postin_title_Static=function(){
if(typeof SetTitle !='undefined')this.SetTitle=SetTitle;
<%if(!Library.Empty(PageletId) ){%>
this.this_Calc=function(){
this.PageletCalc();
}
<%}%>
function SetTitle(title){
this.caption.Value(title);
}
this.dispatchEvent('HideUnderCondition');
this.dispatchEvent('EditUnderCondition');
}
<%}else if(sp.getParameter("SpCssCode","").equals(m_cJSPUID)){
Library.SetMimeType(response,"text/css");
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
response.setHeader("Cache-Control","public");
%>
.postin_title_container .postIn_toolbar .postIn_toolbar_menu_item_icon{ padding: 0px;
}
.postin_title_container .sptoolbar_menu_item_icon{
padding:0
}
.hoverable .postin_title_container .TitleLabel{
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
.hoverable .postin_title_container .TitleLabel:hover{
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
.postin_title_container {
}
.postin_title_portlet{
position:relative;
width:100%;
min-width:250px;
height:36px;
}
.postin_title_portlet[Data-page="1"]{
height:36px;
width:100%;
}
.postin_title_portlet > .caption_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:8px;
left:12px;
right:100px;
width:auto;
height:auto;
min-height:22px;
}
.postin_title_portlet > .caption_ctrl {
height:auto;
min-height:22px;
}
.postin_title_portlet > .caption_ctrl {
overflow:hidden;
text-align:left;
}
.postin_title_portlet > .toolbar_ctrl {
box-sizing:border-box;
z-index:2;
position:absolute;
display:inline-block;
top:0px;
right:0px;
width:90px;
height:36px;
}
.postin_title_container .custom_toolbar_container.toolbar_ctrl{
margin-top: 0px;
}
<%}else if(sp.getParameter("SpWireframe","").equals("true")){
String containerId=sp.getParameter("containerID",idPortlet);
Library.SetMimeType(response,"text/html");
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
response.setHeader("Cache-Control","public");
PrintWireFrame(containerId,out);
%>
<%!
void PrintWireFrame(String containerId, java.io.Writer out) throws java.lang.Throwable {
String def="[{\"h\":\"36\",\"layout_steps_values\":{},\"pages_names\":\"\",\"steps\":\"\",\"title\":\"\",\"type\":\"Form\",\"v_line\":\"250\",\"w\":\"100%\",\"wizard\":\"\"},{\"align\":\"left\",\"anchor\":\"top-left-right\",\"h\":\"22\",\"layout_steps_values\":{},\"n_col\":\"1\",\"page\":\"1\",\"type\":\"Label\",\"value\":\"\",\"w\":\"138\",\"x\":\"12\",\"y\":\"8\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"36\",\"layout_steps_values\":{},\"page\":\"1\",\"type\":\"SPToolbar\",\"w\":\"90\",\"x\":\"160\",\"y\":\"0\",\"zindex\":\"2\"}]";
out.write("<script src='../"+SPPrxycizer.proxycizedPath("stdFunctions.js")+"'></script>\n");
out.write("<script src='../"+SPPrxycizer.proxycizedPath("portalstudio/renderDef.js")+"'></script>\n");
out.write("<script src='../"+SPPrxycizer.proxycizedPath("visualweb/itemsObj.js")+"'></script>\n");
out.write("<link type='text/css' rel='STYLESHEET' href='../visualweb/itemsObj.css'></script>\n");
out.write("<link type='text/css' rel='STYLESHEET' href='../portalstudio/renderDef.css'></script>\n");
out.write("<div id="+JSPLib.ToHTMLValue(containerId)+"></div>\n");
out.write("<script> /*JS_MARKER_START*/\n");
out.write("new renderDef({\n");
out.write("def: "+def+",\n");
out.write("container: '"+JSPLib.ToJSValue(containerId)+"',\n");
out.write("replaceContainer: true\n");
out.write("})\n");
out.write("/*JS_MARKER_END*/ </script>\n");
}/**/%>
<%}else{
if (JSPLib.checkApplication(request, response, out, sp, 37,"postin_title","UTF-8")) {return; }
%><%boolean included=request.getAttribute("javax.servlet.include.request_uri")!=null || "true".equals(request.getParameter("clientsideinclusion"));
Map<String,String> safe_params;
if(!included){%>
<!DOCTYPE html>
<html >
<%}
if(!included){%>
<head>
<base href=<%=JSPLib.ToHTMLValue( JSPLib.SPWebRootURL(request)+"/jsp/postin_title_portlet.jsp"+(!Library.Empty(request.getQueryString())?"?"+request.getQueryString():"") )%>/>
<%Library.WriteMetaTags(request,response,out);
}
sp.WritePortletJSLibraries(request, out, false,false); %><script>
/*JS_MARKER_START*/
<%PrintTranslations(out, sp, request, response, idPortlet);%>
/*JS_MARKER_END*/
</script>
<% sp.WritePortalStudioCSS(request, out);
if(Library.IsMobile(request)){%><%}%>
<link id='<%=idPortlet%>_link_css' href='<%=JSPLib.getJSPSelfPath(request)%>?SpCssCode=<%=m_cJSPUID%>' onload="
requestAnimationFrame( function() {
this.setAttribute('css-applied', 'true');
this.dispatchEvent(new CustomEvent('cssApplied'));
}.bind(this));"
rel='stylesheet' type='text/css'/>
<style>
</style>
<script>
/*JS_MARKER_START*/
ZtVWeb.POM.addObj('<%=idPortlet%>','postin_title','portletObj','<%=JSPLib.ToJSValue(SPParentObjId,false,true)%>');
/*JS_MARKER_END*/
</script>
<%String caption= "";
try{
if(!included){%>
<link rel='shortcut icon' href='../favicon.ico' />
</head>
<%}
if(!included){%>
<body style="margin:0;background-color:transparent;"<%= sp.GetBodyClassAttribute() %>>
<%= Sitepainter.GetBodyMobileScript(request) %><%}%>
<div id='<%=idPortlet%>_container' class='postin_title_container'>
<div id='<%=idPortlet%>' portlet_id='<%=idPortlet%>' align='left' class='postin_title_portlet CustomToolbar' style='opacity:0.001'>
<%if(sp.isLogged()){
if(sp.isInGroup(1) && sp.getGlobal("g_EditPortlet",false)==true){%>
<script>
ZtVWeb.AddPortletToEdit('postin_title','<%=idPortlet%>',false,'');
</script><%}}%>
<span id='<%=idPortlet%>_caption' formid='<%=idPortlet%>' ps-name='caption' class='TitleLabel caption_ctrl'><div id='<%=idPortlet%>_captiontbl' style='width:100%;'></div></span>
<div id='<%=idPortlet%>_toolbar' class='disable-selection ctrl_custom_toolbar_container custom_toolbar' >
<div id='<%=idPortlet%>_toolbar_openMenuHandlerDiv' class='custom_toolbar_openMenuHandlerDiv'>
<a id='<%=idPortlet%>_toolbar_openMenuHandlerImg' class='custom_toolbar_3dots_handler'></a>
</div>
<div id='<%=idPortlet%>_toolbar_listButtons' class='custom_toolbar_listButtons'></div>
</div>
</div>
</div>
<script>
/*JS_MARKER_START*/
ZtVWeb.addPortlet('<%=idPortlet%>','postin_title');
<%!
void PrintTranslations(java.io.Writer out, Sitepainter sp, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String idPortlet) throws java.lang.Throwable {
String m_cVariantFolder = request.getAttribute("m_cVariantFolder") != null ? (String)request.getAttribute("m_cVariantFolder") : "";
String m_cVariant = request.getAttribute("m_cVariant") != null ? (String)request.getAttribute("m_cVariant") : "";
}/**/%>
window.<%=idPortlet%>=new function(){
var m_cSPPageletId = '<%=JSPLib.ToJSValue(PageletId,false,true)%>';
var m_cSPPortletTitleId = '<%=JSPLib.ToJSValue(SPPortletTitleId,false,true)%>';
ZtVWeb.newForm(this,'<%=idPortlet%>','postin_title',["250"],["36"],'CustomToolbar',<%=sp.isOfflineInstallation()%>,false,m_cSPPageletId,'', '','','',{},false,false,1,m_cSPPortletTitleId, 'NORMAL',[{"layout_steps_values":{},"w":"250","h":"36","title":"","layer":""}]);
this.caption=new ZtVWeb._LC(this,{"align":"left","anchor":"top-left-right","assoc_input":"","calculate":"","class_Css":"TitleLabel","create_undercond":"","ctrlid":"<%=idPortlet%>_caption","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":false,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":22,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"caption","nowrap":"false","page":1,"picture":"","sanitize":"","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template":"","text":"<%=JSPLib.ToJSValue(caption,false,true)%>","type":"Label","w":138,"x":12,"y":8,"zindex":"1"});
this.toolbar=new ZtVWeb.SPToolbarCtrl(this,{"FAB":"","anchor":"top-right","bg_color":"","cssClass":"custom_toolbar","ctrlid":"<%=idPortlet%>_toolbar","h":36,"hide":"false","iconWidth":30,"layer":false,"layout_steps_values":{},"maxToolbarItem":0,"menu_bg_color":"","name":"toolbar","page":1,"spuid":"","toolbarAlign":"","type":"SPToolbar","w":90,"x":160,"y":0,"zindex":"2"});
<%if(!Library.Empty(PageletId) ){%>
this.PageletCalc=function(){
if(window['<%=JSPLib.ToJSValue(PageletId)%>'] && window['<%=JSPLib.ToJSValue(PageletId)%>'].Calc ) {
window['<%=JSPLib.ToJSValue(PageletId)%>'].Calc();
};
}
<%}%>
}
/*JS_MARKER_END*/
</script>
<%if(request.getAttribute("postin_title_firstinclusion")==null){%>
<script src='<%=JSPLib.getJSPSelfPath(request)%>?SpStaticCode=<%=m_cJSPUID%>'></script>
<%request.setAttribute("postin_title_firstinclusion",idPortlet);
}%>
<script>
/*JS_MARKER_START*/
window.postin_title_Static.call(window.<%=idPortlet%>);
ZtVWeb.addPortletObj('<%=idPortlet%>','postin_title',<%=idPortlet%>);
ZtVWeb.portletLoaded(<%=idPortlet%>,'postin_title');
/*JS_MARKER_END*/
</script>
<%if(!included){%>
</body>
<%}
}finally{
}%>
<%if(!included){%>
</html>
<%}
sp.endPage("postin_title");
}%>
<%! public String getJSPUID() { return "2381621205"; } %>