本文整理汇总了PHP中Y::endTab方法的典型用法代码示例。如果您正苦于以下问题:PHP Y::endTab方法的具体用法?PHP Y::endTab怎么用?PHP Y::endTab使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Y
的用法示例。
在下文中一共展示了Y::endTab方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handlerAddGalleryTab
public function handlerAddGalleryTab($event)
{
Y::beginTab('Галлерея');
$this->renderPartial('_adminTab', array('model'=>$event->model, 'form'=>$event->form));
Y::endTab();
}
示例2: array
<?php Y::beginTab('Настройки')?>
<?php Admin::makeTextFields($form, $model, array('title', 'second_title', 'alias'))?>
<div class="row">
<div class="left"><?php echo $form->labelEx($model,'published')?></div>
<div class="right">
<?php if ($model->isNewRecord) $model->published = Record::PUBLISHED?>
<?php echo $form->radioButtonList($model,'published',Lookup::items('FPublished'));?>
</div>
</div>
<?php Admin::makeDateFields($form, $model, 'created', 'dd.mm.yy'); ?>
<?php Y::endTab()?>
<?php Admin::makeTinyTabs($form, $model, array('text', 'descr'))?>
示例3: makeTinyTabs
public static function makeTinyTabs($form, $model, $attributes)
{
foreach ((array)$attributes as $attr) {
Y::beginTab($model->getAttributeLabel($attr));
Y::controller()->widget('ext.tiny_mce.TinyMCE', array(
'model' => $model,
'attribute' => $attr
));
echo $form->error($model,$attr);
Y::endTab();
}
}
示例4: array
Admin::makeTextFields($form, $model, array('title', 'alias')) ?>
<div class="row">
<div class="left"><?php echo $form->labelEx($model,'published') ?></div>
<div class="right">
<?php echo $form->radioButtonList($model,'published',Lookup::items('MPublished')) ?>
</div>
</div>
<div class="row">
<div class="left"<?php echo $form->labelEx($model,'is_empty') ?></div>
<div class="right">
<?php echo $form->radioButtonList($model,'is_empty',Lookup::items('YesNo')) ?>
</div>
</div>
<?php if ($model->isNewRecord) { ?>
<div class="row">
<div class="left"><?php echo $form->labelEx($model,'type') ?></div>
<div class="right">
<?php echo $form->dropDownList($model,'type',ModelFactory::getTypes()) ?>
</div>
</div>
<?php } ?>
<?php
Y::endTab();
Y::beginTab('Метаданные');
Admin::makeTextFields($form, $model, array('meta_title', 'meta_descr', 'meta_keywords'));
Y::endTab();
Y::getTabs();
$this->endWidget() ?>
</div><!-- form -->
示例5: adminForm
public function adminForm()
{
$dir = 'mainContent.components.widgets.views.MainContent.'.$this->widgetModel->pk.'.';
Y::beginTab('Шаблон списка');
$this->widget('CodeMirror', array(
'type'=>'text/html',
'id'=>'main_content_list_template',
'content'=>FileSystem::read(Yii::getPathOfAlias($dir.'listTemplate').'.twig'),
'name'=>'list-template'
));
Y::endTab();
Y::beginTab('Шаблон элемента');
$this->widget('CodeMirror', array(
'type'=>'text/html',
'id'=>'main_content_item',
'content'=>FileSystem::read(Yii::getPathOfAlias($dir.'item').'.twig'),
'name'=>'item'
));
Y::endTab();
Y::beginTab('Шаблон полный');
$this->widget('CodeMirror', array(
'type'=>'text/html',
'id'=>'main_content_full',
'content'=>FileSystem::read(Yii::getPathOfAlias($dir.'full').'.twig'),
'name'=>'full'
));
Y::endTab();
}