use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{HTMLTitle} = "Paypal Mass Pay";$this->out("");$this->out(Zen::PerlHandler->get("II73393863d577394587e4386922d619c9->mnt_masspay_paypal")->do($this->{C}));$this->out("\n<center>\n\n<b>You are about to pay <font color=red>$C->{MasspayTotal}</font></b>\n<br><br>\n\nYou need to download Mass Pay file using the button below.<br>\n<b style=\"color:red\">Attention!</b> Do not close this window until you accomplish mass payment.<br>\nOnce you have paid successfully through Paypal,<br>\nyou will need to mark the commission records as \"PAID\"<br>\nusing the button \"CONFIRM PAYMENT\".\n\n<br><br>\n<form method=\"POST\" action=\"$C->{SYS}{URL}/action/Jin/Paycomm/Web/masspay_paypal_getfile.txt\">\nUse the following description line in the Mass Pay file:<br>\n<input type=\"text\" size=\"60\" name=\"descr\" value=\"Commissions to date &#35;{period_start} to &#35;{period_end}\"><br>\n(tags &#35;{period_start} and &#35;{period_end} refer to payment <a target=\"_blank\" href=\"$C->{SYS}{URI}/master/affiliates/paycomms/periods.html\">periods</a>)<br><br>\n<input type=\"submit\" value=\"Download Paypal Mass Pay file\">\n</form>\n\n<br><br>\n<form method=\"POST\" action=\"$C->{SYS}{URL}/action/Jin/Paycomm/Web/masspay_paypal_confirm.html\">\n<input type=\"hidden\" name=\"ObjectID\" value=\"$C->{INPUT}{ObjectID}\">\n<input type=\"submit\" value=\"CONFIRM PAYMENT\">\n</form>\n\n</center>\n\n");{my $G = (ref $this)->get("/headfoot/hf_main.html", $this->{param}) or die "no skel /headfoot/hf_main.html";my $out1 = $this->getOutput;$C->{central_content} = join('', @$out1);@$out1 = ();my $out2 = $G->execute($C);$this->out(@$out2) if $out2;}$this->out("");}