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

718 lines
62 KiB
Plaintext

<%/*Encoding:UTF-8*/%>
<%/*Type:Portlet*/%>
<%//Def:[{"actioncode":"function color_sample_Click(){\n if (m_cFunction == 'view' || m_cFunction == 'query')\n return;\n windowOpenForeground('..\u002fvisualweb\u002fselect_color.html?for=rgb', \"SelectColor\", \"width=250,height=160,top=300,left=300,scroll=no,status=no,toolbar=no\")\n}\n\nfunction setBackgroundColor(w_color){\n var i = this.color_sample.Ctrl_content;\n var t = this.textualpostit.Ctrl_input;\n i.style.backgroundColor = 'rgb(' + (Mod(Val(w_color), 256)) + ',' + (Mod(Int(Val(w_color) \u002f 256), 256)) + ',' + (Mod(Int(Val(w_color) \u002f 65536), 256)) + ')';\n t.style.backgroundColor = i.style.backgroundColor;\n return w_color;\n}\n\nvar _this = this;\nvar layerId = this.layerId.Value();\n\n\u002f\u002faggiorno la variabile d'appoggio contenente gli id dei postin in caso di nuovo inserimento\nif ( w_code!=this.code.Value() && parent._regWarn.code[parent._regWarn.code.length-1]==this.code.Value())\n parent._regWarn.code[parent._regWarn.code.length-1] = w_code;\n\n\u002f\u002finizializzo le dimensioni del layer\nvar title = this.getTitlePortlet();\nvar lw = typeof sv_PostitWidth != 'undefined' ? sv_PostitWidht : '250',\n lh = typeof sv_PostitHeight != 'undefined' ? sv_PostitHeight : '200';\nvar layer = parent.document.getElementById(layerId);\n\u002f\u002f\n\u002f\u002fvar br = layer.getBoundingClientRect();\n\u002f\u002flayer.style.cssText = 'height:' + lh + 'px;width:' + lw + 'px;top:'+br.top+'px;left:'+br.left+'px;position:absolute;z-index:999';\n\u002f\u002f\nlayer.style.height = lh + 'px';\nlayer.style.width = lw + 'px';\nthis.textualpostit.Ctrl_input.style.border = '0';\nthis.textualpostit.Ctrl_input.style.padding = '0';\nthis.textualpostit.Ctrl_input.style.display = 'block';\n\n\u002f\u002f funzione per dare la corretta dimensione al portlet considerando che è stretch ed ha il titolo\nvar titleTime \n(function setHeight(){\n if(titleTime)\n clearTimeout(titleTime)\n if( title.Ctrl.offsetHeight == 0 ) {\n titleTime = setTimeout( setHeight, 10);\n } else {\n\t\t_this.Ctrl_container.style.height = \"calc(100% - \"+title.Ctrl.offsetHeight+\"px)\"; \n }\n})();\n\n\u002f\u002f gestione del drag&drop e del ridimensionamento\nthis.resize_header.Ctrl.addEventListener('mousedown', function(e){\n title.toolbar.CloseMenu();\n parent.dragObj.css=layer.style;\n parent.dragObj.minW = 250;\n parent.dragObj.minH = 150;\n\tparent.dragObj.resize = 'so';\n\t_this.dragPostIn(e,layer) \n});\n\n\u002f* Creazione del drag sul titolo *\u002f\n\ntitle.Ctrl.onmousedown = function (e) {\n if (!e || e.srcElement.tagName == 'A' || e.srcElement.parentElement.tagName == 'A') return;\n title.toolbar.CloseMenu();\n _this.dragPostIn(e, layer);\n}\n\n\u002f\u002fgestione della toolbar nel titolo del portlet\n\n\u002f\u002fthis.AddButton=function(image, action, target, title, tooltip, idx)\nvar showOpt = false;\n\u002f\u002f title.toolbar.AppendMenuItem({\ntitle.SetTitle(FormatMsg('MSG_POSTIT'));\ntitle.toolbar.Append({\n id:'options',\n title: FormatMsg('MSG_POSTIT_OPTIONS'),\n tooltip: FormatMsg('MSG_POSTIT_OPTIONS'),\n action: toggleOpt,\n image:{ fontFamily:'icons8_win10', value: \"&#xf2ba\"},\n});\ntitle.toolbar.Append({\n id:'hide',\n title: FormatMsg('MSG_POSTIT_HIDE'),\n tooltip: FormatMsg('MSG_POSTIT_HIDE'),\n action: hidePostIn,\n image:{ fontFamily:'icons8_win10', value: \"&#xf498\"},\n});\nif (m_cFunction == 'new' || m_cFunction == 'edit') {\n title.toolbar.Append({\n id:'delete',\n title: FormatMsg('MSG_POSTIT_DELETE'),\n tooltip: FormatMsg('MSG_POSTIT_DELETE'),\n action: function(){deletePostIn.call();},\n image:{ fontFamily:'icons8_win10', value: \"&#xf041\"},\n });\n}\nfunction toggleOpt(){\n\tif( showOpt ){\n _this.ZtTabs.Select('page1');\n title.toolbar.UpdateItem('options',{'image':{ fontFamily:'icons8_win10', value: \"&#xf2ba\"}})\n showOpt = false;\n } else {\n _this.ZtTabs.Select('page2');\n title.toolbar.UpdateItem('options',{'image':{ fontFamily:'icons8_win10', value: \"&#xf144\"}})\n showOpt = true;\n }\n}\nfunction deletePostIn(){\n if (m_cFunction == 'view' || m_cFunction == 'query') {\n return;\n }\n if (confirm(Translate(\"MSG_DELETE_POSTIT\"))) {\n _this.textualpostit.Value('');\n Set_textualpostit('');\n _this.hidePostIn();\n }\n}\nfunction hidePostIn(){\n\u002f\u002f parent._regWarn.code[idx] = ''\n\u002f\u002f \tparent.HideLayerBox(layer.id);\n \n parent.TogglePostit(w_code);\n}\n\n\n\nfunction dragPostIn(e,obj) {\n \n \u002f\u002f creo un layer trasparente per poter draggare\n var d = parent.document.createElement('div');\n d.id= 'draglayer';\n d.style.cssText = \"top:0;left:0;height:100%;width:100%;position:absolute;z-index:10000;background:rgba(255,255,255,.3);\";\n layer.appendChild(d);\n d.onmouseup = function(){\n \td.parentElement.removeChild(d);\n }\n e=e?e:window.event\n if( !typeof(obj) == \"object\" ) {\n obj=document.getElementById(obj)\n }\n if(obj) parent.dragObj.css=obj.style\n if(!e || !parent.dragObj.css) return\n \u002f\u002fbring to top of stack\n parent.dragObj.css.zIndex=++parent.dragObj.zIndex\n\n \u002f\u002fSave mousedown location\n var aTag=obj;\n var y_delta=0,x_delta=0;\n do {\n aTag=aTag.offsetParent;\n x_delta+=aTag.offsetLeft;\n y_delta+=aTag.offsetTop;\n } while(aTag.tagName!=\"BODY\" && aTag.tagName!=\"HTML\");\n \u002f\u002f In caso di finestra scrollata\n if( Ctrl(\"bodyDiv\") && Ctrl(\"bodyDiv\").scrollTop ) {\n y_delta=y_delta-parent.Ctrl(\"bodyDiv\").scrollTop;\n }\n\n\t\u002f\u002fpunto di partenza \n var pos = eventPos(e);\n parent.dragObj.downX=pos.x+layer.offsetLeft+x_delta;\n parent.dragObj.downY=pos.y+layer.offsetTop+y_delta;\n \n if(document.addEventListener){\n parent.document.addEventListener(\"mousemove\",parent.dragStart,true)\n parent.document.addEventListener(\"mouseup\",parent.dragEnd,true)\n e.preventDefault()\n } else if(document.attachEvent) {\n parent.document.attachEvent(\"onmousemove\",parent.dragStart)\n parent.document.attachEvent(\"onmouseup\",parent.dragEnd)\n return false\n }\n}\n\n\n\n\n\n","adaptive":"fixed","altInterfaceFor":"","bg_image":"","bg_image_position":"","bg_image_repeat":"","bg_image_size":"","cache_in_post":"false","cache_time":"","color":"transparent","container_bg_color":"","container_bg_image":"","container_bg_pos":"","css":"","css_class":"","css_code":"[{\"type\":\"image\",\"name\":\"resize_handle\",\"selector\":\".resize_handle\",\"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\\\":\\\"transform: rotate(90deg);\\\\ncursor: se-resize;\\\\t\\\\ntext-shadow: 1px 1px #888;\\\",\\\"cursor\\\":\\\"\\\"},\\\"hover\\\":{\\\"code\\\":\\\"color:#FFFFFF !important;\\\"},\\\":before\\\":{},\\\":after\\\":{}},\\\"font_list\\\":[],\\\"common_properties\\\":[\\\"current_state\\\",\\\"class_name\\\",\\\"h\\\",\\\"w\\\",\\\"type\\\",\\\"states\\\",\\\"specific_states_value\\\",\\\"common_properties\\\",\\\"selector\\\",\\\"src\\\"],\\\"type\\\":\\\"image\\\",\\\"class_name\\\":\\\"resize_handle\\\",\\\"selector\\\":\\\".resize_handle\\\",\\\"h\\\":\\\"240\\\",\\\"w\\\":\\\"480\\\",\\\"src\\\":\\\".\u002fimages\u002fdefault.jpg\\\",\\\"id\\\":\\\"form\\\",\\\"code\\\":\\\"transform: rotate(90deg);\\\\ncursor: se-resize;\\\\t\\\\ntext-shadow: 1px 1px #888;\\\",\\\"cursor\\\":\\\"\\\"}\",\"code\":\".resize_handle {\\n transform: rotate(90deg);\\n cursor: se-resize;\\n text-shadow: 1px 1px #888;\\n}\\n\\n.resize_handle:hover {\\n color: #FFFFFF !important;\\n}\\n\"},{\"type\":\"textbox\",\"name\":\"color-picker\",\"selector\":\".color-picker\",\"obj\":\"{\\\"shadow_type\\\":\\\"outline\\\",\\\"border_type\\\":\\\"solid\\\",\\\"states\\\":\\\"normal,hover,:before,:after\\\",\\\"current_state\\\":\\\"normal\\\",\\\"specific_states_value\\\":{\\\"normal\\\":{\\\"border_width\\\":\\\"1px\\\",\\\"border_type\\\":\\\"solid\\\",\\\"border_color\\\":\\\"#C9C9C9\\\",\\\"shadow_type\\\":\\\"outline\\\",\\\"code\\\":\\\"\\\"},\\\"hover\\\":{},\\\":before\\\":{},\\\":after\\\":{}},\\\"font_list\\\":[],\\\"common_properties\\\":[\\\"current_state\\\",\\\"class_name\\\",\\\"h\\\",\\\"w\\\",\\\"type\\\",\\\"states\\\",\\\"specific_states_value\\\",\\\"common_properties\\\",\\\"selector\\\",\\\"value\\\"],\\\"type\\\":\\\"textbox\\\",\\\"class_name\\\":\\\"color-picker\\\",\\\"selector\\\":\\\".color-picker\\\",\\\"value\\\":\\\" \\\",\\\"h\\\":\\\"240\\\",\\\"w\\\":\\\"480\\\",\\\"class_Css\\\":\\\"label\\\",\\\"id\\\":\\\"form\\\",\\\"border_width\\\":\\\"1px\\\",\\\"border_color\\\":\\\"#C9C9C9\\\",\\\"code\\\":\\\"\\\"}\",\"code\":\".color-picker {\\n border: 1px solid #C9C9C9;\\n}\\n\"}]","custom":"","description":"","fixed_top":"true","form_action":"","form_enctype":"default","form_target":"","form_type":"false","grapesCode":"\u003cbody\u003e{{ @postit }}{{ @resize_header }}{{ @textualpostit }}{{ @color }}{{ @rgb }}{{ @MultiCompS }}{{ @status }}{{ @datestart }}{{ @datestop }}{{ @MSG_POSTIT_BCKG }}{{ @MSG_POSTIT_LINK }}{{ @MSG_POSTIT_TO }}{{ @MSG_POSTIT_SINCE }}{{ @Box16 }}{{ @color_sample }}\u003c\u002fbody\u003e","grapesCss":"","h":"130,130","hsl":"","htmlcode":" \n{{ @MSG_POSTIT_SINCE }}\n{{ @MSG_POSTIT_TO }}\n{{ @MSG_POSTIT_LINK }}\n{{ @MSG_POSTIT_BCKG }}\n\n{{ @datestop }}\n{{ @datestart }}\n{{ @status }}\n{{ @MultiCompS }}\n{{ @rgb }}\n{{ @color }}\n{{ @textualpostit }}\n{{ @resize_header }}\n{{ @postit }}\n \n{{ @color_sample \n }} \n","included_font":"[]","language":"true","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,2","pagesProp":"[{\"title\":\"PostIn\",\"layer\":\"\",\"h\":\"130\",\"w\":\"100%\",\"layout_steps_values\":{}},{\"title\":\"Options\",\"layer\":\"\",\"h\":\"130\",\"w\":\"100%\",\"layout_steps_values\":{}}]","pages_names":"PostIn,Options","portlet_position":"","positioning":"absolute","roles":"","sec_heredity":"","security":"none","selectZone":"","server_cache_time":"","shared_manifest":"false","sp_theme":"false","steps":"","stretch_height":"true","tabstrip_class":"","tabstrip_hidden":"true","tag":"","title":"custom","title_block":"","title_url":"postin_title_portlet.jsp","type":"Form","v_line":"250","version":"37","w":"100%,100%","wizard":""},{"anchor":"","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"","font_color":"","font_size":"","h":"22","help_tips":"","hide":"true","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"","name":"postit","page":"1","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"true","sequence":"1","spuid":"DLOXQBSMCM","tabindex":"2","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"69","wireframe_props":"name","x":"515","y":"-55","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"alt":"","anchor":"bottom-right","bounded_position":"","class_Css":"resize_handle","create_undercond":"","ctrlOfVariant":"","dataobj":"","edit_undercond":"","field":"","fixed":"","font_color":"#FFFFFF","font_color_hover":"#FFFFFF","font_image":"&#xf4f0;","font_image_hover":"","font_name":"icons8_win10","font_size":"10","h":"20","help_tips":"","hide":"false","hide_undercond":"","href":"","img_type":"font icon","keep_proportions":"false","layer":"false","layout_steps_values":"{}","name":"resize_header","page":"1","path_type":"","rapp":"","sequence":"1","server_side":"","spuid":"","src":"","srchover":"","tabindex":"","target":"","type":"Image","type_submit":"false","w":"20","wireframe_props":"","x":"230","y":"110","zindex":"2","zone":""},{"anchor":"top-left-right-bottom","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"postInTextArea","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"","font_color":"","font_size":"","h":"130","help_tips":"","hide":"false","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"","name":"textualpostit","page":"1","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"true","sequence":"2","spuid":"AXQOJKZPCB","tabindex":"4","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"250","wireframe_props":"name","x":"0","y":"0","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"anchor":"","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"","font_color":"","font_size":"","h":"22","help_tips":"","hide":"true","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"9","name":"color","page":"1","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"false","sequence":"3","spuid":"QMMPPRPKPM","tabindex":"9","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"69","wireframe_props":"name","x":"515","y":"-32","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"anchor":"","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"","font_color":"","font_size":"","h":"22","help_tips":"","hide":"true","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"9","name":"rgb","page":"1","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"false","sequence":"4","spuid":"QJYBYSKPAF","tabindex":"10","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"69","wireframe_props":"name","x":"515","y":"-9","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"anchor":"","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"","font_color":"","font_size":"","h":"22","help_tips":"","hide":"true","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"","name":"MultiCompS","page":"1","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"true","sequence":"5","spuid":"BGICHNXDNR","tabindex":"17","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"69","wireframe_props":"name","x":"515","y":"14","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"anchor":"top-left","calculate":"","checked_value":"true","create_undercond":"","css_class":"label","css_class_input":"","ctrlOfVariant":"","dataobj":"","disabled":"false","edit_undercond":"","field":"","fixed":"","h":"20","help_tips":"","hide":"false","hide_undercond":"","init":"","init_par":"","label_text":"","layer":"false","layout_steps_values":"{}","name":"status","page":"2","rapp":"","sequence":"6","spuid":"QHAFRTKOJS","style_type":"","tabindex":"1","type":"Checkbox","typevar":"logic","unchecked_value":"false","w":"20","wireframe_props":"label_text","x":"120","y":"70","zindex":"1","zone":""},{"anchor":"top-left","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"","font_color":"","font_size":"","h":"20","help_tips":"","hide":"false","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"19","name":"datestart","page":"2","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"false","sequence":"7","spuid":"AIFEBZGNZP","tabindex":"2","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"140","wireframe_props":"name","x":"85","y":"15","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"anchor":"top-left","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"","font_color":"","font_size":"","h":"20","help_tips":"","hide":"false","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"19","name":"datestop","page":"2","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"false","sequence":"8","spuid":"GPUYALDNLH","tabindex":"3","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"140","wireframe_props":"name","x":"85","y":"40","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"align":"right","anchor":"top-left","assoc_input":"","bg_color":"","calculate":"","class_Css":"","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":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"MSG_POSTIT_BCKG","nowrap":"false","page":"2","picture":"","rapp":"","sanitize":"","sanitize_tags":"","sequence":"9","server_side":"","shrinkable":"","spuid":"HUWCVWEWXR_DIV","tabindex":"5","target":"","template_code":"","type":"Label","value":"MSG_POSTIT_BCKG","w":"108","wireframe_props":"align,value,n_col","x":"10","y":"100","zindex":"1","zone":""},{"align":"right","anchor":"top-left","assoc_input":"","bg_color":"","calculate":"","class_Css":"","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":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"MSG_POSTIT_LINK","nowrap":"false","page":"2","picture":"","rapp":"","sanitize":"","sanitize_tags":"","sequence":"10","server_side":"","shrinkable":"","spuid":"ZGDCTVATTU_DIV","tabindex":"6","target":"","template_code":"","type":"Label","value":"MSG_POSTIT_LINK","w":"108","wireframe_props":"align,value,n_col","x":"10","y":"75","zindex":"1","zone":""},{"align":"right","anchor":"top-left","assoc_input":"","bg_color":"","calculate":"","class_Css":"","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":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"MSG_POSTIT_TO","nowrap":"false","page":"2","picture":"","rapp":"","sanitize":"","sanitize_tags":"","sequence":"11","server_side":"","shrinkable":"","spuid":"WTBKZVYTLX_DIV","tabindex":"7","target":"","template_code":"","type":"Label","value":"MSG_POSTIT_TO","w":"70","wireframe_props":"align,value,n_col","x":"10","y":"40","zindex":"1","zone":""},{"align":"right","anchor":"top-left","assoc_input":"","bg_color":"","calculate":"","class_Css":"","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":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"MSG_POSTIT_SINCE","nowrap":"false","page":"2","picture":"","rapp":"","sanitize":"","sanitize_tags":"","sequence":"12","server_side":"","shrinkable":"","spuid":"IGAXWLZQBV_DIV","tabindex":"8","target":"","template_code":"","type":"Label","value":"MSG_POSTIT_SINCE","w":"70","wireframe_props":"align,value,n_col","x":"10","y":"15","zindex":"1","zone":""},{"calculate":"","ctrlOfVariant":"","dataobj":"","decrypt":"","decrypt_pwd":"","encrypt":"","encrypt_pwd":"","field":"","h":"22","init":"","init_par":"request","name":"layerId","page":"1","reactive":"","sequence":"13","server_side":"false","type":"Variable","typevar":"character","w":"69","x":"515","y":"46"},{"calculate":"","ctrlOfVariant":"","dataobj":"","decrypt":"","decrypt_pwd":"","encrypt":"","encrypt_pwd":"","field":"","h":"22","init":"","init_par":"request","name":"code","page":"1","reactive":"","sequence":"14","server_side":"false","type":"Variable","typevar":"character","w":"69","x":"515","y":"-78"},{"anchor":"","bg_color":"","border_color":"","border_weight":"","class_Css":"color-picker","collapsible":"","create_undercond":"","ctrlOfVariant":"","fixed":"","groupName":"","h":"20","hide":"false","hide_undercond":"","href":"","layer":"false","layout_steps_values":"{}","name":"color_sample","page":"2","rapp":"","sequence":"15","shrinkable":"","spuid":"","stretch":"false","target":"","title_caption":"","title_portlet":"","titled":"","type":"Box","w":"20","wireframe_props":"","x":"125","y":"99","zindex":"3","zone":""}]%>
<%/*Description:*/%>
<%/*ParamsRequest:layerId,code*/%>
<%@ 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 m_cTITLEUID=JSPLib.getPortletTitleUid(m_cJSPUID);
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_user_Static=function(){
if(typeof color_sample_Click !='undefined')this.color_sample_Click=color_sample_Click;
if(typeof setBackgroundColor !='undefined')this.setBackgroundColor=setBackgroundColor;
if(typeof toggleOpt !='undefined')this.toggleOpt=toggleOpt;
if(typeof deletePostIn !='undefined')this.deletePostIn=deletePostIn;
if(typeof hidePostIn !='undefined')this.hidePostIn=hidePostIn;
if(typeof dragPostIn !='undefined')this.dragPostIn=dragPostIn;
this.this_Calc=function(){
<%if(!Library.Empty(PageletId) ){%>
this.PageletCalc();
<%}%>
this.EnablePage(1);
this.EnablePage(2);
}
this.EnablePage(1);
this.EnablePage(2);
function color_sample_Click(){
if (m_cFunction == 'view' || m_cFunction == 'query')
return;
windowOpenForeground('../visualweb/select_color.html?for=rgb', "SelectColor", "width=250,height=160,top=300,left=300,scroll=no,status=no,toolbar=no")
}
function setBackgroundColor(w_color){
var i = this.color_sample.Ctrl_content;
var t = this.textualpostit.Ctrl_input;
i.style.backgroundColor = 'rgb(' + (Mod(Val(w_color), 256)) + ',' + (Mod(Int(Val(w_color) / 256), 256)) + ',' + (Mod(Int(Val(w_color) / 65536), 256)) + ')';
t.style.backgroundColor = i.style.backgroundColor;
return w_color;
}
var _this = this;
var layerId = this.layerId.Value();
//aggiorno la variabile d'appoggio contenente gli id dei postin in caso di nuovo inserimento
if ( w_code!=this.code.Value() && parent._regWarn.code[parent._regWarn.code.length-1]==this.code.Value())
parent._regWarn.code[parent._regWarn.code.length-1] = w_code;
//inizializzo le dimensioni del layer
var title = this.getTitlePortlet();
var lw = typeof sv_PostitWidth != 'undefined' ? sv_PostitWidht : '250',
lh = typeof sv_PostitHeight != 'undefined' ? sv_PostitHeight : '200';
var layer = parent.document.getElementById(layerId);
//
//var br = layer.getBoundingClientRect();
//layer.style.cssText = 'height:' + lh + 'px;width:' + lw + 'px;top:'+br.top+'px;left:'+br.left+'px;position:absolute;z-index:999';
//
layer.style.height = lh + 'px';
layer.style.width = lw + 'px';
this.textualpostit.Ctrl_input.style.border = '0';
this.textualpostit.Ctrl_input.style.padding = '0';
this.textualpostit.Ctrl_input.style.display = 'block';
// funzione per dare la corretta dimensione al portlet considerando che è stretch ed ha il titolo
var titleTime
(function setHeight(){
if(titleTime)
clearTimeout(titleTime)
if( title.Ctrl.offsetHeight == 0 ) {
titleTime = setTimeout( setHeight, 10);
} else {
_this.Ctrl_container.style.height = "calc(100% - "+title.Ctrl.offsetHeight+"px)";
}
})();
// gestione del drag&drop e del ridimensionamento
this.resize_header.Ctrl.addEventListener('mousedown', function(e){
title.toolbar.CloseMenu();
parent.dragObj.css=layer.style;
parent.dragObj.minW = 250;
parent.dragObj.minH = 150;
parent.dragObj.resize = 'so';
_this.dragPostIn(e,layer)
});
title.Ctrl.onmousedown = function (e) {
if (!e || e.srcElement.tagName == 'A' || e.srcElement.parentElement.tagName == 'A') return;
title.toolbar.CloseMenu();
_this.dragPostIn(e, layer);
}
//gestione della toolbar nel titolo del portlet
//this.AddButton=function(image, action, target, title, tooltip, idx)
var showOpt = false;
// title.toolbar.AppendMenuItem({
title.SetTitle(FormatMsg('MSG_POSTIT'));
title.toolbar.Append({
id:'options',
title: FormatMsg('MSG_POSTIT_OPTIONS'),
tooltip: FormatMsg('MSG_POSTIT_OPTIONS'),
action: toggleOpt,
image:{ fontFamily:'icons8_win10', value: "&#xf2ba"},
});
title.toolbar.Append({
id:'hide',
title: FormatMsg('MSG_POSTIT_HIDE'),
tooltip: FormatMsg('MSG_POSTIT_HIDE'),
action: hidePostIn,
image:{ fontFamily:'icons8_win10', value: "&#xf498"},
});
if (m_cFunction == 'new' || m_cFunction == 'edit') {
title.toolbar.Append({
id:'delete',
title: FormatMsg('MSG_POSTIT_DELETE'),
tooltip: FormatMsg('MSG_POSTIT_DELETE'),
action: function(){deletePostIn.call();},
image:{ fontFamily:'icons8_win10', value: "&#xf041"},
});
}
function toggleOpt(){
if( showOpt ){
_this.ZtTabs.Select('page1');
title.toolbar.UpdateItem('options',{'image':{ fontFamily:'icons8_win10', value: "&#xf2ba"}})
showOpt = false;
} else {
_this.ZtTabs.Select('page2');
title.toolbar.UpdateItem('options',{'image':{ fontFamily:'icons8_win10', value: "&#xf144"}})
showOpt = true;
}
}
function deletePostIn(){
if (m_cFunction == 'view' || m_cFunction == 'query') {
return;
}
if (confirm(Translate("MSG_DELETE_POSTIT"))) {
_this.textualpostit.Value('');
Set_textualpostit('');
_this.hidePostIn();
}
}
function hidePostIn(){
// parent._regWarn.code[idx] = ''
// parent.HideLayerBox(layer.id);
parent.TogglePostit(w_code);
}
function dragPostIn(e,obj) {
// creo un layer trasparente per poter draggare
var d = parent.document.createElement('div');
d.id= 'draglayer';
d.style.cssText = "top:0;left:0;height:100%;width:100%;position:absolute;z-index:10000;background:rgba(255,255,255,.3);";
layer.appendChild(d);
d.onmouseup = function(){
d.parentElement.removeChild(d);
}
e=e?e:window.event
if( !typeof(obj) == "object" ) {
obj=document.getElementById(obj)
}
if(obj) parent.dragObj.css=obj.style
if(!e || !parent.dragObj.css) return
//bring to top of stack
parent.dragObj.css.zIndex=++parent.dragObj.zIndex
//Save mousedown location
var aTag=obj;
var y_delta=0,x_delta=0;
do {
aTag=aTag.offsetParent;
x_delta+=aTag.offsetLeft;
y_delta+=aTag.offsetTop;
} while(aTag.tagName!="BODY" && aTag.tagName!="HTML");
// In caso di finestra scrollata
if( Ctrl("bodyDiv") && Ctrl("bodyDiv").scrollTop ) {
y_delta=y_delta-parent.Ctrl("bodyDiv").scrollTop;
}
//punto di partenza
var pos = eventPos(e);
parent.dragObj.downX=pos.x+layer.offsetLeft+x_delta;
parent.dragObj.downY=pos.y+layer.offsetTop+y_delta;
if(document.addEventListener){
parent.document.addEventListener("mousemove",parent.dragStart,true)
parent.document.addEventListener("mouseup",parent.dragEnd,true)
e.preventDefault()
} else if(document.attachEvent) {
parent.document.attachEvent("onmousemove",parent.dragStart)
parent.document.attachEvent("onmouseup",parent.dragEnd)
return false
}
}
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_user_container .resize_handle{ transform: rotate(90deg);
cursor: se-resize;
text-shadow: 1px 1px #888;
}
.postin_user_container .resize_handle:hover{
color:#FFFFFF !important;
}
.postin_user_container .color-picker{
border: 1px solid #C9C9C9;
}
.postin_user_container {
height:100%;
overflow:auto;
}
.postin_user_portlet{
position:relative;
min-width:250px;
height:100%;
background-color:transparent;
}
.postin_user_portlet[Data-page="1"]{
height:100%;
width:100%;
}
.postin_user_portlet[Data-page="2"]{
height:100%;
width:100%;
}
.postin_user_portlet > .postin_user_page > .postit_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:-55px;
left:515px;
width:69px;
height:22px;
display:none;
}
.postin_user_portlet > .postin_user_page > .postit_ctrl {
}
.postin_user_portlet > .postin_user_page > .postit_ctrl > textarea{
z-index:1;
box-sizing:border-box;
width:100%;
height:100%;
}
.postin_user_portlet > .postin_user_page > .resize_header_ctrl {
box-sizing:border-box;
z-index:2;
position:absolute;
display:inline-block;
right:0px;
bottom:0px;
width:20px;
height:20px;
}
.postin_user_portlet > .postin_user_page > .resize_header_ctrl {
text-decoration:none;
font-family:icons8_win10;
text-align:center;
line-height:20px;
font-size:10px;
color:#FFFFFF;
}
.postin_user_portlet > .postin_user_page > .textualpostit_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:0px;
left:0px;
right:0px;
bottom:0px;
width:auto;
}
.postin_user_portlet > .postin_user_page > .textualpostit_ctrl {
}
.postin_user_portlet > .postin_user_page > .textualpostit_ctrl > textarea{
z-index:1;
box-sizing:border-box;
width:100%;
height:100%;
}
.postin_user_portlet > .postin_user_page > .color_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:-32px;
left:515px;
width:69px;
height:22px;
display:none;
}
.postin_user_portlet > .postin_user_page > .color_ctrl {
}
.postin_user_portlet > .postin_user_page > .color_ctrl > input{
vertical-align:top;
box-sizing:border-box;
z-index:1;
width:100%;
height:100%;
}
.postin_user_portlet > .postin_user_page > .rgb_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:-9px;
left:515px;
width:69px;
height:22px;
display:none;
}
.postin_user_portlet > .postin_user_page > .rgb_ctrl {
}
.postin_user_portlet > .postin_user_page > .rgb_ctrl > input{
vertical-align:top;
box-sizing:border-box;
z-index:1;
width:100%;
height:100%;
}
.postin_user_portlet > .postin_user_page > .MultiCompS_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:14px;
left:515px;
width:69px;
height:22px;
display:none;
}
.postin_user_portlet > .postin_user_page > .MultiCompS_ctrl {
}
.postin_user_portlet > .postin_user_page > .MultiCompS_ctrl > textarea{
z-index:1;
box-sizing:border-box;
width:100%;
height:100%;
}
.postin_user_portlet > .postin_user_page > .status_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:70px;
left:120px;
width:20px;
height:20px;
}
.postin_user_portlet > .postin_user_page > .datestart_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:15px;
left:85px;
width:140px;
height:20px;
}
.postin_user_portlet > .postin_user_page > .datestart_ctrl {
}
.postin_user_portlet > .postin_user_page > .datestart_ctrl > input{
vertical-align:top;
box-sizing:border-box;
z-index:1;
width:100%;
height:100%;
}
.postin_user_portlet > .postin_user_page > .datestop_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:40px;
left:85px;
width:140px;
height:20px;
}
.postin_user_portlet > .postin_user_page > .datestop_ctrl {
}
.postin_user_portlet > .postin_user_page > .datestop_ctrl > input{
vertical-align:top;
box-sizing:border-box;
z-index:1;
width:100%;
height:100%;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_BCKG_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:100px;
left:10px;
width:108px;
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_BCKG_ctrl {
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_BCKG_ctrl {
overflow:hidden;
text-align:right;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_LINK_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:75px;
left:10px;
width:108px;
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_LINK_ctrl {
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_LINK_ctrl {
overflow:hidden;
text-align:right;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_TO_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:40px;
left:10px;
width:70px;
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_TO_ctrl {
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_TO_ctrl {
overflow:hidden;
text-align:right;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_SINCE_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:15px;
left:10px;
width:70px;
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_SINCE_ctrl {
height:auto;
min-height:20px;
}
.postin_user_portlet > .postin_user_page > .MSG_POSTIT_SINCE_ctrl {
overflow:hidden;
text-align:right;
}
.postin_user_portlet > .postin_user_page > .color_sample_ctrl {
box-sizing:border-box;
z-index:3;
position:absolute;
display:inline-block;
top:99px;
left:125px;
width:20px;
height:auto;
min-height:20px;
display:flex;
flex-direction:column;
}
.postin_user_portlet > .postin_user_page > .color_sample_ctrl {
height:20px;
}
.postin_user_portlet > .postin_user_page > .color_sample_ctrl > .box_content {
height:100%;
}
.postin_user_portlet > .postin_user_page > .color_sample_ctrl {
min-height:20px;
}
<%}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\":\"130,130\",\"layout_steps_values\":{},\"pages_names\":\"PostIn,Options\",\"steps\":\"\",\"title\":\"custom\",\"type\":\"Form\",\"v_line\":\"250\",\"w\":\"100%,100%\",\"wizard\":\"\"},{\"anchor\":\"\",\"h\":\"22\",\"layout_steps_values\":{},\"name\":\"postit\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"69\",\"x\":\"515\",\"y\":\"-55\",\"zindex\":\"1\"},{\"anchor\":\"bottom-right\",\"h\":\"20\",\"layout_steps_values\":{},\"name\":\"resize_header\",\"page\":\"1\",\"type\":\"Image\",\"w\":\"20\",\"x\":\"230\",\"y\":\"110\",\"zindex\":\"2\"},{\"anchor\":\"top-left-right-bottom\",\"h\":\"130\",\"layout_steps_values\":{},\"name\":\"textualpostit\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"250\",\"x\":\"0\",\"y\":\"0\",\"zindex\":\"1\"},{\"anchor\":\"\",\"h\":\"22\",\"layout_steps_values\":{},\"name\":\"color\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"69\",\"x\":\"515\",\"y\":\"-32\",\"zindex\":\"1\"},{\"anchor\":\"\",\"h\":\"22\",\"layout_steps_values\":{},\"name\":\"rgb\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"69\",\"x\":\"515\",\"y\":\"-9\",\"zindex\":\"1\"},{\"anchor\":\"\",\"h\":\"22\",\"layout_steps_values\":{},\"name\":\"MultiCompS\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"69\",\"x\":\"515\",\"y\":\"14\",\"zindex\":\"1\"},{\"anchor\":\"top-left\",\"h\":\"20\",\"label_text\":\"\",\"layout_steps_values\":{},\"name\":\"status\",\"page\":\"2\",\"type\":\"Checkbox\",\"w\":\"20\",\"x\":\"120\",\"y\":\"70\",\"zindex\":\"1\"},{\"anchor\":\"top-left\",\"h\":\"20\",\"layout_steps_values\":{},\"name\":\"datestart\",\"page\":\"2\",\"type\":\"Textbox\",\"w\":\"140\",\"x\":\"85\",\"y\":\"15\",\"zindex\":\"1\"},{\"anchor\":\"top-left\",\"h\":\"20\",\"layout_steps_values\":{},\"name\":\"datestop\",\"page\":\"2\",\"type\":\"Textbox\",\"w\":\"140\",\"x\":\"85\",\"y\":\"40\",\"zindex\":\"1\"},{\"align\":\"right\",\"anchor\":\"top-left\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"MSG_POSTIT_BCKG\",\"page\":\"2\",\"type\":\"Label\",\"value\":\"MSG_POSTIT_BCKG\",\"w\":\"108\",\"x\":\"10\",\"y\":\"100\",\"zindex\":\"1\"},{\"align\":\"right\",\"anchor\":\"top-left\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"MSG_POSTIT_LINK\",\"page\":\"2\",\"type\":\"Label\",\"value\":\"MSG_POSTIT_LINK\",\"w\":\"108\",\"x\":\"10\",\"y\":\"75\",\"zindex\":\"1\"},{\"align\":\"right\",\"anchor\":\"top-left\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"MSG_POSTIT_TO\",\"page\":\"2\",\"type\":\"Label\",\"value\":\"MSG_POSTIT_TO\",\"w\":\"70\",\"x\":\"10\",\"y\":\"40\",\"zindex\":\"1\"},{\"align\":\"right\",\"anchor\":\"top-left\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"MSG_POSTIT_SINCE\",\"page\":\"2\",\"type\":\"Label\",\"value\":\"MSG_POSTIT_SINCE\",\"w\":\"70\",\"x\":\"10\",\"y\":\"15\",\"zindex\":\"1\"},{\"h\":\"22\",\"name\":\"layerId\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"69\",\"x\":\"515\",\"y\":\"46\"},{\"h\":\"22\",\"name\":\"code\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"69\",\"x\":\"515\",\"y\":\"-78\"},{\"anchor\":\"\",\"h\":\"20\",\"layout_steps_values\":{},\"name\":\"color_sample\",\"page\":\"2\",\"type\":\"Box\",\"w\":\"20\",\"x\":\"125\",\"y\":\"99\",\"zindex\":\"3\"}]";
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_user","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 ps-stretch>
<%}
if(!included){%>
<head>
<base href=<%=JSPLib.ToHTMLValue( JSPLib.SPWebRootURL(request)+"/jsp/postin_user_portlet.jsp"+(!Library.Empty(request.getQueryString())?"?"+request.getQueryString():"") )%>/>
<%Library.WriteMetaTags(request,response,out);
}
sp.WritePortletJSLibraries(request, out, false,false); %><script>
/*JS_MARKER_START*/
ZtVWeb.RequireLibrary('<%=JSPLib.SPWebRootURL(request)%>/<%=SPPrxycizer.proxycizedPath(sp.getSkin()+"/tabStrip.js")%>');
<%String variantTabstrip=SPPrxycizer.getThemedVariant("tabstrip.css", sp.getSkin());
if(variantTabstrip != null) { %> ZtVWeb.RequireCSS('<%=SPPrxycizer.proxycizedPath(sp.getSkin()+"/tabstrip.css", SPPrxycizer.Mode.QUERYSTRING)%>');<%}%>
/*JS_MARKER_END*/
</script>
<script>
/*JS_MARKER_START*/
<%PrintTranslations(out, sp, request, response, idPortlet);%>
/*JS_MARKER_END*/
</script>
<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>
.postin_user_portlet > .postin_user_page > .postit_ctrl {
display:none;
}
.postin_user_portlet > .postin_user_page > .color_ctrl {
display:none;
}
.postin_user_portlet > .postin_user_page > .rgb_ctrl {
display:none;
}
.postin_user_portlet > .postin_user_page > .MultiCompS_ctrl {
display:none;
}
</style>
<script>
/*JS_MARKER_START*/
ZtVWeb.POM.addObj('<%=idPortlet%>','postin_user','portletObj','<%=JSPLib.ToJSValue(SPParentObjId,false,true)%>');
/*JS_MARKER_END*/
</script>
<%String postit= "";
if(request.getAttribute("postin_user_firstinclusion")==null){
if (Library.IsMobile(request)) {%><link rel='prefetch' as='script' id='controls.js' href='../<%=SPPrxycizer.proxycizedPath("controls.js") %>'>
<link rel='prefetch' as='script' id='calculator.mobile.js' href='../<%=SPPrxycizer.proxycizedPath(sp.getSkin()+"/calculator.mobile.js") %>'>
<% } %><%}
String textualpostit= "";
String color= "";
String rgb= "";
String MultiCompS= "";
boolean status= false;
String datestart= "";
String datestop= "";
String MSG_POSTIT_BCKG= "MSG_POSTIT_BCKG";
String MSG_POSTIT_LINK= "MSG_POSTIT_LINK";
String MSG_POSTIT_TO= "MSG_POSTIT_TO";
String MSG_POSTIT_SINCE= "MSG_POSTIT_SINCE";
String layerId=JSPLib.translateXSS(sp.getParameter("layerId",""));
String code=JSPLib.translateXSS(sp.getParameter("code",""));
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%>_<%=m_cTITLEUID%>_title_container' class='postin_user_title_container' style='width:100%'>
<%out.flush();
if(!Library.includeResource(request,response,"/"+sp.getSkin()+"/jsp-decorators/postin_title_portlet.jsp?ForcedPortletUID="+idPortlet+"_"+m_cTITLEUID+"",true))
if(!Library.includeResource(request,response,"/jsp-decorators/postin_title_portlet.jsp?ForcedPortletUID="+idPortlet+"_"+m_cTITLEUID+"",true))
Library.includeResource(request,response,"/jsp/postin_title_portlet.jsp?ForcedPortletUID="+idPortlet+"_"+m_cTITLEUID+"",false);%>
</div>
<div id='<%=idPortlet%>_tabcontainer' style='position:relative;display:none;'></div>
<div id='<%=idPortlet%>_container' class='postin_user_container'>
<div id='<%=idPortlet%>' portlet_id='<%=idPortlet%>' align='left' class='postin_user_portlet portlet'Data-page='1' style='opacity:0.001'>
<%if(sp.isLogged()){
if(sp.isInGroup(1) && sp.getGlobal("g_EditPortlet",false)==true){%>
<script>
ZtVWeb.AddPortletToEdit('postin_user','<%=idPortlet%>',false,'');
</script><%}}%>
<div id='<%=idPortlet%>_page_1' class='postin_user_page' style='display:block'>
<span class='textbox-container'id='DLOXQBSMCM_wrp'><textarea id='DLOXQBSMCM' name='postit' type='text' class='textbox' tabindex='2' formid='<%=idPortlet%>' ps-name='postit' ></textarea></span>
<a id='<%=idPortlet%>_resize_header' class='resize_handle resize_header_ctrl' target=''>&#xf4f0;</a>
<span class='textbox-container'id='AXQOJKZPCB_wrp'><textarea id='AXQOJKZPCB' name='textualpostit' type='text' class='postInTextArea' tabindex='4' formid='<%=idPortlet%>' ps-name='textualpostit' ></textarea></span>
<span class='textbox-container'id='QMMPPRPKPM_wrp'><input id='QMMPPRPKPM' name='color' type='text' maxlength='9' class='textbox' tabindex='9' formid='<%=idPortlet%>' ps-name='color' /></span>
<span class='textbox-container'id='QJYBYSKPAF_wrp'><input id='QJYBYSKPAF' name='rgb' type='text' maxlength='9' class='textbox' tabindex='10' formid='<%=idPortlet%>' ps-name='rgb' /></span>
<span class='textbox-container'id='BGICHNXDNR_wrp'><textarea id='BGICHNXDNR' name='MultiCompS' type='text' class='textbox' tabindex='17' formid='<%=idPortlet%>' ps-name='MultiCompS' ></textarea></span>
</div>
<div id='<%=idPortlet%>_page_2' class='postin_user_page' style='display:none'>
<input id='QHAFRTKOJS' tabindex=1 name='status' class='checkbox' type='checkbox' style=''/>
<span class='textbox-container'id='AIFEBZGNZP_wrp'><input id='AIFEBZGNZP' name='datestart' type='text' maxlength='19' class='textbox' tabindex='2' formid='<%=idPortlet%>' ps-name='datestart' /></span>
<span class='textbox-container'id='GPUYALDNLH_wrp'><input id='GPUYALDNLH' name='datestop' type='text' maxlength='19' class='textbox' tabindex='3' formid='<%=idPortlet%>' ps-name='datestop' /></span>
<span id='HUWCVWEWXR_DIV' formid='<%=idPortlet%>' ps-name='MSG_POSTIT_BCKG' class='label MSG_POSTIT_BCKG_ctrl'><div id='HUWCVWEWXR_DIVtbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("MSG_POSTIT_BCKG"))%></div></span>
<span id='ZGDCTVATTU_DIV' formid='<%=idPortlet%>' ps-name='MSG_POSTIT_LINK' class='label MSG_POSTIT_LINK_ctrl'><div id='ZGDCTVATTU_DIVtbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("MSG_POSTIT_LINK"))%></div></span>
<span id='WTBKZVYTLX_DIV' formid='<%=idPortlet%>' ps-name='MSG_POSTIT_TO' class='label MSG_POSTIT_TO_ctrl'><div id='WTBKZVYTLX_DIVtbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("MSG_POSTIT_TO"))%></div></span>
<span id='IGAXWLZQBV_DIV' formid='<%=idPortlet%>' ps-name='MSG_POSTIT_SINCE' class='label MSG_POSTIT_SINCE_ctrl'><div id='IGAXWLZQBV_DIVtbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("MSG_POSTIT_SINCE"))%></div></span>
<div id='<%=idPortlet%>_color_sample' class='color_sample_ctrl SPSection_expanded color-picker' data-original-display='flex'><div id='<%=idPortlet%>_color_sample_td' class='box_content'></div>
</div>
</div>
</div>
</div>
<script>
/*JS_MARKER_START*/
ZtVWeb.addPortlet('<%=idPortlet%>','postin_user');
<%!
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") : "";
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_COLLAPSE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_COLLAPSE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_EXPAND",true)+","+JSPLib.ToJSValue(sp.translate("MSG_EXPAND"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_POSTIT",true)+","+JSPLib.ToJSValue(sp.translate("MSG_POSTIT"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_POSTIT_DELETE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_POSTIT_DELETE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_POSTIT_HIDE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_POSTIT_HIDE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_POSTIT_OPTIONS",true)+","+JSPLib.ToJSValue(sp.translate("MSG_POSTIT_OPTIONS"),true)+");\n");
}/**/%>
<%
final String com__zucchetti__sitepainter__altinterface__url = (String)request.getAttribute("com__zucchetti__sitepainter__altinterface__url");
final boolean isMainTabsForAltUI = com__zucchetti__sitepainter__altinterface__url != null && com__zucchetti__sitepainter__altinterface__url.contains("/postin_user_portlet.jsp");
%>
window.<%=idPortlet%>_tabstrip=new Z.Tabs({container:'<%=idPortlet%>_tabcontainer',useGlobals:<%=isMainTabsForAltUI%>, wizard:false, tabstrip_class: ''});
<%
if (isMainTabsForAltUI) {
%>
Z.Tabs.Set('tabs',window.<%=idPortlet%>_tabstrip);
<%
}
%>
<%=idPortlet%>_tabstrip.AddTab({name:'page1', element:'<%=idPortlet%>_page_1',caption:'<%=JSPLib.ToJSValue(sp.translate("PostIn"))%>',onExpand:function(){return ZtVWeb.AdjustPortletHeight('<%=idPortlet%>')}});
<%=idPortlet%>_tabstrip.AddTab({name:'page2', element:'<%=idPortlet%>_page_2',caption:'<%=JSPLib.ToJSValue(sp.translate("Options"))%>',onExpand:function(){return ZtVWeb.AdjustPortletHeight('<%=idPortlet%>')}});
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_user',["250","250"],["130","130"],'portlet',<%=sp.isOfflineInstallation()%>,false,m_cSPPageletId,'', 'fixed','<%=m_cTITLEUID%>','true',{},false,true,2,m_cSPPortletTitleId, 'NORMAL',[{"layout_steps_values":{},"w":"250","h":"130","title":"PostIn","layer":""},{"layout_steps_values":{},"w":"250","h":"130","title":"Options","layer":""}]);
this.postit=new ZtVWeb._TC(this,{"anchor":"top-left","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"DLOXQBSMCM","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":22,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"true","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"","name":"postit","page":1,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"DLOXQBSMCM","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(postit,false,true)%>","w":69,"x":515,"y":-55,"zerofilling":false,"zindex":"1","zoom":""});
this.resize_header=new ZtVWeb._IC(this,{"alt":"","anchor":"bottom-right","boundedPosition":"","class_Css":"resize_handle resize_header_ctrl","create_undercond":"","ctrlid":"<%=idPortlet%>_resize_header","edit_undercond":"","field":"","font_color":"#FFFFFF","font_color_hover":"#FFFFFF","font_image":"&#xf4f0;","font_image_hover":"","font_name":"icons8_win10","font_path":"","font_size":"10","h":20,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"false","hide_undercond":"","href":"","img_type":"font icon","keepProportions":"false","layer":false,"layout_steps_values":{},"name":"resize_header","page":1,"path_type":"","server_side":"","spuid":"","src":"&#xf4f0;","srchover":"","tabindex":"","target":"","type":"Image","type_submit":"false","w":20,"x":230,"y":110,"zindex":"2"});
ZtVWeb.RequireFont("icons8_win10","");
this.textualpostit=new ZtVWeb._TC(this,{"anchor":"top-left-right-bottom","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"AXQOJKZPCB","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":130,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"false","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"","name":"textualpostit","page":1,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"AXQOJKZPCB","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(textualpostit,false,true)%>","w":250,"x":0,"y":0,"zerofilling":false,"zindex":"1","zoom":""});
this.color=new ZtVWeb._TC(this,{"anchor":"top-left","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"QMMPPRPKPM","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":22,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"true","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"9","name":"color","page":1,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"QMMPPRPKPM","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(color,false,true)%>","w":69,"x":515,"y":-32,"zerofilling":false,"zindex":"1","zoom":""});
this.rgb=new ZtVWeb._TC(this,{"anchor":"top-left","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"QJYBYSKPAF","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":22,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"true","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"9","name":"rgb","page":1,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"QJYBYSKPAF","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(rgb,false,true)%>","w":69,"x":515,"y":-9,"zerofilling":false,"zindex":"1","zoom":""});
this.MultiCompS=new ZtVWeb._TC(this,{"anchor":"top-left","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"BGICHNXDNR","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":22,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"true","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"","name":"MultiCompS","page":1,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"BGICHNXDNR","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(MultiCompS,false,true)%>","w":69,"x":515,"y":14,"zerofilling":false,"zindex":"1","zoom":""});
this.status=new ZtVWeb.CheckboxCtrl(this,{"anchor":"top-left","calculate":"","checked_value":"true","create_undercond":"","css_class":"label","css_class_input":"checkbox","ctrlid":"QHAFRTKOJS","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","h":20,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"false","hide_undercond":"","init":"","init_par":"","label_text":"","layer":false,"layout_steps_values":{},"name":"status","page":2,"reactive":false,"server_side":"","spuid":"QHAFRTKOJS","style_type":"","tabindex":"1","type":"Checkbox","typevar":"logic","unchecked_value":"false","w":20,"x":120,"y":70,"zindex":"1"});
this.datestart=new ZtVWeb._TC(this,{"anchor":"top-left","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"AIFEBZGNZP","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":20,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"false","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"19","name":"datestart","page":2,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"AIFEBZGNZP","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(datestart,false,true)%>","w":140,"x":85,"y":15,"zerofilling":false,"zindex":"1","zoom":""});
this.datestop=new ZtVWeb._TC(this,{"anchor":"top-left","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"GPUYALDNLH","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":20,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"false","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"19","name":"datestop","page":2,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"GPUYALDNLH","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(datestop,false,true)%>","w":140,"x":85,"y":40,"zerofilling":false,"zindex":"1","zoom":""});
this.MSG_POSTIT_BCKG=new ZtVWeb._LC(this,{"align":"right","anchor":"top-left","assoc_input":"","calculate":"","class_Css":"","create_undercond":"","ctrlid":"HUWCVWEWXR_DIV","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":false,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"MSG_POSTIT_BCKG","nowrap":"false","page":2,"picture":"","sanitize":"","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"HUWCVWEWXR_DIV","tabindex":"5","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(MSG_POSTIT_BCKG),false,true)%>","type":"Label","w":108,"x":10,"y":100,"zindex":"1"});
this.MSG_POSTIT_LINK=new ZtVWeb._LC(this,{"align":"right","anchor":"top-left","assoc_input":"","calculate":"","class_Css":"","create_undercond":"","ctrlid":"ZGDCTVATTU_DIV","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":false,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"MSG_POSTIT_LINK","nowrap":"false","page":2,"picture":"","sanitize":"","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"ZGDCTVATTU_DIV","tabindex":"6","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(MSG_POSTIT_LINK),false,true)%>","type":"Label","w":108,"x":10,"y":75,"zindex":"1"});
this.MSG_POSTIT_TO=new ZtVWeb._LC(this,{"align":"right","anchor":"top-left","assoc_input":"","calculate":"","class_Css":"","create_undercond":"","ctrlid":"WTBKZVYTLX_DIV","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":false,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"MSG_POSTIT_TO","nowrap":"false","page":2,"picture":"","sanitize":"","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"WTBKZVYTLX_DIV","tabindex":"7","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(MSG_POSTIT_TO),false,true)%>","type":"Label","w":70,"x":10,"y":40,"zindex":"1"});
this.MSG_POSTIT_SINCE=new ZtVWeb._LC(this,{"align":"right","anchor":"top-left","assoc_input":"","calculate":"","class_Css":"","create_undercond":"","ctrlid":"IGAXWLZQBV_DIV","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":false,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"MSG_POSTIT_SINCE","nowrap":"false","page":2,"picture":"","sanitize":"","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"IGAXWLZQBV_DIV","tabindex":"8","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(MSG_POSTIT_SINCE),false,true)%>","type":"Label","w":70,"x":10,"y":15,"zindex":"1"});
this.layerId=new ZtVWeb._VC(this,'layerId',null,'character','<%=JSPLib.ToJSValue(layerId,false,true)%>',false,false);
this.code=new ZtVWeb._VC(this,'code',null,'character','<%=JSPLib.ToJSValue(code,false,true)%>',false,false);
this.color_sample=new ZtVWeb.BoxCtrl(this,{"anchor":"top-left","bg_color":"","border_color":"","border_weight":"","class_Css":"color-picker","collapsible":"","create_undercond":"","ctrlid":"<%=idPortlet%>_color_sample","groupName":"","h":20,"hide":"false","hide_undercond":"","href":"","isGroupNameHead":false,"layer":false,"layout_steps_values":{},"name":"color_sample","page":2,"shrinkable":"","spuid":"","stretch":"false","target":"","title_caption":"","titled":"","type":"Box","w":20,"x":125,"y":99,"zindex":"3"});
<%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>
<script>
/*JS_MARKER_START*/
<%=idPortlet%>_tabstrip.Select('page1');
/*JS_MARKER_END*/
</script>
<%if(request.getAttribute("postin_user_firstinclusion")==null){%>
<script src='<%=JSPLib.getJSPSelfPath(request)%>?SpStaticCode=<%=m_cJSPUID%>'></script>
<%request.setAttribute("postin_user_firstinclusion",idPortlet);
}%>
<script>
/*JS_MARKER_START*/
window.postin_user_Static.call(window.<%=idPortlet%>);
window.<%=idPortlet%>.resize_header.dispatchEvent('OnLoad');
ZtVWeb.addPortletObj('<%=idPortlet%>','postin_user',<%=idPortlet%>);
ZtVWeb.portletLoaded(<%=idPortlet%>,'postin_user');
/*JS_MARKER_END*/
</script>
<%if(!included){%>
</body>
<%}
}finally{
}%>
<%if(!included){%>
</html>
<%}
sp.endPage("postin_user");
}%>
<%! public String getJSPUID() { return "58147459"; } %>