{include file="$gentemplates/$header_tpl"}
<h2>{$lang.affiliate.razdel_name}</h2>
{include file="$aff_gentemplates/aff_menu.tpl"}
<h3 class="p-b5">{$lang.affiliate.sample_links}</h3>
{if $accepted!='r'}
	{if $page_links}
		<p>
			<b>{$lang.affiliate.pages}:</b>
			{section name=c loop=$page_links}
				<a href={$page_links[c].url}>{$page_links[c].text}</a>&nbsp;
			{/section}
		</p>
	{/if}

	{section name=num loop=$codes}
		<p>
			{if $codes[num].title}<font class="text_head">{$codes[num].title}</font><br />{/if}
			{if $codes[num].link}{$codes[num].link}<br />{/if}
			{$codes[num].code}<br />
			{if ($codes[num].picture)}<br />{/if}
			<textarea style='width:100%' cols='100' rows='5' {if ($codes[num].picture)}WRAP="ON"{else}readonly{/if}>{$codes[num].htmlcode}</textarea>
		</p>
	{/section}
{else}
	{$lang.affiliate.rejected}
{/if}

{include file="$gentemplates/$footer_tpl"}