本文整理汇总了PHP中L::ruitem方法的典型用法代码示例。如果您正苦于以下问题:PHP L::ruitem方法的具体用法?PHP L::ruitem怎么用?PHP L::ruitem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类L
的用法示例。
在下文中一共展示了L::ruitem方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
} else {
foreach ($tyres as $model) {
?>
<div>
<?php
echo CHtml::link($model->title, array('tyres/view', 'id' => $model->id));
?>
<span class='many'><?php
echo L::item('tyreSeason', $model->season);
?>
</span>
<?php
echo $model->stud ? 'шипованая' : '';
?>
<?php
echo L::ruitem('tyreConstructionType', $model->construction_type);
?>
шина
<?php
echo $model->runflat_type ? 'с технологией <i>RunFlat</i>' : '';
?>
,
применяемая на <b><?php
echo L::ruitem('tyreCurrency', $model->currency);
?>
</b>.
</div>
<?php
}
}
示例2: array
echo CHtml::link($data->disk->producer->title, array('catalog/disks', 'aliasProducer' => $data->disk->producer->alias));
?>
</i> <?php
echo CHtml::link($data->disk->title, array('catalog/disks', 'aliasProducer' => $data->disk->producer->alias, 'aliasModel' => $data->disk->alias));
?>
</h3>
<b class='size'><?php
echo CHtml::link($data->size, array('catalog/disks', 'aliasProducer' => $data->disk->producer->alias, 'aliasModel' => $data->disk->alias, 'aliasSize' => $data->alias));
?>
</b>
<a class='short_info' href='<?php
echo CHtml::normalizeUrl(array('catalog/disks', 'aliasProducer' => $data->disk->producer->alias, 'aliasModel' => $data->disk->alias, 'aliasSize' => $data->alias));
?>
'>
<?php
echo L::ruitem('diskConstructionType', $data->disk->construction_type);
?>
диск
<?php
echo $data->disk->producer->title . ' ' . $data->disk->title . ' ' . $s;
?>
.</a>
<p class='<?php
echo $data->rest >= 4 ? 'lot' : 'few';
?>
'><?php
echo $data->rest >= 4 ? 'Более четырёх.' : 'Под заказ, уточняйте наличие у менеджера.';
?>
</p>
</li>
示例3: array
<?php
$this->breadcrumbs = array('Диски' => array('index'), $model->title);
$this->menu = array(array('label' => 'Обзор дисков', 'url' => array('index')), array('label' => 'Добавить диск', 'url' => array('create')), array('label' => 'Обновить диск', 'url' => array('update', 'id' => $model->id)), array('label' => 'Удалить диск', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Вы уверены что хотите удалить диск?')), array('label' => 'Управление дисками', 'url' => array('admin')));
?>
<h1>Подробнее о диске #<?php
echo $model->id;
?>
</h1>
<?php
Yii::import('autocatalog.models.*');
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'producer_id', 'type' => 'html', 'value' => CHtml::link($model->producer->title, array('disks/producers/view', 'id' => $model->producer_id))), 'title', 'alias', array('name' => 'photo', 'type' => 'image', 'value' => Image::getFile($model->photo, 'big')), 'description_marked:html', array('name' => 'new', 'value' => L::ruitem('boolean', $model->new)), array('name' => 'sale', 'value' => L::ruitem('boolean', $model->sale)), array('name' => 'construction_type', 'value' => L::item('diskConstructionType', $model->construction_type)), array('name' => 'color', 'value' => L::item('color', $model->color)), array('name' => 'model_id', 'type' => 'html', 'value' => $model->model ? CHtml::link($model->model->title, array('autocatalog/models/view', 'id' => $model->model_id)) : null), array('name' => 'sizes', 'type' => 'html', 'value' => $this->renderPartial('_sizes', array('sizes' => $model->sizes), true)))));
示例4: array
<?php
$this->pageTitle = Yii::app()->name . ' - Профиль';
$this->breadcrumbs = array('Профиль');
?>
<div class='controls'>
<?php
echo CHtml::link('Редактировать профиль', array('users/edit', 'username' => $model->username));
?>
|
<?php
echo CHtml::link('Заказы', array('users/orders', 'username' => $model->username));
?>
</div>
<?php
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('username', 'email', array('name' => 'status', 'value' => L::ruitem('UserStatus', $model->status)), 'client.card', array('name' => 'client.discount', 'type' => 'raw', 'value' => $model->client ? ($model->client->discount ? $model->client->discount : '0') . '%' : null), array('name' => 'avatar', 'type' => 'image', 'value' => $model->avatar ? Image::getFile($model->avatar) : null), 'name', 'created', 'activated', 'birthday', array('name' => 'gender', 'value' => isset($model->gender) ? L::ruitem('gender', $model->gender) : null), 'last_login', 'client.phone', 'client.city', 'client.address')));
示例5: array
$this->pageTitle = Yii::app()->name . ' - История заказов';
$this->breadcrumbs = array('История заказов');
?>
<?php
foreach ($model->orders as $o) {
?>
<div>
<?php
$order = CJSON::decode($o->order);
if (count($order) > 0) {
echo $o->created;
?>
| <?php
echo L::ruitem('orderStatus', $o->status);
?>
| <?php
echo CHtml::link($o->manager, array('managers/view', 'username' => $o->manager));
?>
<table width="100%">
<tr>
<th>Товар</th>
<th>За штуку</th>
<th>Кол-во</th>
<th>Цена</th>
</tr>
<?php
$total = 0;
示例6: array
?>
'><?php
echo L::ruitem('tyreSeason', $size->tyre->season);
?>
</span>
<?php
echo $size->tyre->stud ? 'шипованая' : '';
?>
шина
<?php
echo $size->tyre->producer->title . ' ' . $size->tyre->title . ' ' . $size->size;
if ($size->tyre->currency) {
?>
,
применяемая на <?php
echo L::ruitem('tyreCurrency', $size->tyre->currency);
}
?>
.</a>
</li>
<li>
<span class='price'><big><?php
echo number_format($size->price, 2, ',', ' ');
?>
</big> руб.</span>
<hr class='space'/>
<?php
$this->widget('widgets.shopping.buy', array('model' => $size));
?>
</li>
</ul>
示例7: array
<?php
$this->breadcrumbs = array('Комментарии' => array('index'), $model->id);
$this->menu = array(array('label' => 'Обновить комментарий', 'url' => array('update', 'id' => $model->id)), array('label' => 'Удалить комментарий', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Вы уверены что хотите удалить комментарий?')), array('label' => 'Управление комментариями', 'url' => array('admin')));
?>
<h1>Подробнее о комментарии #<?php
echo $model->id;
?>
</h1>
<?php
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'object_type', 'value' => L::ruitem('CommentType', $model->object_type)), array('name' => 'parentTitle', 'value' => $model->object->title), array('name' => 'url', 'type' => 'raw', 'value' => CHtml::link(@$model->object->url, @$model->object->url)), array('name' => 'author', 'type' => 'raw', 'value' => $model->author), 'text_marked:raw', array('name' => 'created', 'type' => 'text', 'value' => EString::getBackTime($model->created)), 'rating', array('name' => 'status', 'value' => L::ruitem('CommentStatus', $model->status)))));
示例8: array
<?php
$this->breadcrumbs = array('Шины' => array('index'), $model->title);
$this->menu = array(array('label' => 'Обзор шин', 'url' => array('index')), array('label' => 'Добавить шину', 'url' => array('create')), array('label' => 'Обновить шину', 'url' => array('update', 'id' => $model->id)), array('label' => 'Удалить шину', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Вы уверены что хотите удалить шину?')), array('label' => 'Управление шинами', 'url' => array('admin')));
?>
<h1>Подробнее о шине #<?php
echo $model->id;
?>
</h1>
<?php
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'producer_id', 'type' => 'html', 'value' => CHtml::link($model->producer->title, array('producers/tyres/view', 'id' => $model->producer_id))), 'title', 'alias', array('name' => 'photo', 'type' => 'image', 'value' => Image::getFile($model->photo, 'big')), 'description_marked:html', array('name' => 'new', 'value' => L::ruitem('boolean', $model->new)), array('name' => 'sale', 'value' => L::ruitem('boolean', $model->sale)), array('name' => 'currency', 'value' => L::item('tyreCurrency', $model->currency)), array('name' => 'season', 'value' => L::item('tyreSeason', $model->season)), array('name' => 'stud', 'value' => L::ruitem('boolean', $model->stud)), array('name' => 'construction_type', 'value' => L::item('tyreConstructionType', $model->construction_type)), array('name' => 'runflat_type', 'value' => L::ruitem('boolean', $model->runflat_type)), array('name' => 'sizes', 'type' => 'html', 'value' => $this->renderPartial('_sizes', array('sizes' => $model->sizes), true)))));
示例9: array
<b class='size'><?php
echo CHtml::link($data->size, array('catalog/tyres', 'aliasProducer' => $data->tyre->producer->alias, 'aliasModel' => $data->tyre->alias, 'aliasSize' => $data->alias));
?>
</b>
<span class='<?php
echo L::item('tyreSeason', $data->tyre->season);
?>
sign'></span>
<?php
echo $data->tyre->stud ? '<span class="stud sign"></span>' : '';
?>
<a class='short_info' href='<?php
echo CHtml::normalizeUrl(array('catalog/tyres', 'aliasProducer' => $data->tyre->producer->alias, 'aliasModel' => $data->tyre->alias, 'aliasSize' => $data->alias));
?>
'><?php
echo L::ruitem('tyreSeason', $data->tyre->season);
?>
<?php
echo $data->tyre->stud ? 'шипованая' : '';
?>
шина <?php
echo $data->tyre->producer->title . ' ' . $data->tyre->title . ' ' . $s;
?>
.</a>
<p class='<?php
echo $data->rest >= 4 ? 'lot' : 'few';
?>
'><?php
echo $data->rest >= 4 ? 'Более четырёх.' : 'Под заказ, уточняйте наличие у менеджера.';
?>
</p>