<?php
/* Smarty version 3.1.30, created on 2026-04-24 12:54:52
  from "/home/www/_rejestracja/template/partial/Index/Index.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_69eb4bfc63ab22_12895286',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '08dceca69bc7e6c7aff9366d8f149a83336055f0' => 
    array (
      0 => '/home/www/_rejestracja/template/partial/Index/Index.tpl',
      1 => 1746728787,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_69eb4bfc63ab22_12895286 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_url')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.url.php';
if (!is_callable('smarty_function_translate')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.translate.php';
if (!is_callable('smarty_function_formField')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.formField.php';
?>

<div style="text-align: left;">

    <?php if ($_smarty_tpl->tpl_vars['showNews']->value) {?>
        <h2><?php echo $_smarty_tpl->tpl_vars['indexNews']->value->GetTitle();?>
</h2><p><?php echo $_smarty_tpl->tpl_vars['indexNews']->value->GetDescription();?>
</p>
        <a href="<?php echo smarty_function_url(array('label'=>$_smarty_tpl->tpl_vars['objNewsElement']->value->GetUrlLabel()),$_smarty_tpl);?>
" ><?php echo $_smarty_tpl->tpl_vars['objNewsElement']->value->GetName();?>
</a>
    <?php } else { ?>
        <h2><?php echo $_smarty_tpl->tpl_vars['indexNews']->value->GetName();?>
</h2><p><?php echo $_smarty_tpl->tpl_vars['indexNews']->value->GetDescription();?>
</p>
    <?php }?>
    <div class="formBox">
        <div class="trescAdd">
            <div class="cb"></div>
            <div class="formContainer">
                <div id="info_container">
                    <?php if (isset($_smarty_tpl->tpl_vars['info']->value)) {?>
                        <div class="<?php if ($_smarty_tpl->tpl_vars['error']->value && $_smarty_tpl->tpl_vars['error']->value != 'info') {?>error<?php } else { ?>info<?php }?>"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
</div>
                    <?php }?>
                </div>

                <form method="post" action="<?php echo smarty_function_url(array('label'=>'current'),$_smarty_tpl);?>
" id="sendContactForm" class="contactForm">
                    <input name="send" type="hidden" value="true" />
                    <div class="entry">
                         <div><h5 align="center"><?php echo smarty_function_translate(array('word'=>'Dane uczestnika (służbowe)'),$_smarty_tpl);?>
:</h5></div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Imię'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"name",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Nazwisko'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"surname",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Tytuł/stop. naukowy'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"degree",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Stanowisko'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"position",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Telefon'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"phone",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>                                        
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Fax'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"fax",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'email'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"email",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="cb"></div>
                    <div class="entry">
                        <div><h5 align="center"><?php echo smarty_function_translate(array('word'=>'Miejsce pracy'),$_smarty_tpl);?>
:</h5></div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Instytucja'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"institution",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Ulica i numer'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"address",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Kod pocztowy'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"post_code",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Miejscowość'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"city",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'NIP Instytucji'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"nip",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>  
                    <div class="cb"></div>
                    <div class="entry">
                        <div class="label">Zgłaszam referat</div>
                        <div class="value" title="s">

                            <label class="control control--radio">Tak
                              <input type="radio" name="referat" class="referat" value="1" />
                                <div class="control__indicator"></div>
                            </label>
                            <label class="control control--radio">Nie
                                <input type="radio" name="referat" class="referat" value="2" />
                                <div class="control__indicator"></div>
                            </label>
                        </div>
                    </div>	
                    <div class="cb"></div>
                    <div class="entry">
                        <div class="label">Zgłaszam poster</div>
                        <div class="value" title="s">

                            <label class="control control--radio">Tak
                                <input type="radio" name="poster" value="1" />
                                <div class="control__indicator"></div>
                            </label>
                            <label class="control control--radio">Nie
                                <input type="radio" name="poster" value="2" />
                                <div class="control__indicator"></div>
                            </label>

                        </div>
                    </div>			           

                    <div class="cb"></div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Tytuł referatu/posteru'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"message",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>  
                    <div class="cb"></div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Autor referatu/posteru'),$_smarty_tpl);?>
:</div>
                        <div class="value"><?php echo smarty_function_formField(array('name'=>"autor",'type'=>"text",'errorClass'=>"warning"),$_smarty_tpl);?>
</div>
                    </div>  
                    <div class="cb">&nbsp;</div>
                    <div class="entry">
                        <label class="control control--checkbox" title="<?php echo smarty_function_translate(array('word'=>'agree_title'),$_smarty_tpl);?>
">
                            <input type="checkbox" name="agree1" id="agree1" data-theme="d" ><?php echo smarty_function_translate(array('word'=>'agree1'),$_smarty_tpl);?>

                            <div class="control__indicator"></div>
                        </label> 
                        <label class="control control--checkbox" title="<?php echo smarty_function_translate(array('word'=>'agree_title'),$_smarty_tpl);?>
">
                            <input type="checkbox" name="agree2" id="agree2" data-theme="d" ><?php echo smarty_function_translate(array('word'=>'agree2'),$_smarty_tpl);?>

                            <div class="control__indicator"></div>
                        </label> 		            
                        <div class="cb"></div>
                    </div>
                    <div class="entry">
                        <div><h5 align="center"><?php echo smarty_function_translate(array('word'=>'Udział w konrefencji'),$_smarty_tpl);?>
:</h5></div>
                        
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Opłata'),$_smarty_tpl);?>
: </div>
                        <div class="value">
                          <div class="confOption"> 
                            <label class="control control--radio">Opłata obniżona (płatność do 03.10.2025)
                              <input type="radio" name="conference_fee_disc" id="conference_fee_disc" checked="true" class="conference_fee_disc" value="1" onclick="calculatePrice();"/>
                                <div class="control__indicator"></div>
                            </label>
                            <label class="control control--radio">Opłata zwykła (płatność po 03.10.2025)
                                <input type="radio" name="conference_fee_disc" id="conference_fee_norm" class="conference_fee_disc" value="2" onclick="calculatePrice();"/>
                                <div class="control__indicator"></div>
                            </label>
                          </div>
                        </div>
                    </div>
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Cały kongres'),$_smarty_tpl);?>
: </div>
                        <div class="value">
                            <div class="configContainer">
                                <div class="confOption">
                                    <div style="width:100%; display:flex; flex-wrap:no-wrap; align-items:start; gap;10px;">
                                        <label class="control control--radio">&nbsp;
                                            <input type="radio" name="conference_fee" checked="true" id="conference_fee" class="conference_fee" value="1" onclick="$('#conference_1').show();
                                                    $('#conference_2').hide(); calculatePrice();" />
                                            <div class="control__indicator"></div>
                                        </label>
                                        <span>Biorę udział w całym kongresie</span>
                                    </div>
                                    <div style="width:100%; display:flex; flex-wrap:no-wrap; align-items:start; gap;10px;">
                                        <label class="control control--radio">&nbsp;
                                            <input type="radio" name="conference_fee" id="conference_fee_3" class="conference_fee" value="6" onclick="calculatePrice()" />
                                            <div class="control__indicator"></div>
                                        </label>
                                        <span>Biorę udział w trzech dniach kongresu</span>
                                    </div>
                                    <div style="width:100%; display:flex; flex-wrap:no-wrap; align-items:start; gap;10px;">
                                        <label class="control control--radio">&nbsp;
                                            <input type="radio" name="conference_fee" id="conference_fee_2" class="conference_fee" value="7" onclick="calculatePrice()" />
                                            <div class="control__indicator"></div>
                                        </label>
                                        <span>Biorę udział w dwóch dniach kongresu</span>
                                    </div>
                                    <div style="width:100%; display:flex; flex-wrap:no-wrap; align-items:start; gap;10px; margin-bottom:30px;">
                                        <label class="control control--radio">&nbsp;
                                            <input type="radio" name="conference_fee" id="conference_fee_1" class="conference_fee" value="5" onclick="calculatePrice()" />
                                            <div class="control__indicator"></div>
                                        </label>
                                        <span>Biorę udział w jednym dniu kongresu (bez noclegu)</span>
                                    </div>
                                    <div class="show--day-select" id="show--day-select" style="display:none; width:100%; margin-bottom:30px; flex-direction:column; gap:10px;">
                                        <label class="" for="days" style="width:100%;"> Wskaż dzień/dni swojej obecności * </label>
                                          <input type="text" name="days" class="" id="days" >
                                    </div>
                                    <?php echo '<script'; ?>
>
                                        
                                          $(function () {  
                                            $('#conference_1').show();
                                            calculatePrice();
                                          });
                                          $('.conference_fee').on('change', showSelectDate);
                                          
                                        function showSelectDate() {
                                            const $form = $('#show--day-select');
                                            const selectedId = $('.conference_fee:checked').attr('id');

                                            if ( selectedId === 'conference_fee_1' ||
                                                selectedId === 'conference_fee_2' ||
                                                selectedId === 'conference_fee_3' ) {
                                                $form.css('display', 'flex');
                                            } else {
                                                $form.css('display', 'none');
                                            }
                                        }

                                          function calculatePrice() {
                                             if ($("#conference_fee_disc").is(':checked')) {
                                                 //alert('disc');
                                                var price = <?php echo $_smarty_tpl->tpl_vars['arrayPricePromJson']->value;?>
;
                                                var priceVat = <?php echo $_smarty_tpl->tpl_vars['arrayPricePromVatJson']->value;?>
;
                                              } 
                                              if ($("#conference_fee_norm").is(':checked')) {
                                                //alert('normal');
                                                var price = <?php echo $_smarty_tpl->tpl_vars['arrayPriceJson']->value;?>
;
                                                var priceVat = <?php echo $_smarty_tpl->tpl_vars['arrayPriceVatJson']->value;?>
;
                                              }  
                                              
                                              
                                                    var sumPrice = 0;
                                                    var sumPriceVat = 0;
                                                    var price_info = '';

                                                    let promo = $("#conference_fee_norm").is(':checked')

                                                    if ($("#conference_fee").is(':checked')) {
                                                        sumPrice = price[1];
                                                        sumPriceVat = priceVat[1];
                                                        price_info += 'cała conf ';
                                                    }                                          

                                                    if ($('#conference_fee_3').is(':checked')) {
                                                        sumPrice = !promo ? 2200 : 2500;
                                                        sumPriceVat = !promo ? 2706 : 3075;
                                                        price_info += '3-dniowa';
                                                    }                                          

                                                    if ($('#conference_fee_2').is(':checked')) {
                                                        sumPrice = !promo ? 1800 : 2100;
                                                        sumPriceVat = !promo ? 2214 : 2583;
                                                        price_info += '2-dniowa';
                                                    }                                          

                                                    if ($('#conference_fee_1').is(':checked')) {
                                                        sumPrice = !promo ? 1300 : 1600;
                                                        sumPriceVat = !promo ? 1599 : 1968;
                                                        price_info += '1-dniowa';
                                                    }
                                                      
                                                    if ($("#price_plus_room").is(':checked')) {
                                                       sumPrice = sumPrice + price[2];
                                                       sumPriceVat = sumPriceVat + priceVat[2];
                                                       price_info += 'pokój jedynka ';
                                                    }
                                                    if ($("#price_plus_person").is(':checked')) {
                                                       sumPrice = sumPrice + price[3];
                                                       sumPriceVat = sumPriceVat + priceVat[3];
                                                       price_info += 'osoba dodatkoawa ';
                                                    }
                                                    if ($("#price_plus_ang").is(':checked')) {
                                                        sumPrice = sumPrice + price[4];
                                                        sumPriceVat = sumPriceVat + priceVat[4];
                                                        price_info += 'ang ';
                                                    }
                                                    if ($("#conference_fee_one").is(':checked')) {
                                                       sumPrice = price[5];
                                                       sumPriceVat = priceVat[5];
                                                       price_info = 'jeden dzień ';
                                                     }
                                                    $("p.price_full_fee").html(sumPrice.toFixed(2) + ' PLN netto ' + '(' + sumPriceVat.toFixed(2) + ' PLN brutto)');
                                                    //alert(sumPrice);
                                                    $("p.price_info").html(price_info);
                                                    window.sumPrice = sumPrice;
                                                    window.sumPriceVat = sumPriceVat;
                                            
                                          }
                                            $(function () {  
                                                $(".conference_fee").on('change', function () { 
                                                  if ($("#conference_fee_one").is(':checked')) {                                                        
                                                        $("#price_plus_room").prop("checked", false);
                                                        $("#price_plus_ang").prop("checked", false);
                                                        $("#price_plus_person").prop("checked", false);                                                        
                                                    }                                                    
                                                });
                                            });
                                        
                                    <?php echo '</script'; ?>
>
                                    <div class="confOptionContainer" id="conference_1">
                                        <label class="control control--checkbox" > Dopłata do pokoju 1-osobowego
                                          <input type="checkbox" name="fee_room1" class="price_plus_room" id="price_plus_room" data-theme="d" value="2" onchange="calculatePrice();" >
                                            <div class="control__indicator"></div>
                                        </label>
                                        <label class="control control--checkbox" > Opłata za pobyt osoby towarzyszącej lub kierowcy w pokoju dwuosobowym
                                            <input type="checkbox" name="fee_room_add_person" id="price_plus_person" data-theme="d" onclick="$('#price_plus_room').prop
                                                    ("checked", true);" value="3" onchange="calculatePrice();" >
                                            <div class="control__indicator"></div>
                                        </label>
                                      <label class="control control--checkbox" style="display: none;" > Udział w kongresie Ang. 
                                            <input type="checkbox" name="fee_ang_conference" id="price_plus_ang" data-theme="d" value="4" onchange="calculatePrice();" >
                                            <div class="control__indicator"></div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>  
                    <div class="entry" style="display:none;">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Jeden dzień (bez noclegu)'),$_smarty_tpl);?>
:</div>
                        <div class="value">
                            <div class="configContainer">
                                <div class="confOption"> 
                                    <label class="control control--radio">&nbsp;
                                        <input type="radio" name="conference_fee" id="conference_fee_one" class="conference_fee" value="5"  onclick="$('#conference_1').hide();
                                                $('#conference_2').show(); calculatePrice();" />
                                        <div class="control__indicator"></div>
                                    </label>
                                    <div class="confOptionContainer" id="conference_2">
                                        Wybierz dzień kongresu:
                                        <label class="control control--radio">03.11
                                            <input type="radio" name="day_conference" value="3.11" />
                                            <div class="control__indicator"></div>
                                        </label>
                                        <label class="control control--radio">04.11
                                            <input type="radio" name="day_conference" value="4.11" />
                                            <div class="control__indicator"></div>
                                        </label>
                                        <label class="control control--radio">5.11
                                            <input type="radio" name="day_conference" value="5.11" />
                                            <div class="control__indicator"></div>
                                        </label>
										<label class="control control--radio">6.11
                                            <input type="radio" name="day_conference" value="6.11" />
                                            <div class="control__indicator"></div>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>  
                    <div class="entry">
                        <div class="label"><?php echo smarty_function_translate(array('word'=>'Cena za kongres'),$_smarty_tpl);?>
</div>
                        <div class="value"><p class="price_full_fee" style="margin: 0px;">&nbsp;</p></div>
                        
                    </div>

 <div class="entry">
                        <div><h5 align="center">&nbsp;</h5></div>
                    </div>

                    <div class="cb"></div>
                    <div>
                            <p><?php echo $_smarty_tpl->tpl_vars['indexNews']->value->GetShortnote();?>
</p>
                    </div>

                    
                    <div class="entry" style="padding-top: 1.1em;">
                    <div class="label"> </div>
                    <div class="value"><div class="g-recaptcha" data-sitekey="6LfUVuoUAAAAAD7noZ6S0rf8ZPiZKQ2KVpNBA274" data-callback="recaptchaCallback"></div>
                    <input type="hidden" class="hiddenRecaptcha required" name="hiddenRecaptcha" id="hiddenRecaptcha">
                    </div>
                    </div>
                    <div class="entry entryLast">
                        <div class="label">&nbsp;</div>
                        <div class="value"><input class="button _sendContact" type="button" id="form--send" value="<?php echo smarty_function_translate(array('word'=>'send'),$_smarty_tpl);?>
" /></div>
                    </div>	

                </form>
            </div>
            <div class="cb"></div>
        </div>


    </div>
</div>


<?php }
}
