<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblAffiliate} : {$language.lblAccounttInformation}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/affiliates.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/add-edit.css" />
{literal}
<script type="text/javascript">
$(document).ready(function(e) {
var commissionHolderSize = $(".commissionHolderLeft li").length;
if(commissionHolderSize>1)
{
	var divideSize = Math.round(commissionHolderSize/2);
	divideSize = parseInt(divideSize);
	divideSizeIndex = divideSize-1;
	$(".commissionHolderLeft li:gt("+divideSizeIndex+")").addClass("liToBeMoved");
	$(".commissionHolder").after('<div class="right fixing_right"><ul class="commissionHolderRight"></ul>'); 
	$(".commissionHolderRight").append($(".liToBeMoved").clone());
	$(".commissionHolderLeft .liToBeMoved").remove();
	$(".commissionHolderRight li").removeClass("liToBeMoved");
}
});
</script>
{/literal}
</head><body>
<!-- Outer container starts-->
<div class="outer_container"> 
  <!-- Header Container starts--> 
  {include file='CommonTop.tpl'} 
  <!-- Header Container ends--> 
  <!-- Content Container starts-->
  <div class="content_container">
    <div class="content_wrapper">
      <div id="common_message" ></div>
      <div class="submit-block  fixing_right"> {form->button name="editProfile" type="button" src="account/" value=$language.lblEdit class="curve-3" onclick="window.location='account/'"}</div>
      <h2 >{$language.lblMyProfile}</h2>
      <!-- Inner Content Container starts--> 
      {assign var="affDetails" value=$resAffiliate}
      {form->hidden name="hidPaswd" value=$affiliatePassword}
      {form->hidden name="statehidValue" id="statehidValue"  value=$affiliateStateID}
      <div class="inner_content_wrapper">
        <div class="form_listing02 clearfix">
          <h3><span>{$language.lblSiteInformation}</span></h3>
          <div class="clearfix detail-list">
            <div class="left fixing_left">
              <ul>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblWebsiteUrl}</div>
                  <div class="inner-right fixing_right">{$affiliateWebsiteURL}</div>
                </li>
              </ul>
            </div>
            <div class="right fixing_right">
              <ul>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblTypeOfWebsite}</div>
                  <div class="inner-right01 fixing_left">{$affiliateTypeofWebsite} </div>
                </li>
              </ul>
            </div>
          </div>
          <h3><span>{$language.lblContactInformation}</span></h3>
          <div class="clearfix detail-list">
            <div class="left fixing_left">
              <ul>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblFirstName}</div>
                  <div class="inner-right fixing_right">{$affiliateFirstName}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblCompanyName}</div>
                  <div class="inner-right fixing_right">{$affiliateCompanyName}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblAddress1}</div>
                  <div class="inner-right fixing_right">{$affiliateAddress1} </div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblCountry}</div>
                  <div class="inner-right fixing_right">{$countryName}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblCity}</div>
                  <div class="inner-right fixing_right">{$affiliateCity}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblPhone}</div>
                  <div class="inner-right fixing_right">{$affiliatePhone}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblEmail}</div>
                  <div class="inner-right fixing_right">{$affiliateEmail}</div>
                </li>
              </ul>
            </div>
            <div class="right fixing_right">
              <ul>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblLastName}</div>
                  <div class="inner-right01 fixing_left">{$affiliateLastName}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblContactPerson}</div>
                  <div class="inner-right01 fixing_left">{$affiliateContactPerson}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblAddress2}</div>
                  <div class="inner-right01 fixing_left">{$affiliateAddress2}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblState}</div>
                  <div class="inner-right01 fixing_left">{$stateName}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblZipCode}</div>
                  <div class="inner-right01 fixing_left">{$affiliateZipcode}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblFax}</div>
                  <div class="inner-right01 fixing_left">{$affiliateFax}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblPreferredLanguage}</div>
                  <div class="inner-right01 fixing_left">{$languageName}</div>
                </li>
              </ul>
            </div>
          </div>
          {assign var="resAffiliateCommission" value=$resCommissionSettings}
          {if $resAffiliateCommission.enableSalesCommission == 'Yes'||$resAffiliateCommission.enableTierCommission=='Yes'||$resAffiliateCommission.subscriptionCommission=='Yes'|| $resAffiliateCommission.registrationCommission=='Yes'||$resAffiliateCommission.bulkSubscriberImport=='Yes'||$resAffiliateCommission.bulkUserImport=='Yes'} 
          <h3><span>{$language.lblCommissionSettings}</span></h3>
          <div class="clearfix detail-list">
            <div class="left fixing_left commissionHolder">
              <ul class="commissionHolderLeft"> 
              {if $resAffiliateCommission.enableSalesCommission=='Yes' && $affiliate_enable_sales_commission=='Yes'}
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblFiirstCommissionPaymentType}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['firstPurchaseCommissionType']}</div>
                </li>
                 <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblFirstPurchaseCommissionValue}</div>
                  <div class="inner-right fixing_right">{if $resAffiliateCommission['firstPurchaseCommissionType'] eq 'Value'}{$resAffiliateCommission['firstPurchaseCommissionValue']|price}{else}{$resAffiliateCommission['firstPurchaseCommissionValue']|number_format:2:".":""}%{/if}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblRecurringPurchaseCommissionType}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['recurringPurchaseCommissionType']}</div>
                </li>
                 <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblRecurringPurchaseCommissionValue}</div>
                  <div class="inner-right fixing_right">{if $resAffiliateCommission['recurringPurchaseCommissionType'] eq 'Value'}{$resAffiliateCommission['recurringPurchaseCommissionValue']|price}{else}{$resAffiliateCommission['recurringPurchaseCommissionValue']|number_format:2:".":""}%{/if}</div>
                </li>
               {/if} 
               {if $resAffiliateCommission['enableTierCommission']=='Yes' && $affiliate_enable_tier_commission=='Yes'}
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblTierCommissionLevel}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['tierCommissionLevel']}</div>
                </li>
                 <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblTierCommissionType}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['tierCommissionType']}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblTierCommissionValue}</div>
                  <div class="inner-right fixing_right">{if $resAffiliateCommission['tierCommissionType'] eq 'Value'}{$resAffiliateCommission['tierCommissionValue']|price}{else}{$resAffiliateCommission['tierCommissionValue']|number_format:2:".":""}%{/if}</div>
                </li>
               {/if} 
               {if $resAffiliateCommission['subscriptionCommission']=='Yes' && $affiliate_subscription_commission=='Yes'}
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblSubscriptionCommissionAmount}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['subscriptionCommissionAmount']|price}</div>
                </li>
                {/if}
                {if $resAffiliateCommission['registrationCommission']=='Yes' && $affiliate_registeration_commission=='Yes'}
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblRegistrationCommissionAmount}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['registrationCommissionAmount']|price}</div>
                </li>
                {/if}
                {if $resAffiliateCommission['bulkSubscriberImport']=='Yes' && $affiliate_bulk_subscriber_import=='Yes'}
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblBulkSubscriberImportCommission}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['bulkSubscriberImportCommission']|price}</div>
                </li>
                {/if}
                {if $resAffiliateCommission['bulkUserImport']=='Yes' && $affiliate_bulk_user_import=='Yes'}
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblBulkUserImportCommission}</div>
                  <div class="inner-right fixing_right">{$resAffiliateCommission['bulkUserImportCommission']|price}</div>
                </li>
                {/if}
              </ul>
            </div>
          </div>
          {/if}
          <h3 class="left-head"><span>{$language.lblLoginInformation}</span></h3>  
          <h3 class="right-head"><span>{$language.lblPaymentInformation}</span></h3>          
          <div class="detail-list clearfix">
            <div class="right fixing_right">
              <ul>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblAccountType}</div>
                  <div class="inner-right fixing_right">{$affiliateAccountType}</div>
                </li>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblNameOnAccount}</div>
                  <div class="inner-right fixing_right">{$affiliateAccountName}</div>
                </li>  
                 <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblAccountDetails}</div>
                  <div class="inner-right fixing_right">{$affiliateAccountDetails|escape|nl2br}</div>
                </li>               
              </ul>
            </div>
            <div class="left fixing_left">
              <ul>
                <li class="clearfix">
                  <div class="inner-left fixing_left">{$language.lblLogin}</div>
                  <div class="inner-right fixing_right">{$affiliateUserName}</div>
                </li>
              </ul>
            </div>            
          </div>
          <div class="submit-block textto_right"> {form->button name="editProfile" type="button" value=$language.lblEdit class="curve-3" onclick="window.location='account/'"} </div>
        </div>
      </div>
      <!-- Inner Content Container ends-->
      <div class="clear"></div>
    </div>
  </div>
  <!-- Content Container ends--> 
  <!-- Footer starts--> 
  {include file='CommonBottom.tpl'} 
  <script type="text/javascript" src="{$view_javascript}/message.plugin.js"></script> 
  <!-- Footer ends--> 
  {form->basepath_script}
  {form->rootpath_script}
  {html->messages_script id="common_message"} </div>
<!-- Outer container ends-->
</body>
</html>
