香港赛马会官方六肖|香港赛马会创新楼
    友情链接:
      "; }, getFormData : function ( ele ) { var copy = ele.clone(); var copiedInputs = $("input,select,textarea", copy); $("input,select,textarea", ele).each(function( i ){ var typeInput = $(this).attr("type"); if ($.type(typeInput) === 'undefined') typeInput = $(this).is("select") ? "select" : $(this).is("textarea") ? "textarea" : ""; var copiedInput = copiedInputs.eq( i ); if ( typeInput == "radio" || typeInput == "checkbox" ) copiedInput.attr( "checked", $(this).is(":checked") ); else if ( typeInput == "text" ) copiedInput.attr( "value", $(this).val() ); else if ( typeInput == "select" ) $(this).find( "option" ).each( function( i ) { if ( $(this).is(":selected") ) $("option", copiedInput).eq( i ).attr( "selected", true ); }); else if ( typeInput == "textarea" ) copiedInput.text( $(this).val() ); }); return copy; }, getPrintWindow : function () { switch ( settings.mode ) { case modes.iframe : var f = new PrintArea.Iframe(); return { win : f.contentWindow || f, doc : f.doc }; case modes.popup : var p = new PrintArea.Popup(); return { win : p, doc : p.doc }; } }, Iframe : function () { var frameId = settings.id; var iframeStyle = 'border:0;position:absolute;width:0px;height:0px;right:0px;top:0px;'; var iframe; try { iframe = document.createElement('iframe'); document.body.appendChild(iframe); $(iframe).attr({ style: iframeStyle, id: frameId, src: "#" + new Date().getTime() }); iframe.doc = null; iframe.doc = iframe.contentDocument ? iframe.contentDocument : ( iframe.contentWindow ? iframe.contentWindow.document : iframe.document); } catch( e ) { throw e + ". iframes may not be supported in this browser."; } if ( iframe.doc == null ) throw "Cannot find document."; return iframe; }, Popup : function () { var windowAttr = "location=yes,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no"; windowAttr += ",width=" + settings.popWd + ",height=" + settings.popHt; windowAttr += ",resizable=yes,screenX=" + settings.popX + ",screenY=" + settings.popY + ",personalbar=no,scrollbars=yes"; var newWin = window.open( "", "_blank", windowAttr ); newWin.doc = newWin.document; return newWin; } }; })(jQuery); //打印方法 $element.on('click', ".printAreaBtn", function () { $('.printArea').printArea(); }) }); })("control_caece89c-6da1-40a1-99fb-bc151b82af0e", undefined); (function (panelId, params) {//style: 0横向;1竖向; $(function () { var $element = $("#" + panelId), urlParams = ""; if (params == null) { params = { style: 0 }; } if (params.style == 1) { urlParams = "&count=5"; } $.getJSON(lanh.apiHost + "service/nav_menu/list.html?menu_type=4" + urlParams, function (result) { if (!!result && result.status == 0 && result.data.length > 0) { $.each(result.data, function (i, data) { var obj = [data.menu_name//链接标题 , data.menu_url//链接url , data.menu_target];//跳转target var html = ""; if (params.style == 0) { html = $element.find("#tplLinkHorizontal").html(); } else if (params.style == 1) { html = $element.find("#tplLinkVertical").html(); } $.each(obj, function (i) { html = html.replace("{" + i + "}", obj[i]); }); if (params.style == 0) { $element.find(".linkList").append(html); } else if (params.style == 1) { $element.find(".linkList ul").append(html); } }) } }); }); })("control_b328881b-ebad-465a-8124-72d55f7deac0", undefined); (function (panelId, params) { $(function () { var $element = $("#" + panelId); var _color = "red"; //打印传递的?#38382;?#21015;表 $.ajax({ url: lanh.apiHost + "service/nav_menu/list.html?menu_type=2", dataType: "json", success: function (result) { if (result.status == 0) { var data = result.data if (data.length > 0) { for (var i = 0; i < data.length; i++) { var html = "
    • " + data[i].menu_name+ "|
    • " $element.find(".copyrightMenu>ul").append(html); } $element.find(".copyrightMenu>ul>li").last().find("b").css("display","none"); } } } }) $.ajax({ url: lanh.apiHost + "service/shop_info/list.html", dataType: "json", success: function (result) { if (result.status == 0) { var copyrightInfo = "Copyright ? " + result.data.Year + "" + result.data.SITE_NAME + "版权所有,并保留所有权利"; var otherInfo = "" + result.data.SITE_ADDRESS + "Tel:" + result.data.SITE_SERVICE_TELEPHONE + "ICP备案证号:" + result.data.SITE_ICP_NO + "" $element.find(".copyrightInfo").append(copyrightInfo); $element.find(".otherInfo").append(otherInfo); } } }) }); })("control_c2a860a5-8315-4d6e-b99b-910e06e348a5", undefined);