Blame view

src/app/frontend/views/customer/listOrders.php 5.33 KB
1ea3b987   Administrator   maby first commit
1
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
28
29
30
31
32
33
34
35
36
37
38
39
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
  <div id="content" class="clearfix">
      <div class="cabinet">
          <div class="breadcrumbs">
              <div class="inner">
                  <div class="order_menu_shadow"></div>
                  <ul class="clearfix">
                      <li  itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""  class="foat"><a href="<?= $this->seoUrl->setUrl('/')?>" itemprop="url" title="<?= $t->_("main_page") ?>"><span itemprop="title"><?= $t->_("main_page") ?></span></a></li>
                      <li class="float more"><img src="/images/breadcrumbs_arrow.png" alt="" height="7" width="7" /></li>
                      <li  itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""  class="foat"><a href="<?= $this->seoUrl->setUrl('/cabinet')?>"  itemprop="url" title="<?= $t->_("personal_account") ?>"><span itemprop="title"><?= $t->_("personal_account") ?></span></a></li>
                      <li class="float more"><img src="/images/breadcrumbs_arrow.png" alt="" height="7" width="7" /></li>
                      <li  itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""  class="foat"><a href="<?= $this->seoUrl->setUrl('/cabinet')?>" itemprop="url" title="<?= $t->_("profile") ?>" class="breadcrumbs_last"><span itemprop="title"><?= $t->_("profile") ?></span></a></li>
                  </ul>
              </div>
          </div>
  
          <div class="inner"><?= $this->flash->output(); ?></div>
  
          <div class="sidebar_content_wrapper">
              <div class="inner clearfix">
                  <div id="sidebar" class="float">
                      <div class="subcategory_sidebar_title">
                          <h3><?= $t->_("personal_account") ?></h3>
                          <a href="<?= $this->url->get([ 'for' => 'cabinet' ]) ?>" title="<?= $t->_("profile") ?>" class=""><?= $t->_("profile") ?></a>
                          <a href="#" title="Мої замовлення" class="my_orders active">Мої замовлення</a>
                          <ul class="toggle display_block">
                              <?php
  
                              $data_orders = '';
  
                              foreach( $orders as $o )
                              {
                                  $data_orders .= '<li><a class="'.($order_id == $o['id'] ? 'active' : '').'" href="'.$this->seoUrl->setUrl($this->url->get([ 'for' => 'list_orders', 'order_id' => $o['id'] ])).'" title="">№'.$o['id'].' ('.date( 'd.m.Y', strtotime($o['created_date']) ).')</a></li>';
                              }
  
                              echo( $data_orders );
  
                              ?>
  
                          </ul>
                          <a href="<?= $this->url->get([ 'for' => 'customer_logout' ]) ?>" title="<?= $t->_("exit")?>"><?= $t->_("exit")?></a>
                      </div>
                  </div>
                  <div id="content_wrapper" class="float">
                      <div class="subcategory_content_wrapper_title">
                          <h3>Мої замовлення</h3>
                          <p class="order_number">Замовлення №<?= $order_id.' від '.$orders_with_id['date'] ?></p>
                      </div>
                      <div class="subcategory_content_wrapper_container my_order_items clearfix">
                          <?php
  
                          $data_items = '';
  
                          foreach( $order as $o )
                          {
                              $data_items .=
                                  '<div class="float my_order_item">'.
                                      '<div class="my_order_item_image">'.
                                          '<a href="'.$this->seoUrl->setUrl($o['link']).'" title="'.$o['title'].'">'.
                                              '<img src="'.$o['image'].'" alt="'.$o['title'].'" height="100">'.
                                          '</a>'.
                                      '</div>'.
                                      '<div class="my_order_item_content">'.
                                          '<h2><a href="'.$this->seoUrl->setUrl($o['link']).'" title="'.$o['title'].'">'.$o['title'].'</a></h2>'.
                                          '<p class="my_order_item_size">'.$t->_("packing").': '.$o['size'].'</p>'.
                                          '<p class="my_order_item_price"><span class="price">'.$o['price2'].'</span><span> грн</span></p>'.
                                          '<p class="my_order_item_count">'.$t->_("number_of").': <span class="price">'.$o['item_count'].'</span></p>'.
                                          '<p class="my_order_item_count_total">'.$t->_("cost").': <span class="price">'.$o['total_count'].'</span><span> грн</span></p>'.
                                      '</div>'.
                                  '</div>';
                          }
  
                          echo($data_items);
  
                          ?>
                      </div>
  
                      <div class="my_order_items_description">
                          <p class="my_order_total"><?= $t->_("total")?>: <span class="price"><?= $total_count ?></span><span> грн</span></p>
                          <p class="my_order_delivery">Доставка: <span><?= $orders_with_id['delivery'] ?></span></p>
                          <p class="my_order_status">Статус: <span><?= $orders_with_id['status'][0] ?></span></p>
  
                      </div>
                  </div>
              </div>
          </div>
      </div>
  
  
  </div>