· 5 years ago · Apr 03, 2020, 04:08 PM
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="utf-8" />
5 <script type="text/javascript" src="../config.js"></script>
6 <script src="https://code.jquery.com/jquery-3.4.1.min.js"
7 integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
8 crossorigin="anonymous"></script>
9 <style type="text/css">
10 .style0 {
11 font-family: Tahoma, Arial, sans-serif;
12 font-size: 8pt;
13 margin: 20 0 0 20;
14 padding: 0 0 0 0;
15 }
16
17 TD {
18 FONT-SIZE: 12px;
19 FONT-FAMILY: arial, tahoma, verdana;
20 }
21
22 .style1 {
23 text-align: left;
24 font-size: small;
25 }
26
27 .style5 {
28 font-size: small;
29 }
30
31 .style6 {
32 font-size: 9pt;
33 }
34
35 .style7 {
36 font-size: x-small;
37 }
38
39 .style8 {
40 text-align: left;
41 font-size: 13pt;
42 }
43
44 .style10 {
45 width: 800px;
46 height: 200px;
47 }
48
49 .style11 {
50 width: 240px;
51 height: 80px;
52 float: left;
53 }
54
55 .style12 {
56 border-style: none;
57 }
58
59 .style13 {
60 width: 560px;
61 float: left;
62 }
63
64 .style14 {
65 font-weight: bold;
66 }
67
68 .style15 {
69 PADDING-TOP: 20px;
70 }
71
72 .style16 {
73 width: 800px;
74 height: 3px;
75 border-top: 3px solid #000000;
76 }
77
78 .style17 {
79 width: 800px;
80 height: 10px;
81 }
82
83 .style18 {
84 width: 800px;
85 }
86
87 .style19 {
88 width: 800px;
89 height: 10px;
90 clear: both;
91 }
92
93 .style20 {
94 width: 400px;
95 }
96
97 .style21 {
98 width: 800px;
99 display: table;
100 border-top: 1px solid #000000;
101 border-bottom: 1px solid #000000;
102 }
103
104 .style22 {
105 display: table-row;
106 }
107
108 .style23 {
109 width: 30px;
110 height: 30px;
111 float: left;
112 display: table-cell;
113 border-left: 1px solid #000000;
114 border-right: 1px solid #000000;
115 text-align: center;
116 }
117
118 .style24 {
119 padding-top: 7px;
120 }
121
122 .style25 {
123 width: 550px;
124 height: 30px;
125 float: left;
126 display: table-cell;
127 border-right: 1px solid #000000;
128 text-align: center;
129 }
130
131 .style26 {
132 padding-top: 7px;
133 }
134
135 .style27 {
136 width: 50px;
137 height: 30px;
138 float: left;
139 display: table-cell;
140 border-right: 1px solid #000000;
141 text-align: center;
142 }
143
144 .style28 {
145 padding-top: 7px;
146 }
147
148 .style29 {
149 width: 90px;
150 height: 30px;
151 float: left;
152 display: table-cell;
153 border-right: 1px solid #000000;
154 text-align: center;
155 }
156
157 .style30 {
158 padding-top: 7px;
159 }
160
161 .style31 {
162 width: 80px;
163 max-width: 73px;
164 height: 30px;
165 float: right;
166 display: table-cell;
167 border-right: 1px solid #000000;
168 text-align: center;
169 }
170
171 .style32 {
172 padding-top: 7px;
173 }
174
175 .style33 {
176 width: 800px;
177 display: table;
178 border-bottom: 1px solid #000000;
179 }
180
181 .style34 {
182 display: table-row;
183 }
184
185 .style35 {
186 display: table-cell;
187 float: left;
188 }
189
190 .style36 {
191 width: 720px;
192 min-width: 723px;
193 height: 22px;
194 min-height: 23px;
195 border-left: 1px solid #000000;
196 border-right: 1px solid #000000;
197 border-bottom: 1px solid #000000;
198 text-indent: 5px;
199 }
200
201 .style37 {
202 padding-top: 4px;
203 }
204
205 .style38 {
206 width: 720px;
207 min-width: 723px;
208 height: 22px;
209 min-height: 23px;
210 border-left: 1px solid #000000;
211 border-right: 1px solid #000000;
212 text-indent: 5px;
213 }
214
215 .style39 {
216 padding-top: 4px;
217 }
218
219 .style40 {
220 float: right;
221 width: 80px;
222 max-width: 73px;
223 height: 44px;
224 min-height: 47px;
225 border-right: 1px solid #000000;
226 display: table-cell;
227 text-align: center;
228 }
229
230 .style41 {
231 padding-top: 15px;
232 }
233
234 .style42 {
235 width: 800px;
236 display: table;
237 border-bottom: 1px solid #000000;
238 }
239
240 .style43 {
241 display: table-row;
242 }
243
244 .style44 {
245 width: 720px;
246 min-width: 723px;
247 float: left;
248 display: table-cell;
249 border-left: 1px solid #000000;
250 border-right: 1px solid #000000;
251 border-bottom: 1px solid #000000;
252 text-indent: 5px;
253 }
254
255 .style45 {
256 width: 80px;
257 max-width: 73px;
258 float: right;
259 display: table-cell;
260 border-right: 1px solid #000000;
261 border-bottom: 1px solid #000000;
262 text-align: center;
263 }
264
265 .style46 {
266 display: table-row;
267 }
268
269 .style47 {
270 width: 720px;
271 min-width: 723px;
272 float: left;
273 display: table-cell;
274 border-left: 1px solid #000000;
275 border-right: 1px solid #000000;
276 text-indent: 5px;
277 }
278
279 .style48 {
280 width: 80px;
281 max-width: 73px;
282 float: right;
283 display: table-cell;
284 border-right: 1px solid #000000;
285 text-indent: 5px;
286 text-align: center;
287 }
288
289 .style49 {
290 width: 800px;
291 height: 10px;
292 clear: both;
293 }
294
295 .style50 {
296 width: 800px;
297 height: 10px;
298 clear: both;
299 }
300
301 .style51 {
302 width: 800px;
303 }
304
305 .style52 {
306 line-height: 115%;
307 font-family: "
308 Calibri "
309 ,"
310 sans-serif "
311 ;
312 mso-ascii-theme-font: minor-latin;
313 mso-fareast-font-family: Calibri;
314 mso-fareast-theme-font: minor-latin;
315 mso-hansi-theme-font: minor-latin;
316 mso-bidi-font-family: "
317 Times New Roman"
318 ;
319 mso-bidi-theme-font: minor-bidi;
320 mso-ansi-language: RU;
321 mso-fareast-language: EN-US;
322 mso-bidi-language: AR-SA;
323 }
324
325 .style53 {
326 line-height: 115%;
327 font-family: "
328 Calibri "
329 ,"
330 sans-serif "
331 ;
332 mso-ascii-theme-font: minor-latin;
333 mso-fareast-font-family: Calibri;
334 mso-fareast-theme-font: minor-latin;
335 mso-hansi-theme-font: minor-latin;
336 mso-bidi-font-family: "
337 Times New Roman"
338 ;
339 mso-bidi-theme-font: minor-bidi;
340 mso-ansi-language: RU;
341 mso-fareast-language: EN-US;
342 mso-bidi-language: AR-SA;
343 }
344
345 .style54 {
346 width: 800px;
347 height: 180px;
348 margin-top: 0px;
349 margin-bottom: 2px;
350 }
351
352 .style55 {
353 width: 150px;
354 float: left;
355 }
356
357 .style56 {
358 width: 150px;
359 margin-top: 80px;
360 }
361
362 .style57 {
363 width: 150px;
364 margin-top: 50px;
365 }
366
367 .style58 {
368 width: 180px;
369 float: left;
370 }
371
372 .style59 {
373 width: 180px;
374 height: 180px;
375 clear: right;
376 }
377
378 .style60 {
379 border-style: none;
380 border-color: inherit;
381 border-width: medium;
382 width: 180px;
383 height: 180px;
384 }
385
386 .style61 {
387 width: 150px;
388 float: left;
389 }
390
391 .style62 {
392 margin-top: 80px;
393 }
394
395 .style63 {
396 margin-top: 50px;
397 }
398
399 .style64 {
400 width: 800px;
401 height: 10px;
402 clear: both;
403 }
404
405 .style65 {
406 width: 800px;
407 font-weight: bold;
408 }
409
410 .style66 {
411 width: 800px;
412 height: 30px;
413 clear: both;
414 }
415
416 .style67 {
417 width: 800px;
418 height: 3px;
419 border-top: 3px solid #000000;
420 }
421
422 .style68 {
423 width: 800px;
424 height: 10px;
425 clear: both;
426 }
427
428 .style69 {
429 width: 800px;
430 height: 134px;
431 font-weight: bold;
432 }
433
434 .style70 {
435 border-style: none;
436 width: 800px;
437 height: 134px;
438 }
439
440 .style71 {
441 border: 0px;
442 border-collapse: collapse;
443 margin-left: auto;
444 margin-right: auto;
445 }
446
447 table td {
448 padding: 2px;
449 }
450
451 .style80 {
452 width: 800px;
453 display: table;
454 border-bottom: 1px solid #000000;
455 }
456
457 .style81 {
458 display: table-row;
459 }
460
461 .style82 {
462 width: 30px;
463 height: 60px;
464 float: left;
465 display: table-cell;
466 border-left: 1px solid #000000;
467 border-right: 1px solid #000000;
468 text-align: center;
469 vertical-align: baseline;
470 }
471
472 .style83 {
473 padding-top: 5px;
474 padding-bottom: 5px;
475 }
476
477 .style84 {
478 width: 550px;
479 height: 60px;
480 float: left;
481 display: table-cell;
482 border-right: 1px solid #000000;
483 text-align: left;
484 vertical-align: baseline;
485 }
486
487 .style85 {
488 padding: 5px;
489 padding-right: 0;
490 }
491
492 .style86 {
493 width: 50px;
494 height: 60px;
495 float: left;
496 display: table-cell;
497 border-right: 1px solid #000000;
498 text-align: center;
499 vertical-align: baseline;
500 }
501
502 .style87 {
503 padding-top: 5px;
504 padding-bottom: 5px;
505 }
506
507 .style88 {
508 width: 90px;
509 height: 60px;
510 float: left;
511 display: table-cell;
512 border-right: 1px solid #000000;
513 text-align: center;
514 vertical-align: baseline;
515 }
516
517 .style89 {
518 padding-top: 5px;
519 padding-bottom: 5px;
520 }
521
522 .style90 {
523 width: 80px;
524 height: 60px;
525 max-width: 73px;
526 float: right;
527 display: table-cell;
528 border-right: 1px solid #000000;
529 text-align: center;
530 vertical-align: baseline;
531 }
532
533 .style91 {
534 padding-top: 5px;
535 padding-bottom: 5px;
536 }
537 </style>
538
539
540
541
542 <title></title>
543</head>
544<body class="style0 nimbus-is-editor">
545
546
547 <div id="billPage">Cтраница загружается...</div>
548
549
550
551 <script type="text/javascript">
552 $(document).ready(function () {
553 let aktion = aktion || [];
554 let userId;
555
556 (function () {
557 var s = document.createElement('script');
558 s.type = 'text/javascript';
559 s.async = true;
560 s.src = '//m.action-media.ru/js/all.2.js';
561 var es = document.getElementsByTagName('script')[0];
562 es.parentNode.insertBefore(s, es);
563 })();
564
565 let uri = 'https://www.proflit.ru/Handlers/ID2Register.ashx';
566 let registerLinkJson;
567 $.ajax({
568 async: false,
569 type: "GET",
570 url: uri,
571 dataType: "text",
572 success: function (response) {
573 registerLinkJson = response;
574 return registerLinkJson;
575 },
576 error: function (response) {
577 console.log('ID2 register link error: ' + response);
578 return null;
579 }
580 });
581 let registerLink = JSON.parse(registerLinkJson);
582
583 window.AsyncInit = function () {
584
585 let mcfrEmId = 811;
586
587 if (window['eventMcfrHackAppId'] !== undefined) {
588 mcfrEmId = eventMcfrHackAppId;
589 }
590
591 aktionid.init({
592 appid: 10335,
593 emid: mcfrEmId,
594 rater: false,
595 clientcallback: 'clientcallback',
596 loginblock: 'panelcontainer',
597 style: 'default',
598 //lang: 'ua', *версия кабинета и языка ru или ua*
599 supportlink: 'https://id2.action-media.ru/Feedback',
600 reglink: 'https://id2.action-media.ru/Account/Registration?&appid=' + registerLink.appid + '&callbackurl=' + registerLink.callbackurl + '&rand=' + registerLink.rand + '&sig=' + registerLink.sig
601 });
602
603
604
605 aktionid.subscribe("status.auth", "statusAuthCallback");
606 aktionid.subscribe("status.noauth", "statusNoAuthCallback");
607 aktionid.subscribe("user.custom", "statusCustomCallback");
608 };
609
610
611 function statusAuthCallback(o) {
612 var profileUrl = 'https://www.proflit.ru/Handlers/ID2Profile.ashx?token=';
613 $.ajax({
614 async: false,
615 type: "GET",
616 url: profileUrl + o.status.token,
617 dataType: "text",
618 success: function (response) {
619 if (response) {
620 __uprofile = JSON.parse(response);
621 userId = __uprofile.Id;
622 }
623 },
624 error: function (response) {
625 console.log('ID2 profile error: ' + response);
626 }
627 });
628 }
629
630
631 statusAuthCallback(o)
632
633 let url = window.location.href;
634 let params = url.split('?')[1];
635 let publicationCode = getPublicationCode();
636
637 setTimeout(
638 getItemForPrinting
639 , 500);
640
641 function getItemForPrinting() {
642 $.ajax({
643 url: config.server + 'BillService.svc/GetItemForPrinting?' + params,
644 type: "get",
645 async: false,
646 dataType: 'html',
647 success: function (response) {
648 $("#billPage").html(response);
649 setTimeout(
650 wait
651 , 1000);
652 }
653
654 })
655 function wait() {
656 window.print();
657 }
658 }
659
660 function getPublicationCode() {
661 let publicationCode = null;
662 let params = getAllUrlParams(url);
663 if (params.productBillCode !== undefined) {
664 publicationCode = params.productBillCode;
665 }
666 return publicationCode;
667 }
668
669 console.log('sOrderCompleted (+ofsys)', userId, 'sOrderCompleted', 'https://proflit.ru/getbill.html', 811, publicationCode, publicationCode)
670
671 aktion.push(['sOrderCompleted (+ofsys)', userId, 'sOrderCompleted', 'https://proflit.ru/getbill.html', 811, publicationCode, publicationCode]);
672
673
674
675
676 function getAllUrlParams(url) {
677
678 // get query string from url (optional) or window
679 var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
680
681 // we'll store the parameters here
682 var obj = {};
683
684 // if query string exists
685 if (queryString) {
686
687 // stuff after # is not part of query string, so get rid of it
688 queryString = queryString.split('#')[0];
689
690 // split our query string into its component parts
691 var arr = queryString.split('&');
692
693 for (var i = 0; i < arr.length; i++) {
694 // separate the keys and the values
695 var a = arr[i].split('=');
696
697 // set parameter name and value (use 'true' if empty)
698 var paramName = a[0];
699 var paramValue = typeof (a[1]) === 'undefined' ? true : a[1];
700
701 // (optional) keep case consistent
702 paramName = paramName.toLowerCase();
703 if (typeof paramValue === 'string') paramValue = paramValue.toLowerCase();
704
705 // if the paramName ends with square brackets, e.g. colors[] or colors[2]
706 if (paramName.match(/\[(\d+)?\]$/)) {
707
708 // create key if it doesn't exist
709 var key = paramName.replace(/\[(\d+)?\]/, '');
710 if (!obj[key]) obj[key] = [];
711
712 // if it's an indexed array e.g. colors[2]
713 if (paramName.match(/\[\d+\]$/)) {
714 // get the index value and add the entry at the appropriate position
715 var index = /\[(\d+)\]/.exec(paramName)[1];
716 obj[key][index] = paramValue;
717 } else {
718 // otherwise add the value to the end of the array
719 obj[key].push(paramValue);
720 }
721 } else {
722 // we're dealing with a string
723 if (!obj[paramName]) {
724 // if it doesn't exist, create property
725 obj[paramName] = paramValue;
726 } else if (obj[paramName] && typeof obj[paramName] === 'string') {
727 // if property does exist and it's a string, convert it to an array
728 obj[paramName] = [obj[paramName]];
729 obj[paramName].push(paramValue);
730 } else {
731 // otherwise add the property
732 obj[paramName].push(paramValue);
733 }
734 }
735 }
736 }
737
738 return obj;
739 }
740
741 })
742
743
744
745 </script>
746</body>
747</html>