{include file="$admingentemplates/admin_top.tpl"}

<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_affilate.php?ref=6">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$lang.affiliate.razdel_name}</div>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>

<div class="panel">
	<div class="panel_section">
		<div class="panel_content" style="width:95%">

<form action="aff_affiliates_create_new.php" method="GET" name="data" style="margin:0px">
<input type="hidden" name="which" value="">
<input type="hidden" name="QueryString" value="">
<input type="hidden" name="action">
<input type="hidden" name="Referer" value="{$referer}">

<table border="0" cellspacing="1" cellpadding="5">
<input type="hidden" name="New" value="{$affiliate.new}">
{if isset($which)}
<tr>
  <td>{$lang.affiliate.affiliate_id}:</td>
  <td>{$affiliate.id}</td>
</tr>
{/if}
<tr>   
  <td valign="top">{$lang.affiliate.username}:</td>
  <td><input type="text" name="Username" value="{$affiliate.login}" maxlength="15" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.password}:</td>
  <td><input type="password" name="Password" value="{$affiliate.password}" maxlength="15" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.email}:</td>
  <td><input type="text" name="Email" value="{$affiliate.email}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.web_site}:</td>
  <td><input type="text" name="Web_site" value="{$affiliate.web_site}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.unique_month_visitors}:</td>
  <td><input type="text" name="Unique_v" value="{$affiliate.unique_v}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.full_name}:</td>
  <td><input type="text" name="FullName" value="{$affiliate.fullname}" maxlength="100" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.address}:</td>
  <td><input type="text" name="Address" value="{$affiliate.address}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.city}:</td>
  <td><input type="text" name="City" value="{$affiliate.city}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.state}:</td>
  <td><input type="text" name="State" value="{$affiliate.state}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.zip}:</td>
  <td><input type="text" name="Zip" value="{$affiliate.zip}" size="8" maxlength="10" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.country}:</td>
  <td><input type="text" name="Country" value="{$affiliate.country}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.phone}:</td>
  <td><input type="text" name="Telephone" value="{$affiliate.telephone}" maxlength="64" size="30" style="padding: 1px 4px;"></td>
</tr>
<tr>
  <td valign="top">{$lang.affiliate.bank}:</td>
  <td><textarea name="Bank" cols=30 rows=5 style="padding: 1px 4px;">{$affiliate.bank}</textarea></td>
</tr>
<tr>
  <td valign="top">&nbsp;</td>
  <td>
	<input type="checkbox" name="NotifyAffiliate" {if ($affiliate.notify != "n")}checked{/if}>
	{$lang.affiliate.notify} <select name="NotificationSubject">
	<option value="a" {if ($affiliate.notify == "a")}selected{/if}>{$lang.affiliate.approval}</option>
	<option value="r" {if ($affiliate.notify == "r")}selected{/if}>{$lang.affiliate.rejection}</option>
	</select>
  </td>
</tr>
</table>

</form>

		</div>
	</div>
<div style="float:left;">
<table>
	<tr>
		<td>
			<div class="fl" style="text-align:left;">
				<a href="#" class="admin_button_major" style="margin:0px;" id="" onclick="javascript: document.data.action.value='Save'; document.data.submit();">{$lang.button.save}<span>&nbsp;</span></a>
			</div>
		</td>
{*		<td>&nbsp;</td>
		<td>
			<div class="fl" style="text-align:left;">
				<a href="#" class="admin_button_major" style="margin:0px;" id="" onclick="javascript: document.data.action.value='Cancel'; document.data.submit();">{$lang.button.back}<span>&nbsp;</span></a>
			</div>
		</td>*}
	</tr>
</table>
</div>
</div>

{include file="$admingentemplates/admin_bottom.tpl"}
