<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
<script type="text/javascript" src="modules/EcmSysInfos/js/firmInfo.js"></script>
<form action="index.php" method="POST" name="where" id="where" enctype="multipart/form-data" >
    <input type="hidden" name="module" value="{$MOD.LBL_MODULE}" />
    <input type="hidden" name="action" value="firmInfo" />
    <input type="hidden" name="parentTab" value="{$MOD.LBL_MODULE_NAME}"/>
	<input type="submit" value='{$MOD.LBL_SAVE}'/>
	<input type= "button" onclick="location.reload();" value='{$MOD.LBL_CANCEL}'/>
	<h2>{$MOD.LBL_FIRM_INFO}</h2>
	<table width="100%" border="0" cellspacing="1" cellpadding="1" class="edit view">
		<tr>
			<td colspan="4"></td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_SHORT_NAME}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='short_name' value="{$SHORT_NAME}">
			</td>
			<td style="width: 20%; vertical-align: middle" ><input type="checkbox" name="update_headers" value="yes">&nbsp;{$MOD.LBL_UPDATE_HEADERS}<br></td>
			<td></td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_NAME}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='name' value="{$NAME}">
			</td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_NIP}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='nip' value="{$NIP}">
			</td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_REGON}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='regon' value="{$REGON}">
			</td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_KRS}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='krs' value="{$KRS}">
			</td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_WWW}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='www' value="{$WWW}">
			</td>
			<td colspan="2">Logo firmy:<input type="file" name="upfile"></td>
		</tr>
	</table>

	<h2>{$MOD.LBL_ADDRESS_INFORMATION}</h2>

	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
		<tr>
			<td>
				<table width="100%" border="0" cellspacing="1" cellpadding="0">
					<tr>
						<td style="width: 50%; vertical-align: middle">
							{$MOD.LBL_ADDRESS_REGISTRATION}:
						</td>
						<td style="width: 50%; vertical-align: middle">
							{$MOD.LBL_ADDRESS_CORRESPONDENCE}:
						</td>
					</tr>
					<tr>
						<td style="width: 50%; vertical-align: top; padding-right:10px">
							<table style="width: 80%;border: 1px solid black" cellspacing="5" cellpadding="5">
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_REGISTER_ADDRESS_STREET}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='hidden' name='register_adress[ID]' value="{$REGISTER_ADRESS.ID}">
										<input type='text' size="35" name='register_adress[STREET]' value="{$REGISTER_ADRESS.STREET}">&nbsp;<input type='text' size="5" name='register_adress[LOCAL]' value="{$REGISTER_ADRESS.LOCAL}">&nbsp;/&nbsp;<input type='text' size="5" name='register_adress[HOME]' value="{$REGISTER_ADRESS.HOME}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_CITY}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="30" name='register_adress[CITY]' value="{$REGISTER_ADRESS.CITY}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_POSTALCODE}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="20" name='register_adress[POSTALCODE]' value="{$REGISTER_ADRESS.POSTALCODE}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_MAIL}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="30" name='register_adress[MAIL]' value="{$REGISTER_ADRESS.MAIL}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_COMMUNITY}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="30"  name='register_adress[COMMUNITY]' value="{$REGISTER_ADRESS.COMMUNITY}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_DISTRICT}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="30" name='register_adress[DISTRICT]' value="{$REGISTER_ADRESS.DISTRICT}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_STATE}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="30" name='register_adress[STATE]' value="{$REGISTER_ADRESS.STATE}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_COUNTRY}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="20" name='register_adress[COUNTRY]' value="{$REGISTER_ADRESS.COUNTRY}">
									</td>
								</tr>
							</table>
						</td>
						<td style="width: 50%; vertical-align: middle; padding-right:10px">
							<table style="width: 80%;border: 1px solid black" cellspacing="5" cellpadding="5">
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_REGISTER_ADDRESS_STREET}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='hidden' name='correspondence_adress[ID]' value="{$CORRESPONDENCE_ADRESS.ID}">
										<input type='text' size="35" name='correspondence_adress[STREET]' value="{$CORRESPONDENCE_ADRESS.STREET}">
										<input type='text' size="5" name='correspondence_adress[LOCAL]' value="{$CORRESPONDENCE_ADRESS.LOCAL}"> / 
										<input type='text' size="5" name='correspondence_adress[HOME]' value="{$CORRESPONDENCE_ADRESS.HOME}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_CITY}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="50" name='correspondence_adress[CITY]' value="{$CORRESPONDENCE_ADRESS.CITY}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_POSTALCODE}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="50" name='correspondence_adress[POSTALCODE]' value="{$CORRESPONDENCE_ADRESS.POSTALCODE}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_MAIL}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="50" name='correspondence_adress[MAIL]' value="{$CORRESPONDENCE_ADRESS.MAIL}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_COMMUNITY}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="50"  name='correspondence_adress[COMMUNITY]' value="{$CORRESPONDENCE_ADRESS.COMMUNITY}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_DISTRICT}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="50" name='correspondence_adress[DISTRICT]' value="{$CORRESPONDENCE_ADRESS.DISTRICT}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_STATE}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="50" name='correspondence_adress[STATE]' value="{$CORRESPONDENCE_ADRESS.STATE}">
									</td>
								</tr>
								<tr>
									<td style="width: 30%; vertical-align: middle; text-align: right">
										{$MOD.LBL_ADDRESS_COUNTRY}:
									</td>
									<td style="width: 70%; vertical-align: middle">
										<input type='text' size="50" name='correspondence_adress[COUNTRY]' value="{$CORRESPONDENCE_ADRESS.COUNTRY}">
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>

			</td>
		</tr>
		<tr>
			<td style="width: 100%; vertical-align: middle">
				<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;" id="itemsTableDIV">
					<table class="positions" style="width:100%" id="itemsTable">
						<thead id="head">
							<tr id="tr">
								<td width="50px">{$APP.LBL_LP}</td>
								<td width="30%">{$APP.LBL_NAME}</td>
								<td width="35%">{$MOD.LBL_ADDRESS_STREET}</td>
								<td width="17%">{$MOD.LBL_ADDRESS_CITY}</td>
								<td width="8%">{$MOD.LBL_ADDRESS_POSTALCODE}</td>
								<td width="10%">{$MOD.LBL_ADDRESS_COUNTRY}</td>
								<td width="50px"></td>
							</tr>
						</thead>
						<tbody id ='adresstbody'>
							{if $ADRESS|@count gt 0}
								{foreach from = $ADRESS key=klucz item=wartosc}
									<tr>
										<td class="lp">
											<input type="hidden" name="adress[{$klucz}][ID]" value="{$wartosc.ID}">
											<input type="text" name="adress[{$klucz}][POSITION]" readonly="readonly" value="{$wartosc.POSITION}">
										</td>
										<td>
											<input type="text" name="adress[{$klucz}][NAME]" value="{$wartosc.NAME}">
										</td>
										<td>
											<input type="text" name="adress[{$klucz}][STREET]" value="{$wartosc.STREET}">
										</td>
										<td>
											<input type="text" name="adress[{$klucz}][CITY]" value="{$wartosc.CITY}">
										</td>
										<td>
											<input type="text" name="adress[{$klucz}][POSTALCODE]" value="{$wartosc.POSTALCODE}">
										</td>
										<td>
											<input type="text" name="adress[{$klucz}][COUNTRY]" value="{$wartosc.COUNTRY}">
										</td>
										<td style="text-align: center" class="buttons">
											<img 
												alt="undefined" 
												src="modules/EcmQuotes/images/insertrow.gif" 
												style="cursor: pointer;"
												{literal}
													onclick="addRowAdress();"
												{/literal}
												>
											<img alt="undefined" 
												 src="modules/EcmQuotes/images/deleterow.gif" 
												 style="cursor: pointer;"
												 {literal}
													 onclick="removeRowAdress(this);"
												 {/literal}
												 >
										</td>
									</tr>
								{/foreach}
							{else}
								<tr>
									<td class="lp">
										<input type="hidden" name="adress[0][ID]">
										<input type="text" name="adress[0][POSITION]" readonly="readonly" value="1">
									</td>
									<td>
										<input type="text" name="adress[0][NAME]">
									</td>
									<td>
										<input type="text" name="adress[0][STREET]">
									</td>
									<td>
										<input type="text" name="adress[0][CITY]">
									</td>
									<td>
										<input type="text" name="adress[0][POSTALCODE]">
									</td>
									<td>
										<input type="text" name="adress[0][COUNTRY]">
									</td>
									<td style="text-align: center" class="buttons">
										<img 
											alt="undefined" 
											src="modules/EcmQuotes/images/insertrow.gif" 
											style="cursor: pointer;"
											{literal}
												onclick="addRowAdress();"
											{/literal}
											>
										<img alt="undefined" 
											 src="modules/EcmQuotes/images/deleterow.gif" 
											 style="cursor: pointer;"
											 {literal}
												 onclick="removeRowAdress(this);"
											 {/literal}
											 >
									</td>
								</tr>
							{/if}
						</tbody>
					</table>
				</div>
			</td>
		</tr>
	</table>
	
<input type="hidden" id="lista_currency" value='{$CURRENCIES|@json_encode}'>
	<h2>{$MOD.LBL_BANK_ACCOUNTS}</h2>
	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
		<tr>
			<td colspan="4"></td>
		</tr>
		<tr>
			<td style="width: 100%; vertical-align: middle">
				<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;" id="itemsTableDIV">
					<table class="positions" style="width:100%;" id="banks">
						<thead id="head">
							<tr id="tr">
								<td width="2%">{$APP.LBL_LP}</td>
								<td width="18%">Nazwa</td>
								<td width="24%">Nazwa Banku</td>
								<td width="24%">{$MOD.LBL_BANK_ACCOUNT}</td>
								<td width="10%">{$MOD.LBL_BANK_CURRENCY}</td>
								<td width="10%">{$MOD.LBL_BANK_SWIFT}</td>
								<td width="10%">{$MOD.LBL_BANK_IBAN}</td>
								<td width="2%"></td>
							</tr>
						</thead>
						<tbody id="bankstbody">
							{if $BANKS|@count gt 0}
								{foreach from = $BANKS key=klucz item=wartosc}
									<tr>
										<td>
											<input type="hidden" name="banks[{$klucz}][ID]" value="{$wartosc.ID}">
											<input type="text" name="banks[{$klucz}][POSITION]" readonly="readonly" value="{$wartosc.POSITION}">
										</td>
										<td>
											<input type="text" name="banks[{$klucz}][NAMESHORT]" value="{$wartosc.NAMESHORT}">
										</td>
										<td>
											<input type="text" name="banks[{$klucz}][NAME]" value="{$wartosc.NAME}">
										</td>
										<td>
											<input type="text" name="banks[{$klucz}][NUMBER]" value="{$wartosc.NUMBER}">
										</td>
											<td style="text-align: right;">
											<select name='banks[{$klucz}][CURRENCY]'>
											
											{foreach from = $CURRENCIES key=kei item=wal}
											<option value="{$wal.id}" {if $wartosc.CURRENCY==$wal.id}selected="selected"{/if}>{$wal.name}</option>
											{/foreach}
											</select>
										</td>
											<td>
											<input type="text" name="banks[{$klucz}][SWIFT]" value="{$wartosc.SWIFT}">
										</td>
											<td>
											<input type="text" name="banks[{$klucz}][IBAN]" value="{$wartosc.IBAN}">
										</td>
										
										<td style="text-align: center" class="buttons">
											<img 
												alt="undefined" 
												src="modules/EcmQuotes/images/insertrow.gif" 
												style="cursor: pointer;"
												{literal}
													onclick="addRowBanks();"
												{/literal}
												>
											<img 
												alt="undefined" 
												src="modules/EcmQuotes/images/deleterow.gif" 
												style="cursor: pointer;"
												{literal}
													onclick="removeRowBanks(this);"
												{/literal}
												>
										</td>
									</tr>
								{/foreach}
							{else}
								<tr>
									<td>
										<input type="hidden" name="banks[0][ID]">
										<input type="text" name="banks[0][POSITION]" readonly="readonly" value="1">
									</td>
									<td>
										<input type="text" name="banks[0][NAME]">
									</td>
									<td>
										<input type="text" name="banks[0][NUMBER]">
									</td>
									<td style="text-align: center" class="buttons">
										<img 
											alt="undefined" 
											src="modules/EcmQuotes/images/insertrow.gif" 
											style="cursor: pointer;"
											{literal}
												onclick="addRowBanks();"
											{/literal}
											>
										<img 
											alt="undefined" 
											src="modules/EcmQuotes/images/deleterow.gif" 
											style="cursor: pointer;"
											{literal}
												onclick="removeRowBanks(this);"
											{/literal}
											>
									</td>
								</tr>
							{/if}
						</tbody>
					</table>
				</div>
			</td>
		</tr>
	</table>

	<h2>{$MOD.LBL_CONTACT_INFO}</h2>
	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
		<tr>
			<td colspan="4"></td>
		</tr>
		<tr>
			<td style="width: 50%; vertical-align: middle">
				<div style="width:50%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;" id="itemsTableDIV">
					<table class="positions" style="width:50%;" id="contact">
						<thead id="head">
							<tr id="tr">
								<td width="50px">{$APP.LBL_LP}</td>
								<td>{$APP.LBL_NAME}</td>
								<td>{$MOD.LBL_VALUE}</td>
								<td width="50px"></td>
							</tr>
						</thead>
						<tbody id="contacttbody">
							{if $CONTACTS|@count gt 0}
								{foreach from = $CONTACTS key=klucz item=wartosc}
									<tr>
										<td>
											<input type="hidden" name="contact[{$klucz}][ID]" value="{$wartosc.ID}">
											<input type="text" name="contact[{$klucz}][POSITION]" readonly="readonly" value="{$wartosc.POSITION}">
										</td>
										<td>
											<input type="text" name="contact[{$klucz}][NAME]" value="{$wartosc.NAME}">
										</td>
										<td>
											<input type="text" name="contact[{$klucz}][VALUE]" value="{$wartosc.VALUE}">
										</td>
										<td style="text-align: center" class="buttons">
											<img 
												alt="undefined" 
												src="modules/EcmQuotes/images/insertrow.gif" 
												style="cursor: pointer;"
												{literal}
													onclick="addRowContacts();"
												{/literal}
												>
											<img 
												alt="undefined" 
												src="modules/EcmQuotes/images/deleterow.gif" 
												style="cursor: pointer;"
												{literal}
													onclick="removeRowContacts(this);"
												{/literal}
												>
										</td>
									</tr>
								{/foreach}
							{else}
								<tr>
									<td>
										<input type="hidden" name="contact[0][ID]">
										<input type="text" name="contact[0][POSITION]" readonly="readonly" value="1">
									</td>
									<td>
										<input type="text" name="contact[0][NAME]">
									</td>
									<td>
										<input type="text" name="contact[0][VALUE]">
									</td>
									<td style="text-align: center" class="buttons">
										<img 
											alt="undefined" 
											src="modules/EcmQuotes/images/insertrow.gif" 
											style="cursor: pointer;"
											{literal}
												onclick="addRowContacts();"
											{/literal}
											>
										<img 
											alt="undefined" 
											src="modules/EcmQuotes/images/deleterow.gif" 
											style="cursor: pointer;"
											{literal}
												onclick="removeRowContacts(this);"
											{/literal}
											>
									</td>
								</tr>
							{/if}
						</tbody>
					</table>
				</div>
			</td>
		</tr>
	</table>
	<h2>{$MOD.LBL_EMAIL_SETTINGS}</h2>
	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
		<tr>
			<td colspan="4">{if $error===0}<span style="color:red">Proszę podać prawidłowe dane!</span>{/if}</td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_EMAIL_HOSTPORT}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='email_hostPort' value="{$email_hostPort}">
			</td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_EMAIL_LOGIN}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='email_login' value="{$email_login}">
			</td>
			<td colspan="2"></td>
		</tr>
				<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_EMAIL_PASSWORD}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='password' size="50" name='email_password' value="{$email_password}">
			</td>
			<td colspan="2"></td>
		</tr>
						<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Adres Email:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='email_address' value="{$email_address}">
				(Podaj jeśli inny niż login)
			</td>
			<td colspan="2"></td>
		</tr>
						<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Szyfrowanie:</td>
			<td style="width: 20%; vertical-align: middle">
				<select name="autentication_type">
					<option value='SSL' {if $autentication_type=='SSL'} selected="selected"{/if}>SSL</option>
					<option value="tls" {if $autentication_type=='tls'} selected="selected"{/if}>TLS</option>
				</select>
			</td>
			<td colspan="2"></td>
		</tr>
			<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Adres email do odpowiedzi:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='email_address_replay' value="{$email_address_replay}">
				
			</td>
			<td colspan="2"></td>
		</tr>
	</table>
                                
                                <h2>Ustawienia bramki sms oraz powiadomień i windykacji kontrahenta</h2>
	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Operator SMS:</td>
			<td style="width: 20%; vertical-align: middle">
                            <select name="api_version">
                                <option value="SMSAPI.pl">SMSAPI.pl</option>
                            </select>
			</td>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Pierwsze przypomnienie o płatności:</td>
			<td style="width: 20%; vertical-align: middle">
                            <input type='text' size="50" name='prevent_first' pattern="\d*" value="{$prevent_first}"><br>(dni przed terminem)
			</td>
		</tr>
		<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_EMAIL_LOGIN}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='api_login' value="{$api_login}">
			</td>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Drugie przypomnienie o płatności:</td>
			<td style="width: 20%; vertical-align: middle">
                            <input type='text' size="50" name='prevent_second' pattern="\d*" value="{$prevent_second}"><br> (dni przed terminem)
			</td>
		</tr>
				<tr>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">{$MOD.LBL_EMAIL_PASSWORD}:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='password' size="50" name='api_password' value="{$api_password}">
			</td>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Pierwsza wiadomość windykacyjna:</td>
			<td style="width: 20%; vertical-align: middle">
                            <input type='text' size="50" name='debt_first' pattern="\d*" value="{$debt_first}"><br>(dni po terminie)
			</td>
		</tr>
						<tr>
			<td style="width: 9.5%; vertical-align: top; text-align: right">Pole nadawcy wiadomości:</td>
			<td style="width: 20%; vertical-align: middle">
				<input type='text' size="50" name='api_from' value="{$api_from}">
                                <br> (Kliknij <a href="https://www.smsapi.pl/blog/wiedza/branding-sms-skojarz-swoja-marke-z-wysylka-sms/" target="_blank">TUTAJ</a> aby dowiedzieć się więcej o tym polu)
			</td>
			<td style="width: 9.5%; vertical-align: middle; text-align: right">Stałe wiadomości windykacyjne:</td>
			<td style="width: 20%; vertical-align: middle">
                            <input type='text' size="50" name='debt_other' pattern="\d*" value="{$debt_other}"><br>(co x dni)
			</td>
		</tr>
                <tr>
			<td style="width: 9.5%; vertical-align: top; text-align: right">Wiadomości wysyłaj:</td>
			<td style="width: 20%; vertical-align: middle">
                            SMS <input type="checkbox" name="send_sms" value="1" {if $send_sms=='1'}checked="checked"{/if}>
                             EMAIL <input type="checkbox" name="send_email" value="1" {if $send_email=='1'}checked="checked"{/if}>
			</td>
			<td colspan="2"></td>
		</tr>
	</table>
	<input type="submit" value='{$MOD.LBL_SAVE}'/>
</form>