?> " method="post" class="form-horizontal"> <fieldset> <legend> <?php $ph->tag('span', $product['name'], ['class' => 'product-title', 'onclick' => 'window.location.href = "' . $ph->system_url('/product/edit/' . $catalog['id'] . '/' . $product['id']) . '"']); ?> <div style="position:relative; float:right; font-size:15px"># <?php echo $i + 1; ?> </div> </legend> <div class="form-group"> <div class="col-lg-2"> <b><em><span class="text-danger"><?php echo CurrencyHelper::price_byr($product['priceByr']); ?> </span></em></b> BYR <br> <em><span class="text-primary"><?php echo $product['priceUsd']; ?> </span></em> $ </div> <div class="col-lg-1"> <?php if ($product['available']) { $ph->system_link('Есть в наличии', '/product/edit/' . $catalog['id'] . '/' . $product['id'], ['class' => 'text-success small-reference']); } else { $ph->system_link('Нет в наличии', '/product/edit/' . $catalog['id'] . '/' . $product['id'], ['class' => 'text-danger small-reference']); } ?>
<tbody> <?php for ($i = 0; $i < count($specialOfferProducts); $i++) { $product = $specialOfferProducts[$i]; ?> <tr> <td><?php echo $i + 1; ?> </td> <td><?php $ph->system_link($product['name'], "/product/edit/{$product['catalogId']}/{$product['id']}"); ?> </td> <td><?php $ph->text(CurrencyHelper::price_byr($product['priceByr'])); ?> </td> <td> <?php $ph->system_link('Удалить', "/specialOffer/delete/{$product['catalogId']}/{$product['id']}", ['class' => 'btn btn-danger btn-xs']); ?> </td> </tr> <?php } ?> </tbody> </table> <hr> <?php
<?php echo $product['description']; ?> <br><br> <?php if ($product['available']) { echo '<h5><span class="glyphicon glyphicon-ok text-success"></span> Есть в наличии</h5>'; } else { echo '<h5><span class="glyphicon glyphicon-remove text-danger"></span> Нет в наличии</h5>'; } ?> <br> <?php if (!empty($product['priceByr'])) { $pricePerMeasure = trim($product['measure'], '.') != 'шт' ? " р. / {$product['measure']}" : ' р.'; $ph->tag_open('h4')->text('Цена : ')->tag('span', CurrencyHelper::price_byr($product['priceByr']), ['class' => 'text-info', 'style' => 'font-weight: bold; font-size:20px', 'data-toggle' => 'tooltip', 'title' => 'цена после деноминации'])->text($pricePerMeasure)->tag('span', ' (' . CurrencyHelper::price_byr_before_denomination($product['priceByr']) . $pricePerMeasure . ')', ['style' => 'font-size:13px; color: #747474;', 'data-toggle' => 'tooltip', 'title' => 'цена до деноминации']); $ph->tag_close('h4'); } else { $ph->tag_open('h4')->link('Цену уточняйте', '/contacts')->tag_close('h4'); } ?> <br> <h4>Приобрести данный товар можно по телефонам:</h4> МТС : <?php $ph->link('8 029 850 40 85', '/contacts'); ?> <br> Velcom : <?php $ph->link('8 044 461 09 06', '/contacts'); ?>
<?php use application\helpers\CurrencyHelper; ?> <div class="col-sm-3"> <div class="product-container text-center"> <?php $ph->tag_open('a', ['href' => $ph->url($_product['fullUrl']), 'class' => 'image-container'])->tag('img', null, ['src' => !empty($_product['imagePath']) ? $ph->path($_product['imagePath']) : $ph->image_path('no-photo.jpg'), 'class' => 'image'])->tag_close('a')->link($_product['name'], $_product['fullUrl'], ['class' => 'name']); ?> <div class="price-container"> <?php if ($_product['available']) { if (!empty($_product['priceByr'])) { $ph->tag('span', CurrencyHelper::price_byr($_product['priceByr']), ['class' => 'price', 'data-toggle' => 'tooltip', 'title' => 'цена после деноминации'])->tag('span', ' р. ', ['class' => 'price-currency'])->tag('span', ' / <span>' . CurrencyHelper::price_byr_before_denomination($_product['priceByr']) . '</span> р.', ['class' => 'price-before-denomination', 'data-toggle' => 'tooltip', 'title' => 'цена до деноминации']); } else { $ph->tag('span', 'Цену уточняйте', ['class' => 'price-currency']); } } else { $ph->tag('span', 'Нет в наличии', ['class' => 'not-available']); } ?> </div> <?php $ph->link('<i class="glyphicon glyphicon-plus"></i>Подробнее', $_product['fullUrl'], ['class' => 'btn btn-default read-more']); ?> </div> </div> <script> $(function () { // activate bootstrap tooltips