Page MenuHomeIn-Portal Phabricator

affiliate.tpl
No OneTemporary

File Metadata

Created
Sun, Mar 9, 9:51 PM

affiliate.tpl

<script language="JavaScript">
function showAffiliateAgreement()
{
window.open('<inp2:m_Link template="in-commerce/my_account/affiliate_agreement" />', null, 'menubar=no,toolbars=no,width=500,height=300');
}
</script>
<inp2:m_if check="u_IsAffiliate">
<table class="block-no-border">
<tr>
<td class="block-header" colspan="2"><inp2:m_Phrase label="lu_comm_AffiliateStatistics"/></td>
</tr>
<inp2:m_if check="u_AffiliateIsNotActive">
<tr>
<td class="block-data" colspan="2">
<table class="warning">
<tr>
<td valign="top" align="left" class="block-data">
<img src="img/message.gif" alt="" width="19" height="19" />
<span class="warning-text"><inp2:m_Phrase label="lu_Warning"/></span><br />
<inp2:m_Phrase label="lu_comm_AffiliateIsPendingOrDisabled"/>
</td>
</tr>
</table>
</td>
</tr>
</inp2:m_if>
<tr>
<td class="block-data">
<a href="<inp2:m_Link template="in-commerce/my_account/affiliate_stat"/>"><strong><inp2:m_Phrase label="lu_comm_AffiliateStat"/></strong></a><br />
<inp2:m_Phrase label="lu_comm_AffiliateStatText"/>
</td>
</tr>
<tr>
<td class="block-data">
<a href="<inp2:m_Link template="in-commerce/my_account/affiliate_payments"/>"><strong><inp2:m_Phrase label="lu_comm_AffiliatePayments"/></strong></a><br />
<inp2:m_Phrase label="lu_comm_AffiliatePaymentsText"/>
</td>
</tr>
<tr>
<td class="block-data">
<a href="<inp2:m_Link template="in-commerce/my_account/affiliate_materials"/>"><strong><inp2:m_Phrase label="lu_comm_AffiliateMaterials"/></strong></a><br />
<inp2:m_Phrase label="lu_comm_AffiliateMaterialsText"/>
</td>
</tr>
<tr>
<td class="block-data">
<a href="<inp2:m_Link template="in-commerce/my_account/affiliate_payment_type"/>"><strong><inp2:m_Phrase label="lu_comm_ChangeAffiliatePaymentType"/></strong></a><br />
<inp2:m_Phrase label="lu_comm_ChangeAffiliatePaymentTypeText"/>
</td>
</tr>
<tr>
<td class="block-data">
<a href="javascript:showAffiliateAgreement()"><strong><inp2:m_Phrase label="lu_comm_TermsAndConditionsLink"/></strong></a><br />
<inp2:m_Phrase label="lu_comm_TermsAndConditionsText"/>
</td>
</tr>
</table>
<inp2:m_else />
<form method="POST" enctype="multipart/form-data" action="<inp2:m_FormAction />">
<table class="block-no-border">
<tr>
<td class="block-header" colspan="3"><inp2:m_Phrase label="lu_comm_AffiliateRegistration"/></td>
</tr>
<tr>
<td class="block-data" colspan="3"><inp2:m_Phrase label="lu_comm_BecomeAnAffiliateDescription"/></td>
</tr>
<tr>
<td class="block-data">
<strong><inp2:m_phrase label="lu_comm_SSNField"/>*:</strong>
</td>
<td class="block-data">
<input type="text" name="SSN" id="SSN" value="<inp2:m_get var="SSN" />" />
</td>
<td class="error">
<inp2:m_if check="m_getequals" var="SSNRequiredError" value="1">
<inp2:m_Phrase label="lu_comm_FieldIsRequired" />
</inp2:m_if>&nbsp;
</td>
</tr>
<inp2:m_DefineElement name="affiliate_payment_type_elem">
<tr>
<td style="padding: 3px">
<input type="radio" name="PaymentTypeId" id="PaymentTypeId_<inp2:Field name="PaymentTypeId" />" value="<inp2:Field name="PaymentTypeId" />" <inp2:m_if check="u_AffiliatePaymentTypeChecked">checked</inp2:m_if> />
</td>
<td style="padding: 3px">
<label for="PaymentTypeId_<inp2:Field name="PaymentTypeId" />"><inp2:Field name="Name" /></label>
</td>
</tr>
<inp2:m_if check="Field" name="Description">
<tr>
<td style="padding: 3px">&nbsp;</td>
<td style="padding: 3px"><inp2:Field name="Description" />&nbsp;</td>
</tr>
</inp2:m_if>
</inp2:m_DefineElement>
<tr>
<td style="vertical-align: top;" class="block-data">
<strong><inp2:m_phrase label="lu_comm_ChooseAffiliatePaymentType"/>:</strong>
</td>
<td class="block-data">
<table class="block-no-border">
<inp2:u_ListAffiliatesPaymentTypes render_as="affiliate_payment_type_elem" />
<tr><td colspan="2" style="padding: 0px">&nbsp;</td></tr>
</table>
</td>
<td class="error">&nbsp;</td>
</tr>
<tr>
<td class="block-data">
<strong><inp2:m_phrase label="lu_comm_Comments"/>:</strong>
</td>
<td class="block-data">
<textarea name="Comments" id="Comments" cols="35" rows="5"><inp2:m_get var="Comments" /></textarea>
</td>
<td class="error">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="block-data">
<input type="checkbox" name="AgreeToAffiliateTerms" id="AgreeToAffiliateTerms" />
<strong><inp2:m_Phrase label="lu_comm_IAgreeTo" />
<a href="javascript:showAffiliateAgreement()"><inp2:m_Phrase label="lu_comm_AffiliateAgreement" /></a>
<inp2:m_Phrase label="lu_comm_TermsAndConditions" /></strong>
<script type="text/javascript">
function showAffiliateAgreement()
{
window.open('<inp2:m_Link template="in-commerce/my_account/affiliate_agreement" />', null, 'menubar=no,toolbars=no,width=500,height=300');
}
</script>
</td>
<td class="error">
<inp2:m_if check="m_getequals" var="MustAgreeToTerms" value="1">
<inp2:m_Phrase label="lu_comm_MustAgreeAffiliateTermsError" />
</inp2:m_if>&nbsp;
</td>
</tr>
<tr>
<td class="block-data" colspan="2" style="padding-top: 0px">
<input type="hidden" name="next_template" value="in-commerce/my_account/affiliate_thankyou" />
<input type="submit" class="button" name="events[affil][OnBecomeAffiliate]" id="events[affil][OnBecomeAffiliate]" value="<inp2:m_Phrase label="lu_comm_BecomeAnAffiliate" no_editing="1"/>" />
</td>
<td class="error">&nbsp;</td>
</tr>
</table>
</form>
</inp2:m_if>

Event Timeline