<%/*Encoding:UTF-8*/%> <%/*Type:Portlet*/%> <%//Def:[{"actioncode":"\u003c%int configMode=sp.ZoomConfigMode();%\u003e\nfunction VZMList_RecordChanged(){\nvar conf;\n\u003c%if (configMode==2) {%\u003e\n conf = this.VZMList.rs.custom+\"\u002f\"+this.VZMList.rs.VZM+ (!Empty(this.VZMList.rs.spec)?\"\u002f\"+this.VZMList.rs.spec:\"\");\n\u003c%} else {%\u003e\n conf = this.VZMList.rs.VZM;\n\u003c% } %\u003e\nthis.ConfigurationSelected.Value(conf);\n}\n\ndocument.title=\"\u003c%=sp.translate(\"MSG_VZM_SELECT\")%\u003e\"+\" VZM\";\n\nfunction this_Loaded(){\n\u003c% if (configMode==2) { %\u003e\nthis.grdVzms.ColumnFields(\"checkbox:custom,VZM,spec\");\nthis.grdVzms.ColumnTitles(\"Custom,Configuration,Specific\");\n\u003c% } %\u003e\n\n this.Fill();\n}\nthis.grdVzms.Refresh=function(){\n this.form.Fill();\n}\nfunction Fill(){\n new JSURL(\"..\u002fservlet\u002fSPVZMProxy?action=list&table=\"+this.Table.Value(),true,_fill);\n}\n\nvar this_portlet=this;\nvar _fill=function(jsurl){\n __fill.call(this_portlet,new Function(\"return \"+jsurl.Response()+\";\")());\n}\n\nvar __fill=function(vzms){\n var vzmList;\n\u003c% if (configMode==2) {%\u003e\n vzmList={Fields:['custom','VZM','spec'],Data:[]};\n\u003c% } else {%\u003e\n vzmList={Fields:['VZM'],Data:[]};\n\u003c% } %\u003e\n\n var find, foundIdx;\n if(!EmptyString(this.ConfigName.Value())){\n find=this.ConfigName.Value();\n }\n for(var i=0, vzm, re_table_vzm=new RegExp(\".\"+this.Table.Value()+\"_vzm\",\"i\"), l=vzms.length; i\u003cl; i++){\n\u002f\u002f vzm=vzms[i].replace(re_table_vzm,'');\n vzm = vzms[i].split(',');\n vzmList.Data[i]=vzm;\n if(find && !foundIdx && vzm[0]==find){\n foundIdx=i+1;\n }\n }\n this.grdVzms.rows=Math.max(vzmList.Data.length,20);\n\u003c% if (configMode==2) { %\u003e\n vzmList.Data.push(\"tf,NCC,\"+vzmList.Data.length);\n\u003c% } else { %\u003e\n vzmList.Data.push(\"tf,C,\"+vzmList.Data.length);\n\u003c% } %\u003e\n this.VZMList.firstQuery('true','',vzmList);\n if(IsAny(foundIdx)){\n this.grdVzms.SetCurRec(foundIdx);\n }\n}\n\nfunction Ok(){\n var openerID=this.openerID.Value();\n if(!openerID) return;\n var VZMName=this.ConfigurationSelected.Value();\n var caller= window.opener||window;\n\u002f\u002fdebugger\n caller.ZtVWeb.raiseEvent(openerID+\"_ChangeVZMName\", VZMName);\n this.Cancel(); \n}\n\nfunction Cancel(){\n var openerID=this.openerID.Value();\n if(!openerID) return;\n if(window.opener){\n window.close();\n }\n}\n\nfunction btnOk_Click(){\n this.Ok();\n}\n\nfunction btnCancel_Click(){\n this.Cancel();\n}","bg_image":" ","cache_time":" ","color":" ","css":" ","css_class":" ","description":" ","form_action":" ","form_type":"false","h":"430","language":"false","my_library":" ","on_security_failure":"login","pages_names":" ","positioning":"absolute","security":"none","sp_theme":"true","sp_uid":"false","tag":" ","title":" ","type":"Form","v_line":"300","version":"37","w":"100%"},{"calculate":" ","dataobj":" ","field":" ","h":"22","init":" ","init_par":"request","name":"ConfigName","page":"1","sequence":" ","type":"Variable","typevar":"character","w":"146","x":"40","y":"-50"},{"align":"left","anchor":"top-left-right-bottom","cellpadding":"3","cellspacing":"1","checkbox":"false","checkbox_fields":" ","colProperties":"[{\"disable_fields_conditions\":\"\",\"enable_HTML\":false,\"fg_color\":\"\",\"weight\":\"\",\"bg_color\":\"\",\"extensible\":false,\"alias\":\"Configurations\",\"width\":\"\",\"layer\":\"\",\"RowSpan\":0,\"ColSpan\":0,\"type\":\"C\",\"field\":\"VZM\",\"maxwidth\":\"\",\"title\":\"Configurations\",\"orderby_field\":\"\",\"newline\":false,\"col_class\":\"\"}]","css_class_grid":"grid","css_class_nav_bar":" ","css_class_row":" ","css_class_row_odd":" ","css_class_row_over":" ","css_class_row_selected":" ","css_class_title":" ","css_class_title_hover":" ","dataobj":"VZMList","disabled_fld":" ","draggablecolumns":"false","editable_fields":" ","empty_rows":"true","extFields":" ","extensible":"false","fields_type":" ","filters":"false","font":" ","font_color":" ","font_size":" ","font_weight":" ","h":"350","homogeneityAsFilter":"false","homogeneity_fields":" ","keepMemCurs":" ","line_color":" ","link_underlined":" ","name":"grdVzms","nav_bar":"true","orderby":" ","orderby_list":" ","outDataObj":" ","over_color":" ","page":"1","preCheckbox_fld":" ","recMark":"true","render_totals":" ","resizablecolumns":"false","row_color":" ","row_color_odd":" ","rows":"20","scroll_bars":"true","sequence":" ","server_side":"false","splinker":" ","splinker_pos":" ","title_color":" ","type":"Grid","valign":"top","w":"280","x":"10","y":"10"},{"auto_exec":"false","count":"true","n_records":"0","name":"VZMList","page":"1","parms":" ","parms_source":" ","query":" ","query_async":"false","return_fields_type":"true","sequence":" ","type":"SQLDataobj","x":"0","y":"-39"},{"anchor":"bottom-left-right","calculate":" ","class_Css":"textbox","dataobj":" ","edit_undercond":" ","field":" ","font":"verdana","font_color":" ","font_size":" ","h":"20","help_tips":" ","hide_undercond":" ","init":" ","init_par":" ","maxlength":" ","name":"ConfigurationSelected","page":"1","password":" ","picture":" ","readonly":"true","scroll":"false","sequence":" ","tabindex":" ","type":"Textbox","typevar":"character","visible":"true","w":"220","x":"70","y":"365","zerofilling":"false","zindex":"1"},{"anchor":"bottom-right","bg_color":" ","class_Css":" ","edit_undercond":" ","font":" ","font_color":" ","font_size":" ","h":"25","help_tips":" ","hide_undercond":" ","name":"btnOk","page":"1","sequence":" ","tabindex":" ","type":"Button","type_submit":"false","value":"Ok","w":"55","x":"175","y":"397"},{"anchor":"bottom-right","bg_color":" ","class_Css":"button","edit_undercond":" ","font":" ","font_color":" ","font_size":" ","h":"25","help_tips":" ","hide_undercond":" ","name":"btnCancel","page":"1","sequence":" ","tabindex":" ","type":"Button","type_submit":"false","value":"Cancel","w":"55","x":"235","y":"397"},{"calculate":" ","dataobj":" ","field":" ","h":"22","init":" ","init_par":"request","name":"openerID","page":"1","sequence":" ","type":"Variable","typevar":"character","w":"146","x":"40","y":"-26"},{"align":"left","anchor":"bottom-left","assoc_input":" ","bg_color":" ","calculate":" ","class_Css":"label","dataobj":" ","enable_HTML":"true","field":" ","font":" ","font_color":" ","font_size":" ","font_weight":" ","h":"19","heading":" ","help_tips":" ","hide_undercond":" ","href":" ","init":" ","name":"lblSelected","page":"1","picture":" ","sequence":" ","server_side":" ","tabindex":" ","target":" ","type":"Label","value":"Selected:","w":"60","x":"10","y":"365","zindex":"1"},{"calculate":" ","dataobj":" ","field":" ","h":"22","init":" ","init_par":"request","name":"Table","page":"1","sequence":" ","type":"Variable","typevar":"character","w":"146","x":"190","y":"-50"}]%> <%/*Description: */%> <%/*ParamsRequest:ConfigName,openerID,Table*/%> <%@ 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"); %> .SPPortalZoomLoad_VZMSelect_container { } .SPPortalZoomLoad_VZMSelect_portlet{ position:relative; width:100%; min-width:300px; height:430px; } .SPPortalZoomLoad_VZMSelect_portlet[Data-page="1"]{ height:430px; width:100%; } .SPPortalZoomLoad_VZMSelect_portlet > .grdVzms_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; top:10px; left:10px; right:10px; bottom:70px; width:auto; } .SPPortalZoomLoad_VZMSelect_portlet > .ConfigurationSelected_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; left:70px; right:10px; bottom:45px; width:auto; height:20px; } .SPPortalZoomLoad_VZMSelect_portlet > .ConfigurationSelected_ctrl { } .SPPortalZoomLoad_VZMSelect_portlet > .ConfigurationSelected_ctrl > input{ vertical-align:top; box-sizing:border-box; z-index:1; font-family:verdana; width:100%; height:100%; } .SPPortalZoomLoad_VZMSelect_portlet > .btnOk_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; right:70px; bottom:8px; width:55px; height:25px; } .SPPortalZoomLoad_VZMSelect_portlet > .btnOk_ctrl { border-width:nullpx; } .SPPortalZoomLoad_VZMSelect_portlet > .btnCancel_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; right:10px; bottom:8px; width:55px; height:25px; } .SPPortalZoomLoad_VZMSelect_portlet > .btnCancel_ctrl { border-width:nullpx; } .SPPortalZoomLoad_VZMSelect_portlet > .lblSelected_ctrl { box-sizing:border-box; z-index:1; position:absolute; display:inline-block; left:10px; bottom:46px; width:60px; height:auto; min-height:19px; } .SPPortalZoomLoad_VZMSelect_portlet > .lblSelected_ctrl { height:auto; min-height:19px; } .SPPortalZoomLoad_VZMSelect_portlet > .lblSelected_ctrl { overflow:hidden; text-align:left; } <%}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\":\"430\",\"pages_names\":\"\",\"title\":\"\",\"type\":\"Form\",\"v_line\":\"300\",\"w\":\"100%\"},{\"h\":\"22\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"146\",\"x\":\"40\",\"y\":\"-50\"},{\"anchor\":\"top-left-right-bottom\",\"h\":\"350\",\"page\":\"1\",\"type\":\"Grid\",\"w\":\"280\",\"x\":\"10\",\"y\":\"10\"},{\"page\":\"1\",\"type\":\"SQLDataobj\",\"x\":\"0\",\"y\":\"-39\"},{\"anchor\":\"bottom-left-right\",\"h\":\"20\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"220\",\"x\":\"70\",\"y\":\"365\",\"zindex\":\"1\"},{\"anchor\":\"bottom-right\",\"h\":\"25\",\"page\":\"1\",\"type\":\"Button\",\"w\":\"55\",\"x\":\"175\",\"y\":\"397\"},{\"anchor\":\"bottom-right\",\"h\":\"25\",\"page\":\"1\",\"type\":\"Button\",\"w\":\"55\",\"x\":\"235\",\"y\":\"397\"},{\"h\":\"22\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"146\",\"x\":\"40\",\"y\":\"-26\"},{\"anchor\":\"bottom-left\",\"h\":\"19\",\"page\":\"1\",\"type\":\"Label\",\"w\":\"60\",\"x\":\"10\",\"y\":\"365\",\"zindex\":\"1\"},{\"h\":\"22\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"146\",\"x\":\"190\",\"y\":\"-50\"}]"; 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,"SPPortalZoomLoad_VZMSelect","UTF-8")) {return; } %><%boolean included=request.getAttribute("javax.servlet.include.request_uri")!=null || "true".equals(request.getParameter("clientsideinclusion")); Map safe_params; if(!included){%> <%} if(!included){%> /> <%Library.WriteMetaTags(request,response,out); } sp.WritePortletJSLibraries(request, out, false,false); %> <% sp.WritePortalStudioCSS(request, out); if(Library.IsMobile(request)){%><%}%> <%String ConfigName=JSPLib.translateXSS(sp.getParameter("ConfigName","")); if(request.getAttribute("SPPortalZoomLoad_VZMSelect_firstinclusion")==null){ com.zucchetti.PortalStudio.visualweb.GridControl.GridTranslations(sp,request,out);%> <%if(Library.IsMobile(request)) {%> <%} }%> <%String ConfigurationSelected= ""; if(request.getAttribute("SPPortalZoomLoad_VZMSelect_firstinclusion")==null){ if (Library.IsMobile(request)) {%> <% } %><%} String openerID=JSPLib.translateXSS(sp.getParameter("openerID","")); String lblSelected= "Selected:"; String Table=JSPLib.translateXSS(sp.getParameter("Table","")); try{ if(!included){%> <%} if(!included){%> > <%= Sitepainter.GetBodyMobileScript(request) %><%}%>
<%if(sp.isLogged()){ if(sp.isInGroup(1) && sp.getGlobal("g_EditPortlet",false)==true){%> <%}}%>
 
<%=JSPLib.ToHTML("Selected:")%>
<%request.setAttribute("SPPortalZoomLoad_VZMSelect_firstinclusion",idPortlet);%> <%if(!included){%> <%} }finally{ }%> <%if(!included){%> <%} sp.endPage("SPPortalZoomLoad_VZMSelect"); }%> <%! public String getJSPUID() { return "1571695858"; } %>