Blame view

src/app/frontend/views/page/compareItems.php 4.36 KB
dce46e80   Alex Savenko   first push project
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
  <div id="content" class="clearfix">
      <div class="compare_items">
          <div class="breadcrumbs">
              <div class="inner">
                  <div class="order_menu_shadow"></div>
                  <ul class="clearfix">
                      <li  itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""  class="float"><a  itemprop="url" href="<?= $this->seoUrl->setUrl('/') ?>" 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="float"><a  itemprop="url" href="#" title="<?= $t->_("compare_items") ?>" class="breadcrumbs_last"><span itemprop="title"><?= $t->_("compare_items") ?></span></a></li>
                  </ul>
              </div>
          </div>
  
          <div class="inner clearfix">
              <h2><?= $t->_("compare_items") ?></h2>
  
              <div class="compare_items_table">
                  <table class="" cellpadding="0" cellspacing="0">
                      <tr>
                          <th></th>
  
                          <?php
  
                          if( !empty( $items ) )
                          {
                              $data_items = '';
  
  
  
  
                              foreach( $items as $i )
                              {
  
  
                                  $data_items .=
                                      '<th valign="top">'.
                                          '<div class="compare_one_item">'.
                                              '<div class="compare_item_delete"><a href="'.$this->seoUrl->setUrl(substr($i['alias_del'],1)).'" title="'.$i['title'].'" data-item_id="'.$i['type'].'-'.$i['subtype'].'-'.$i['id'].'"></a></div>'.
                                              '<div class="compare_item_image"><a href="'.$this->seoUrl->setUrl($i['alias']).'" title="'.$i['title'].'"><img src="'.$i['cover'].'" alt="'.$i['title'].'" height="100" /></a></div>'.
                                              '<div class="compare_item_title"><a href="'.$this->seoUrl->setUrl($i['alias']).'" title="'.$i['title'].'">'.$i['title'].'</a></div>'.
                                              '<div class="align_bottom">'.
37d2b3bf   Alex Savenko   common
42
                                                  '<div class="compare_item_price">'.$t->_("price_from").' <span>'.round($i['price2'], 1).'</span> грн</div>'.
dce46e80   Alex Savenko   first push project
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
                                                  '<div class="one_item_buttons">
                                                  <a href="'.$this->seoUrl->setUrl($i['alias']) .'" title="" class="btn grey">'.$t->_("details").'</a>
                                                  <a data-group_id="'.$i['group_id'].'" href="#" title="" class="btn green buy">'.$t->_("buy").'</a>
                                                  </div>'.
                                              '</div>'.
                                          '</div>'.
                                      '</th>';
  
                              }
  
                              echo($data_items);
                          }
  
                          ?>
                      </tr>
                      <?php
  
                      if( !empty( $properties_for_items ) )
                      {
                          $data   = '';
                          $j      = 0;
                          $i      = 0;
  
                          foreach( $properties_for_items as $key => $val )
                          {
                              $j++;
                              $data .= '<tr class="'.( ($j%2==0) ? 'odd' : 'even' ).'" >';
                              $data .= '<td class="compare_item_property_name">'.$key.'</td>';
  
                              for($i = 0; $i < $count; $i++)
                              {
                                  $data .= '<td>'.(!empty($val[$i]) ? $val[$i] : '-').'</td>';
                              }
  
                              $data .= '</tr>';
                          }
  
                          echo '<tr class="odd">'.
                          '<td class="compare_item_property_name">'.$t->_("producer").'</td>'.
                           $prod_text.
                          '</tr>';
  
                          echo($data);
                      }
  
                      ?>
  
  
  
                  </table>
              </div>
          </div>
          <br/>
          <br/>
          <br/>
  
      </div>
  </div>