<html>
<head>
<link href="{$site_root}{$template_root}/css/style.css" rel="stylesheet" type="text/css">

{literal}
<SCRIPT LANGUAGE="JavaScript">
<!-- //hide
function MakeIt(pic) {
    window.opener.document.form1.Picture.value = pic;
    window.opener.document.form1.Code.value = "<center>\n<a href='<!--link-->'><img src='<!--BannerUrl-->' width=468 height=60 border=0 alt='Click here'><br>\nClick here</a>\n</center>";
    self.close();
}
//-->
</SCRIPT>
{/literal}

</head>
<title>{$lang.affiliate.select_banner}</title>
<body>
   <center>
   
   {if $page_links}
   <font>
   <b>{$lang.affiliate.pages}:</b>
   {section name=c loop=$page_links}
	<a href={$page_links[c].url}>{$page_links[c].text}</a>&nbsp;
   {/section}
   </font><br><br>
   {/if}

   <table width="80%" cellspacing="0" cellpadding="4">
        <tr class="table_header">
			<td width="20%">{$lang.affiliate.select}</th>
			<td width="80%">{$lang.affiliate.picture}</th>
        </tr>
	{if $ads}
	{section name=num loop=$ads}
        <tr {if $smarty.section.num.index mod 2 eq 1}class="table_row even"{else}class="table_row odd"{/if}>
                <td align="center"><input type="radio" name="Banner" value="{$ads[num].id}" onClick="javascript:MakeIt('{$ads[num].picture}');"></td>
                <td align="center"><img src="{$ads[num].picture}"></td>
        </tr>
	{/section}
		{else}
		<tr height="40">
			<td class="main_error_text" align="left" colspan="2" bgcolor="#FFFFFF">{$lang.interests_spr.empty}</td>
		</tr>
		{/if}
	<tr class="table_header"><td colspan="2">&nbsp;</td></tr>
   </table><br>
</center>
</body>
</html>
