CINXE.COM
Rinnovo adesione a EnergoClub Onlus | EnergoClub
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" version="XHTML+RDFa 1.0" dir="ltr" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#"> <head profile="http://www.w3.org/1999/xhtml/vocab"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Generator" content="Drupal 7 (http://drupal.org)" /> <script type="text/javascript"> (function(vars) { if (window.CRM) CRM.$.extend(true, CRM, vars); else window.CRM = vars; })({"strings":{"Click to edit":"Clicca per modificare","Unsaved Changes":"Modifiche non salvate","Restore":"Ripristina","%1 has not been saved.":"%1 \u00e8 stato salvato.","Print window":"Stampa finestra","Unable to reach the server. Please refresh this page in your browser and try again.":"Impossibile raggiungere il server. Aggiorna questa pagina nel tuo browser e riprova.","Ensure you are still logged in and have permission to access this feature.":"Assicurati di essere ancora loggato e di avere il permesso di accedere a questa funzione.","Access Denied":"Accesso Negato","Network Error":"Errore di Rete","Error":"Errore","Loading...":"Caricamento in corso...","Saved":"Salvato","Removed":"Rimosso","Time":"Ora","Clear":"Cancella","PM":"Pomeriggio","AM":"Mattina","Preview":"Anteprima","Continue":"Continua","Cancel":"Annulla","Are you sure you want to continue?":"Se sicuro di voler continuare?","Confirm":"Conferma","Sorry an error occurred and your information was not saved":"Spiacente, si \u00e8 verificato un errore e la tua informazione non \u00e8 stata salvata","Saving...":"Salvataggio in corso...","You have unsaved changes.":"Hai salvato le modifiche.","Toggle fullscreen":"Passa a schermo intero","- select -":"- seleziona -","Refine search...":"Affina la ricerca","%1 Created":"%1 creato","new tag":"nuovo tag"},"config":{"isFrontend":false,"entityRef":{"contactCreate":false},"wysisygScriptLocation":"/sites/all/modules/civicrm/ext/ckeditor4/js/crm.ckeditor.js","CKEditorCustomConfig":{"default":"https://www.energoclub.org/files/civicrm/persist/crm-ckeditor-default.js"}}}) </script> <link rel="shortcut icon" href="https://www.energoclub.org/favicon.ico" type="image/vnd.microsoft.icon" /> <title>Rinnovo adesione a EnergoClub Onlus | EnergoClub</title> <link type="text/css" rel="stylesheet" href="https://www.energoclub.org/files/css/css_xE-rWrJf-fncB6ztZfd2huxqgxu4WO-qwma6Xer30m4.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://www.energoclub.org/files/css/css_p2sbpAU_0QfgdrsESKpxDM21ehF8uuT-uzmsIxKEeeY.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://www.energoclub.org/files/css/css_FJvb2gsXz_3DMgDjOd5uxHnKpctPHkngAo9DKnt8o-s.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://www.energoclub.org/files/css/css_R7Qny80TD3C09qKzHK5oMIm-jE4FvrgPGLBiyIoqwpY.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://www.energoclub.org/files/css/css_2THG1eGiBIizsWFeexsNe1iDifJ00QRS9uSd03rY9co.css" media="print" /> <!--[if lte IE 7]> <link type="text/css" rel="stylesheet" href="https://www.energoclub.org/sites/all/themes/energoclub/css/ie.css?sikleg" media="all" /> <![endif]--> <!--[if IE 6]> <link type="text/css" rel="stylesheet" href="https://www.energoclub.org/sites/all/themes/energoclub/css/ie6.css?sikleg" media="all" /> <![endif]--> <script type="text/javascript" src="https://www.energoclub.org/files/js/js_s5koNMBdK4BqfHyHNPWCXIL2zD0jFcPyejDZsryApj0.js"></script> <script type="text/javascript" src="https://www.energoclub.org/files/js/js_BPsf4F48BzrAa9Op1JHS-8G4u_-Zu7Z48m5Sjmh1GsY.js"></script> <script type="text/javascript" src="https://www.energoclub.org/files/js/js_R9UbiVw2xuTUI0GZoaqMDOdX0lrZtgX-ono8RVOUEVc.js"></script> <script type="text/javascript" src="https://www.energoclub.org/files/js/js_lQ7aFGhat1X8D7rYEw5s13eT8FZRQy0GOYbRW8nhpYs.js"></script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create", "UA-24320247-1", {"cookieDomain":"auto","allowLinker":true});ga("require", "linker");ga("linker:autoLink", ["www.energoclub.org","www.energoclub.net"]);ga("send", "pageview"); //--><!]]> </script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","setHasJsCookie":0,"ajaxPageState":{"theme":"energoclub","theme_token":"fuyS7wm9Yzn1IzjWV7Ae7KI95GvBuQiNV_HyZHTvF64","js":{"0":1,"sites\/all\/modules\/eu_cookie_compliance\/js\/eu_cookie_compliance.js":1,"sites\/all\/modules\/jquery_update\/replace\/jquery\/1.10\/jquery.min.js":1,"misc\/jquery-extend-3.4.0.js":1,"misc\/jquery-html-prefilter-3.5.0-backport.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/modules\/eu_cookie_compliance\/js\/jquery.cookie-1.4.1.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery\/dist\/jquery.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-ui\/jquery-ui.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/lodash-compat\/lodash.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.mousewheel.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/select2\/select2.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.form.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.timeentry.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.blockUI.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/datatables\/media\/js\/jquery.dataTables.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-validation\/dist\/jquery.validate.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-validation\/dist\/additional-methods.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.ui.datepicker.validation.min.js":1,"sites\/all\/modules\/civicrm\/js\/Common.js":1,"sites\/all\/modules\/civicrm\/js\/crm.datepicker.js":1,"sites\/all\/modules\/civicrm\/js\/crm.ajax.js":1,"sites\/all\/modules\/civicrm\/js\/wysiwyg\/crm.wysiwyg.js":1,"files\/civicrm\/persist\/contribute\/dyn\/crm-l10n.66d8a6afe77b8e0a92686e2c928dc014.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-ui\/ui\/i18n\/datepicker-it.js":1,"sites\/all\/modules\/civicrm\/js\/noconflict.js":1,"sites\/all\/modules\/admin_menu\/admin_devel\/admin_devel.js":1,"public:\/\/languages\/it_vF48dMViTBIKZfDH-A4YHKLUR6hE-KeaX4O5GnRBoDo.js":1,"sites\/all\/libraries\/colorbox\/jquery.colorbox-min.js":1,"sites\/all\/modules\/colorbox\/js\/colorbox.js":1,"sites\/all\/modules\/colorbox\/styles\/default\/colorbox_style.js":1,"sites\/all\/modules\/google_analytics\/googleanalytics.js":1,"1":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/comment\/comment.css":1,"modules\/field\/theme\/field.css":1,"sites\/all\/modules\/logintoboggan\/logintoboggan.css":1,"modules\/node\/node.css":1,"modules\/search\/search.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ckeditor\/css\/ckeditor.css":1,"sites\/all\/modules\/colorbox\/styles\/default\/colorbox_style.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/modules\/panels\/css\/panels.css":1,"sites\/all\/modules\/eu_cookie_compliance\/css\/eu_cookie_compliance.css":1,"sites\/all\/modules\/civicrm\/css\/crm-i.css":1,"sites\/all\/modules\/civicrm\/bower_components\/datatables\/media\/css\/jquery.dataTables.min.css":1,"sites\/all\/modules\/civicrm\/bower_components\/font-awesome\/css\/font-awesome.min.css":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-ui\/themes\/smoothness\/jquery-ui.min.css":1,"sites\/all\/modules\/civicrm\/bower_components\/select2\/select2.min.css":1,"sites\/all\/modules\/civicrm\/css\/civicrm.css":1,"public:\/\/ctools\/css\/80ef40f6f3848851d257de4c86f78b64.css":1,"themes\/bartik\/css\/layout.css":1,"themes\/bartik\/css\/style.css":1,"sites\/all\/themes\/energoclub\/css\/colors.css":1,"sites\/all\/themes\/energoclub\/css\/energoclub.css":1,"themes\/bartik\/css\/print.css":1,"sites\/all\/themes\/energoclub\/css\/ie.css":1,"sites\/all\/themes\/energoclub\/css\/ie6.css":1}},"colorbox":{"opacity":"0.85","current":"{current} di {total}","previous":"\u00ab Prec","next":"Succ \u00bb","close":"Chiudi","maxWidth":"98%","maxHeight":"98%","fixed":true,"mobiledetect":true,"mobiledevicewidth":"480px","file_public_path":"\/files","specificPagesDefaultValue":"admin*\nimagebrowser*\nimg_assist*\nimce*\nnode\/add\/*\nnode\/*\/edit\nprint\/*\nprintpdf\/*\nsystem\/ajax\nsystem\/ajax\/*"},"eu_cookie_compliance":{"cookie_policy_version":"1.0.0","popup_enabled":1,"popup_agreed_enabled":1,"popup_hide_agreed":1,"popup_clicking_confirmation":1,"popup_scrolling_confirmation":0,"popup_html_info":"\u003Cdiv\u003E\n \u003Cdiv class =\u0022popup-content info\u0022\u003E\n \u003Cdiv id=\u0022popup-text\u0022\u003E\n \u003Ch2\u003E\tUsiamo i cookie in questo sito per migliorare la tua esperienza utente\u003C\/h2\u003E\u003Cp\u003ECliccando o navigando sul sito, acconsenti all\u0026#39;utilizzo dei cookies.\u003C\/p\u003E \u003C\/div\u003E\n \u003Cdiv id=\u0022popup-buttons\u0022\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022agree-button eu-cookie-compliance-default-button\u0022\u003ESi, accetto\u003C\/button\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022find-more-button eu-cookie-compliance-more-button agree-button eu-cookie-compliance-default-button\u0022\u003ENo, dammi maggiori informazioni\u003C\/button\u003E\n \u003C\/div\u003E\n \u003C\/div\u003E\n\u003C\/div\u003E","use_mobile_message":false,"mobile_popup_html_info":"\u003Cdiv\u003E\n \u003Cdiv class =\u0022popup-content info\u0022\u003E\n \u003Cdiv id=\u0022popup-text\u0022\u003E\n \u003Ch2\u003EWe use cookies on this site to enhance your user experience\u003C\/h2\u003E\u003Cp\u003EBy tapping the Accept button, you agree to us doing so.\u003C\/p\u003E \u003C\/div\u003E\n \u003Cdiv id=\u0022popup-buttons\u0022\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022agree-button eu-cookie-compliance-default-button\u0022\u003ESi, accetto\u003C\/button\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022find-more-button eu-cookie-compliance-more-button agree-button eu-cookie-compliance-default-button\u0022\u003ENo, dammi maggiori informazioni\u003C\/button\u003E\n \u003C\/div\u003E\n \u003C\/div\u003E\n\u003C\/div\u003E\n","mobile_breakpoint":768,"popup_html_agreed":"\u003Cdiv\u003E\n \u003Cdiv class=\u0022popup-content agreed\u0022\u003E\n \u003Cdiv id=\u0022popup-text\u0022\u003E\n \u003Ch2\u003E\tGrazie per aver accettato i cookie\u003C\/h2\u003E\u003Cp\u003EOra puoi nascondere questo messaggio o saperne di pi\u0026ugrave; sui cookie.\u003C\/p\u003E \u003C\/div\u003E\n \u003Cdiv id=\u0022popup-buttons\u0022\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022hide-popup-button eu-cookie-compliance-hide-button\u0022\u003ENascondi\u003C\/button\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022find-more-button eu-cookie-compliance-more-button-thank-you\u0022 \u003EMaggiori informazioni\u003C\/button\u003E\n \u003C\/div\u003E\n \u003C\/div\u003E\n\u003C\/div\u003E","popup_use_bare_css":false,"popup_height":"auto","popup_width":"100%","popup_delay":1000,"popup_link":"\/page\/cookie-policy","popup_link_new_window":1,"popup_position":null,"fixed_top_position":true,"popup_language":"it","store_consent":false,"better_support_for_screen_readers":0,"reload_page":0,"domain":"","domain_all_sites":null,"popup_eu_only_js":0,"cookie_lifetime":100,"cookie_session":false,"disagree_do_not_show_popup":0,"method":"default","allowed_cookies":"","withdraw_markup":"\u003Cbutton type=\u0022button\u0022 class=\u0022eu-cookie-withdraw-tab\u0022\u003EPrivacy settings\u003C\/button\u003E\n\u003Cdiv class=\u0022eu-cookie-withdraw-banner\u0022\u003E\n \u003Cdiv class=\u0022popup-content info\u0022\u003E\n \u003Cdiv id=\u0022popup-text\u0022\u003E\n \u003Cp\u003E\u0026lt;h2\u0026gt;We use cookies on this site to enhance your user experience\u0026lt;\/h2\u0026gt;\u0026lt;p\u0026gt;You have given your consent for us to set cookies.\u0026lt;\/p\u0026gt;\u003C\/p\u003E\n \u003C\/div\u003E\n \u003Cdiv id=\u0022popup-buttons\u0022\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022eu-cookie-withdraw-button\u0022\u003EWithdraw consent\u003C\/button\u003E\n \u003C\/div\u003E\n \u003C\/div\u003E\n\u003C\/div\u003E\n","withdraw_enabled":false,"withdraw_button_on_info_popup":0,"cookie_categories":[],"cookie_categories_details":[],"enable_save_preferences_button":1,"cookie_name":"","cookie_value_disagreed":"0","cookie_value_agreed_show_thank_you":"1","cookie_value_agreed":"2","containing_element":"body","automatic_cookies_removal":true,"close_button_action":"close_banner"},"googleanalytics":{"trackOutbound":1,"trackMailto":1,"trackDownload":1,"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip","trackColorbox":1,"trackDomainMode":2,"trackCrossDomains":["www.energoclub.org","www.energoclub.net"]}}); //--><!]]> </script> </head> <body class="html not-front not-logged-in no-sidebars page-civicrm page-civicrm-contribute page-civicrm-contribute-transact footer-columns" > <div id="skip-link"> <a href="#main-content" class="element-invisible element-focusable">Salta al contenuto principale</a> </div> <div id="page-wrapper"><div id="page"> <div id="header" class="with-secondary-menu"><div class="section clearfix"> <a href="/" title="Home" rel="home" id="logo"> <img src="https://www.energoclub.org/files/color/energoclub-03959a46/logo.png" alt="Home" /> </a> <div id="name-and-slogan" class="element-invisible"> <div id="site-name" class="element-invisible"> <strong> <a href="/" title="Home" rel="home"><span>EnergoClub</span></a> </strong> </div> <div id="site-slogan" class="element-invisible"> per la riconversione del sistema energetico </div> </div> <!-- /#name-and-slogan --> <div class="region region-header"> <div id="block-block-7" class="block block-block"> <div class="content"> <p><a href="http://www.energeticambiente.it/" target="_blank" title="Forum EnergeticAmbiente"><img alt="Forum EnergeticAmbiente" src="/files/page/images/energeticambiente/logo_definitivo118-58.png" style="border-style: solid; border-width: 0px; margin: 0px; width: 118px; height: 58px;" /></a> </p> </div> </div> </div> <div id="main-menu" class="navigation"> <h2 class="element-invisible">Menu principale</h2><ul id="main-menu-links" class="links clearfix"><li class="menu-217 first"><a href="/">Home</a></li> <li class="menu-362"><a href="/page/chi-siamo">Chi siamo</a></li> <li class="menu-363"><a href="/page/progetti-e-attivita" title="">Progetti</a></li> <li class="menu-422"><a href="/user/register" title="">Aderisci</a></li> <li class="menu-3762"><a href="/page/servizi-per-i-soci" title="">Servizi per i soci</a></li> <li class="menu-364"><a href="/page/energopedia">EnergoPedia</a></li> <li class="menu-366"><a href="/page/forum">Forum</a></li> <li class="menu-367"><a href="/news" title="">News</a></li> <li class="menu-538"><a href="/contact" title="">Contatti</a></li> <li class="menu-2110 last"><a href="/page/metodi-di-pagamento" title="Fai una donazione a EnergoClub">Dona</a></li> </ul> </div> <!-- /#main-menu --> <div id="secondary-menu" class="navigation"> <h2 class="element-invisible">Menu secondario</h2><ul id="secondary-menu-links" class="links inline clearfix"><li class="menu-539 first"><a href="/search" title="">Cerca</a></li> <li class="menu-879"><a href="/page/mappa-portale">Mappa</a></li> <li class="menu-527 last"><a href="/user/login?current=civicrm/contribute/transact" title="">Accedi</a></li> </ul> </div> <!-- /#secondary-menu --> </div></div> <!-- /.section, /#header --> <div id="main-wrapper" class="clearfix"><div id="main" class="clearfix"> <div id="breadcrumb"><h2 class="element-invisible">Tu sei qui</h2><div class="breadcrumb"><a href="/">Home</a></div></div> <div id="content" class="column"><div class="section"> <a id="main-content"></a> <h1 class="title" id="page-title"> Rinnovo adesione a EnergoClub Onlus </h1> <div class="tabs"> </div> <div class="region region-content"> <div id="block-system-main" class="block block-system"> <div class="content"> <div id="crm-container" class="crm-container crm-public" lang="it" xml:lang="it"> <div class="clear"></div> <div id="crm-main-content-wrapper"> <form action="/civicrm/contribute/transact" method="post" name="Main" id="Main" class="CRM_Contribute_Form_Contribution_Main" enctype="multipart/form-data" data-warn-changes="true" data-submit-once="true"> <div><input name="qfKey" type="hidden" value="CRMContributeControllerContribution4nrzk5b5dp8g4gkg0okok88g4kosw40ocosww0scggwkws4c0_5218" /> <input name="hidden_processor" type="hidden" value="1" /> <input name="priceSetId" type="hidden" value="8" /> <input id="selectProduct" name="selectProduct" type="hidden" value="" /> <input name="_qf_default" type="hidden" value="Main:upload" /> <input name="MAX_FILE_SIZE" type="hidden" value="67108864" /> </div> <script type="text/javascript"> // Putting these functions directly in template so they are available for standalone forms function useAmountOther() { var priceset = 0; for( i=0; i < document.Main.elements.length; i++ ) { element = document.Main.elements[i]; if ( element.type == 'radio' && element.name == priceset ) { if (element.value == '0' ) { element.click(); } else { element.checked = false; } } } } function clearAmountOther() { var priceset = 0 if( priceset ){ cj(priceset).val(''); cj(priceset).blur(); } if (document.Main.amount_other == null) return; // other_amt field not present; do nothing document.Main.amount_other.value = ""; } </script> <div class="crm-contribution-page-id-3 crm-block crm-contribution-main-form-block" data-page-id="3" data-page-template="main"> <div id="intro_text" class="crm-public-form-item crm-section intro_text-section"> <p>Questa pagina è riservata ai soci EnergoClub per il rinnovo annuale della quota associativa o comunque agli utenti che hanno già un profilo in questo portale.<br /> Se non sei socio e non hai un profilo nel portale devi utilizzare la pagina di <a href="/user/register">nuova adesione</a>.</p> <p>Prima di procedere con il pagamento accertati di aver effettuato l'<a href="/user/login">accesso al portale</a> o di utilizzare nel form la stessa email con cui sei registrato.<br /> </p> </div> <div class="crm-public-form-item crm-section"> <div id="membership" class="crm-group membership-group"> <div id="priceset"> <fieldset> <legend>Aderisci a EnergoClub onlus</legend> <div id="membership-intro" class="crm-section membership_new_intro-section"> <p>Scegli che socio vuoi essere</p> </div> <div id="priceset" class="crm-section price_set-section"> <div class="crm-section membership_amount-section crm-price-field-id-11"> <div class="label"><label> Iscrizione <span class="crm-marker" title="Campo richiesto.">*</span> </label></div> <div class="content membership_amount-content"> <div class="price-set-row membership_amount-row1"> <span class="price-set-option-content"><input price="["price_11","10||"]" data-amount="10.000000000" data-currency="EUR" data-price-field-values="{"32":{"id":"32","price_field_id":"11","name":"Studente","label":"Studente","description":"Socio Studente","amount":"10.000000000","weight":"3","membership_type_id":"3","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"33":{"id":"33","price_field_id":"11","name":"Ordinario","label":"Ordinario","description":"Socio Ordinario","amount":"30.000000000","weight":"4","membership_type_id":"1","membership_num_terms":"1","is_default":"1","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"34":{"id":"34","price_field_id":"11","name":"Sostenitore","label":"Sostenitore","description":"Socio Sostenitore","amount":"70.000000000","weight":"5","membership_type_id":"4","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"35":{"id":"35","price_field_id":"11","name":"Benemerito","label":"Benemerito","description":"Socio Benemerito","amount":"250.000000000","weight":"6","membership_type_id":"5","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="return showHideAutoRenew(3);" membership-type="3" class="crm-form-radio" value="32" type="radio" id="CIVICRM_QFID_32_price_11" name="price_11" /><label for="CIVICRM_QFID_32_price_11"><span class="crm-price-amount-label">Studente<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">€ 10,00</span></label></span> </div> <div class="price-set-row membership_amount-row2"> <span class="price-set-option-content"><input price="["price_11","30||"]" data-amount="30.000000000" data-currency="EUR" data-price-field-values="{"32":{"id":"32","price_field_id":"11","name":"Studente","label":"Studente","description":"Socio Studente","amount":"10.000000000","weight":"3","membership_type_id":"3","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"33":{"id":"33","price_field_id":"11","name":"Ordinario","label":"Ordinario","description":"Socio Ordinario","amount":"30.000000000","weight":"4","membership_type_id":"1","membership_num_terms":"1","is_default":"1","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"34":{"id":"34","price_field_id":"11","name":"Sostenitore","label":"Sostenitore","description":"Socio Sostenitore","amount":"70.000000000","weight":"5","membership_type_id":"4","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"35":{"id":"35","price_field_id":"11","name":"Benemerito","label":"Benemerito","description":"Socio Benemerito","amount":"250.000000000","weight":"6","membership_type_id":"5","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="return showHideAutoRenew(1);" membership-type="1" class="crm-form-radio" value="33" type="radio" id="CIVICRM_QFID_33_price_11" name="price_11" checked="checked" /><label for="CIVICRM_QFID_33_price_11"><span class="crm-price-amount-label">Ordinario<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">€ 30,00</span></label></span> </div> <div class="price-set-row membership_amount-row3"> <span class="price-set-option-content"><input price="["price_11","70||"]" data-amount="70.000000000" data-currency="EUR" data-price-field-values="{"32":{"id":"32","price_field_id":"11","name":"Studente","label":"Studente","description":"Socio Studente","amount":"10.000000000","weight":"3","membership_type_id":"3","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"33":{"id":"33","price_field_id":"11","name":"Ordinario","label":"Ordinario","description":"Socio Ordinario","amount":"30.000000000","weight":"4","membership_type_id":"1","membership_num_terms":"1","is_default":"1","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"34":{"id":"34","price_field_id":"11","name":"Sostenitore","label":"Sostenitore","description":"Socio Sostenitore","amount":"70.000000000","weight":"5","membership_type_id":"4","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"35":{"id":"35","price_field_id":"11","name":"Benemerito","label":"Benemerito","description":"Socio Benemerito","amount":"250.000000000","weight":"6","membership_type_id":"5","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="return showHideAutoRenew(4);" membership-type="4" class="crm-form-radio" value="34" type="radio" id="CIVICRM_QFID_34_price_11" name="price_11" /><label for="CIVICRM_QFID_34_price_11"><span class="crm-price-amount-label">Sostenitore<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">€ 70,00</span></label></span> </div> <div class="price-set-row membership_amount-row4"> <span class="price-set-option-content"><input price="["price_11","250||"]" data-amount="250.000000000" data-currency="EUR" data-price-field-values="{"32":{"id":"32","price_field_id":"11","name":"Studente","label":"Studente","description":"Socio Studente","amount":"10.000000000","weight":"3","membership_type_id":"3","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"33":{"id":"33","price_field_id":"11","name":"Ordinario","label":"Ordinario","description":"Socio Ordinario","amount":"30.000000000","weight":"4","membership_type_id":"1","membership_num_terms":"1","is_default":"1","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"34":{"id":"34","price_field_id":"11","name":"Sostenitore","label":"Sostenitore","description":"Socio Sostenitore","amount":"70.000000000","weight":"5","membership_type_id":"4","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"},"35":{"id":"35","price_field_id":"11","name":"Benemerito","label":"Benemerito","description":"Socio Benemerito","amount":"250.000000000","weight":"6","membership_type_id":"5","membership_num_terms":"1","is_default":"0","is_active":"1","financial_type_id":"2","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="return showHideAutoRenew(5);" membership-type="5" class="crm-form-radio" value="35" type="radio" id="CIVICRM_QFID_35_price_11" name="price_11" /><label for="CIVICRM_QFID_35_price_11"><span class="crm-price-amount-label">Benemerito<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">€ 250,00</span></label></span> </div> </div> <div id="allow_auto_renew"> <div class='crm-section auto-renew'> <div class='label'></div> <div class='content' id="auto_renew_section"> <input id="auto_renew" name="auto_renew" type="checkbox" value="1" class="crm-form-checkbox" /> <label for="auto_renew">Per favore, rinnova automaticamente la mia iscrizione.</label> </div> <div class='content' id="force_renew" style='display: none'>L'iscrizione sarà rinnovata automaticamente.</div> </div> </div> <div class="clear"></div> </div> <div id="pricesetTotal" class="crm-section section-pricesetTotal"> <div id="pricelabel" class="label hiddenElement"> <span id='amount_sum_label'>Importo Totale</span> </div> <div class="content calc-value" style="display:none;" id="pricevalue"></div> </div> <script type="text/javascript"> var thousandMarker = '.'; var separator = ','; var symbol = '€'; // moneyFormat is part of a temporary fix. it should // not be expected to be present in future versions // see https://github.com/civicrm/civicrm-core/pull/19151 var moneyFormat = '€ 1.234,56'; var optionSep = '|'; // Recalculate the total fees based on user selection cj("#priceset [price]").each(function () { var elementType = cj(this).attr('type'); if (this.tagName == 'SELECT') { elementType = 'select-one'; } switch(elementType) { case 'checkbox': cj(this).click(function(){ calculateCheckboxLineItemValue(this); display(calculateTotalFee()); }); calculateCheckboxLineItemValue(this); break; case 'radio': cj(this).click( function(){ calculateRadioLineItemValue(this); display(calculateTotalFee()); }); calculateRadioLineItemValue(this); break; case 'text': cj(this).bind( 'keyup', function() { calculateText(this); }).bind( 'blur' , function() { calculateText(this); }); //default calculation of element. calculateText(this); break; case 'select-one': calculateSelectLineItemValue(this); cj(this).change(function() { calculateSelectLineItemValue(this); display(calculateTotalFee()); }); break; } display(calculateTotalFee()); }); /** * Calculate the value of the line item for a radio value. */ function calculateCheckboxLineItemValue(priceElement) { eval( 'var option = ' + cj(priceElement).attr('price') ) ; optionPart = option[1].split(optionSep); price = parseFloat(0); if (cj(priceElement).prop('checked')) { price = parseFloat(optionPart[0]); } cj(priceElement).data('line_raw_total', price); } /** * Calculate the value of the line item for a radio value. */ function calculateRadioLineItemValue(priceElement) { eval( 'var option = ' + cj(priceElement).attr('price') ); optionPart = option[1].split(optionSep); var lineTotal = parseFloat(optionPart[0]); cj(priceElement).data('line_raw_total', lineTotal); var radionGroupName = cj(priceElement).attr("name"); // Reset all unchecked options to having a data value of 0. cj('input[name=' + radionGroupName + ']:radio:unchecked').each( function () { cj(this).data('line_raw_total', 0); } ); } /** * Calculate the value of the line item for a select value. */ function calculateSelectLineItemValue(priceElement) { eval( 'var selectedText = ' + cj(priceElement).attr('price') ); var price = parseFloat('0'); var option = cj(priceElement).val(); if (option) { optionPart = selectedText[option].split(optionSep); price = parseFloat(optionPart[0]); } cj(priceElement).data('line_raw_total', price); } /** * Calculate the value of the line item for a text box. */ function calculateText(priceElement) { //CRM-16034 - comma acts as decimal in price set text pricing //CRM-19937 - dollar sign easy mistake to make by users. var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace(symbol, '')); if (isNaN(textval)) { textval = parseFloat(0); } eval('var option = '+ cj(priceElement).attr('price')); optionPart = option[1].split(optionSep); addprice = parseFloat(optionPart[0]); var curval = textval * addprice; cj(priceElement).data('line_raw_total', curval); display(calculateTotalFee()); } /** * Calculate the total fee for the visible priceset. */ function calculateTotalFee() { var totalFee = 0; cj("#priceset [price]").each(function () { totalFee = totalFee + cj(this).data('line_raw_total'); }); return totalFee; } /** * Display calculated amount. */ function display(totalfee) { // totalfee is monetary, round it to 2 decimal points so it can // go as a float - CRM-13491 totalfee = Math.round(totalfee*100)/100; // dev/core#1019 Use the moneyFormat assigned to the template as an interim fix // to support forms using a currency other that the site default. Also make sure to // support various currency formatting options, // temporary measure - pending // our preferred fix. // see https://github.com/civicrm/civicrm-core/pull/19151 var totalFormattedFee = CRM.formatMoney(totalfee, false, moneyFormat); cj('#pricevalue').html(totalFormattedFee); cj('#total_amount').val( totalfee ); cj('#pricevalue').data('raw-total', totalfee).trigger('change'); if (totalfee < 0) { cj('table#pricelabel').addClass('disabled'); } else { cj('table#pricelabel').removeClass('disabled'); } if (typeof skipPaymentMethod == 'function') { // Advice to anyone who, like me, feels hatred towards this if construct ... if you remove the if you // get an error on participant 2 of a event that requires approval & permits multiple registrants. skipPaymentMethod(); } } </script> </div> </fieldset> </div> </div> <script type="text/javascript"> CRM.$(function($) { //if price set is set we use below below code to show for showing auto renew var autoRenewOption = '1'; var autoRenew = $("#auto_renew_section"); var autoRenewCheckbox = $("#auto_renew"); var forceRenew = $("#force_renew"); autoRenew.hide(); forceRenew.hide(); if ( autoRenewOption == 1 ) { autoRenew.show(); } else if ( autoRenewOption == 2 ) { autoRenewCheckbox.prop('checked', true ); autoRenewCheckbox.attr( 'readonly', true ); autoRenew.hide(); forceRenew.show(); } }); </script> <script type="text/javascript"> CRM.$(function($) { showHideAutoRenew( null ); }); function showHideAutoRenew( memTypeId ) { var priceSetName = "price_"+'11'; var considerUserInput = ''; if ( memTypeId ) considerUserInput = false; if ( !memTypeId ) memTypeId = cj('input:radio[name='+priceSetName+']:checked').attr('membership-type'); //does this page has only one membership type. var singleMembership = ''; if ( !memTypeId && singleMembership ) memTypeId = cj("input:radio[name="+priceSetName+"]").attr('membership-type'); var renewOptions = {"autoRenewMembershipType_3":0,"autoRenewMembershipType_1":0,"autoRenewMembershipType_4":0,"autoRenewMembershipType_5":0}; var currentOption = eval( "renewOptions." + 'autoRenewMembershipType_' + memTypeId ); var autoRenew = cj('#auto_renew_section'); var autoRenewC = cj('input[name="auto_renew"]'); var forceRenew = cj("#force_renew"); var readOnly = false; var isChecked = false; if ( currentOption == 0 ) { isChecked = false; forceRenew.hide(); autoRenew.hide(); } if ( currentOption == 1 ) { forceRenew.hide(); autoRenew.show(); //uncomment me, if we'd like //to load auto_renew checked. //isChecked = true; } else if ( currentOption == 2 || currentOption == 4) { autoRenew.hide(); forceRenew.show(); isChecked = readOnly = true; } if ( considerUserInput ) isChecked = autoRenew.prop('checked' ); //its a normal recur contribution. if ( cj( "is_recur" ) && ( cj( 'input:radio[name="is_recur"]:checked').val() == 1 ) ) { isChecked = false; autoRenew.hide(); forceRenew.hide(); } autoRenewC.attr( 'readonly', readOnly ); autoRenewC.prop('checked', isChecked ); } CRM.$(function($) { //keep read only always checked. cj( "#auto_renew" ).click(function( ) { if ( cj(this).attr( 'readonly' ) ) { cj(this).prop('checked', true ); } }); }); </script> </div> <div class="crm-public-form-item crm-section email-5-section"> <div class="label"><label for="email-5"> Indirizzo Email <span class="crm-marker" title="Campo richiesto.">*</span> </label></div> <div class="content"> <input size="30" maxlength="60" class="email crm-form-text required" name="email-5" type="text" id="email-5" /> </div> <div class="clear"></div> </div> <div id='onBehalfOfOrg' class="crm-public-form-item crm-section"> <div class="crm-public-form-item" id="on-behalf-block"> </div> <script type="text/javascript"> CRM.$(function($) { var orgOption = $("input:radio[name=org_option]:checked").attr('id'); var onBehalfRequired = '$onBehalfRequired'; var onbehalfof_id = $('#onbehalfof_id'); var is_for_organization = $('#is_for_organization'); selectCreateOrg(orgOption, false); if (is_for_organization.length) { showHideOnBehalfOfBlock(); is_for_organization.on('change', function() { showHideOnBehalfOfBlock(); }); } function showHideOnBehalfOfBlock() { $('#on-behalf-block').toggle(is_for_organization.is(':checked')); if (is_for_organization.is(':checked')) { $('#onBehalfOfOrg select.crm-select2').removeClass('crm-no-validate'); } else { $('#onBehalfOfOrg select.crm-select2').addClass('crm-no-validate'); } } $("input:radio[name='org_option']").click( function( ) { var orgOption = $(this).attr('id'); selectCreateOrg(orgOption, true); }); onbehalfof_id.change(function() { setLocationDetails($(this).val()); }).change(); if (onbehalfof_id.length) { setLocationDetails(onbehalfof_id.val()); } function resetValues() { // Don't trip chain-select when clearing values $('.crm-chain-select-control', "#select_org div").select2('val', ''); $('input[type=text], select, textarea', "#select_org div").not('.crm-chain-select-control, #onbehalfof_id').val('').change(); $('input[type=radio], input[type=checkbox]', "#select_org div").prop('checked', false).change(); $('#on-behalf-block input').not('input[type=checkbox], input[type=radio], #onbehalfof_id').val(''); // clear checkboxes and radio $('#on-behalf-block') .find('input[type=checkbox], input[type=radio]') .not('input[name=org_option]') .attr('checked', false); } function selectCreateOrg( orgOption, reset ) { if (orgOption == 'CIVICRM_QFID_0_org_option') { $("#onbehalfof_id").show().change(); $("input#onbehalf_organization_name").hide(); } else if (orgOption == 'CIVICRM_QFID_1_org_option') { $("input#onbehalf_organization_name").show(); $("#onbehalfof_id").hide(); reset = true; } if ( reset ) { resetValues(); } } function setLocationDetails(contactID , reset) { resetValues(); var locationUrl = '' + contactID; var submittedOnBehalfInfo = ''; var submittedCID = ""; if (submittedOnBehalfInfo) { submittedOnBehalfInfo = $.parseJSON(submittedOnBehalfInfo); if (submittedCID == contactID) { $.each(submittedOnBehalfInfo, function(key, value) { //handle checkboxes if (typeof value === 'object') { $.each(value, function(k, v) { $('#onbehalf_' + key + '_' + k).prop('checked', v); }); } else if ($('#onbehalf_' + key).length) { $('#onbehalf_' + key ).val(value); } //radio buttons else if ($("input[name='onbehalf[" + key + "]']").length) { $("input[name='onbehalf[" + key + "]']").val([value]); } }); return; } } $.ajax({ url : locationUrl, dataType : "json", success : function(data, status) { for (var ele in data) { if ($("#"+ ele).hasClass('crm-chain-select-target')) { $("#"+ ele).data('newVal', data[ele].value).off('.autofill').on('crmOptionsUpdated.autofill', function() { $(this).off('.autofill').val($(this).data('newVal')).change(); }); } else if ($('#' + ele).data('select2')) { $('#' + ele).select2('val', data[ele].value); } if (data[ele].type == 'Radio') { if (data[ele].value) { var fldName = ele.replace('onbehalf_', ''); $("input[name='onbehalf["+ fldName +"]']").filter("[value='" + data[ele].value + "']").prop('checked', true); } } else if (data[ele].type == 'CheckBox') { for (var selectedOption in data[ele].value) { var fldName = ele.replace('onbehalf_', ''); $("input[name='onbehalf["+ fldName+"]["+ selectedOption +"]']").prop('checked','checked'); } } else if (data[ele].type == 'AdvMulti-Select') { var customFld = ele.replace('onbehalf_', ''); // remove empty value if any $('#onbehalf\\['+ customFld +'\\]-f option[value=""]').remove(); $('#onbehalf\\['+ customFld +'\\]-t option[value=""]').remove(); for (var selectedOption in data[ele].value) { // remove selected values from left and selected values to right $('#onbehalf\\['+ customFld +'\\]-f option[value="' + selectedOption + '"]').remove() .appendTo('#onbehalf\\['+ customFld +'\\]-t'); $('#onbehalf_'+ customFld).val(selectedOption); } } else { // do not set defaults to file type fields if ($('#' + ele).attr('type') != 'file') { $('#' + ele ).val(data[ele].value).change(); } } } }, error : function(XMLHttpRequest, textStatus, errorThrown) { CRM.console('error', "HTTP error status: ", textStatus); } }); } }); </script> </div> <div class="crm-public-form-item crm-section cms_user-section"> </div> <div class="crm-public-form-item crm-section premium_block-section"> </div> <div class="crm-public-form-item crm-group custom_pre_profile-group"> <script type="text/javascript"> CRM.$(function($) { $('#selector tr:even').addClass('odd-row'); $('#selector tr:odd ').addClass('even-row'); }); </script> </div> <fieldset class="crm-public-form-item crm-group payment_options-group" style="display:none;"> <legend>Opzioni di pagamento</legend> <div class="crm-public-form-item crm-section payment_processor-section"> <div class="label"><label>Metodo di Pagamento</label></div> <div class="content"><input class="payment_processor_paypal-standard crm-form-radio" value="1" type="radio" id="CIVICRM_QFID_1_payment_processor_id" name="payment_processor_id" checked="checked" /><label for="CIVICRM_QFID_1_payment_processor_id">PayPal e Carta di Credito</label> <input class="payment_processor_paylater crm-form-radio" value="0" type="radio" id="CIVICRM_QFID_0_payment_processor_id" name="payment_processor_id" /><label for="CIVICRM_QFID_0_payment_processor_id">Bonifico Bancario o altro tipo di pagamento</label></div> <div class="clear"></div> </div> </fieldset> <div id="billing-payment-block"> <script type="text/javascript"> CRM.config.creditCardTypes = {"Visa":{"label":"Visa","name":"Visa","css_key":"visa","pattern":"4(?:[0-9]{12}|[0-9]{15})"},"MasterCard":{"label":"MasterCard","name":"MasterCard","css_key":"mastercard","pattern":"(5[1-5][0-9]{2}|2[3-6][0-9]{2}|22[3-9][0-9]|222[1-9]|27[0-1][0-9]|2720)[0-9]{12}"},"Amex":{"label":"Amex","name":"Amex","css_key":"amex","pattern":"3[47][0-9]{13}"},"Discover":{"label":"Discover","name":"Discover","css_key":"discover","pattern":"6011[0-9]{12}"}}; </script> <div id="payment_information"> </div> <script type="text/javascript" src="/sites/all/modules/civicrm/templates/CRM/Core/BillingBlock.js?r=RNRbuit_IT"> </script> </div> <script type="text/javascript"> /** * Show or hide payment options. * * @param bool $isHide * Should the block be hidden. */ function showHidePayment(isHide) { var payment_options = cj(".payment_options-group"); var payment_processor = cj("div.payment_processor-section"); var payment_information = cj("div#payment_information"); // I've added a hide for billing block. But, actually the issue // might be that the unselecting of the processor should cause it // to be hidden (or removed) in which case it can go from this function. var billing_block = cj("div#billing-payment-block"); if (isHide) { payment_options.hide(); payment_processor.hide(); payment_information.hide(); billing_block.hide(); // Ensure that jquery validation doesn't block submission when we don't need to fill in the billing details section cj('#billing-payment-block select.crm-select2').addClass('crm-no-validate'); // also unset selected payment methods cj('input[name="payment_processor_id"]').removeProp('checked'); } else { payment_options.show(); payment_processor.show(); payment_information.show(); billing_block.show(); cj('#billing-payment-block select.crm-select2').removeClass('crm-no-validate'); // also set selected payment methods cj('input[name="payment_processor_id"][checked=checked]').prop('checked', true); } } /** * Hides or shows billing and payment options block depending on whether payment is required. * * In general incomplete orders or $0 orders do not require a payment block. */ function skipPaymentMethod() { var isHide = false; var isMultiple = null; var alwaysShowFlag = (isMultiple && cj("#additional_participants").val()); var alwaysHideFlag = (cj("#bypass_payment").val() == 1); var total_amount_tmp = cj('#pricevalue').data('raw-total'); // Hide billing questions if this is free if (!alwaysShowFlag && total_amount_tmp == 0){ isHide = true; } else { isHide = false; } if (alwaysHideFlag) { isHide = true; } showHidePayment(isHide); } skipPaymentMethod(); CRM.$(function($) { function buildPaymentBlock(type) { var $form = $('#billing-payment-block').closest('form'); var payment_instrument_id = $('#payment_instrument_id').val(); var currency = 'EUR'; currency = currency == '' ? $('#currency').val() : currency; var dataUrl = "/civicrm/payment/form?formName=Main&is_back_office=&id=3&processor_id=" + type; if (typeof(CRM.vars) != "undefined") { if (typeof(CRM.vars.coreForm) != "undefined") { if (typeof(CRM.vars.coreForm.contact_id) != "undefined") { dataUrl = dataUrl + "&cid=" + CRM.vars.coreForm.contact_id; } if (typeof(CRM.vars.coreForm.checksum) != "undefined" ) { dataUrl = dataUrl + "&cs=" + CRM.vars.coreForm.checksum; } } } dataUrl = dataUrl + "&payment_instrument_id=" + payment_instrument_id + "¤cy=" + currency; // Processors like pp-express will hide the form submit buttons, so re-show them when switching $('.crm-submit-buttons', $form).show().find('input').prop('disabled', true); CRM.loadPage(dataUrl, {target: '#billing-payment-block'}); } $('[name=payment_processor_id], #currency').on('change.paymentBlock', function() { var payment_processor_id = $('[name=payment_processor_id]:checked').val() == undefined ? $('[name=payment_processor_id]').val() : $('[name=payment_processor_id]:checked').val(); if (payment_processor_id != undefined) { buildPaymentBlock(payment_processor_id); } }); $('#payment_instrument_id').on('change.paymentBlock', function() { buildPaymentBlock(0); }); $('#billing-payment-block').on('crmLoad', function() { $('.crm-submit-buttons input').prop('disabled', false); }) }); </script> <div class="crm-public-form-item crm-group custom_post_profile-group"> <script type="text/javascript"> CRM.$(function($) { $('#selector tr:even').addClass('odd-row'); $('#selector tr:odd ').addClass('even-row'); }); </script> </div> <div id="crm-submit-buttons" class="crm-submit-buttons"> <button class="crm-form-submit default validate crm-button crm-button-type-upload crm-button_qf_Main_upload" value="1" type="submit" name="_qf_Main_upload" id="_qf_Main_upload-bottom"><i aria-hidden="true" class="crm-i fa-check"></i> Contribuisci</button> </div> </div> <script type="text/javascript"> cj('input[name="soft_credit_type_id"]').on('change', function() { enableHonorType(); }); function enableHonorType() { var selectedValue = cj('input[name="soft_credit_type_id"]:checked'); if ( selectedValue.val() > 0) { cj('#honorType').show(); } else { cj('#honorType').hide(); } } cj('input[id="is_recur"]').on('change', function() { toggleRecur(); }); function toggleRecur() { var isRecur = cj('input[id="is_recur"]:checked'); var allowAutoRenew = '1'; var quickConfig = 1; if (allowAutoRenew && cj("#auto_renew") && quickConfig) { showHideAutoRenew(null); } var frequencyUnit = cj('#frequency_unit'); var frequencyInerval = cj('#frequency_interval'); var installments = cj('#installments'); isDisabled = false; if (isRecur.val() > 0) { cj('#recurHelp').show(); frequencyUnit.prop('disabled', false).addClass('required'); frequencyInerval.prop('disabled', false).addClass('required'); installments.prop('disabled', false); cj('#amount_sum_label').text('Importo regolare'); } else { cj('#recurHelp').hide(); frequencyUnit.prop('disabled', true).removeClass('required'); frequencyInerval.prop('disabled', true).removeClass('required'); installments.prop('disabled', true); cj('#amount_sum_label').text('Importo Totale'); } } function pcpAnonymous() { // clear nickname field if anonymous is true if (document.getElementsByName("pcp_is_anonymous")[1].checked) { document.getElementById('pcp_roll_nickname').value = ''; } if (!document.getElementsByName("pcp_display_in_roll")[0].checked) { cj('#nickID').hide(); cj('#nameID').hide(); cj('#personalNoteID').hide(); } else { if (document.getElementsByName("pcp_is_anonymous")[0].checked) { cj('#nameID').show(); cj('#nickID').show(); cj('#personalNoteID').show(); } else { cj('#nameID').show(); cj('#nickID').hide(); cj('#personalNoteID').hide(); } } } CRM.$(function($) { enableHonorType(); toggleRecur(); skipPaymentMethod(); }); CRM.$(function($) { // highlight price sets function updatePriceSetHighlight() { $('#priceset .price-set-row span').removeClass('highlight'); $('#priceset .price-set-row input:checked').parent().addClass('highlight'); } $('#priceset input[type="radio"]').change(updatePriceSetHighlight); updatePriceSetHighlight(); // Update pledge contribution amount when pledge checkboxes change $("input[name^='pledge_amount']").on('change', function() { var total = 0; $("input[name^='pledge_amount']:checked").each(function() { total += Number($(this).attr('amount')); }); $("input[name^='price_']").val(total.toFixed(2)); }); }); </script> <script type="text/javascript"> CRM.$(function($) { $("form.CRM_Contribute_Form_Contribution_Main").crmValidate(); }); </script> </form> </div> </div> </div> </div> </div> </div></div> <!-- /.section, /#content --> </div></div> <!-- /#main, /#main-wrapper --> <div id="footer-wrapper"><div class="section"> <div id="footer-columns" class="clearfix"> <div class="region region-footer-firstcolumn"> <div id="block-block-23" class="block block-block"> <div class="content"> <ul> <li><a href="/page/informativa-sulla-privacy">Privacy Policy</a></li> <li><a href="/page/cookie-policy">Cookie Policy</a></li> </ul> </div> </div> </div> <div class="region region-footer-secondcolumn"> <div id="block-block-25" class="block block-block"> <div class="content"> <ul> <li><a href="/user/register">Aderisci a Energoclub</a></li> <li><a href="/socio/rinnova">Rinnova adesione</a></li> <li><a href="/socio/dona">Donazione</a></li> <li><a href="/page/il-5x1000-energoclub-ecco-i-progetti-che-puoi-sostenere">5 x 1000</a></li> </ul> </div> </div> </div> </div> <!-- /#footer-columns --> <div id="footer" class="clearfix"> <div class="region region-footer"> <div id="block-block-1" class="block block-block"> <div class="content"> <center> <p> <a href="http://www.energoclub.it"><span style="color: rgb(255, 255, 255);"><b>EnergoClub Onlus</b></span></a><span style="color: rgb(255, 255, 255);"> - Via Isonzo 10 - 31100 Treviso (Italia) - Tel. +39 0422 1991188 - C.F. 94104800266 - P.IVA 04068070269</span></p> </center> </div> </div> </div> </div> <!-- /#footer --> </div></div> <!-- /.section, /#footer-wrapper --> </div></div> <!-- /#page, /#page-wrapper --> <script type="text/javascript"> <!--//--><![CDATA[//><!-- window.eu_cookie_compliance_cookie_name = ""; //--><!]]> </script> <script type="text/javascript" src="https://www.energoclub.org/files/js/js_jivA82RtTl2Z-nRvtg7e7oQz4m1UgQq2pnwLWV_-jjk.js"></script> </body> </html>