當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GxHtml::valueEx方法代碼示例

本文整理匯總了PHP中GxHtml::valueEx方法的典型用法代碼示例。如果您正苦於以下問題:PHP GxHtml::valueEx方法的具體用法?PHP GxHtml::valueEx怎麽用?PHP GxHtml::valueEx使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GxHtml的用法示例。


在下文中一共展示了GxHtml::valueEx方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model));
$this->menu = array(array('label' => Yii::t('app', 'Listar') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Agregar') . ' ' . $model->label(), 'url' => array('create')), array('label' => Yii::t('app', 'Editar') . ' ' . $model->label(), 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('app', 'Borrar') . ' ' . $model->label(), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => Yii::t('app', 'Administrar') . ' ' . $model->label(2), 'url' => array('admin')));
?>

<h1><?php 
echo GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model));
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('nombre', array('name' => 'idAreaEmpresa', 'type' => 'raw', 'value' => $model->idAreaEmpresa !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->idAreaEmpresa)), array('areasEmpresa/view', 'id' => GxActiveRecord::extractPkValue($model->idAreaEmpresa, true))) : null))));
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:13,代碼來源:view.php

示例2:

	<br />

	<?php 
echo GxHtml::encode($data->getAttributeLabel('code'));
?>
:
	<?php 
echo GxHtml::encode($data->code);
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('action'));
?>
:
		<?php 
echo GxHtml::encode(GxHtml::valueEx($data->action0));
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('action_date'));
?>
:
	<?php 
echo GxHtml::encode($data->action_date);
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('deleted_at'));
?>
:
	<?php 
開發者ID:hanihh,項目名稱:vvs_v2,代碼行數:31,代碼來源:_view.php

示例3: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model) => array('view', 'id' => GxActiveRecord::extractPkValue($model, true)), Yii::t('app', 'Update'));
$this->menu = array(array('label' => Yii::t('app', 'Manage') . ' ' . IguCompanytype::label(2), 'url' => array('admin')));
$this->beginWidget('zii.widgets.CPortlet', array('htmlOptions' => array('class' => '')));
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => 'Create', 'icon' => 'icon-plus', 'url' => Yii::app()->controller->createUrl('create'), 'linkOptions' => array()), array('label' => 'List', 'icon' => 'icon-th-list', 'url' => Yii::app()->controller->createUrl('index'), 'linkOptions' => array()), array('label' => 'Manage', 'icon' => 'icon-search', 'url' => Yii::app()->controller->createUrl('admin'), 'linkOptions' => array('class' => 'search-button')), array('label' => 'Export to PDF', 'icon' => 'icon-download', 'url' => Yii::app()->controller->createUrl('GeneratePdf'), 'linkOptions' => array('target' => '_blank'), 'visible' => true), array('label' => 'Export to Excel', 'icon' => 'icon-download', 'url' => Yii::app()->controller->createUrl('GenerateExcel'), 'linkOptions' => array('target' => '_blank'), 'visible' => true))));
$this->endWidget();
?>

<h3><?php 
echo Yii::t('app', 'Update') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model));
?>
</h3>

<?php 
$this->renderPartial('_form', array('model' => $model));
開發者ID:cntabana,項目名稱:inyungu,代碼行數:16,代碼來源:update.php

示例4: array

    echo GxHtml::openTag('li');
    echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('actor/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
    echo GxHtml::closeTag('li');
}
echo GxHtml::closeTag('ul');
?>
<h2><?php 
echo GxHtml::encode($model->getRelationLabel('categories'));
?>
</h2>
<?php 
echo GxHtml::openTag('ul');
foreach ($model->categories as $relatedModel) {
    echo GxHtml::openTag('li');
    echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('category/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
    echo GxHtml::closeTag('li');
}
echo GxHtml::closeTag('ul');
?>
<h2><?php 
echo GxHtml::encode($model->getRelationLabel('inventories'));
?>
</h2>
<?php 
echo GxHtml::openTag('ul');
foreach ($model->inventories as $relatedModel) {
    echo GxHtml::openTag('li');
    echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('inventory/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
    echo GxHtml::closeTag('li');
}
echo GxHtml::closeTag('ul');
開發者ID:schmunk42,項目名稱:yii-sakila-crud,代碼行數:31,代碼來源:view.php

示例5: array

	<?php 
echo GxHtml::encode($data->getAttributeLabel('id'));
?>
:
	<?php 
echo GxHtml::link(GxHtml::encode($data->id), array('view', 'id' => $data->id));
?>
	<br />

	<?php 
echo GxHtml::encode($data->getAttributeLabel('idclient'));
?>
:
		<?php 
echo GxHtml::encode(GxHtml::valueEx($data->idclient0));
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('datepaiement'));
?>
:
	<?php 
echo GxHtml::encode($data->datepaiement);
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('vouchernumber'));
?>
:
	<?php 
開發者ID:cntabana,項目名稱:inyungu,代碼行數:30,代碼來源:_view.php

示例6:

    <br/>

    <?php 
echo GxHtml::encode($data->getAttributeLabel('name'));
?>
:
    <?php 
echo GxHtml::encode($data->name);
?>
    <br/>
    <?php 
echo GxHtml::encode($data->getAttributeLabel('class_id'));
?>
:
    <?php 
echo GxHtml::encode(GxHtml::valueEx($data->class));
?>
    <br/>
    <?php 
echo GxHtml::encode($data->getAttributeLabel('parent'));
?>
:
    <?php 
echo GxHtml::encode($data->parent);
?>
    <br/>
    <?php 
echo GxHtml::encode($data->getAttributeLabel('inactive'));
?>
:
    <?php 
開發者ID:saifulihsan,項目名稱:gkkd-jogja,代碼行數:31,代碼來源:_view.php

示例7: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model) => array('view', 'id' => GxActiveRecord::extractPkValue($model, true)), Yii::t('app', 'Editar'));
$this->menu = array(array('label' => Yii::t('app', 'Listar') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Agregar') . ' ' . $model->label(), 'url' => array('create')), array('label' => Yii::t('app', 'Ver') . ' ' . $model->label(), 'url' => array('view', 'id' => GxActiveRecord::extractPkValue($model, true))), array('label' => Yii::t('app', 'Administrar') . ' ' . $model->label(2), 'url' => array('admin')));
?>

<h1><?php 
echo Yii::t('app', 'Editar') . ' ' . GxHtml::encode($model->label()) . ' Patente N°: ' . '<font color="yellow">' . OrdenTrabajo::formatearPatente(GxHtml::encode(GxHtml::valueEx($model))) . '</font>';
?>
</h1>

<?php 
$this->renderPartial('_form', array('model' => $model));
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:13,代碼來源:update.php

示例8:

?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('fecha'));
?>
:
	<?php 
echo GxHtml::encode($data->fecha);
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('id_combustible'));
?>
:
		<?php 
echo GxHtml::encode(GxHtml::valueEx($data->idCombustible));
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('neto'));
?>
:
	<?php 
echo GxHtml::encode($data->neto);
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('iva'));
?>
:
	<?php 
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:31,代碼來源:_view.php

示例9: array

	<?php 
echo GxHtml::link(GxHtml::encode($data->store_id), array('view', 'id' => $data->store_id));
?>
	<br />

	<?php 
echo GxHtml::encode($data->getAttributeLabel('managerStaff'));
?>
:
	<?php 
echo GxHtml::encode(GxHtml::valueEx($data->managerStaff));
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('address'));
?>
:
	<?php 
echo GxHtml::encode(GxHtml::valueEx($data->address));
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('last_update'));
?>
:
	<?php 
echo GxHtml::encode($data->last_update);
?>
	<br />

</div>
開發者ID:schmunk42,項目名稱:yii-sakila-crud,代碼行數:31,代碼來源:_view.php

示例10: array

"
             title="image_<?php 
echo $model->id;
?>
"/>
    </div>
   <div class="info_wrapper">
<h1><?php 
echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model));
?>
</h1>
<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'name', 'description', 'letter', 'assignmentid')));
?>

<h2><?php 
echo GxHtml::encode($model->getRelationLabel('assignments'));
?>
</h2>
<?php 
echo GxHtml::openTag('ul');
foreach ($model->assignments as $relatedModel) {
    echo GxHtml::openTag('li');
    echo GxHtml::encode(GxHtml::valueEx($relatedModel));
    echo GxHtml::closeTag('li');
}
echo GxHtml::closeTag('ul');
?>
       </div>

    </div>
開發者ID:nov072008,項目名稱:yiitesting,代碼行數:31,代碼來源:view.php

示例11: array

<?php

$this->breadcrumbs = array('Pe Donaturs' => array('index'), GxHtml::valueEx($model));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' PeDonatur', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PeDonatur', 'url' => array('create')), array('label' => Yii::t('app', 'Update') . ' PeDonatur', 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('app', 'Delete') . ' PeDonatur', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')));
?>

<h1><?php 
echo Yii::t('app', 'View');
?>
 PeDonatur #<?php 
echo GxHtml::encode(GxHtml::valueEx($model));
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'name', 'phone', 'alamat', 'inactive', array('label' => 'PeChartMaster', 'type' => 'raw', 'value' => GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->accountCode)), array('peChartMaster/view', 'id' => GxActiveRecord::extractPkValue($model->accountCode, true))))), 'itemTemplate' => "<tr class=\"{class}\"><td style=\"width: 120px\"><b>{label}</b></td><td>{value}</td></tr>\n", 'htmlOptions' => array('class' => 'table')));
?>

<!--h2>Pe Kas Masuks</h2-->
<?php 
/*
	echo GxHtml::openTag('ul');
	foreach($model->peKasMasuks as $relatedModel) {
		echo GxHtml::openTag('li');
		echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('peKasMasuk/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
		echo GxHtml::closeTag('li');
	}
	echo GxHtml::closeTag('ul');*/
開發者ID:saifulihsan,項目名稱:gkkd-jogja,代碼行數:28,代碼來源:view.php

示例12:

	<br />

	<?php 
echo GxHtml::encode($data->getAttributeLabel('idagent'));
?>
:
		<?php 
echo GxHtml::encode(GxHtml::valueEx($data->idagent0));
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('idvoucher'));
?>
:
		<?php 
echo GxHtml::encode(GxHtml::valueEx($data->idvoucher0));
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('useddate'));
?>
:
	<?php 
echo GxHtml::encode($data->useddate);
?>
	<br />
	<?php 
echo GxHtml::encode($data->getAttributeLabel('givendate'));
?>
:
	<?php 
開發者ID:cntabana,項目名稱:inyungu,代碼行數:31,代碼來源:_view.php

示例13: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')), array('label' => Yii::t('app', 'Update') . ' ' . $model->label(), 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('app', 'Delete') . ' ' . $model->label(), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin')));
?>

<h1><?php 
echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model));
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'name', 'description', 'create_date', 'valid', 'security_level', 'family:boolean', 'deleted_at')));
?>

<h2><?php 
echo GxHtml::encode($model->getRelationLabel('beneficiaryAttributes'));
?>
</h2>
<?php 
echo GxHtml::openTag('ul');
foreach ($model->beneficiaryAttributes as $relatedModel) {
    echo GxHtml::openTag('li');
    echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('beneficiaryAttribute/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
    echo GxHtml::closeTag('li');
}
echo GxHtml::closeTag('ul');
開發者ID:hanihh,項目名稱:vvs_v2,代碼行數:27,代碼來源:view.php

示例14: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')), array('label' => Yii::t('app', 'Update') . ' ' . $model->label(), 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('app', 'Delete') . ' ' . $model->label(), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin')));
?>

<h1><?php 
echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model));
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'idclient0', 'type' => 'raw', 'value' => $model->idclient0 !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->idclient0)), array('iguRegistration/view', 'id' => GxActiveRecord::extractPkValue($model->idclient0, true))) : null), 'idproduct', 'cashinvested', 'cashprofit', 'year')));
?>

開發者ID:cntabana,項目名稱:inyungu,代碼行數:14,代碼來源:view.php

示例15: array

<?php

$this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')), array('label' => Yii::t('app', 'Update') . ' ' . $model->label(), 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('app', 'Delete') . ' ' . $model->label(), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin')));
?>

<h1><?php 
echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model));
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'cupo', 'type' => 'raw', 'value' => $model->cupo !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->cupo)), array('cupo/view', 'id' => GxActiveRecord::extractPkValue($model->cupo, true))) : null), array('name' => 'user', 'type' => 'raw', 'value' => $model->user !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->user)), array('user/view', 'id' => GxActiveRecord::extractPkValue($model->user, true))) : null), array('name' => 'recarga', 'type' => 'raw', 'value' => $model->recarga !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->recarga)), array('recarga/view', 'id' => GxActiveRecord::extractPkValue($model->recarga, true))) : null), 'fecha', 'comentario', 'estado')));
開發者ID:rapbore,項目名稱:rch2,代碼行數:13,代碼來源:view.php


注:本文中的GxHtml::valueEx方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。