当前位置: 首页>>代码示例>>PHP>>正文


PHP AssetsHelper::getImageTagForBoolean方法代码示例

本文整理汇总了PHP中AssetsHelper::getImageTagForBoolean方法的典型用法代码示例。如果您正苦于以下问题:PHP AssetsHelper::getImageTagForBoolean方法的具体用法?PHP AssetsHelper::getImageTagForBoolean怎么用?PHP AssetsHelper::getImageTagForBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AssetsHelper的用法示例。


在下文中一共展示了AssetsHelper::getImageTagForBoolean方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

		<h1><?php 
echo CHtml::encode($model->title);
?>
</h1>
	</div>
	<div id="commandBlock">
		<ul class="menu">
			<li class="list">
				<?php 
echo CHtml::link(Yii::t('app', 'Back to list'), array('/news/news/admin', 'ajax' => 'adminGridView', 'page' => Yii::app()->session->get('admin_current_page'), 'filter' => Yii::app()->session->get('admin_current_filter') ? 1 : 0));
?>
			</li>
			<li class="create">
				<?php 
echo CHtml::link(Yii::t('NewsModule.labels', 'Add a news'), array('/news/news/create'));
?>
			</li>
			<li class="update">
				<?php 
echo CHtml::link(Yii::t('NewsModule.labels', 'Update this news'), array('/news/news/update', "id" => $model->id));
?>
			</li>
		</ul>
	</div>
	<div class="clear"></div>
</div>
<div id="content_section">
	<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array(array('label' => Yii::t('app', 'Enabled'), 'value' => AssetsHelper::getImageTagForBoolean($model->enabled), 'type' => 'html'), array('label' => Yii::t('app', 'Created at'), 'name' => 'created_at', 'type' => 'datetime'), array('label' => Yii::t('app', 'Updated at'), 'name' => 'updated_at', 'type' => 'datetime'), array('label' => '', 'value' => "<hr/>", 'type' => 'html'), array('label' => Yii::t('NewsModule.labels', 'Event date'), 'name' => 'event_date', 'type' => 'datetime'), array('label' => Yii::t('app', 'Title'), 'value' => $model->getTranslation()->title), array('label' => Yii::t('app', 'Description'), 'value' => $model->getTranslation()->description), array('label' => Yii::t('app', 'Keywords'), 'value' => $model->getTranslation()->keywords), array('label' => Yii::t('NewsModule.labels', 'Tags'), 'value' => implode(', ', $model->getTagsNames())), array('label' => Yii::t('NewsModule.labels', 'Translations'), 'value' => implode(', ', $model->getLanguagesCodes())))));
?>
</div>
开发者ID:ChristopheBrun,项目名称:hLib,代码行数:31,代码来源:view.php

示例2: array

		<h1><?php 
echo CHtml::encode($model->name);
?>
</h1>
	</div>
	<div id="commandBlock">
		<ul class="menu">
			<li class="list">
				<?php 
echo CHtml::link(Yii::t('app', 'Back to list'), array('/admin/language/admin', 'ajax' => 'adminGridView', 'page' => Yii::app()->session->get('admin_current_page'), 'filter' => Yii::app()->session->get('admin_current_filter') ? 1 : 0));
?>
			</li>
			<li class="create">
				<?php 
echo CHtml::link(Yii::t('AdminModule.labels', 'Add a language'), array('/admin/language/create'));
?>
			</li>
			<li class="update">
				<?php 
echo CHtml::link(Yii::t('AdminModule.labels', 'Update this language'), array('/admin/language/update', "id" => $model->id));
?>
			</li>
		</ul>
	</div>
	<div class="clear"></div>
</div>
<div id="content_section">
	<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array(array('name' => 'enabled', 'value' => AssetsHelper::getImageTagForBoolean($model->enabled), 'type' => 'html'), array('name' => 'created_at', 'type' => 'datetime'), array('name' => 'updated_at', 'type' => 'datetime'), 'code', 'name')));
?>
</div>
开发者ID:ChristopheBrun,项目名称:hLib,代码行数:31,代码来源:view.php

示例3: implode

		<b><?php 
echo Yii::t('app', 'Texts');
?>
:</b>
		<?php 
echo implode(', ', $data->getTextsNames());
?>
		<br/>
	</div>
	<div class="adminData">
		<b><?php 
echo CHtml::encode($data->getAttributeLabel('enabled'));
?>
:</b>
		<?php 
echo AssetsHelper::getImageTagForBoolean($data->enabled);
?>
		<br/>

		<b><?php 
echo CHtml::encode($data->getAttributeLabel('created_at'));
?>
:</b>
		<?php 
echo CHtml::encode(CodeGeneratorHelper::getFormattedValue('datetime', $data->created_at));
?>
		<br/>

		<b><?php 
echo CHtml::link($data->getAttributeLabel('updated_at'), array($this->id . '/update/id/' . $data->id));
?>
开发者ID:ChristopheBrun,项目名称:hLib,代码行数:31,代码来源:_view.php

示例4: array

		<h1><?php 
echo CHtml::encode($model->title);
?>
</h1>
	</div>
	<div id="commandBlock">
		<ul class="menu">
			<li class="list">
				<?php 
echo CHtml::link(Yii::t('app', 'Back to list'), array('/webPages/webPage/admin', 'ajax' => 'adminGridView', 'page' => Yii::app()->session->get('admin_current_page'), 'filter' => Yii::app()->session->get('admin_current_filter') ? 1 : 0));
?>
			</li>
			<li class="create">
				<?php 
echo CHtml::link(Yii::t('WebPagesModule.labels', 'Add a web page'), array('/webPages/webPage/create'));
?>
			</li>
			<li class="update">
				<?php 
echo CHtml::link(Yii::t('WebPagesModule.labels', 'Update this web page'), array('/webPages/webPage/update', "id" => $model->id));
?>
			</li>
		</ul>
	</div>
	<div class="clear"></div>
</div>
<div id="content_section">
	<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array(array('name' => 'enabled', 'value' => AssetsHelper::getImageTagForBoolean($model->enabled), 'type' => 'html'), array('name' => 'created_at', 'type' => 'datetime'), array('name' => 'updated_at', 'type' => 'datetime'), 'name', 'title', 'description', 'keywords', array('name' => 'webTexts', 'value' => implode(', ', $model->getTextsNames())))));
?>
</div>
开发者ID:ChristopheBrun,项目名称:hLib,代码行数:31,代码来源:view.php


注:本文中的AssetsHelper::getImageTagForBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。