<li>
  <div class="leftside01">{$language.lblEnableSalesCommission}<span class="sub-text" >{$language.lblEnableSalesSubText}</span></div>
  <div class="rightside01">{form->checkbox onchange="disableField()" name="enableSalesCommission" id="enableSalesCommission" value="Yes" checked="{if $affiliateEnableSalesCommission == 'Yes'}True{/if}" tabindex="22" form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblFiirstCommissionPaymentType}</div>
  <div class="rightside01"> {form->select name="firstCommissionPaymentType" tabindex="23" options="Percentage->Percentage~*Value->Value" caption="->Select" value="{if $affiliateEnableSalesCommission=='Yes'} {$firstPurchaseCommissionType} {/if}" validate="enableSalesCommission->isEqual->Yes~*firstCommissionPaymentType->required" error="~*"|cat:$language.errCommissionValueType  form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblFirstPurchaseCommissionValue}</div>
  <div class="rightside01">
		{if $firstPurchaseCommissionType eq "Percentage"}
			{assign var="firstPurchaseCommissionValueVar" value=$firstPurchaseCommisionValue|number_format:2:".":""}
		{else}
			{assign var="firstPurchaseCommissionValueVar" value=$firstPurchaseCommisionValue}
		{/if}
		
		{form->textbox name="firstPurchaseCommissionValue" tabindex="24"  class="textbox salesComClass" value ="{if $affiliateEnableSalesCommission=='Yes'}{$firstPurchaseCommissionValueVar}{/if}"  form="frmAffiliate"} 
       {form->validate  name="validatefirstPurchaseCommissionValueReq" validate="enableSalesCommission->isEqual->Yes~*firstPurchaseCommissionValue->required" error=$language.errCommissionValue form="frmAffiliate"}
       {form->validate  name="validatefirstPurchaseCommissionValue" validate="firstCommissionPaymentType->isEqual->Value~*firstPurchaseCommissionValue->isPrice" error=$language.errValidCommissionValue form="frmAffiliate"}
       {form->validate  name="validatefirstPurchaseCommissionPercentage" validate="firstCommissionPaymentType->isEqual->Percentage~*firstPurchaseCommissionValue->isPercentage" error=$language.errValidCommissionValue form="frmAffiliate"}
  </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblRecurringPurchaseCommissionType}</div>
  <div class="rightside01"> {form->select name="recurringPurchaseCommissionType" tabindex="25"  options="Percentage->Percentage~*Value->Value" caption="->Select" value="{if $affiliateEnableSalesCommission=='Yes'}{$recurringPurchaseCommissionType}{/if}" validate="enableSalesCommission->isEqual->Yes~*recurringPurchaseCommissionType->required" error="~*"|cat:$language.errCommissionValueType form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblRecurringPurchaseCommissionValue}</div>
  <div class="rightside01">
		{if $recurringPurchaseCommissionType eq "Percentage"}
			{assign var="recurringPurchaseCommissionValueVar" value=$recurringPurchaseCommissionValue|number_format:2:".":""}
		{else}
			{assign var="recurringPurchaseCommissionValueVar" value=$recurringPurchaseCommissionValue}
		{/if}
		{assign var="recurringPurchaseCommissionValue" value=""}
		{form->textbox name="recurringPurchaseCommissionValue" tabindex="26" class="textbox salesComClass" value="{if $affiliateEnableSalesCommission=='Yes'}{$recurringPurchaseCommissionValueVar}{/if}" form="frmAffiliate"} 
		{form->validate  name="validateRecurringPurchaseCommissionValueReq" validate="enableSalesCommission->isEqual->Yes~*recurringPurchaseCommissionValue->required" error=$language.errCommissionValue form="frmAffiliate"}
		{form->validate  name="validateRecurringPurchaseCommissionValue" validate="recurringPurchaseCommissionType->isEqual->Value~*recurringPurchaseCommissionValue->isPrice" error=$language.errValidCommissionValue form="frmAffiliate"}
		{form->validate  name="validateRecurringPurchaseCommissionPercentage" validate="recurringPurchaseCommissionType->isEqual->Percentage~*recurringPurchaseCommissionValue->isPercentage" error=$language.errValidCommissionValue form="frmAffiliate"}</div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01">{$language.lblEnableTierCommission}<span class="sub-text" >{$language.lblEnableTierSubText}</span></div>
  <div class="rightside01"> {form->checkbox onchange="disableField()" name="enableTierCommission" tabindex="27" checked="{if $affiliateTierCommissionEnable=='Yes'}True{/if}" value="Yes" form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblTierCommissionLevel}</div>
  <div class="rightside01"> {form->textbox name="tierCommissionLevel" tabindex="28"  class="textbox tierComClass" value=$affiliateTierCommissionLevel validate="enableTierCommission->isEqual->Yes~*required~*tierCommissionLevel->isWholeNumber" error="~*"|cat:$language.errTierCommissionLevel|cat:"~*"|cat:$language.errValidTierCommissionLevel form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblTierCommissionType}</div>
  <div class="rightside01"> {form->select name="tierCommissionType" tabindex="29"  options="Percentage->Percentage~*Value->Value" caption="->Select" value="{if $affiliateTierCommissionEnable=='Yes'} {$affiliateTierCommissionType}{/if}" validate="enableTierCommission->isEqual->Yes~*tierCommissionType->required" error="~*"|cat:$language.errCommissionValueType form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblTierCommissionValue}</div>
  <div class="rightside01">
	{if $affiliateTierCommissionType eq "Percentage"}
		{assign var="tierCommissionValueVar" value=$affiliateTierCommissionValue|number_format:2:".":""}
	{else}
		{assign var="tierCommissionValueVar" value=$affiliateTierCommissionValue}
	{/if}
	{form->textbox name="tierCommissionValue" tabindex="30" class="textbox tierComClass" value="{if $affiliateTierCommissionEnable=='Yes'}{$tierCommissionValueVar}{/if}" form="frmAffiliate"} 
    {form->validate  name="validateTierCommissionValueReq" validate="enableTierCommission->isequal->Yes~*tierCommissionValue->required" error=$language.errCommissionValue form="frmAffiliate"}
    {form->validate  name="validateTierCommissionValue" validate="tierCommissionType->isequal->Value~*tierCommissionValue->isPrice" error=$language.errValidCommissionValue form="frmAffiliate"}
    {form->validate  name="validateTierCommissionPercentage" validate="tierCommissionType->isequal->Percentage~*tierCommissionValue->isPercentage" error=$language.errValidCommissionValue form="frmAffiliate"}</div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01">{$language.lblSubscriptionCommission}<span class="sub-text" >{$language.lblEnableSubscriptionSubText}</span></div>
  <div class="rightside01"> {form->checkbox onchange="disableField()" name="subscriptionCommission" tabindex="31" checked="{if $affiliateSubscriptionCommission=='Yes'}True{/if}" value="Yes" form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblSubscriptionCommissionAmount}</div>
  <div class="rightside01"> {form->textbox name="subscriptionCommissionAmount" tabindex="32"  class="textbox" value="{if $affiliateSubscriptionCommission=='Yes'}{$affiliateSubscriptionCommissionAmount}{/if}" validate="subscriptionCommission->isEqual->Yes~*required~*subscriptionCommissionAmount->isPrice" error="~*"|cat:$language.errSubsciptionCommission|cat:"~*"|cat:$language.errValidSubscriptionCommission form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01">{$language.lblRegistrationCommission}<span class="sub-text" >{$language.lblEnableRegistrationSubText}</span></div>
  <div class="rightside01"> {form->checkbox onchange="disableField()" name="registrationCommission" tabindex="33"  checked="{if $affiliateRegisterationCommission=='Yes'}True{/if}" value="Yes"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblRegistrationCommissionAmount}</div>
  <div class="rightside01"> {form->textbox name="registrationCommissionAmount" tabindex="34" class="textbox" value="{if $affiliateRegisterationCommission=='Yes'}{$affiliateRegisterationCommissionAmount}{/if}" validate="registrationCommission->isEqual->Yes~*required~*registrationCommissionAmount->isPrice" error="~*"|cat:$language.errRegistrationCommissionAmount|cat:"~*"|cat:$language.errValidCommissionValue form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01">{$language.lblBulkSubscriberImport}<span class="sub-text" >{$language.lblEnableBulkSubscribeSubText}</span></div>
  <div class="rightside01"> {form->checkbox onchange="disableField()" name="bulkSubscriberImport" tabindex="35"  checked="{if $affiliateBulkSubscriberImport=='Yes'}True{/if}" value=Yes form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblBulkSubscriberImportCommission}</div>
  <div class="rightside01"> {form->textbox name="bulkSubscriberImportCommission" tabindex="36"  class="textbox" value="{if $affiliateBulkSubscriberImport=='Yes'}{$affiliateBulkSubscImportCommission}{/if}" validate="bulkSubscriberImport->isEqual->Yes~*required~*bulkSubscriberImportCommission->isPrice" error="~*"|cat:$language.errCommissionValue|cat:"~*"|cat:$language.errValidCommissionValue form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01">{$language.lblBulkUserImport}<span class="sub-text" >{$language.lblEnableBulkUserSubText}</span></div>
  <div class="rightside01"> {form->checkbox onchange="disableField()" name="bulkUserImport" tabindex="37" checked="{if $affiliateBulkUserImport=='Yes'}True{/if}" value=Yes form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
<li>
  <div class="leftside01 mandatory">{$language.lblBulkUserImportCommission}</div>
  <div class="rightside01"> {form->textbox name="bulkUserImportCommission" tabindex="38" class="textbox"  value="{if $affiliateBulkUserImport=='Yes'}{$affiliateBulkUserImportCommission}{/if}" validate="bulkUserImport->isEqual->Yes~*required~*bulkUserImportCommission->isPrice" error="~*"|cat:$language.errCommissionValue|cat:"~*"|cat:$language.errValidCommissionValue form="frmAffiliate"} </div>
  <div class="clear"></div>
</li>
{form->validate_script form="frmAffiliate"} 