I have to put the mail and on page User
payment_buy_with.html
<TMPL_VAR usr_email>
how do I put the variable on the page?
XFileSharing Pro - Print Template
Re: Print Template
In the index.cgimarcoss88 wrote:I have to put the mail and on page User
payment_buy_with.html
<TMPL_VAR usr_email>
how do I put the variable on the page?
In sub Payments
{
Code: Select all
$ses->PrintTemplate("payments.html",
%{$c},
plans => \@plans,
premium => $ses->getUser && $ses->getUser->{premium},
expire_elapsed => $ses->getUser && $et->convert($ses->getUser->{exp_sec}),
'rand' => $ses->randchar(6),
'usr_email' => $ses->getUser && $ses->getUser->{usr_email},
'usr_login' => $ses->getUser && $ses->getUser->{usr_login},
);
'usr_login' => $ses->getUser && $ses->getUser->{usr_login},
Use: <TMPL_VAR usr_login> and <TMPL_VAR usr_email>
Im try to use this trick on another page like:
But dont work <TMPL_VAR usr_email>
I will use my loged users email on my www.domainaname.com/page/abc.html
Its work on payments.html but dont work on "page/abc.html"
I think some declarations is missing.
Code: Select all
sub Page
{
my $tmpl = shift || $f->{tmpl};
$ses->{language}=$c->{default_language} unless -e "Templates/Pages/$ses->{language}/$tmpl.html";
&UploadForm unless -e "Templates/Pages/$ses->{language}/$tmpl.html";
$ses->PrintTemplate("Pages/$ses->{language}/$tmpl.html");
'usr_email' => $ses->getUser && $ses->getUser->{usr_email},
'usr_login' => $ses->getUser && $ses->getUser->{usr_login},
}
I will use my loged users email on my www.domainaname.com/page/abc.html
Its work on payments.html but dont work on "page/abc.html"
I think some declarations is missing.