% if ( $m->comp_exists ("/comps/$prj/header.msn") ) { <& "/comps/$prj/header.msn", alias => 'main' &> % } else { <& "/comps/header.msn", alias => 'main' &> % }
% if ( $m->comp_exists ("/comps/$prj/left.msn") ) { <& "/comps/$prj/left.msn" &> % } DIATON tonometer % if ( ref $document ) {

<% $document->name %>

% } % if ( $ok ) {

The order is sent successfully.

% } else {

To place the order please fill in the following application form:

Number of the devices *
The name of the company, country *
The contact person authorized to sign the contract *
The company's banking details *
The juridical address *
The address of delivery *
Phone, fax numbers *
The way of delivery: DHL, etc.
The conditions of delivery according to Incomers 2000
The conditions of payment: 100% prepayment **
Additional information: the necessity of the Certificate of Origin, insurance, etc.

* These are required fields.
** By sending this form you confirm the conditions of payment.

% }
% if ( ref $document ) { <% $document->body %> % }
% ### Футер % ############################################## % if ( $m->comp_exists ("/comps/$prj/footer.msn") ) { <& "/comps/$prj/footer.msn" &> % } else { <& "/comps/footer.msn" &> % } % ### /Футер <%args> $setfill => undef $ok => undef <%init> my $prj = $request->{project}; my $profile = $request->{project_profile}; my $root = $request->{project_section}; my ($document) = $keeper->get_documents ( s => $root->id, class => 'promosuite::Article', alias => 'order', limit => 1, status => 1, ); if ( $setfill ) { my $CP = 'UTF8' if $setfill eq 'Отправить'; $CP = 'ISO' if Convert::Cyrillic::cstocs('ISO', 'UTF8', $setfill) eq 'Отправить'; $CP = 'KOI8' if Convert::Cyrillic::cstocs('KOI8', 'UTF8', $setfill) eq 'Отправить'; $CP = 'WIN' if Convert::Cyrillic::cstocs('WIN', 'UTF8', $setfill) eq 'Отправить'; foreach my $key ( qw( devnum company contact bank address postaddress phone delivery devcond payment comments ) ) { $ARGS{$key} = Convert::Cyrillic::cstocs($CP, 'UTF8', $ARGS{$key}); } if ( $ARGS{company} && $ARGS{contact} && $ARGS{phone} ) { my $sendmail = { to => 'Marketing <'.$project->params->{mail_to}.'>', from => 'Diaton Bot <'.$project->params->{mail_from}.'>', subject => "DIATON-TONOMETER - Order", body => $m->scomp('/comps/'.$prj.'/letters/order.msn', %ARGS), }; $m->comp('/subs/sendmail.msn', email => $sendmail); $m->redirect('?ok=1'); } }