?> <?php Basket::addPriceToSummary($basket->product, $basket->count); ?> <tr> <td class="goods-page-image"> <a href="<?php echo $this->createUrl('/store/product/view/id/'); ?> /<?php echo $basket->product->id; ?> " class="fancybox-button" rel="photos-lib"> <?php $imgUrl = $basket->product->getMainPicture() != NULL ? MSmarty::attachment_get_file_name($basket->product->getMainPicture()->secret_name, $basket->product->getMainPicture()->raw_name, $basket->product->getMainPicture()->file_ext, '_main', 'products') : Yii::app()->theme->baseUrl . '/public/store/default-no-image.png'; ?> <?php echo CHtml::image($imgUrl, $basket->product->lang->name, array('title' => $basket->product->lang->name, 'class' => 'cart-photo')); ?> </a> </td> <td class="goods-page-description"> <h3> <?php echo CHtml::link(CHtml::encode($basket->product->lang->name), 'javascript:void(0)'); ?> </h3> <?php if (empty($basket->product->lang->order_description)) { ?>
?> </a> </h1> <div class="pull-right"> </div> </div> <div class="inbox-view-info"> <div class="row"> <div class="col-md-7"> <?php if ($result[0]['sender_image_secret_name'] != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($result[0]['sender_image_secret_name'], $result[0]['sender_image_raw_name'], $result[0]['sender_image_file_ext'], '_office_profile', 'office_photo'), '', array('height' => '29px')); ?> <?php } else { ?> <i class="fa fa-user inbox-small-user"></i> <?php } ?> <span class="bold"> <?php if (!(bool) $result[0]['is_admin_sender']) { ?> <?php echo CHtml::encode($result[0]['sender_name']); ?>
<?php if ($profile->attachment != NULL && $profile->attachment->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($profile->attachment->secret_name, $profile->attachment->raw_name, $profile->attachment->file_ext, '_office_profile', 'office_photo'), '', array('style' => 'margin:0 15px 0 0;')); } else { ?> <?php echo CHtml::image(Yii::app()->assetManager->getPublishedUrl(Yii::getPathOfAlias('office.modules.profile.css')) . '/img/o.jpg', 'nophoto', array('height' => '200px', 'width' => '200px')); }
<div class="form-group"> <label for="" class="col-md-3 control-label"> <?php echo Yii::t('app', 'Загрузить картинку'); ?> </label> <div class="col-md-4"> <?php if (!$model->isNewRecord) { ?> <div id="td_upload_photo"> <?php if ($model->attachment != NULL && $model->attachment->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($model->attachment->secret_name, $model->attachment->raw_name, $model->attachment->file_ext, '_admin_preview', 'catalogues'), ''); ?> <?php } ?> </div> <div style="display: none;" id="td_upload_form_block"> <?php echo CHtml::fileField('catalogues', null, array('class' => 'normal')); ?> </div> <?php echo CHtml::link(Yii::t('app', 'Отмена'), 'javascript:void(0)', array('id' => 'td_upload_link_cancel', 'class' => 'btn btn-xs grey-cascade', 'style' => 'margin-top:5px;display:none;')); ?> <?php
<tbody> <?php foreach ($carousel->frames as $key => $frame) { ?> <tr> <td> <?php if ($frame->attachment != NULL && $frame->attachment->secret_name != null) { ?> <div class="imgPreview"> <?php echo CHtml::image(MSmarty::attachment_get_file_name($frame->attachment->secret_name, $frame->attachment->raw_name, $frame->attachment->file_ext, '_thumb_list', 'slidebar'), '', array('style' => 'height: 35px;')); ?> <div class="bigImg"> <?php echo CHtml::image(MSmarty::attachment_get_file_name($frame->attachment->secret_name, $frame->attachment->raw_name, $frame->attachment->file_ext, '_thumb_list', 'slidebar'), '', array('style' => 'width: 200px;')); ?> </div> </div> <?php } ?> </td> <td><?php echo CHtml::encode($frame->lang->text); ?> </td> <td><?php echo CHtml::encode($frame->link); ?> </td>
<div class="row"> <div class="col-md-12 news-page blog-page" style="word-wrap: break-word;"> <div class="row"> <div class="col-md-12 blog-tag-data" id="news"> <h3><?php echo CHtml::encode($model->lang->title); ?> </h3> <?php if ($model->attachment != NULL && $model->attachment->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($model->attachment->secret_name, $model->attachment->raw_name, $model->attachment->file_ext, '', 'news_picture'), '', array('class' => 'img-responsive')); ?> <?php } else { ?> <?php echo Yii::t('app', 'Изображение отсутствует'); ?> <?php } ?> <div class="col-md-12 blog-tag-data-inner" style="margin:12px 0"> <ul class="list-inline"> <li style="float:left"> <i class="fa fa-calendar" style="color: #78cff8;"></i> <?php echo Yii::t('app', 'Дата начала публикации'); ?>
<div id="widget_upload" style="display: none; margin-left: 15px; padding-top: 30px;"> <?php $this->widget('FileUpLoad', array('action' => $this->createUrl('user/savePicture/id/' . $model->id), 'after_loading_js_code' => 'img_load(' . $model->id . ');', 'accept' => 'image/*'))->FileLoad(); ?> </div> <div id="picture_inner" style="display: inline;"> <div style="display: inline;"> <?php if ($profile->attachment != NULL && $profile->attachment->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($profile->attachment->secret_name, $profile->attachment->raw_name, $profile->attachment->file_ext, '_office_profile', 'office_photo'), '', array('align' => 'left')); ?> <?php } else { ?> <?php echo CHtml::image(Yii::app()->assetManager->getPublishedUrl(Yii::getPathOfAlias('admin.modules.user.css')) . '/img/o.jpg', 'nophoto', array('height' => '200px', 'width' => '200px', 'align' => 'left')); ?> <?php } ?> </div> <div class="floater"></div> <div id="link_edit">
<div class="form-group"> <label for="" class="col-md-3 control-label" style='float:left;padding:5px;width:15%' > <?php echo Yii::t('app', 'Загрузить картинку'); ?> </label> <div class="col-md-4" style='float:left;padding:5px'> <?php if (!$post->isNewRecord) { ?> <div id="td_upload_photo"> <?php if ($post->attachment != NULL && $post->attachment->secret_name != null) { echo CHtml::image(MSmarty::attachment_get_file_name($post->attachment->secret_name, $post->attachment->raw_name, $post->attachment->file_ext, '_article_head', 'blog_picture'), ''); ?> <?php } else { echo Yii::t('app', 'Отсутствует'); ?> <?php } ?> </div> <?php echo CHtml::link(Yii::t('app', 'Изменить'), 'javascript:void(0)', array('id' => 'td_upload_link_change', 'style' => 'display: block;')); ?> <?php if ($post->attachment != NULL && $post->attachment->secret_name != null) { ?>
echo $padding_left; ?> px;"> <span class="pull-left"> <?php Yii::import('application.modules.admin.modules.user.models.Profile'); Yii::import('application.modules.attachment.models.Attachments'); if (!empty($comment->user->id)) { $profile = Profile::model()->find('user__id =:user__id', array('user__id' => $comment->user->id)); //vg($profile);die ?> <?php if ($profile->attachment != NULL && $profile->attachment->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($profile->attachment->secret_name, $profile->attachment->raw_name, $profile->attachment->file_ext, '_office_profile', 'office_photo'), '', array('class' => "media-object")); ?> <?php } else { ?> <img src="<?php echo Yii::app()->theme->baseUrl; ?> /public/comments/member-photo.png" alt="" class="media-object"> <?php } ?> <?php } else { ?>
</div> </div> <div class="form-group"> <?php echo CHtml::activeLabelEx($model, 'attachment__id_nonactive', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-9"> <?php if (!$model->isNewRecord) { ?> <div id="td_upload_photo_nonactive" class="mb20"> <?php if ($model->attachment_nonactive != NULL && $model->attachment_nonactive->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($model->attachment_nonactive->secret_name, $model->attachment_nonactive->raw_name, $model->attachment_nonactive->file_ext, '_index', 'langs_flag'), ''); ?> <?php } else { ?> <?php echo Yii::t('app', 'Отсутствует'); ?> <?php } ?> </div> <div style="display: none;" id="td_upload_form_block_nonactive"> <div class="input-group input-large fileUpload mb10"> <input type="text" class="form-control file-path" readonly /> <span class="input-group-btn">
</tr> </thead> <tbody> <?php foreach ($profiles as $key => $profile) { ?> <tr> <?php if ($photo) { ?> <td> <?php if ($profile->attachment != NULL && $profile->attachment->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($profile->attachment->secret_name, $profile->attachment->raw_name, $profile->attachment->file_ext, '_search_author_photo', 'office_photo'), ''); ?> <?php } else { ?> <?php } ?> </td> <?php } ?> <?php if ($login) { ?>
<li> <a href="<?php echo Yii::app()->createUrl('/office/message/inbox/read/id/' . $message['id']); ?> "> <span class="photo"> <tr> <td colspan="2"> <div id="show_picture"> <div id="picture_inner"> <?php if ($message['sender_image_secret_name'] != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($message['sender_image_secret_name'], $message['sender_image_raw_name'], $message['sender_image_file_ext'], '_office_profile', 'office_photo'), '', array('align' => 'left', 'style' => 'margin:0 15px 0 0;')); ?> <?php } else { ?> <i class="fa fa-user"></i> <?php } ?> </div> </div> </td> </tr> </span> <span class="subject">
?> " style="color: white;"><?php echo CHtml::encode($frame->lang->text); ?> </p> <?php if ($frame->link != NULL && !empty($frame->link)) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($frame->attachment->secret_name, $frame->attachment->raw_name, $frame->attachment->file_ext, '_carousel', 'slidebar'), '', array('isLink' => TRUE, 'style' => 'cursor: pointer;', 'onClick' => 'location.href="' . $frame->link . '"')); ?> <?php } else { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($frame->attachment->secret_name, $frame->attachment->raw_name, $frame->attachment->file_ext, '_carousel', 'slidebar'), '', array('isLink' => FALSE)); ?> <?php } ?> <?php } ?> <?php } ?> </div> </div> <?php foreach ($carousel->active_frames as $key => $frame) {
?> </div> </div> <div class="form-group"> <label class="col-md-3 control-label"><?php echo Yii::t('app', 'Изображение'); ?> </label> <div class="col-md-9"> <?php if (!$model->isNewRecord) { ?> <div id="td_upload_photo"> <?php if ($model->attachment != NULL && $model->attachment->secret_name != null) { echo CHtml::image(MSmarty::attachment_get_file_name($model->attachment->secret_name, $model->attachment->raw_name, $model->attachment->file_ext, '_home_size_3', 'reviews_picture'), ''); ?> <?php } else { echo Yii::t('app', 'Отсутствует'); ?> <?php } ?> </div> <?php echo CHtml::link(Yii::t('app', 'Изменить'), 'javascript:void(0)', array('id' => 'td_upload_link_change', 'style' => 'display: block;')); ?> <?php if ($model->attachment != NULL && $model->attachment->secret_name != null) { ?>
<ul class="menu2 dropdown-menu"> <?php foreach ($navigations['nodes'] as $navigation) { ?> <?php if ($navigation['is_visible_current']) { ?> <li <?php echo isset($navigation['nodes']) ? 'class="dropdown-submenu"' : ''; ?> > <?php if (!empty($navigation['secret_name']) && !empty($navigation['raw_name']) && !empty($navigation['file_ext'])) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($navigation['secret_name'], $navigation['raw_name'], $navigation['file_ext'], '_menu', 'navigation_ico'), '', array('style' => 'display: inline-block; margin-bottom: 0;')); ?> <?php } else { ?> <?php } ?> <a href="<?php if (!Yii::app()->urlManager->_defaultLang && $navigation['object_alias'] != 'external_link') { ?> /<?php echo Yii::app()->language; } echo $navigation['url'];
</thead> <tbody> <?php foreach ($pictures as $picture) { ?> <tr pictureId="<?php echo $picture->id; ?> "> <td> <a href="<?php echo MSmarty::attachment_get_file_name($picture->secret_name, $picture->raw_name, $picture->file_ext, '', 'products'); ?> " class="fancybox-button" data-rel="fancybox-button"> <img class="img-responsive" src="<?php echo MSmarty::attachment_get_file_name($picture->secret_name, $picture->raw_name, $picture->file_ext, '', 'products'); ?> " alt=""> </a> </td> <td> <input type="radio" name="Pictures[main]" value="<?php echo $picture->id; ?> " style="margin-left: -10px;" <?php if ((bool) $picture->is_main) { ?> checked="checked"<?php } ?> >
<?php endif; ?>*/ ?> <div class="pad-20"></div> <?php foreach ($posts as $key => $post) { ?> <?php if ($post->can_read == '1' or Yii::app()->user->checkAccess('Admin') or Yii::app()->user->checkAccess('Admin')) { ?> <div class="row"> <?php if ($post->attachment != NULL && $post->attachment->secret_name != null) { ?> <div class="col-md-4 col-sm-4 col-xs-4"> <?php echo CHtml::image(MSmarty::attachment_get_file_name($post->attachment->secret_name, $post->attachment->raw_name, $post->attachment->file_ext, '_article_head', 'blog_picture'), '', array('align' => 'left', 'class' => 'img-responsive')); ?> </div> <?php } ?> <?php if ($post->attachment != NULL && $post->attachment->secret_name != null) { ?> <div class="col-md-8 col-sm-8 col-xs-8"> <?php } else { ?> <div class="col-md-12 col-sm-12"> <?php }
<div class="form-body"> <?php $is_attached = true; ?> <div class="form-group mt20"> <?php echo CHtml::activeLabelEx($model, 'attachment__id', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-9"> <div id="show_picture"> <div id="picture_inner" class="mb20"> <?php if ($model->attachment != NULL && $model->attachment->secret_name != null) { ?> <?php echo CHtml::image(MSmarty::attachment_get_file_name($model->attachment->secret_name, $model->attachment->raw_name, $model->attachment->file_ext, '_thumb_list', 'slidebar'), '', array('style' => 'max-width: 50%; border: 1px solid #d8d8d8;')); ?> <?php } ?> </div> <div id="widget_upload" style="display: none;"> <?php $this->widget('FileUpLoad', array('action' => $this->createUrl('savePicture', array('id' => sha1($model->id))), 'after_loading_js_code' => 'img_load("' . sha1($model->id) . '");', 'accept' => 'image/*'))->FileLoad(); ?> </div> <div id="link_edit" class="mb20"> <?php if ($model->attachment != NULL && $model->attachment->secret_name != null) {
<?php foreach ($modelsProducts as $products) { ?> <div class="col-md-4 col-sm-6 col-xs-12"> <div class="product-item"> <div class="product-item-preview-wrapper"> <?php if ($products->getMainPicture() != NULL) { ?> <div class="pi-img-wrapper"> <?php $imgUrl = MSmarty::attachment_get_file_name($products->getMainPicture()->secret_name, $products->getMainPicture()->raw_name, $products->getMainPicture()->file_ext, '', 'products'); ?> <img src="<?php echo $imgUrl; ?> " class="img-responsive" alt="<?php echo CHtml::encode($products->lang->name); ?> "> <div> <?php echo CHtml::link(Yii::t('app', 'Увеличить'), $imgUrl, ['class' => 'btn btn-default fancybox-button']); ?> <?php echo CHtml::link(Yii::t('app', 'Просмотреть'), ['product/view', 'id' => $products->id, 'catalog' => $modelCurrentCatalog->id], ['class' => 'btn btn-default']); ?>