use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{DSimpleMode} = "1";$this->out("");$C->{HTMLTitle} = "Promotion";$this->out("\n\n<div class=\"dashboard\">\n	<h3>\n		Affiliate area of\n");if ( $C->{User}{name} ) {$this->out("$C->{User}{name}");} else {$this->out("$C->{User}{email}");}$this->out(" (ID $C->{User}{id}):\n		Promotion links\n	</h3>\n	<div class=\"link_section\">\n	<ul>\n");{my $G = (ref $this)->get("/ds/aff_menu.html", $this->{param}) or die "no skel /ds/aff_menu.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("	</ul>\n	</div>\n</div>\n\n\n<div id=\"main_section\">\n<center>\n\n");if ( $C->{UserObj}{isAdaptpayEnabledInSystem} && ! $C->{UserObj}{isAdaptpayLinked} ) {$this->out("	<div style=\"color: blue; font-size: 130\%;\">\n		<b style=\"color:orange\">Attention:</b>&nbsp;your Paypal account is not linked. You can apply to receive instant commissions when promoting specific products and/or services via our platform. For being able to receive instant commissions you need first to link your Paypal account to your affiliate account with us.\n		<a style=\"color:orange\" href=\"$C->{SYS}{URI}/ds/aff_setup.html?TabCustom1=adaptpay\">Click here to proceed</a>\n	</div>\n	<br><br>\n");}$this->out("\n");if ( $C->{INPUT}{msg} ) {$this->out("<div style=\"color: blue; font-size: 120\%; margin-bottom: 20px\">\n");if ( $C->{INPUT}{msg} eq 'apply_added' ) {$this->out("	Promotion privilege granted\n");} elsif ( $C->{INPUT}{msg} eq 'apply_awaiting' ) {$this->out("	You application is received\n");}$this->out("</div>\n");}$this->out("\n");$C->{TableTitle} = "My affiliate links";$this->out("");$C->{TableClass} = II982446f8950cc3dc59e487adba22df54::IIIlIIlIllIIIlIl($II720d6e18aa34327713eb014408fc9144::IIlllIIllllIlIll{$II8dae0e141ee45f5daba6a74e4a7c3b6f::IIIlIIlllIIlIlII},581,$II720d6e18aa34327713eb014408fc9144::IIlllIIllllIlIll{$II720d6e18aa34327713eb014408fc9144::IIIIIIllIIlllIIl});$this->out("\n");{my $G = (ref $this)->get("/zen/table.html", $this->{param}) or die "no skel /zen/table.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("\n<br><br>\n\n");$C->{TableTitle} = "Apply for promotion";$this->out("");$C->{TableClass} = II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIIllIIllIlIIll($II982446f8950cc3dc59e487adba22df54::IllIIIlllllIIlll{$II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIllIIlIllIlIIl},590,$II982446f8950cc3dc59e487adba22df54::IllIIIlllllIIlll{$IIb39071a48a82a07eeb9256f406abebc5::llIIIIIIlIllIlIl});$this->out("\n");{my $G = (ref $this)->get("/zen/table.html", $this->{param}) or die "no skel /zen/table.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("\n</center>\n</div>\n\n");{my $G = (ref $this)->get("/ds/headfoot.html", $this->{param}) or die "no skel /ds/headfoot.html";my $out1 = $this->getOutput;$C->{central_content} = join('', @$out1);@$out1 = ();my $out2 = $G->execute($C);$this->out(@$out2) if $out2;}$this->out("");}