{{function name="selectTrueFalse" mOption=0}}
	<option value="true" {{if $mOption}}selected="selected"{{/if}}>{{$lang.yes}}</option>
	<option value="false" {{if !$mOption}}selected="selected"{{/if}}>{{$lang.no}}</option>
{{/function}}

<script type="text/javascript">
	$(document).ready(function(){
		{{if isset( $smarty.get.activeTabId )}}$('ul.tab-headers li a[href="#{{$smarty.get.activeTabId}}"]').trigger('click');{{/if}}
	});
</script>

<form action="?p={{$_GET.p}}" method="post" name="form">
<fieldset class="tabbed">
	<div class="clear"></div>
	<ul class="tab-headers">
		<li><a href="#compare-links-tab">{{$lang.Compare_services_links}}</a></li>
		<li><a href="#compare-settings-tab">{{$lang.Configuration}}</a></li>
	</ul>
	<h1>{{$lang.Compare_services}}</h1>
	<div class="tab" id="compare-links-tab">
		<h2>{{$lang.Compare_services_links}}</h2>
		<table class="list">
		<thead>
		<tr>
			<th class="photo">{{$lang.Photo}}</th>
			<th class="name">{{$lang.Name}}</th>
			<th class="link">{{$lang.Link}}</th>
		</tr>
		</thead>
		<tbody>
			<tr>
				<td><a href="http://google.com/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/google.jpg" alt="Google.com" /></a></td>
				<th class="name"><a href="http://google.com/" target="_blank">Google.com</a></td>
				<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-google&amp;secure={{md5( 'google'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-google&amp;secure={{md5( 'google'|cat:$PK )}}</a></td>
			</tr>
			
			<tr>
				<td><a href="http://zbozi.cz/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/zbozicz.png" alt="Zbozi.cz" /></a></td>
				<th class="name"><a href="http://zbozi.cz/" target="_blank">Zbozi.cz</a></td>
				<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-zbozi&amp;secure={{md5( 'zbozi'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-zbozi&amp;secure={{md5( 'zbozi'|cat:$PK )}}</a></td>
			</tr>
			<tr>
				<td><a href="http://heureka.cz/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/heureka.png" alt="Haureka.cz" /></a></td>
				<th class="name"><a href="http://heureka.cz/" target="_blank">Heureka.cz</a></td>
				<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-heureka&amp;secure={{md5( 'heureka'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-heureka&amp;secure={{md5( 'heureka'|cat:$PK )}}</a></td>
			</tr>
			
			{{if $sLanguage == 'pl'}}
				<tr>
					<td><a href="http://ceneo.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/ceneo.jpg" alt="Ceneo.pl" /></a></td>
					<th class="name"><a href="http://ceneo.pl/" target="_blank">Ceneo.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-ceneo&amp;secure={{md5( 'ceneo'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-ceneo&amp;secure={{md5( 'ceneo'|cat:$PK )}}</a></td>
				</tr>
				<tr>
					<td><a href="http://nokaut.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/nokaut.jpg" alt="Nokaut.pl" /></a></td>
					<th class="name"><a href="http://nokaut.pl/" target="_blank">Nokaut.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-nokaut&amp;secure={{md5( 'nokaut'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-nokaut&amp;secure={{md5( 'nokaut'|cat:$PK )}}</a></td>
				</tr>
				<tr>
					<td><a href="http://aleo.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/aleo.jpg" alt="Aleo.pl" /></a></td>
					<th class="name"><a href="http://aleo.pl/" target="_blank">Aleo.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-nokaut&amp;secure={{md5( 'nokaut'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-nokaut&amp;secure={{md5( 'nokaut'|cat:$PK )}}</a></td>
				</tr>
				<tr>
					<td><a href="http://skapiec.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/skapiec.jpg" alt="Skapiec.pl" /></a></td>
					<th class="name"><a href="http://skapiec.pl/" target="_blank">Skapiec.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-skapiec&amp;secure={{md5( 'skapiec'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-skapiec&amp;secure={{md5( 'skapiec'|cat:$PK )}}</a></td>
				</tr>
			 <tr>
					<td><a href="http://radar.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/radar.jpg" alt="Radar.pl" /></a></td>
					<th class="name"><a href="http://radar.pl/" target="_blank">Radar.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-radar&amp;secure={{md5( 'radar'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-radar&amp;secure={{md5( 'radar'|cat:$PK )}}</a></td>
				</tr>
				<tr>
					<td><a href="http://okazje.info.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/okazje.jpg" alt="Okazje.info" /></a></td>
					<th class="name"><a href="http://okazje.info.pl/" target="_blank">Okazje.info</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-okazje&amp;secure={{md5( 'okazje'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-okazje&amp;secure={{md5( 'okazje'|cat:$PK )}}</a></td>
				</tr>
				<tr>
					<td><a href="http://kupujemy.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/kupujemy.jpg" alt="Kupujemy.pl" /></a></td>
					<th class="name"><a href="http://kupujemy.pl/" target="_blank">Kupujemy.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-kupujemy&amp;secure={{md5( 'kupujemy'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-kupujemy&amp;secure={{md5( 'kupujemy'|cat:$PK )}}</a></td>
				</tr>
			<tr>
					<td><a href="http://zakupomat.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/zakupomat.jpg" alt="zakupomat.pl" /></a></td>
					<th class="name"><a href="http://zakupomat.pl/" target="_blank">Zakupomat.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-zakupomat&amp;secure={{md5( 'zakupomat'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-zakupomat&amp;secure={{md5( 'zakupomat'|cat:$PK )}}</a></td>
				</tr>
				 <tr>
					<td><a href="http://cenuj.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/cenuj.jpg" alt="cenuj.pl" /></a></td>
					<th class="name"><a href="http://cenuj.pl/" target="_blank">Cenuj.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-cenuj&amp;secure={{md5( 'cenuj'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-cenuj&amp;secure={{md5( 'cenuj'|cat:$PK )}}</a></td>
				</tr> 
			<tr>
					<td><a href="http://oferciak.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/oferciak.jpg" alt="oferciak.pl" /></a></td>
					<th class="name"><a href="http://oferciak.pl/" target="_blank">Oferciak.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-oferciak&amp;secure={{md5( 'oferciak'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-oferciak&amp;secure={{md5( 'oferciak'|cat:$PK )}}</a></td>
				</tr>
				<tr>
					<td><a href="http://zakupy.wp.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/wp.jpg" alt="Zakupy.wp.pl" /></a></td>
					<th class="name"><a href="http://zakupy.wp.pl/" target="_blank">Zakupy.wp.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-wp&amp;secure={{md5( 'wp'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-wp&amp;secure={{md5( 'wp'|cat:$PK )}}</a></td>
				</tr>
				<tr>
					<td><a href="http://bazzar.interia.pl/" target="_blank"><img src="{{$config.dir_templates}}admin/images/compare/interia.jpg" alt="Bazzar.interia.pl" /></a></td>
					<th class="name"><a href="http://bazzar.interia.pl/" target="_blank">Bazzar.interia.pl</a></td>
					<td class="link"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-interia&amp;secure={{md5( 'interia'|cat:$PK )}}" target="_blank">{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}?p=compare-interia&amp;secure={{md5( 'interia'|cat:$PK )}}</a></td>
				</tr>
			{{/if}}
		</tbody>
		</table>
	</div>
	<div class="tab" id="compare-settings-tab">
		<h2>{{$lang.Configuration}}</h2>
		<table class="details" id="compare_settings">	  	
		<tr>
			<th class="name">{{$lang.Compare_secure_key_required}}</td><td class="value"><select name="secure_compare" class="input">{{selectTrueFalse mOption=$config.secure_compare}}</select></td><td class="help"></td>
		</tr><tr>
			<th class="name">{{$lang.Skapiec_shop_id}}</td><td class="value"><input type="text" name="skapiec_shop_id" value="{{$config.skapiec_shop_id}}" size="5" class="input" /></td><td class="help"></td>
		</tr><tr>
			<th class="name">{{$lang.Interia_shop_id}}</th><td class="value"><input type="text" name="interia_shop_id" value="{{$config.interia_shop_id}}" size="5" class="input" /></td><td class="help"></td>
		</tr>
		</table>
	</div>
	<div class="save float"><div class="save floatcontainer">
		<input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" />
	</div>
</fieldset>
</form>