Blame view

common/widgets/views/order.php 6.39 KB
f2d1afdc   Dmytry Fedorchuk   Mail Order save ...
1
  <?php var_dump($params);?>
d9a2909b   Dmytry Fedorchuk   Mail Order save ...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  <html lang="uk">
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title>NAKED PRICE</title>
      <style type="text/css">
          body {
              font-family: helvetica neue, arial, sans-serif;
              line-height: 1.5;
              padding: 0;
              margin: 0;
          }
      </style>
  </head>
  <body style="margin: 0;">
  <div class="container" style="
          margin: 0 auto;
          font-family: helvetica neue, arial, sans-serif;
          font-size: 16px;
          line-height: 1.5;
          width: 100%;
          max-width:  740px;
          min-width: 360px;
          ">
      <div style="text-align: center">
          <br>
1efe6f4f   Dmytry Fedorchuk   Mail Order save ...
28
          <h1 style="margin: -5px 40px 10px; line-height: 1.2;">Добрый день, <?php =$params['order']->name ?>!</h1>
adb1789d   Dmytry Fedorchuk   Mail Order save ...
29
          <h2 style="font-weight: 300; margin: 10px 40px 40px; line-height: 1.2;">Ваш заказ получен. В ближайшее время с Вами свяжетсяменеджер для уточнения деталей</h2>
d9a2909b   Dmytry Fedorchuk   Mail Order save ...
30
31
32
33
34
35
36
      </div>
      <table cellpadding="0" cellspacing="0" border="0" valign="top" style="
          background: #eee; border-radius: 4px;
          width: 100%;
          ">
          <tr>
              <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px; border-right: 1px solid #ddd;">
1efe6f4f   Dmytry Fedorchuk   Mail Order save ...
37
               <strong>Заказ №<?php =$params['order']->id ?></strong>
d9a2909b   Dmytry Fedorchuk   Mail Order save ...
38
                  <br>
f2d1afdc   Dmytry Fedorchuk   Mail Order save ...
39
                  <?php die();/* $this->created_at->format("d.m.Y"); ?>
d9a2909b   Dmytry Fedorchuk   Mail Order save ...
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
                  <br>
                  На сумму <strong><?php=$this->total ?></strong> грн
              </td>
              <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px;">
                  <strong>Данные покупателя</strong>
                  <br>
                  <?php=$this->account->name ?>
                  <br>
                  <nobr><?php=$this->account->phone ?></nobr>
                  <br>
                  <?php=$this->account->email ?>
              </td>
              <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px;">
                  <strong>Доставка</strong>
                  <br>
                  <?php=$this->city ?>
                  <br>
                  <?php=$this->address ?>
  
              </td>
              <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 20px 15px 15px;">
                  <strong>Спасибо за покупку!</strong>
                  <br>
                  <a href="http://www.rukzachok.com.ua"
              </td>
          </tr>
          <tr>
              <td colspan="4" style="background: #fff;">
                  <table cellpadding="0" cellspacing="0" border="0" valign="top" style="
                width: 100%;">
                      <thead style="font-size: 70%;">
                        <tr>
                          <th style="border-bottom: 2px solid #eee; padding: 10px 10px 5px 0;">&nbsp;</th>
                          <th style="border-bottom: 2px solid #eee; text-align: left; padding: 10px 10px 5px;">Название</th>
                          <th style="border-bottom: 2px solid #eee; text-align: right; padding: 10px 10px 5px;">Количество</th>
                          <th style="border-bottom: 2px solid #eee; text-align: right; padding: 10px 30px 5px 10px;">Цена</th>
                        </tr>
                      </thead>
                      <tbody>
                     <?php foreach ($this->orderItems as $thisItem) { ?>
                      <tr>
                          <td style="padding: 0; vertical-align: top; line-height: 0; text-align: left; border-bottom: 1px solid #ddd; border-left: 1px solid #eee;">
                              <img src="{{$thisItem->product->img?>" width="150">
                          </td>
                          <td style="padding: 65px 10px 20px; vertical-align: top; text-align: left; border-bottom: 1px solid #ddd; font-size: 18px;">
                              <?php=$thisItem->product->name ?>
                          </td>
                          <td style="padding: 65px 10px 20px; vertical-align: top; text-align: right; border-bottom: 1px solid #ddd; font-size: 18px;">
                              <small style="margin-right: 1px;">×</small><?php=$thisItem->quantity ?>
                          </td>
                          <td style="padding: 65px 30px 20px 10px; vertical-align: top; text-align: right; border-bottom: 1px solid #ddd; border-right: 1px solid #eee; font-size: 18px;">
                              <?php=number_format($thisItem->total) ?> грн
                          </td>
                      </tr>
                     <?php } ?>
                      </tbody>
                      <tfoot>
                      <tr>
                          <td colspan="3" style="background: #eee; vertical-align: top; border-radius: 0 0 0 4px; padding: 13px 10px 20px; border-top: 1px solid #ddd; text-align: right; font-size: 14px;">
                              <strong>Всего к оплате:</strong>
                          </td>
                          <td style="background: #eee; vertical-align: top; border-radius: 0 0 4px 0; padding: 10px 30px 20px 10px; border-top: 1px solid #ddd; text-align: right; font-size: 18px;">
ede61eb8   Dmytry Fedorchuk   Mail Order save ...
102
                              <strong><?php=number_format($this->total)  ?> грн</strong>
d9a2909b   Dmytry Fedorchuk   Mail Order save ...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
                          </td>
                      </tr>
                      <tfoot>
                  </table>
              </td>
          </tr>
      </table>
      <div style="padding: 40px;">
          <h4 style="text-align: center">
              NAKED PRICE – цены взрывают сознание
          </h4>
          <table cellpadding="0" cellspacing="0" border="0" valign="top" style="
                width: 100%; margin: 20px 0;">
              <tr>
                  <td style="border-top: 1px solid #eee; text-align: right; font-size: 100%; padding: 30px 20px 0 0;">
                      +38 (067) 395 65 73
                  </td>
                  <td style="border-top: 1px solid #eee; text-align: left; font-size: 100%; padding: 30px 0 0 20px;">
                      <a href="http://rukzachok.com.ua">rukzachok.com.ua</a>
                  </td>
              </tr>
          </table>
ede61eb8   Dmytry Fedorchuk   Mail Order save ...
125
          <div style="text-align: center; font-size: 65%; color: #ccc;">Дата покупки: <?php=$thisItem->created_at */?></div>
d9a2909b   Dmytry Fedorchuk   Mail Order save ...
126
127
128
129
      </div>
  </div>
  </body>
  </html>