<?php
/* Smarty version 3.1.30, created on 2021-07-22 14:20:50
  from "/home/www/_rejestracja/Admin/template/partial/Calc/RegEdit.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_60f962a2d32ea6_00312026',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '70c2b63810876216fe786103cbc3e87a51b68793' => 
    array (
      0 => '/home/www/_rejestracja/Admin/template/partial/Calc/RegEdit.tpl',
      1 => 1626955394,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_60f962a2d32ea6_00312026 (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_block_dropDownContainer')) require_once '/home/www/_rejestracja/core/plugins/Smarty/block.dropDownContainer.php';
if (!is_callable('smarty_modifier_replace')) require_once '/home/www/_rejestracja/core/lib/Smarty3/plugins/modifier.replace.php';
?>
<h1>Edytuj zgłoszenie</h1>	
<?php echo '<script'; ?>
 language="javascript" type="text/javascript">
urlStatic = '<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
';
<?php echo '</script'; ?>
>

					<?php $_smarty_tpl->_assignInScope('id', $_smarty_tpl->tpl_vars['obj']->value->GetId());
?>
<form method="post" action="<?php echo smarty_function_url(array('Calc'=>'RegEdit','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
" enctype="multipart/form-data">
	<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
		<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
" />
	<?php }?>

	<div class="panelRightTop"></div>
	<div class="panelRightBody">
		<div class="paddedContent">
			<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
?>

			<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Ogólne",'additionalTitle'=>$_smarty_tpl->tpl_vars['additionalTitle']->value));
$_block_repeat1=true;
echo smarty_block_dropDownContainer(array('title'=>"Ogólne",'additionalTitle'=>$_smarty_tpl->tpl_vars['additionalTitle']->value), null, $_smarty_tpl, $_block_repeat1);
while ($_block_repeat1) {
ob_start();
?>

				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
					<tbody>
						<tr>
							<td>Dane uczestnika:</td>
							<td>							
							Imię: <?php echo $_smarty_tpl->tpl_vars['objParticipant']->value->getName();?>
</br>
                        Nazwisko: <?php echo $_smarty_tpl->tpl_vars['objParticipant']->value->getSurname();?>
</br>
                        Tytuł/stop. naukowy:<?php echo $_smarty_tpl->tpl_vars['objParticipant']->value->getDegree();?>
</br>
                        Stanowisko: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getPosition())===null||$tmp==='' ? 'brak' : $tmp);?>
</br>
                        Telefon: <?php echo $_smarty_tpl->tpl_vars['objParticipant']->value->getPhone();?>
</br>
                        Fax: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getFax())===null||$tmp==='' ? 'brak' : $tmp);?>
</br>
                        Email: <?php echo $_smarty_tpl->tpl_vars['objParticipant']->value->getEmail();?>
</br>
							</td>
						</tr>
						<tr>
							<td>Dane instytucji::</td>
							<td class="left">
								Instytucja: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getInstitution())===null||$tmp==='' ? 'brak' : $tmp);?>
</br>
                        Ulica i numer: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getAddress())===null||$tmp==='' ? 'brak' : $tmp);?>
</br>
                        Kod pocztowy: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getPostCode())===null||$tmp==='' ? 'brak' : $tmp);?>
</br>
                        Miejscowość: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getCity())===null||$tmp==='' ? 'brak' : $tmp);?>
</br>
                        NIP Instytucji: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getNip())===null||$tmp==='' ? 'brak' : $tmp);?>
</br>
							</td>									
						</tr>
						<tr>
							<td>Dane wystąpienia:</td>
							<td class="left">
								Referat: <?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace((($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getReferat())===null||$tmp==='' ? 'Nie' : $tmp),1,'Tak'),2,'Nie'),0,'Nie');?>
</br>
                        Poster: <?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace((($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getPoster())===null||$tmp==='' ? 'Nie' : $tmp),1,'Tak'),2,'Nie'),0,'Nie');?>

                        <p>Temat: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getMessage())===null||$tmp==='' ? 'brak' : $tmp);?>
</p>
                        <p>Streszczenie: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getMessageLong())===null||$tmp==='' ? 'brak' : $tmp);?>
</p>
                        <p>Autor: <?php echo (($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getAutor())===null||$tmp==='' ? 'brak' : $tmp);?>
</p>
							</td>									
						</tr>
						<tr>
							<td>Informacja o kwocie do zapłaty:</td>
							<td class="left">
								Wybrane opcje:</br>
                            <?php if ($_smarty_tpl->tpl_vars['discPrice']->value == 2) {?>
                            
                            Opłata zwykła (płatność <b>po 08.10.2021</b>) 
                            <?php } else { ?>
                            Opłata obniżona (płatność <b>do 08.10.2021</b>) 
                            <?php }?> 
                            <ul>
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObjParameters']->value, 'objParam');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['objParam']->value) {
?>
                                    <?php if (in_array($_smarty_tpl->tpl_vars['objParam']->value->GetId(),$_smarty_tpl->tpl_vars['arrayFee']->value)) {?> 
                                      <?php if ($_smarty_tpl->tpl_vars['discPrice']->value == 2) {?>
                                        <li><?php echo $_smarty_tpl->tpl_vars['objParam']->value->GetName();?>
 <?php if ($_smarty_tpl->tpl_vars['objParam']->value->GetId() == 5) {?>(<?php echo $_smarty_tpl->tpl_vars['objParticipant']->value->GetFeeOneDay();?>
)<?php }?></br>
                                            Cena netto: <?php echo number_format($_smarty_tpl->tpl_vars['objParam']->value->GetPrice(),2,","," ");?>
 PLN</br>
                                            Cena brutto: <?php $_smarty_tpl->_assignInScope('vat', $_smarty_tpl->tpl_vars['objParam']->value->GetPrice()*1.23);
echo number_format($_smarty_tpl->tpl_vars['vat']->value,2,","," ");?>
 PLN</br>
                                        </li>
                                      <?php } else { ?>
                                        <li><?php echo $_smarty_tpl->tpl_vars['objParam']->value->GetName();?>
 <?php if ($_smarty_tpl->tpl_vars['objParam']->value->GetId() == 5) {?>(<?php echo $_smarty_tpl->tpl_vars['objParticipant']->value->GetFeeOneDay();?>
)<?php }?></br>
                                            Cena netto (bez VAT): <?php echo number_format($_smarty_tpl->tpl_vars['objParam']->value->GetPriceProm(),2,","," ");?>
 PLN</br>
                                            Cena brutto (z VAT): <?php $_smarty_tpl->_assignInScope('vat', $_smarty_tpl->tpl_vars['objParam']->value->GetPriceProm()*1.23);
echo number_format($_smarty_tpl->tpl_vars['vat']->value,2,","," ");?>
 PLN</br>
                                        </li>
                                      <?php }?> 
                                    <?php }?> 
                                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                                <h3>Razem do zapłaty:</h3>
                                <?php $_smarty_tpl->_assignInScope('resultPrice', $_smarty_tpl->tpl_vars['objParticipant']->value->getPrice());
?>
                                Cena netto: <?php echo number_format($_smarty_tpl->tpl_vars['resultPrice']->value,2,","," ");?>
 PLN</br>
                                Cena brutto: <?php $_smarty_tpl->_assignInScope('resultPriceVat', $_smarty_tpl->tpl_vars['resultPrice']->value*1.23);
echo number_format($_smarty_tpl->tpl_vars['resultPriceVat']->value,2,","," ");?>
 PLN</br>
                               
                                
                            </ul>
							</td>									
						</tr>
                        <tr>
							<td>Wyrażono zgody</td>
							<td class="left">
								<p>Zgoda na przetwarzanie danych - <?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace((($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getAgree1())===null||$tmp==='' ? 'Nie' : $tmp),1,'Tak'),'on','Tak'),0,'Nie');?>
</p> 
                        
                        <p>Zgoda na  przetwarzanie wizerunku - <?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace((($tmp = @$_smarty_tpl->tpl_vars['objParticipant']->value->getAgree2())===null||$tmp==='' ? 'Nie' : $tmp),1,'Tak'),'on','Tak'),0,'Nie');?>
</p>
							</td>									
						</tr>
						<tr>
                        <td>Status opłaty: </td><td>
                        <select class="input" style="width: 100px;" name="payment_status">
                            <option value="1" <?php if ($_smarty_tpl->tpl_vars['objParticipant']->value->GetStatus() == 1) {?>selected="selected"<?php }?>>nie opołacone</option>
                            <option value="2" <?php if ($_smarty_tpl->tpl_vars['objParticipant']->value->GetStatus() == 2) {?>selected="selected"<?php }?>>opołacone</option>
                        </select>
                        </td>
	</tr>
					</tbody>
				</table>
			<?php $_block_repeat1=false;
echo smarty_block_dropDownContainer(array('title'=>"Ogólne",'additionalTitle'=>$_smarty_tpl->tpl_vars['additionalTitle']->value), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
}
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>



		
		</div>
		</div>
	<div class="cb"></div>
		<div class="panelButtons">
		
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='<?php echo smarty_function_url(array('Calc'=>'Reg'),$_smarty_tpl);?>
';"/>
			
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" value="Zapisz" name="doCategoryEdit"/>
		</div>
	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>
<?php }
}
