Example #1
0
                                            <?php 
    foreach ($lastOrder['result'] as $lastOrderDataset) {
        ?>
                                                <tr style="display: none;" class="table-order-status table-order-status-<?php 
        echo $orderStatus;
        ?>
">
                                                    <td><?php 
        echo CHtml::encode($lastOrderDataset->last_name);
        ?>
 <?php 
        echo CHtml::encode($lastOrderDataset->first_name);
        ?>
</td>
                                                    <td><?php 
        echo MSmarty::date_format($lastOrderDataset->created_at, 'd.m.Y H:i');
        ?>
</td>
                                                    <td><?php 
        echo sprintf('%.2f', $lastOrderDataset->total_price);
        ?>
 <?php 
        echo $mainCurrencyAbbr;
        ?>
</td>
                                                    <td>
                                                        <?php 
        if ($lastOrderDataset->status == Horders::STATUS_NEW) {
            ?>
                                                            <?php 
            $class = 'label-warning';
Example #2
0
                            
											<td><?php 
        echo MSmarty::date_format($review->created_at, 'd.m.Y');
        ?>
</td>
											<?php 
        if (Yii::app()->user->username == Yii::app()->params['superAdminInfo']['username']) {
            ?>
												<td><?php 
            if ($review->creator != NULL) {
                echo $review->creator->username;
            }
            ?>
</td>
												<td><?php 
            echo MSmarty::date_format($review->modified_at, 'd.m.Y');
            ?>
</td>
												<td><?php 
            if ($review->redactor != NULL) {
                echo $review->redactor->username;
            }
            ?>
</td>
											<?php 
        }
        ?>
											<td>
												<?php 
        if (Yii::app()->user->checkAccess('AdminReviewsReviewsViewreviews')) {
            ?>
Example #3
0
                            <td style="padding-left: 15px; padding-right: 5px;"><?php 
        echo CHtml::encode($value->lang->description);
        ?>
</td>
                            <td><?php 
        echo MSmarty::date_format($value->created_at, 'd.m.Y');
        ?>
</td>
                            <td><?php 
        if ($value->creator != NULL) {
            echo $value->creator->username;
        }
        ?>
</td>
                            <td><?php 
        echo MSmarty::date_format($value->modified_at, 'd.m.Y');
        ?>
</td>
                            <td><?php 
        if ($value->redactor != NULL) {
            echo $value->redactor->username;
        }
        ?>
</td>
                            <td style="padding-left: 15px; padding-right: 5px;">
                                <a href="<?php 
        echo $this->createUrl('conditions/view/id/' . $value->id);
        ?>
">Просмотреть</a>
                                <a href="<?php 
        echo $this->createUrl('conditions/create/action/edit/id/' . $value->id);
Example #4
0
                echo Yii::t('app', 'Держатель склада не найден');
                ?>
</span>
											<?php 
            }
            ?>
										<?php 
        }
        ?>
									</td>
									<td style="text-align: center;"><?php 
        echo CHtml::encode($value->lang->adress);
        ?>
</td>
									<td style="text-align: center;"><?php 
        echo MSmarty::date_format($value->created_at, 'd.m.Y');
        ?>
</td>
									<td style="text-align: center;">
										<?php 
        if (Yii::app()->user->checkAccess('AdminWarehouseWarehouseView')) {
            ?>
											<?php 
            echo CHtml::link('<i class="glyphicon glyphicon-eye-open"></i>', array('view', 'id' => $value->id), array('class' => 'btn blue-steel'));
            ?>
										<?php 
        }
        ?>
										
										<?php 
        if (Yii::app()->user->checkAccess('AdminWarehouseWarehouseUpdate')) {
Example #5
0
<?php

if ($news == null) {
    echo Yii::t('app', 'Новостей нет');
} else {
    ?>
        
    <?php 
    foreach ($news as $key => $new) {
        ?>
        <div class="news-date"><?php 
        echo MSmarty::date_format($new->publication_from, 'd.m.Y');
        ?>
 <?php 
        echo MSmarty::date_format($new->publication_from, '%H:%M');
        ?>
, <?php 
        echo MSmarty::day_of_week($new->publication_from);
        ?>
</div>
        <p><?php 
        echo CHtml::encode($new->lang->brief_text);
        ?>
</p>     
    <?php 
    }
    $this->widget('CLinkPager', array('pages' => $pages));
}
Example #6
0
                    } elseif ($field['table'] == 'printout') {
                        ?>
	
													
													<?php 
                        //vg($field['alias']);die;
                        ?>
													<?php 
                        if ((bool) $field['used'] || Yii::app()->user->checkAccess('OfficeStatsSettingsIndex') && (bool) $field['used']) {
                            ?>
														<?php 
                            if ($field['format'] == 'date') {
                                ?>
															<td>
																<?php 
                                echo MSmarty::date_format($value->printout[$field['alias']], 'd.m.Y');
                                ?>
															</td>	
														<?php 
                            } else {
                                ?>
															<td>
																<?php 
                                echo CHtml::encode($value->printout[$field['alias']]);
                                ?>
															</td>														
														<?php 
                            }
                            ?>
												
													<?php 
Example #7
0
        ?>
											<?php 
    } elseif ($result[0]['recipient_id'] == Messages::MESSAGE_RECIPIENT_TYPE_STRUCTURE) {
        echo Yii::t('app', 'Моей структуре');
        ?>
											<?php 
    } else {
        echo $result[0]['recipient_name'] . ' (' . $result[0]['recipient_login'] . ')';
        ?>
											<?php 
    }
    ?>
							</span>				
							
						<?php 
    echo MSmarty::date_format($result[0]['date'], 'd.m.Y H:i');
    ?>
						</div>
						<div class="col-md-5 inbox-info-btn">
							<div class="btn-group">
								<button class="btn blue reply-btn" onClick="window.location = app.createAbsoluteUrl('office/message/default/create/messageId/<?php 
    echo $result[0]["id"];
    ?>
')"><i class="fa fa-reply"></i> <?php 
    echo Yii::t('app', 'Переслать');
    ?>
 </button>
								<button data-toggle="dropdown" class="btn blue dropdown-toggle">
									<i class="fa fa-angle-down"></i>
								</button>
								<ul class="dropdown-menu pull-right">
Example #8
0
        <td style="padding-left: 15px;"><?php 
echo $user['user']->username;
?>
</td>
    </tr>
    <tr>
        <td>Email пользователя:</td>
        <td style="padding-left: 15px;"><?php 
echo $user['user']->email;
?>
</td>
    </tr>
    <tr>
        <td>Дата регистрации:</td>
        <td style="padding-left: 15px;"><?php 
echo MSmarty::date_format($user['user']->created_at, 'd.m.Y');
?>
</td>
    </tr>
</table>
<br /><br />
<table>
    <tr>
        <th>Роль</th>
        <th>Описание</th>
        <th>По умолчанию</th>
        <th>Действия</th>
    </tr>
    <?php 
foreach ($user['default'] as $key => $value) {
    ?>
Example #9
0
<br/>
                                                <?php 
            }
            ?>
                                                <?php 
            if ($company->modified_at != NULL) {
                ?>
                                                    <span class='text-semibold'><?php 
                echo Yii::t('app', 'Дата редактирования');
                ?>
:</span>
                                                    <?php 
                echo MSmarty::date_format($company->modified_at, 'd.m.Y');
                ?>
 <?php 
                echo MSmarty::date_format($company->modified_at, 'H:i');
                ?>
<br/>
                                                <?php 
            }
            ?>
                                                <?php 
            if ($company->redactor != NULL) {
                ?>
                                                    <span class='text-semibold'><?php 
                echo Yii::t('app', 'Логин редактировавшего');
                ?>
:</span>
                                                    <?php 
                echo $company->redactor->username;
                ?>
Example #10
0
        ?>
<a name="<?php 
        echo $comment->id;
        ?>
"></a> 
                <div class="review-item clearfix">
                    <div class="review-item-submitted">
                        <strong><?php 
        echo CHtml::encode($comment->name);
        ?>
</strong>
                        <em><?php 
        echo MSmarty::date_format($comment->created_at, 'd.m.Y');
        ?>
 - <?php 
        echo MSmarty::date_format($comment->created_at, 'H:i');
        ?>
</em>
                        <?php 
        if ((bool) $this->isRatio && $comment->rating > 0) {
            ?>
                            <div class="rateit" data-rateit-value="<?php 
            echo sprintf('%.1f', $comment->rating);
            ?>
" data-rateit-ispreset="true" data-rateit-readonly="true"></div>
                        <?php 
        }
        ?>
                    </div>
                    <div class="review-item-content">
                        <?php 
        </tr>
        <tr>
            <td class="text-left">
                <?php 
echo Yii::t('app', 'Два года назад');
?>
:
            </td>
            <td>
                <b>
                    <?php 
echo MSmarty::date_format($report['years2']['date_from'], 'd.m.Y');
?>
 -
                    <?php 
echo MSmarty::date_format($report['years2']['date_end'], 'd.m.Y');
?>
                </b>
            </td>
            <td class="text-right">
                <?php 
echo $report['years2']['years2'];
?>
 <?php 
echo Yii::t('app', 'чел.');
?>
            </td>
        </tr>
    </tbody>
</table>
Example #12
0
<br/>
                                                <?php 
                }
                ?>
                                                <?php 
                if ($model->modified_at != NULL) {
                    ?>
                                                    <span class='text-semibold'><?php 
                    echo Yii::t('app', 'Дата редактирования');
                    ?>
:</span>
                                                    <?php 
                    echo MSmarty::date_format($model->modified_at, 'd.m.Y');
                    ?>
 <?php 
                    echo MSmarty::date_format($model->modified_at, 'H:i');
                    ?>
<br/>
                                                <?php 
                }
                ?>
                                                <?php 
                if ($model->redactor != NULL) {
                    ?>
                                                    <span class='text-semibold'><?php 
                    echo Yii::t('app', 'Логин редактировавшего');
                    ?>
:</span>
                                                    <?php 
                    echo $model->redactor->username;
                    ?>
Example #13
0
								</div>
								<?php 
}
?>
      

								<?php 
if (array_key_exists('birthday', $list)) {
    ?>
								<div class="form-group" style="margin-top: 30px;">
									<?php 
    echo $form->label($profile, 'birthday', array('class' => 'col-md-3 text-right'));
    ?>
									<div class="col-md-9 text-light">
										<?php 
    echo MSmarty::date_format($profile->birthday, 'd.m.Y');
    ?>
									</div>
								</div>
								<?php 
}
?>
      

								<?php 
if (array_key_exists('sex', $list)) {
    ?>
								<div class="form-group" style="margin-top: 30px;">
									<?php 
    echo $form->label($profile, 'sex', array('class' => 'col-md-3 text-right'));
    ?>
Example #14
0
    echo CHtml::encode($value->lang->name);
    ?>
</td>
                                    <td><?php 
    echo $value->getUserCount();
    ?>
</td>
                                    <td>
                                        <?php 
    if ($value->last_user_token != NULL) {
        ?>
                                            <?php 
        echo MSmarty::date_format($value->last_user_token->created_at, 'd.m.Y');
        ?>
 <?php 
        echo MSmarty::date_format($value->last_user_token->created_at, 'H:i');
        ?>
                                        <?php 
    }
    ?>
                                
                                    </td>
                                    <td>
                                        <?php 
    if (Yii::app()->user->checkAccess('AdminMatrixMatrixStructure')) {
        ?>
                                            <?php 
        echo CHtml::link(Yii::t('app', 'Структура'), $this->createUrl('matrix/structure', array('id' => $value->id)));
        ?>
                                        <?php 
    }
Example #15
0
<td>
    <?php 
if ($modelTransaction->spec->paysystem != NULL) {
    ?>
        <?php 
    echo CHtml::encode($modelTransaction->spec->paysystem->brif_text);
    ?>
    <?php 
}
?>
</td>
<td><?php 
echo MSmarty::date_format($modelTransaction->date_open, 'd.m.Y');
?>
 <?php 
echo MSmarty::date_format($modelTransaction->date_open, 'H:i:s');
?>
</td>
<td class="more-td">

    <?php 
if ($modelTransaction->status_alias == FinanceTransactions::status_open || $modelTransaction->status_alias == FinanceTransactions::status_pending) {
    ?>

        <?php 
    if ($modelTransaction->status_alias == FinanceTransactions::status_open && Yii::app()->user->checkAccess('AdminFinanceTransactionsPending')) {
        ?>
            <?php 
        echo CHtml::linkButton('<i class="fa fa-refresh"></i>', array('submit' => array('pending', 'id' => $modelTransaction->id), 'params' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken), 'confirm' => Yii::t('app', 'Обновить статус финансовой операции ?'), 'class' => 'btn btn-xs btn-icon blue-madison tooltips', 'data-placement' => 'top', 'data-original-title' => Yii::t('app', 'В процессе')));
        ?>
        
Example #16
0
            ?>
									<span class="false">&nbsp;</span>
								<?php 
        }
        ?>
							</td>
							<td><?php 
        echo count($slide->frames);
        ?>
</td>
							<td><?php 
        echo count($slide->active_frames);
        ?>
</td>
							<td><?php 
        echo MSmarty::date_format($slide->created_at, 'd.m.Y');
        ?>
</td>
							<td>
								<?php 
        if (Yii::app()->user->checkAccess('AdminSlidebarListIndex')) {
            ?>
									<?php 
            echo CHtml::link(Yii::t('app', 'Параметры карусели'), $this->createUrl('params', array('id' => sha1($slide->id))));
            ?>
<br />
								<?php 
        }
        ?>
								<?php 
        if (Yii::app()->user->checkAccess('AdminSlidebarListEdit')) {
Example #17
0
                                    <?php 
            if ((bool) $isPoints) {
                ?>
                                        <td><?php 
                echo CHtml::encode(round($order->total_points, 2));
                ?>
</td> 
                                    <?php 
            }
            ?>
                                    <td>
                                        <?php 
            echo MSmarty::date_format($order->created_at, 'd.m.Y');
            ?>
 <?php 
            echo MSmarty::date_format($order->created_at, '%H:%M');
            ?>
                                    </td>
                                    <td>
                                        <?php 
            if ($order->status == Horders::STATUS_NEW) {
                ?>
                                            <?php 
                $class = 'label-warning';
                ?>
                                        <?php 
            } elseif ($order->status == Horders::STATUS_PROCESSING) {
                ?>
                                            <?php 
                $class = 'label-info';
                ?>
Example #18
0
    ?>
</td>
            </tr>
        <?php 
} else {
    ?>
            <?php 
    foreach ($dataset as $value) {
        ?>
                <tr>
                    <td>
                        <?php 
        echo MSmarty::date_format($value->created_at, 'd.m.Y');
        ?>
 <?php 
        echo MSmarty::date_format($value->created_at, '%H:%M');
        ?>
                    </td>
                    <td><?php 
        echo CHtml::encode($value->name);
        ?>
 <?php 
        if ($value->user != NULL) {
            ?>
 (<?php 
            echo Yii::t('app', 'Логин пользователя');
            ?>
: <?php 
            echo CHtml::encode($value->user->username);
            ?>
)<?php 
Example #19
0
			</div>
		</div>
		
        <div class="row">
			<div class="col-md-3">
				<h4 class="h4-label"><?php 
echo $post->getAttributeLabel('publication_post');
?>
</h4>
			</div>
			<div class="col-md-9">
				<h4><?php 
echo MSmarty::date_format($post->publication_post, 'd.m.Y');
?>
 <?php 
echo MSmarty::date_format($post->publication_post, '%H:%M');
?>
</h4>
			</div>
		</div>
        
		<div class="row">
			<div class="col-md-3">
				<h4 class="h4-label"><?php 
echo $post->getAttributeLabel('status_id');
?>
</h4>
			</div>
			<div class="col-md-9">
				<h4><?php 
echo CHtml::encode(BlogPosts::LabelsStatus($post->status_id));
Example #20
0
            } else {
                echo $message['recipient_name'] . ' (' . $message['recipient_login'] . ')';
                ?>
                                <?php 
            }
            ?>
  
                            </td>
                            <td class="view-message">
                                <?php 
            echo CHtml::encode($message['title']);
            ?>
                            </td>
                            <td class="view-message text-right">
                                <?php 
            echo MSmarty::date_format($message['date'], 'd.m.Y');
            ?>
                            </td>
							<td class="inbox-small-cells">
							<?php 
            if ($this->_checkAccessForDelete($message)) {
                ?>
								<?php 
                echo CHtml::beginForm(Yii::app()->createUrl('/office/message/default/delete/id/' . $message['id']), 'post');
                ?>
									<i class="fa fa-trash-o" onclick="return confirm('Удалить?') ? this.parentNode.submit() : false;"></i>
								<?php 
                echo CHtml::endForm();
                ?>
							<?php 
            }
Example #21
0
								</li>
								<li style="width: 33%;">
									<?php 
if ($modelTransaction->status_alias == FinanceTransactions::status_closed) {
    echo Yii::t('app', 'Проведен');
    ?>
: <?php 
    echo MSmarty::date_format($modelTransaction->date_closed, '%d.%m.%Y %H:%M:%S');
}
?>
									<?php 
if ($modelTransaction->status_alias == FinanceTransactions::status_decline) {
    echo Yii::t('app', 'Отклонен');
    ?>
: <?php 
    echo MSmarty::date_format($modelTransaction->date_decline, '%d.%m.%Y %H:%M:%S');
}
?>
								</li>
							</ul>
							<div class="well">
								<?php 
echo $modelTransaction->description;
?>
							</div>
						</div>
					</div>
				</td>
			</tr>
		</table>
	</div>
Example #22
0
?>

<div>
    <p>
        Здесь можно задать смещения времени на указанное количество месяцев или дней, которое будет использовано для установки времени.
        Т.е. при установке этих значений, можно оттестировать работу приложения, в разном времени.
    </p>
    <?php 
echo CHtml::beginForm();
?>

        <table class="form">
            <tr>
                <td>Дата, которая сейчас в БД:</td>
                <td><b><?php 
echo MSmarty::date_format($date, 'd.m.Y');
?>
</b></td>
            </tr>
            <tr>
                <td>Дата смещается на:</td>
                <td>
                    <?php 
echo CHtml::textField('offset_month', $offset_month);
?>
 месяцев.</td>
            </tr>
            <tr>
                <td>Дата смещается на:</td>
                <td><?php 
echo CHtml::textField('offset_day', $offset_day);
Example #23
0
<br/>
                                                    <?php 
                }
                ?>
                                                    <?php 
                if ($faq->modified_at != NULL) {
                    ?>
                                                        <span class='text-semibold'><?php 
                    echo Yii::t('app', 'Дата редактирования');
                    ?>
:</span>
                                                        <?php 
                    echo MSmarty::date_format($faq->modified_at, 'd.m.Y');
                    ?>
 <?php 
                    echo MSmarty::date_format($faq->modified_at, 'H:i');
                    ?>
<br/>
                                                    <?php 
                }
                ?>
                                                    <?php 
                if ($faq->redactor != NULL) {
                    ?>
                                                        <span class='text-semibold'><?php 
                    echo Yii::t('app', 'Логин редактировавшего');
                    ?>
:</span>
                                                        <?php 
                    echo $faq->redactor->username;
                    ?>
Example #24
0
						<td><?php 
        echo MSmarty::date_format($modelTransaction->date_open, 'd.m.Y');
        ?>
 <?php 
        echo MSmarty::date_format($modelTransaction->date_open, '%H:%M');
        ?>
</td>
						<td>
							<?php 
        if ($modelTransaction->date_closed != NULL) {
            ?>
								<?php 
            echo MSmarty::date_format($modelTransaction->date_closed, 'd.m.Y');
            ?>
 <?php 
            echo MSmarty::date_format($modelTransaction->date_closed, '%H:%M');
            ?>
							<?php 
        }
        ?>
						</td>
					</tr>
				<?php 
    }
    ?>
			</tbody>
		</table>
		<?php 
    $this->widget('CLinkPager', array('pages' => $pages, 'nextPageLabel' => '<i class="fa fa-angle-double-right"></i>', 'prevPageLabel' => '<i class="fa fa-angle-double-left"></i>', 'header' => '', 'htmlOptions' => array('class' => 'pagination')));
    ?>
		<?php 
Example #25
0
            echo $objectInstalled['version'];
            ?>
</span>
												<?php 
        }
        ?>
											<?php 
    }
    ?>
										</div>
									</div>
								</div>
							</div>
							<div class="col2">
								<div class="date">
									<?php 
    echo MSmarty::date_format($object['publication_date'], '%d.%m.%Y');
    ?>
								</div>
							</div>
						</li>
						<?php 
}
?>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="clearfix">
Example #26
0
?>
 
                        </li>
                        <?php 
if ($model->publication_end != NULL) {
    ?>
						<li style="float:right">
                            <i class="fa fa-calendar" style="color: #78cff8;"></i>
                            <?php 
    echo Yii::t('app', 'Дата окончания публикации');
    ?>
: <?php 
    echo MSmarty::date_format($model->publication_end, 'd.m.Y');
    ?>
 <?php 
    echo MSmarty::date_format($model->publication_end, '%H:%M');
    ?>
                        </li>
						<?php 
}
?>
                    </ul>
                </div>
				
                <div class="news-item-page">
					<h5 style="margin-top:0;font-size:13px;">Сокращенный текст:</h5>
                    <blockquote class="hero">
                        <div style="font-size:13px"><?php 
echo $model->lang->brief_text;
?>
</div>
Example #27
0
<br/>
                                                <?php 
                }
                ?>
                                                <?php 
                if ($page->modified_at != NULL) {
                    ?>
                                                    <span class='text-semibold'><?php 
                    echo Yii::t('app', 'Дата редактирования');
                    ?>
:</span>
                                                    <?php 
                    echo MSmarty::date_format($page->modified_at, 'd.m.Y');
                    ?>
 <?php 
                    echo MSmarty::date_format($page->modified_at, 'H:i');
                    ?>
<br/>
                                                <?php 
                }
                ?>
                                                <?php 
                if ($page->redactor != NULL) {
                    ?>
                                                    <span class='text-semibold'><?php 
                    echo Yii::t('app', 'Логин редактировавшего');
                    ?>
:</span>
                                                    <?php 
                    echo $page->redactor->username;
                    ?>
Example #28
0
										<?php 
}
?>
 
									</span>
								</div>
							</div>
							<div class="row static-info">
								<div class="col-md-5 name">
									<?php 
echo Yii::t('app', 'Дата совершения заказа');
?>
								</div>
								<div class="col-md-7 value">
									<?php 
echo MSmarty::date_format($horder->created_at, 'd.m.Y H:i');
?>
								</div>
							</div>
							<div class="row static-info">
								<div class="col-md-5 name">
									 <?php 
echo Yii::t('app', 'Статус заказа');
?>
:
								</div>
								<div class="col-md-7 value">
                                    <?php 
if ($horder->status == Horders::STATUS_NEW) {
    ?>
                                        <?php 
Example #29
0
            <tr>
                <td>
                    <div><?php 
    echo $item['username'];
    ?>
</div>
                </td>
                <td>
                    <div><?php 
    echo $item['email'];
    ?>
</div>
                </td>
                <td>
                    <div><?php 
    echo MSmarty::date_format($item['created_at'], 'd.m.Y');
    ?>
</div>
                </td>
                <td>
                    <div>
                        <?php 
    foreach ($item['default'] as $key => $value) {
        ?>
                            <?php 
        echo $value->description;
        ?>
 <?php 
        if (isset($item['default'][$key + 1]) || !empty($item['assignment'])) {
            ?>
,&nbsp;<?php 
Example #30
0
        } else {
            ?>
                                                    <?php 
            echo Yii::t('app', 'Не указанно');
            ?>
.
                                            <?php 
        }
        ?>
                                            
                                        </td>
                                        <td><?php 
        echo MSmarty::date_format($log['created_at'], 'd.m.Y');
        ?>
 <?php 
        echo MSmarty::date_format($log['created_at'], '%H:%M:%S');
        ?>
</td>
                                        <td><?php 
        echo $log['url'];
        ?>
</td>
                                        <td>
                                            <?php 
        if ($log->transaction != NULL) {
            ?>
                                                <?php 
            echo CHtml::encode($log->transaction->spec->title);
            ?>
                                            <?php 
        }