%/*Encoding:UTF-8*/%> <%/*Type:Portlet*/%> <%//Def:[{"actioncode":"\u002f\u002fSetto le variabili utili per la costruzione del calendario\nvar zero = '';\nvar mese = new Array ( 'Gennaio' , 'Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre');\nvar giorno = new Array ('Domenica','Lunedi','Martedi','Mercoledi','Giovedi','Venerdi','Sabato');\n\n\ni= new Date(); dd=i.getDay(); gg=i.getDate(); mm=i.getMonth(); aa=i.getFullYear();\n\nif (gg \u003c 10) { zero = '0' } else { zero = '' };\n\n\u002f\u002f Vml\nvar vmlClock = \"\";\nvmlClock += \"\u003cxml:namespace ns=\\\"urn:schemas-microsoft-com:vml\\\" prefix=\\\"vml\\\" \u002f\u003e\u003c?import namespace=\\\"vml\\\" implementation=\\\"#default#VML\\\" ?\u003e\";\nvmlClock += \"\u003cvml:group id=\\\"seconds\\\" style=\\\"width:80px;height:80px;position:absolute;left:20px;top:20px;\\\" coordorigin=\\\"0 0\\\" coordsize=\\\"80 80\\\"\u003e\u003cvml:line from=\\\"40,40\\\" to=\\\"40,0\\\"\u003e\u003cvml:stroke weight=\\\"1px\\\" endcap=\\\"round\\\" color=\\\"#cc0000\\\"\u002f\u003e\u003c\u002fvml:line\u003e\u003c\u002fvml:group\u003e\";\nvmlClock += \"\u003cvml:group id=\\\"minutes\\\" style=\\\"width:80px;height:80px;position:absolute;left:20px;top:20px;\\\" coordorigin=\\\"0 0\\\" coordsize=\\\"80 80\\\"\u003e\u003cvml:line from=\\\"40,40\\\" to=\\\"40,0\\\"\u003e\u003cvml:stroke weight=\\\"3px\\\" endcap=\\\"round\\\" color=\\\"#3a484b\\\"\u002f\u003e\u003c\u002fvml:line\u003e\u003c\u002fvml:group\u003e\";\nvmlClock += \"\u003cvml:group id=\\\"hours\\\" style=\\\"width:80px;height:80px;position:absolute;left:20px;top:20px;\\\" coordorigin=\\\"0 0\\\" coordsize=\\\"80 80\\\"\u003e\u003cvml:line from=\\\"40,40\\\" to=\\\"40,15\\\"\u003e\u003cvml:stroke weight=\\\"5px\\\" endcap=\\\"round\\\" color=\\\"#3a484b\\\"\u002f\u003e\u003c\u002fvml:line\u003e\u003c\u002fvml:group\u003e\";\nvmlClock += \"\u003cvml:oval fillcolor=\\\"#3a484b\\\" style=\\\"width:10px;height:10px;position:absolute;left:53px;top:53px;\\\" strokecolor=\\\"#3a484b\\\" strokeweight=\\\"1px\\\" \u002f\u003e\";\n\n\u002f\u002f Canvas\nvar canvasClock = \"\u003ccanvas id=\\\"canvasClock\\\" width=\\\"80\\\" height=\\\"80\\\" style=\\\"position:absolute;left:20px;top:20px;\\\"\u003e\u003c\u002fcanvas\u003e\";\n\n\u002f\u002f Update vml clock\nfunction vmlClock(){\n\n var now = new Date();\n var sec = now.getSeconds();\n var min = now.getMinutes();\n var hr = now.getHours();\n hr = hr\u003e=12 ? hr-12 : hr;\n\n var seconds = document.getElementById(\"seconds\");\n if(seconds) seconds.rotation = sec * 6;\n\n var minutes= document.getElementById(\"minutes\");\n if(minutes) minutes.rotation = min * 6;\n\n var hours= document.getElementById(\"hours\");\n if(hours) hours.rotation = hr * 30 + min\u002f2;\n}\n\n\u002f\u002f Update canvas clock\nfunction canvasClock() {\n\n var now = new Date();\n var ctx = document.getElementById(\"canvasClock\").getContext('2d');\n ctx.save();\n ctx.clearRect(0,0,80,80);\n ctx.translate(40,40);\n ctx.scale(0.4,0.4);\n ctx.rotate(-Math.PI\u002f2);\n ctx.strokeStyle = \"#3a484b\";\n ctx.fillStyle = \"white\";\n ctx.lineWidth = 6;\n ctx.lineCap = \"round\";\n\n var sec = now.getSeconds();\n var min = now.getMinutes();\n var hr = now.getHours();\n hr = hr\u003e=12 ? hr-12 : hr;\n\n ctx.fillStyle = \"#3a484b\";\n\n \u002f\u002f write Hours\n ctx.save();\n ctx.rotate( hr*(Math.PI\u002f6) + (Math.PI\u002f360)*min + (Math.PI\u002f21600)*sec )\n ctx.lineWidth = 12;\n ctx.beginPath();\n ctx.moveTo(0,0);\n ctx.lineTo(55,0);\n ctx.stroke();\n ctx.restore();\n\n \u002f\u002f write Minutes\n ctx.save();\n ctx.rotate( (Math.PI\u002f30)*min + (Math.PI\u002f1800)*sec )\n ctx.lineWidth = 8;\n ctx.beginPath();\n ctx.moveTo(0,0);\n ctx.lineTo(95,0);\n ctx.stroke();\n ctx.restore();\n\n \u002f\u002f Write seconds\n ctx.save();\n ctx.rotate(sec * Math.PI\u002f30);\n ctx.strokeStyle = '#cc0000';\n ctx.lineWidth = 2;\n ctx.beginPath();\n ctx.moveTo(0,0);\n ctx.lineTo(110,0);\n ctx.stroke();\n ctx.restore();\n\n \u002f\u002f Write pivot\n ctx.beginPath();\n ctx.lineWidth = 2;\n ctx.strokeStyle = '#3a484b';\n ctx.arc(0,0,10,0,Math.PI*2,true);\n ctx.fill();\n ctx.restore();\n\n \u002f\u002f Erase old\n ctx.beginPath();\n ctx.lineWidth = 14;\n ctx.strokeStyle = '#fff';\n ctx.arc(0,0,120,0,Math.PI*2,true);\n ctx.stroke();\n ctx.restore();\n}\n\n\nfunction this_Loaded(){\n\n \u002f\u002f Se browser non supporta canvas\n if(!document.createElement(\"canvas\").getContext) {\n this.clockBox.Ctrl.innerHTML = vmlClock;\n setInterval(this.formid+'.vmlClock()',1000);\n }else{\n this.clockBox.Ctrl.innerHTML = canvasClock;\n setInterval(this.formid+'.canvasClock()',1000);\n }\n}\n\n\nvar _this = this;\n\n\nfunction upclock(){\n var dte = new Date();\n var hrs = dte.getHours();\n var min = dte.getMinutes();\n var sec = dte.getSeconds();\n var col = ':';\n var spc = ' ';\n if (hrs == 0) hrs=12;\n if (hrs\u003c=9) hrs=\"0\"+hrs;\n if (min\u003c=9) min=\"0\"+min;\n if (sec\u003c=9) sec=\"0\"+sec;\n this.label15.Value(hrs+'.'+min+'.'+sec+spc);\n}\n\n\nvar zero = '';\nvar mese = new Array ( '\u003c%=JSPLib.ToJSValue(sp.translate(\"Gennaio\"))%\u003e' , '\u003c%=JSPLib.ToJSValue(sp.translate(\"Febbraio\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Marzo\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Aprile\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Maggio\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Giugno\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Luglio\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Agosto\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Settembre\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Ottobre\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Novembre\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Dicembre\"))%\u003e');\nvar giorno = new Array ('\u003c%=JSPLib.ToJSValue(sp.translate(\"Domenica\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Lunedi\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Martedi\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Mercoledi\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Giovedi\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Venerdi\"))%\u003e','\u003c%=JSPLib.ToJSValue(sp.translate(\"Sabato\"))%\u003e');\n\n\n\nvar i= new Date();\nvar dd=i.getDay();\nvar gg=i.getDate();\nvar mm=i.getMonth();\nvar aa=i.getFullYear();\n\n\n\nif (gg \u003c 10) { zero = '0' } else { zero = '' };\nthis.label14.Value(Trim(zero + gg));\nthis.label12.Value( giorno[dd]);\nthis.label16.Value(mese[mm]+ ' '+ aa );\n\n\n\n\nsetInterval('ZtVWeb.getPortlet(\\'start_page_calendar\\').upclock()',1000);\n\n","bg_image":" ","cache_time":" ","color":"transparent","css":" ","css_class":" ","description":" ","form_action":" ","form_target":" ","form_type":"false","h":"250","hsl":" ","language":"false","lock_items":" ","manifest":" ","my_library":" ","offline":" ","on_security_failure":"login","pages_names":" ","positioning":"absolute","roles":" ","security":"none","server_cache_time":" ","sp_theme":"false","sp_uid":"false","tag":" ","title":" ","type":"Form","v_line":" ","version":"37","w":"170"},{"align":"center","anchor":"top-right","assoc_input":" ","bg_color":"transparent","calculate":" ","class_Css":"label","dataobj":" ","enable_HTML":"true","field":" ","font":" ","font_color":" ","font_size":"31px","font_weight":"bold","h":"40","heading":" ","help_tips":" ","hide_undercond":" ","href":" ","init":" ","name":"label14","page":"1","picture":" ","sequence":"1","server_side":" ","tabindex":" ","target":" ","type":"Label","value":"00","w":"53","x":"55","y":"183","zindex":"1"},{"align":"left","anchor":"top-right","assoc_input":" ","bg_color":"transparent","calculate":" ","class_Css":" ","dataobj":" ","enable_HTML":"true","field":" ","font":"Tahoma","font_color":"#291C00","font_size":"10px","font_weight":"normal","h":"15","heading":" ","help_tips":" ","hide_undercond":" ","href":" ","init":" ","name":"label16","page":"1","picture":" ","sequence":"2","server_side":" ","tabindex":" ","target":" ","type":"Label","value":"Settembre 2006","w":"74","x":"57","y":"218","zindex":"1"},{"align":"left","anchor":"top-right","assoc_input":" ","bg_color":"transparent","calculate":" ","class_Css":" ","dataobj":" ","enable_HTML":"true","field":" ","font":"Verdana","font_color":"#291C00","font_size":"10px","font_weight":"normal","h":"13","heading":" ","help_tips":" ","hide_undercond":" ","href":" ","init":" ","name":"label15","page":"1","picture":" ","sequence":"3","server_side":" ","tabindex":" ","target":" ","type":"Label","value":"...","w":"102","x":"60","y":"158","zindex":"1"},{"align":"center","anchor":"top-right","assoc_input":" ","bg_color":"transparent","calculate":" ","class_Css":"label","dataobj":" ","enable_HTML":"true","field":" ","font":"Tahoma","font_color":"#333333","font_size":"7pt","font_weight":"bold","h":"14","heading":" ","help_tips":" ","hide_undercond":" ","href":" ","init":" ","name":"label12","page":"1","picture":" ","sequence":"4","server_side":" ","tabindex":" ","target":" ","type":"Label","value":"Martedi","w":"57","x":"54","y":"177","zindex":"1"},{"anchor":" ","bg_color":"transparent","border_color":" ","border_weight":"0","class_Css":" ","h":"120","hide_undercond":" ","name":"clockBox","page":"1","sequence":"5","stretch":"false","type":"Box","w":"120","x":"25","y":"26","zindex":"2"},{"alt":" ","anchor":" ","dataobj":" ","field":" ","h":"250","help_tips":" ","hide_undercond":" ","href":" ","name":"sfx_Copy","page":"1","path_type":"skin","sequence":"6","server_side":" ","src":"..\u002fimages\u002fbackclock.png","srchover":" ","tabindex":" ","target":" ","type":"Image","type_submit":"false","w":"170","x":"0","y":"0","zindex":"0"},{"alt":" ","anchor":" ","dataobj":" ","field":" ","h":"135","help_tips":" ","hide_undercond":" ","href":" ","name":"sfx","page":"1","path_type":"skin","sequence":"7","server_side":" ","src":"..\u002fimages\u002fclock.png","srchover":" ","tabindex":" ","target":" ","type":"Image","type_submit":"false","w":"135","x":"17","y":"20","zindex":"1"}]%> <%/*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("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"); %> .start_page_calendar_container { } .start_page_calendar_portlet{ position:relative; width:170px; min-width:170px; height:250px; background-color:transparent; } .start_page_calendar_portlet[Data-page="1"]{ height:250px; width:170px; } .start_page_calendar_portlet > .label14_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; top:183px; right:62px; width:53px; height:auto; min-height:40px; } .start_page_calendar_portlet > .label14_ctrl { height:auto; min-height:40px; } .start_page_calendar_portlet > .label14_ctrl { overflow:hidden; font-size:31px; font-weight:bold; text-align:center; background-color:transparent; } .start_page_calendar_portlet > .label16_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; top:218px; right:39px; width:74px; height:auto; min-height:15px; } .start_page_calendar_portlet > .label16_ctrl { height:auto; min-height:15px; } .start_page_calendar_portlet > .label16_ctrl { overflow:hidden; font-family:Tahoma; font-size:10px; font-weight:normal; color:#291C00; text-align:left; background-color:transparent; } .start_page_calendar_portlet > .label15_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; top:158px; right:8px; width:102px; height:auto; min-height:13px; } .start_page_calendar_portlet > .label15_ctrl { height:auto; min-height:13px; } .start_page_calendar_portlet > .label15_ctrl { overflow:hidden; font-family:Verdana; font-size:10px; font-weight:normal; color:#291C00; text-align:left; background-color:transparent; } .start_page_calendar_portlet > .label12_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; top:177px; right:59px; width:57px; height:auto; min-height:14px; } .start_page_calendar_portlet > .label12_ctrl { height:auto; min-height:14px; } .start_page_calendar_portlet > .label12_ctrl { overflow:hidden; font-family:Tahoma; font-size:7pt; font-weight:bold; color:#333333; text-align:center; background-color:transparent; } .start_page_calendar_portlet > .clockBox_ctrl { box-sizing:border-box; z-index:2; position:absolute; display:inline-block; top:26px; left:25px; width:120px; height:auto; min-height:120px; display:flex; flex-direction:column; } .start_page_calendar_portlet > .clockBox_ctrl { height:120px; } .start_page_calendar_portlet > .clockBox_ctrl > .box_content { height:100%; } .start_page_calendar_portlet > .clockBox_ctrl { min-height:120px; background-color:transparent; border-width:0px; border-style:solid; } .start_page_calendar_portlet > .sfx_Copy_ctrl { box-sizing:border-box; z-index:0; position:absolute; display:inline-block; top:0px; left:0px; width:170px; height:250px; } .start_page_calendar_portlet > .sfx_Copy_ctrl { } .start_page_calendar_portlet > .sfx_Copy_ctrl > img{ width:100%; vertical-align:top; height:250px; } .start_page_calendar_portlet > .sfx_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; top:20px; left:17px; width:135px; height:135px; } .start_page_calendar_portlet > .sfx_ctrl { } .start_page_calendar_portlet > .sfx_ctrl > img{ width:100%; vertical-align:top; height:135px; } <%}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\":\"250\",\"pages_names\":\"\",\"title\":\"\",\"type\":\"Form\",\"v_line\":\"\",\"w\":\"170\"},{\"anchor\":\"top-right\",\"h\":\"40\",\"page\":\"1\",\"type\":\"Label\",\"w\":\"53\",\"x\":\"55\",\"y\":\"183\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"15\",\"page\":\"1\",\"type\":\"Label\",\"w\":\"74\",\"x\":\"57\",\"y\":\"218\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"13\",\"page\":\"1\",\"type\":\"Label\",\"w\":\"102\",\"x\":\"60\",\"y\":\"158\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"14\",\"page\":\"1\",\"type\":\"Label\",\"w\":\"57\",\"x\":\"54\",\"y\":\"177\",\"zindex\":\"1\"},{\"anchor\":\"\",\"h\":\"120\",\"page\":\"1\",\"type\":\"Box\",\"w\":\"120\",\"x\":\"25\",\"y\":\"26\",\"zindex\":\"2\"},{\"anchor\":\"\",\"h\":\"250\",\"page\":\"1\",\"type\":\"Image\",\"w\":\"170\",\"x\":\"0\",\"y\":\"0\",\"zindex\":\"0\"},{\"anchor\":\"\",\"h\":\"135\",\"page\":\"1\",\"type\":\"Image\",\"w\":\"135\",\"x\":\"17\",\"y\":\"20\",\"zindex\":\"1\"}]"; out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("
\n"); out.write("\n"); }/**/%> <%}else{ if (JSPLib.checkApplication(request, response, out, sp, 37,"start_page_calendar","UTF-8")) {return; } %><%boolean included=request.getAttribute("javax.servlet.include.request_uri")!=null || "true".equals(request.getParameter("clientsideinclusion")); Map