<h1>Edytuj zgłoszenie</h1>	
<script language="javascript" type="text/javascript">
urlStatic = '{$urlStatic}';
</script>

					{assign var=id value=$obj->GetId()}
<form method="post" action="{url Calc='RegEdit' id=$obj->GetId()}" enctype="multipart/form-data">
	{if isset($obj)}
		<input type="hidden" name="id" value="{$obj->GetId()}" />
	{/if}

	<div class="panelRightTop"></div>
	<div class="panelRightBody">
		<div class="paddedContent">
			{assign var="additionalTitle" value=""}

			{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
					<tbody>
						<tr>
							<td>Dane uczestnika:</td>
							<td>							
							Imię: {$objParticipant->getName()}</br>
                        Nazwisko: {$objParticipant->getSurname()}</br>
                        Tytuł/stop. naukowy:{$objParticipant->getDegree()}</br>
                        Stanowisko: {$objParticipant->getPosition()|default:'brak'}</br>
                        Telefon: {$objParticipant->getPhone()}</br>
                        Fax: {$objParticipant->getFax()|default:'brak'}</br>
                        Email: {$objParticipant->getEmail()}</br>
							</td>
						</tr>
						<tr>
							<td>Dane instytucji::</td>
							<td class="left">
								Instytucja: {$objParticipant->getInstitution()|default:'brak'}</br>
                        Ulica i numer: {$objParticipant->getAddress()|default:'brak'}</br>
                        Kod pocztowy: {$objParticipant->getPostCode()|default:'brak'}</br>
                        Miejscowość: {$objParticipant->getCity()|default:'brak'}</br>
                        NIP Instytucji: {$objParticipant->getNip()|default:'brak'}</br>
							</td>									
						</tr>
						<tr>
							<td>Dane wystąpienia:</td>
							<td class="left">
								Referat: {$objParticipant->getReferat()|default:'Nie'|replace:1:'Tak'|replace:2:'Nie'|replace:0:'Nie'}</br>
                        Poster: {$objParticipant->getPoster()|default:'Nie'|replace:1:'Tak'|replace:2:'Nie'|replace:0:'Nie'}
                        <p>Temat: {$objParticipant->getMessage()|default:'brak'}</p>
                        <p>Streszczenie: {$objParticipant->getMessageLong()|default:'brak'}</p>
                        <p>Autor: {$objParticipant->getAutor()|default:'brak'}</p>
							</td>									
						</tr>
						<tr>
							<td>Informacja o kwocie do zapłaty:</td>
							<td class="left">
								Wybrane opcje:</br>
                            {if $discPrice == 2}
                            
                            Opłata zwykła (płatność <b>po 08.10.2021</b>) 
                            {else}
                            Opłata obniżona (płatność <b>do 08.10.2021</b>) 
                            {/if} 
                            <ul>
                                {foreach $arrayObjParameters as $objParam}
                                    {if in_array($objParam->GetId(),$arrayFee)} 
                                      {if $discPrice == 2}
                                        <li>{$objParam->GetName()} {if $objParam->GetId() eq 5}({$objParticipant->GetFeeOneDay()}){/if}</br>
                                            Cena netto: {$objParam->GetPrice()|number_format:2:",":" "} PLN</br>
                                            Cena brutto: {assign var="vat" value=$objParam->GetPrice()*1.23}{$vat|number_format:2:",":" "} PLN</br>
                                        </li>
                                      {else}
                                        <li>{$objParam->GetName()} {if $objParam->GetId() eq 5}({$objParticipant->GetFeeOneDay()}){/if}</br>
                                            Cena netto (bez VAT): {$objParam->GetPriceProm()|number_format:2:",":" "} PLN</br>
                                            Cena brutto (z VAT): {assign var="vat" value=$objParam->GetPriceProm()*1.23}{$vat|number_format:2:",":" "} PLN</br>
                                        </li>
                                      {/if} 
                                    {/if} 
                                {/foreach}
                                <h3>Razem do zapłaty:</h3>
                                {assign var="resultPrice" value=$objParticipant->getPrice()}
                                Cena netto: {$resultPrice|number_format:2:",":" "} PLN</br>
                                Cena brutto: {assign var="resultPriceVat" value=$resultPrice*1.23}{$resultPriceVat|number_format:2:",":" "} PLN</br>
                               
                                
                            </ul>
							</td>									
						</tr>
                        <tr>
							<td>Wyrażono zgody</td>
							<td class="left">
								<p>Zgoda na przetwarzanie danych - {$objParticipant->getAgree1()|default:'Nie'|replace:1:'Tak'|replace:'on':'Tak'|replace:0:'Nie'}</p> 
                        
                        <p>Zgoda na  przetwarzanie wizerunku - {$objParticipant->getAgree2()|default:'Nie'|replace:1:'Tak'|replace:'on':'Tak'|replace:0:'Nie'}</p>
							</td>									
						</tr>
						<tr>
                        <td>Status opłaty: </td><td>
                        <select class="input" style="width: 100px;" name="payment_status">
                            <option value="1" {if $objParticipant->GetStatus() == 1}selected="selected"{/if}>nie opołacone</option>
                            <option value="2" {if $objParticipant->GetStatus() == 2}selected="selected"{/if}>opołacone</option>
                        </select>
                        </td>
	</tr>
					</tbody>
				</table>
			{/dropDownContainer}


		
		</div>
		</div>
	<div class="cb"></div>
		<div class="panelButtons">
		
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Calc=Reg}';"/>
			
			&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>
