<h1>Edytuj zgłoszenie</h1>
{assign var=registrationYes value='registration_yes'|translate}
{assign var=registrationNo value='registration_no'|translate}
{assign var=registrationMissing value='registration_missing'|translate}
{assign var=registrationParticipationFull value='registration_participation_full'|translate}
{assign var=registrationParticipationLodging value='registration_participation_one_day_lodging'|translate}
{assign var=registrationParticipationNoLodging value='registration_participation_one_day_no_lodging'|translate}
{assign var=registrationDietStandardShort value='registration_diet_standard_short'|translate}
{assign var=registrationDietSpecialShort value='registration_diet_special_short'|translate}
<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>{'registration_participant_data'|translate}:</td>
							<td>
								Imię: {$objParticipant->getName()}</br>
								Nazwisko: {$objParticipant->getSurname()}</br>
								Tytuł/stop. naukowy:{$objParticipant->getDegree()}</br>
								Stanowisko: {$objParticipant->getPosition()|default:$registrationMissing}</br>
								Telefon: {$objParticipant->getPhone()}</br>
								Fax: {$objParticipant->getFax()|default:$registrationMissing}</br>
								Email: {$objParticipant->getEmail()}</br>
							</td>
						</tr>
						<tr>
							<td>{'registration_institution_data'|translate}:</td>
							<td class="left">
								Instytucja: {$objParticipant->getInstitution()|default:$registrationMissing}</br>
								Ulica i numer: {$objParticipant->getAddress()|default:$registrationMissing}</br>
								Kod pocztowy: {$objParticipant->getPostCode()|default:$registrationMissing}</br>
								Miejscowość: {$objParticipant->getCity()|default:$registrationMissing}</br>
								NIP Instytucji: {$objParticipant->getNip()|default:$registrationMissing}</br>
							</td>
						</tr>
						<tr>
							<td>{'registration_presentation_data'|translate}:</td>
							<td class="left">
								Referat: {$objParticipant->getReferat()|default:$registrationNo|replace:1:$registrationYes|replace:2:$registrationNo|replace:0:$registrationNo}</br>
								Poster: {$objParticipant->getPoster()|default:$registrationNo|replace:1:$registrationYes|replace:2:$registrationNo|replace:0:$registrationNo}
								<p>{'registration_topic'|translate}: {$objParticipant->getMessage()|default:$registrationMissing}</p>
								<p>{'registration_abstract'|translate}: {$objParticipant->getMessageLong()|default:$registrationMissing}</p>
								<p>{'registration_author'|translate}: {$objParticipant->getAutor()|default:$registrationMissing}</p>
							</td>
						</tr>
						<tr>
							<td>{'registration_participation_preferences'|translate}:</td>
							<td class="left">
								<p>{'registration_participation_type'|translate}: {$objParticipant->getParticipationOption()|replace:'full':$registrationParticipationFull|replace:'one_day_lodging':$registrationParticipationLodging|replace:'one_day_no_lodging':$registrationParticipationNoLodging|default:$registrationMissing}</p>
								<p>{'registration_days'|translate}: {if $objParticipant->getParticipationDays()}{$objParticipant->getParticipationDays()}{elseif $objParticipant->GetFeeOneDay()}{$objParticipant->GetFeeOneDay()}{else}{$registrationMissing}{/if}</p>
								<p>{'registration_single_room_surcharge'|translate}: {$objParticipant->getFeeRoom1()|replace:1:$registrationYes|replace:0:$registrationNo|default:$registrationNo}</p>
								<p>{'registration_accompanying_driver'|translate}: {$objParticipant->getFeeRoomAddPerson()|replace:1:$registrationYes|replace:0:$registrationNo|default:$registrationNo}</p>
								<p>{'registration_diet'|translate}: {$objParticipant->getDiet()|replace:1:$registrationDietStandardShort|replace:2:$registrationDietSpecialShort|default:$registrationMissing} {if $objParticipant->getDietSpecial()}- {$objParticipant->getDietSpecial()}{/if}</p>
							</td>
						</tr>
						<tr>
							<td>{'registration_amount_information'|translate}:</td>
							<td class="left">
								{'registration_selected_options'|translate}:</br>
								{if $discPrice == 2}
									{'registration_fee_normal_2026'|translate}
								{else}
									{'registration_fee_discount_2026'|translate}
								{/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>
													{'registration_net_price'|translate}: {$objParam->GetPrice()|number_format:2:",":" "} PLN</br>
													{'registration_gross_price'|translate}: {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>
													{'registration_net_price_no_vat'|translate}: {$objParam->GetPriceProm()|number_format:2:",":" "} PLN</br>
													{'registration_gross_price_vat'|translate}: {assign var="vat" value=$objParam->GetPriceProm()*1.23}{$vat|number_format:2:",":" "} PLN</br>
												</li>
											{/if}
										{/if}
									{/foreach}
									<h3>{'registration_total_to_pay'|translate}:</h3>
									{assign var="resultPrice" value=$objParticipant->getPrice()}
									{'registration_net_price'|translate}: {$resultPrice|number_format:2:",":" "} PLN</br>
									{'registration_gross_price'|translate}: {assign var="resultPriceVat" value=$resultPrice*1.23}{$resultPriceVat|number_format:2:",":" "} PLN</br>
								</ul>
							</td>
						</tr>
						<tr>
							<td>{'registration_consents_expressed'|translate}</td>
							<td class="left">
								<p>{'registration_consent_data'|translate} - {$objParticipant->getAgree1()|default:$registrationNo|replace:1:$registrationYes|replace:'on':$registrationYes|replace:0:$registrationNo}</p>
								<p>{'registration_consent_image'|translate} - {$objParticipant->getAgree2()|default:$registrationNo|replace:1:$registrationYes|replace:'on':$registrationYes|replace:0:$registrationNo}</p>
							</td>
						</tr>
						<tr>
							<td>{'registration_payment_status'|translate}: </td><td>
							<select class="input" style="width: 100px;" name="payment_status">
								<option value="1" {if $objParticipant->GetStatus() == 1}selected="selected"{/if}>{'registration_unpaid'|translate}</option>
								<option value="2" {if $objParticipant->GetStatus() == 2}selected="selected"{/if}>{'registration_paid'|translate}</option>
							</select>
							</td>
						</tr>
					</tbody>
				</table>
			{/dropDownContainer}
		</div>
	</div>
	<div class="cb"></div>
	<div class="panelButtons">
		<input type="button" value="{'registration_cancel'|translate}" class="cancel" onclick="document.location.href='{url Calc=Reg}';"/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="submit" value="{'registration_save'|translate}" name="doCategoryEdit"/>
	</div>
	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
	<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>
