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


PHP Chtml::image方法代码示例

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


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

示例1: run

 public function run()
 {
     foreach ($this->botones as $clave => $arreglo) {
         //solo si sin son arrays no  vacios
         if (count($this->botones[$clave]) > 0) {
             if (in_array($this->status, $arreglo["visiblex"])) {
                 $this->iniciamarco();
                 $this->iniciaboton();
                 // $rutaimagenes=Yii::app()->getHomeUrl().'protected/extensions/toolbar/assets/img/'.$clave.$this->size.'.'.strtolower($this->extension);
                 //$rutaimagenes=substr(dirname(__FILE__).'/assets',strpos(dirname(__FILE__).'/assets',Yii::app()->getHomeUrl())).'/img/'.$clave.$this->size.'.'.strtolower($this->extension);
                 // $rutaimagenes=Yii::app()->baseUrl.'/assets/img/'.$clave.'.'.strtolower($this->extension);
                 $rutaimagenes = $this->ruta . '/img/' . $this->size . '/' . $clave . '.' . strtolower($this->extension);
                 $rutaimagenes_bajo = $this->ruta . '/img/' . $this->size . '/' . $clave . '_.' . strtolower($this->extension);
                 $rutaapunta = "";
                 if (count($arreglo["ruta"]) > 0) {
                     //si se han especificado elemtnos en el parametro ruta
                     $rutaapunta = yii::app()->createUrl($arreglo["ruta"][0], $arreglo["ruta"][1]);
                 } else {
                 }
                 $arrayestilolink = array('id' => $clave, 'class' => 'img_swap imagen', 'onMouseOver' => "this.src='" . $rutaimagenes_bajo . "'", 'onMouseOut' => "this.src='" . $rutaimagenes . "'", 'width' => $this->size - 1, 'height' => $this->size - 1);
                 $arrayestiloboton = array('value' => '', 'class' => 'boton_barrita', 'onMouseOver' => "this.src='" . $rutaimagenes_bajo . "'", 'onMouseOut' => "this.src='" . $rutaimagenes . "'", 'width' => $this->size - 1, 'height' => $this->size - 1);
                 switch ($arreglo['type']) {
                     //creamos el link de la ruta
                     case "A":
                         //Se trata de un boton simple POST
                         echo CHtml::imageButton($rutaimagenes, $arrayestiloboton);
                         break;
                     case "B":
                         echo CHtml::link(Chtml::image($rutaimagenes, '', $arrayestilolink), $rutaapunta);
                         break;
                     case "C":
                         echo CHtml::link(Chtml::image($rutaimagenes, '', $arrayestilolink), '#', array('onclick' => " \$('#" . $arreglo["frame"] . "').attr('src','" . $rutaapunta . "');\$('#" . $arreglo["dialog"] . "').dialog('open');"));
                         break;
                     case "D":
                         echo CHtml::AjaxLink(Chtml::image($rutaimagenes, '', $arrayestilolink), $rutaapunta, $arreglo["opajax"]);
                         break;
                 }
                 /*
                 
                                        if (is_array($arreglo)){ //SI ES UN ENLACE
                                            echo CHtml::link(Chtml::image($rutaimagenes,'',array(
                        'id'=>$clave,
                        'class'=>'img_swap imagen',
                     'onMouseOver'=>"this.src='". $rutaimagenes_bajo."'",
                    'onMouseOut'=>"this.src='". $rutaimagenes."'",
                    //'class'=>'imagen',
                    'width'=>$this->size-1,
                    'height'=>$this->size-1
                                                                    )
                                        ),$arreglo
                                );
                    } ELSE {  /// ES UN SUBMIT
                                            echo CHtml::imageButton($rutaimagenes,array('class'=>'boton',
                    'width'=>$this->size-1, 'height'=>$this->size-1,
                    //'onClick'=>'Loading.show();Loading.hide(); ',
                    'onMouseOver'=>"this.src='". $rutaimagenes_bajo."'",
                    'onMouseOut'=>"this.src='". $rutaimagenes."'",
                    'value'=>'Crear'));
                                        }
                 */
                 $this->cierradiv();
                 $this->cierradiv();
             }
         }
     }
 }
开发者ID:hipogea,项目名称:zega,代码行数:66,代码来源:Barra.php

示例2: img

 static function img($table, $vid, $url = 'post/default/update')
 {
     unset($str);
     $rows = self::languages($table, $vid);
     if ($rows) {
         $all = cache('defaultDBLangugeAll');
         foreach ($rows as $sid => $language_id) {
             unset($urls);
             if (is_array($url)) {
                 $url[1]['id'] = $sid;
                 $urls = url($url[0], $url[1]);
             } else {
                 $urls = url($url);
             }
             $s = Chtml::image(base_url() . '/misc/gq/' . strtolower($all[$language_id]) . ".gif");
             $s = strtolower($all[$language_id]);
             $str .= CHtml::link($s, $urls);
             $str .= " ";
         }
     }
     return $str;
 }
开发者ID:hiproz,项目名称:mincms,代码行数:22,代码来源:LanguageHelper.php

示例3: array

<?php 
echo CHtml::image(Yii::app()->getTheme()->baseUrl . '/img/user_business.png', 'hola', array('height' => 15, 'width' => 15));
?>
<h1>Este Item</h1>
<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'reservas-grid', 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'dataProvider' => VwAlreservas::model()->search_por_iddesolpe($modelodetalle->id), 'summaryText' => '', 'columns' => array(array('name' => '.', 'type' => 'html', 'value' => 'CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."cajita.png","",array())'), array('name' => 'id', 'header' => 'Reserva', 'value' => '$data->id'), array('name' => 'fechares', 'value' => 'date("d.m.Y", strtotime($data->fechares))'), array('name' => 'desdocu', 'header' => 'Documento', 'value' => '$data->desdocu'), array('name' => 'numero', 'header' => 'Solicitud', 'value' => '$data->numero'), 'item', 'codart', 'desum', 'cant', 'usuario')));
?>


<?php 
echo "<br>";
?>

<?php 
echo Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/usuarios.png', 'hola', array('height' => 25, 'width' => 25));
?>
<h1>Otras reservas para este material</h1>


        <?php 
/*$this->widget('zii.widgets.grid.CGridView', array(
            'id'=>'reservas-grid',
           'itemsCssClass'=>'table table-striped table-bordered table-hover',
            //'cssFile'=>Yii::app()->getTheme()->baseUrl.'/css/style-grid.css',
            'dataProvider'=>VwAlreservas::model()->search_por_otros($modelodetalle->id,$codigo),
            //'filter'=>$model,
            'summaryText'=>'',
            'columns'=>array(
                array('name'=>'.', 'type'=>'html','value'=>'CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."cajita.png","",array())'),
                array('name'=>'id', 'header'=>'Reserva','value'=>'$data->id'),
开发者ID:hipogea,项目名称:zega,代码行数:30,代码来源:vistareservas.php

示例4: array

<?php

/**
 * Banners (banners)
 * @var $this AdminController
 * @var $model Banners
 *
 * @author Putra Sudaryanto <putra@sudaryanto.id>
 * @copyright Copyright (c) 2014 Ommu Platform (ommu.co)
 * @link https://github.com/oMMu/Ommu-Banner
 * @contect (+62)856-299-4114
 *
 */
$this->breadcrumbs = array('Banners' => array('manage'), $model->title);
?>

<div class="box">
	<?php 
$this->widget('application.components.system.FDetailView', array('data' => $model, 'attributes' => array(array('name' => 'cat_id', 'value' => Phrase::trans($model->category_relation->name, 2)), 'title', array('name' => 'url', 'value' => CHtml::link($model->url, $model->url, array('target' => '_blank')), 'type' => 'raw'), array('name' => 'url', 'value' => CHtml::link($model->media, Yii::app()->request->baseUrl . '/public/banner/' . $model->media, array('target' => '_blank')), 'type' => 'raw'), array('name' => 'published_date', 'value' => Utility::dateFormat($model->published_date)), array('name' => 'expired_date', 'value' => Utility::dateFormat($model->expired_date)), 'view', 'click', array('name' => 'creation_date', 'value' => Utility::dateFormat($model->creation_date, true)), array('name' => 'creation_id', 'value' => $model->creation_relation->displayname), array('name' => 'modified_date', 'value' => Utility::dateFormat($model->modified_date, true)), array('name' => 'modified_id', 'value' => $model->modified_relation->displayname), array('name' => 'publish', 'value' => $model->publish == 1 ? Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/publish.png') : Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/unpublish.png'), 'type' => 'raw'))));
?>
</div>
开发者ID:OmmuOpenSource,项目名称:OOS-Company-Profile,代码行数:21,代码来源:admin_view.php

示例5: CDbCriteria





	<div class="row">
		<?php 
//if(!$model->isnewRecord) {
?>
		<?php 
echo $form->labelEx($model, 'idcontacto');
?>
		<?php 
$criterio = new CDbCriteria();
$criterio->addcondition("c_hcod='" . $model->codpro . "'");
$datos1 = CHtml::listData(Contactos::model()->findAll($criterio), 'id', 'c_nombre');
echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "filter.png"), CController::createUrl('Contactos/Contactosporprove'), array('type' => 'POST', 'url' => CController::createUrl('Contactos/Contactosporprove'), 'update' => '#Ocompra_idcontacto', 'data' => array('codigoprov' => 'js:Ocompra_codpro.value')));
echo $form->DropDownList($model, 'idcontacto', $datos1, array('empty' => '--Seleccione Contacto--'));
?>
		<?php 
echo $form->error($model, 'idcontacto');
?>
		<?php 
//}
?>
	</div>




	<?php 
echo $form->hiddenField($model, 'idguia');
开发者ID:hipogea,项目名称:zega,代码行数:27,代码来源:tab_uno.php

示例6: array

<?php

$this->breadcrumbs = array('Siswas' => array('index'), $model->nis);
$this->menu = array(array('label' => 'Daftar Siswa', 'icon' => 'icon-list-alt', 'url' => array('index')), array('label' => 'Tambah Siswa', 'icon' => 'icon-plus-sign', 'url' => array('create')), array('label' => 'Ubah Siswa', 'icon' => 'icon-edit', 'url' => array('update', 'id' => $model->nis)), array('label' => 'Hapus Siswa', 'icon' => 'icon-remove', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->nis), 'confirm' => 'Apakah anda yakin akan menghapus data ini?')), array('label' => 'Kelola Siswa', 'icon' => 'icon-th', 'url' => array('admin')));
?>

<?php 
$box = $this->beginWidget('bootstrap.widgets.TbBox', array('title' => 'VIEW BIODATA SISWA ' . strtoupper($model->nama_lengkap), 'headerIcon' => 'icon-picture'));
?>

<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array(array('label' => '', 'type' => 'raw', 'value' => Chtml::image(Yii::app()->request->baseUrl . '/images/' . $model->foto, 'DORE', array("width" => 100))), 'nis', 'nama_lengkap', 'nama_panggilan', 'jk', 'tempat_lahir', 'tanggal_lahir', 'anak_ke', 'status', 'jml_saudara', 'alamat', 'no_telp', 'agama', 'kewarganegaraan', 'bahasa', 'jarak_rumah', 'th_ajar', 'semester', 'idkec0.nama_kec', 'idSekolah.nama_sekolah', 'nik_wali', 'no_kk', 'no_pendaftaran', 'nisn')));
$this->widget('bootstrap.widgets.TbDetailView', array('data' => Keluarga::model()->findByPk($model->no_kk), 'attributes' => array('nikAyah.nama_ayah', 'nikIbu.nama_ibu')));
$this->endWidget();
开发者ID:robebeye,项目名称:isims,代码行数:14,代码来源:view.php

示例7: array





	<div class="row">
		<?php 
echo $form->labelEx($model, 'punit');
?>
		<?php 
echo $form->textField($model, 'punit');
?>
		<?php 
echo $form->error($model, 'punit');
?>
		<?php 
echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "package.png"), CController::createUrl($this->id . '/cargaprecios'), array('type' => 'POST', 'url' => CController::createUrl($this->id . '/cargaprecios'), "data" => array("codigoprove" => "js:codigoprove.value", "codigomaterial" => "js:Docompratemp_codart.value"), "update" => "#zona_precios"));
?>



	</div>

	<div class="row">
<div id="zona_precios"></div>
</div>




	
开发者ID:hipogea,项目名称:zega,代码行数:21,代码来源:_form_detalle.php

示例8: renderSocialLogin

 public function renderSocialLogin($accountName)
 {
     $accountNameLower = strtolower($accountName);
     $loginUrl = Yii::app()->createUrl('auth/hybrid/login', array('service' => $accountNameLower));
     $imageUrl = 'images/icons/' . $accountNameLower . '.png';
     $onClickJS = 'openExtAccountWindow("' . $loginUrl . '", "' . $accountName . '"); return false;';
     $imgHtml = Chtml::image($imageUrl, $accountName, array('class' => 'socialIcon'));
     //show icon with link
     echo CHtml::link($imgHtml, $loginUrl, array('onclick' => $onClickJS));
 }
开发者ID:jasonhai,项目名称:yii1.1-user-auth-module,代码行数:10,代码来源:AuthCommon.php

示例9: array

<?php

/**
 * Album Categories (album-category)
 * @var $this CategoryController
 * @var $model AlbumCategory
 * version: 0.1.4
 *
 * @author Putra Sudaryanto <putra@sudaryanto.id>
 * @copyright Copyright (c) 2016 Ommu Platform (ommu.co)
 * @created date 26 August 2016, 23:10 WIB
 * @link https://github.com/oMMu/Ommu-Photo-Albums
 * @contect (+62)856-299-4114
 *
 */
$this->breadcrumbs = array('Album Categories' => array('manage'), $model->name);
?>

<div class="dialog-content">
	<?php 
$this->widget('application.components.system.FDetailView', array('data' => $model, 'attributes' => array(array('name' => 'cat_id', 'value' => $model->cat_id), array('name' => 'publish', 'value' => $model->publish == '1' ? Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/publish.png') : Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/unpublish.png')), array('name' => 'name', 'value' => $model->name), array('name' => 'desc', 'value' => $model->desc), array('name' => 'default', 'value' => $model->default), array('name' => 'default_setting', 'value' => $model->default_setting), array('name' => 'photo_limit', 'value' => $model->photo_limit), array('name' => 'photo_resize', 'value' => $model->photo_resize), array('name' => 'photo_resize_size', 'value' => $model->photo_resize_size != '' ? $model->photo_resize_size : '-', 'type' => 'raw'), array('name' => 'photo_view_size', 'value' => $model->photo_view_size != '' ? $model->photo_view_size : '-', 'type' => 'raw'), array('name' => 'creation_date', 'value' => !in_array($model->creation_date, array('0000-00-00 00:00:00', '1970-01-01 00:00:00')) ? Utility::dateFormat($model->creation_date, true) : '-'), array('name' => 'creation_id', 'value' => $model->creation_id), array('name' => 'modified_date', 'value' => !in_array($model->modified_date, array('0000-00-00 00:00:00', '1970-01-01 00:00:00')) ? Utility::dateFormat($model->modified_date, true) : '-'), array('name' => 'modified_id', 'value' => $model->modified_id))));
?>
</div>
<div class="dialog-submit">
	<?php 
echo CHtml::button(Yii::t('phrase', 'Close'), array('id' => 'closed'));
?>
</div>
开发者ID:OmmuOpenSource,项目名称:OOS-Company-Profile,代码行数:28,代码来源:admin_view.php

示例10: if

   	</div>
    <div class="row">
   		<?php echo $form->labelEx($model,'verifyPassword'); ?>
   		<?php echo $form->passwordField($model,'verifyPassword'); ?>
   		<?php echo $form->error($model,'verifyPassword'); ?>
   	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

<?php if (Yii::app()->user->hasState('registerPhoto')) { ?>
<div class="row">
<?php echo Chtml::image($model->getRegisterPhotoPath(),'Изображение',array('id'=>'registerPhoto')) ?><br clear="all"/>
<?php echo CHtml::link('Удалить изображение',array('deletePhoto'),array('confirm'=>'Удалить?')) ?>
<?=$form->checkBox($model,'intimPhoto')?> Интим
</div>
<?php } else { ?>
	<div class="row">
		<?php echo $form->labelEx($model,'file'); ?>
		<?php echo $form->fileField($model,'file'); ?> &nbsp; <?=$form->checkBox($model,'intimPhoto')?> Интим <!-- (не больше 8Мб) -->
		<?php echo $form->error($model,'file'); ?>
	</div>
<?php } ?>
<? /*
	<div class="row">
		<?php echo $form->labelEx($model,'gender'); ?>
        <?php echo $form->radioButtonList($model,'gender',Anketa::$getGenders,array('empty'=>'Надо выбрать',)); ?>
		<?php echo $form->error($model,'gender'); ?>
开发者ID:nellka,项目名称:mebel,代码行数:31,代码来源:register.php

示例11: array

 *
 * @author Putra Sudaryanto <putra@sudaryanto.id>
 * @copyright Copyright (c) 2016 Ommu Platform (ommu.co)
 * @created date 24 March 2016, 10:20 WIB
 * @link https://github.com/oMMu/Ommu-Core
 * @contect (+62)856-299-4114
 *
 */
$this->breadcrumbs = array('Ommu Menus' => array('manage'), $model->name);
?>

<?php 
//begin.Messages
if (Yii::app()->user->hasFlash('success')) {
    echo Utility::flashSuccess(Yii::app()->user->getFlash('success'));
}
//end.Messages
?>

<?php 
$this->widget('application.components.system.FDetailView', array('data' => $model, 'attributes' => array(array('name' => 'id', 'value' => $model->id), array('name' => 'publish', 'value' => $model->publish == '1' ? Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/publish.png') : Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/unpublish.png')), array('name' => 'cat_id', 'value' => $model->cat_id), array('name' => 'dependency', 'value' => $model->dependency), array('name' => 'orders', 'value' => $model->orders), array('name' => 'name', 'value' => $model->name), array('name' => 'url', 'value' => $model->url), array('name' => 'attr', 'value' => $model->attr), array('name' => 'sitetype_access', 'value' => $model->sitetype_access), array('name' => 'userlevel_access', 'value' => $model->userlevel_access), array('name' => 'creation_date', 'value' => !in_array($model->creation_date, array('0000-00-00 00:00:00', '1970-01-01 00:00:00')) ? Utility::dateFormat($model->creation_date, true) : '-'), array('name' => 'creation_id', 'value' => $model->creation_id), array('name' => 'modified_date', 'value' => !in_array($model->modified_date, array('0000-00-00 00:00:00', '1970-01-01 00:00:00')) ? Utility::dateFormat($model->modified_date, true) : '-'), array('name' => 'modified_id', 'value' => $model->modified_id))));
?>

<div class="dialog-content">
</div>
<div class="dialog-submit">
	<?php 
echo CHtml::button(Yii::t('phrase', 'Close'), array('id' => 'closed'));
?>
</div>
开发者ID:OmmuOpenSource,项目名称:OOS-Company-Profile,代码行数:30,代码来源:admin_view.php

示例12: array

 *
 * @author Putra Sudaryanto <putra@sudaryanto.id>
 * @copyright Copyright (c) 2016 Ommu Platform (ommu.co)
 * @created date 9 April 2016, 06:37 WIB
 * @link http://company.ommu.co
 * @contect (+62)856-299-4114
 *
 */
$this->breadcrumbs = array('User Devices' => array('manage'), $model->id);
?>

<?php 
//begin.Messages
if (Yii::app()->user->hasFlash('success')) {
    echo Utility::flashSuccess(Yii::app()->user->getFlash('success'));
}
//end.Messages
?>

<?php 
$this->widget('application.components.system.FDetailView', array('data' => $model, 'attributes' => array(array('name' => 'id', 'value' => $model->id), array('name' => 'publish', 'value' => $model->publish == '1' ? Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/publish.png') : Chtml::image(Yii::app()->theme->baseUrl . '/images/icons/unpublish.png')), array('name' => 'user_id', 'value' => $model->user_id), array('name' => 'android_id', 'value' => $model->android_id != '' ? $model->android_id : '-', 'type' => 'raw'), array('name' => 'creation_date', 'value' => !in_array($model->creation_date, array('0000-00-00 00:00:00', '1970-01-01 00:00:00')) ? Utility::dateFormat($model->creation_date, true) : '-'), array('name' => 'modified_date', 'value' => !in_array($model->modified_date, array('0000-00-00 00:00:00', '1970-01-01 00:00:00')) ? Utility::dateFormat($model->modified_date, true) : '-'), array('name' => 'modified_id', 'value' => $model->modified_id))));
?>

<div class="dialog-content">
</div>
<div class="dialog-submit">
	<?php 
echo CHtml::button(Yii::t('phrase', 'Close'), array('id' => 'closed'));
?>
</div>
开发者ID:OmmuOpenSource,项目名称:OOS-Company-Profile,代码行数:30,代码来源:admin_view.php

示例13: array

$opajax = array('type' => 'POST', 'url' => Yii::app()->createUrl('/Solpe/poneralcarro'), 'update' => '#maletin');
echo "<div class='botones'>";
echo CHtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/clean.png', 'Poner al carro', array('width' => 25, 'height' => 28)), array('solpe/limpiarcarro'), $opajax, array('class' => ''));
//echo CHtml::Ajaxlink(Chtml::image(Yii::app()->getTheme()->baseUrl.'/img/imprimir.png'),array('/Solpe/poneralcarro'),$opajax);
//echo CHtml::link(Chtml::image(Yii::app()->getTheme()->baseUrl.'/img/imprimir.png'),array('/solpe/imprimir2','id'=>$model->idguia));
echo "</div>";
?>

<?php 
$opajax = array('type' => 'POST', 'url' => Yii::app()->createUrl('/Solpe/pideoferta'), 'success' => "function(data) {\n\t\t\t\t\t\t\t\t\t\t\$('#AjFlash').html(data).fadeIn().animate({opacity: 1.0}, 3000).fadeOut('slow');\n\n\n                                        }", 'beforeSend' => 'js:function(){
                                  				 var r = confirm("Esta seguro de Enviar peticiones de oferta?");
                          						 if(!r){return false;}
                               							 }
                               					');
echo "<div class='botones'>";
echo CHtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/email.png', 'Pedir oferta', array('width' => 25, 'height' => 28)), array('solpe/pideoferta'), $opajax, array('class' => ''));
echo "</div>";
?>
<div id="AjFlash" class="flash-regular">.</div>

<?php 
$this->endWidget();
?>


<DIV ID="PEPA"></DIV>




<?php 
开发者ID:hipogea,项目名称:zega,代码行数:31,代码来源:tomarsolpe.php

示例14: array

<div class="item-replayWiner">
    <div class="pic">
        <?php 
$face = Chtml::image($data->user->xFace, $data->user->name);
echo Chtml::link($face, array('//u/view', 'id' => $data->userId));
?>
    </div>
    <?php 
echo CHtml::link($data->user->name, array('//u/view', 'id' => $data->userId), array('class' => 'user'));
?>
    <span class="replayNum"><?php 
echo $data->commentNum;
echo Yii::t('app', '回复');
?>
</span>

</div>
开发者ID:stan5621,项目名称:eduwind,代码行数:17,代码来源:_view_item_replayWiner.php

示例15: array

            <div id="header">
                <div id="logo">                    
                    <?php
                    $image = Yii::app()->request->baseUrl . "/images/logoscb9/logocb5.png";
                    echo CHtml::image($image);
                    ?>
                </div>
                <div id='tituloheader'>
                    <h2 class='mt30'>Centro de Bioquímicos IX Distrito</h2>

                </div>
                <div id='logoderecho'>

                    <?php
                    $image = Yii::app()->request->baseUrl . "/images/logoyii.png";
                    echo Chtml::image($image, '', array('class' => 'imglogoder'));
                    ?>
                    <span>Sistema de Gestión V1.0</span>

                </div>
            </div>




            <div class="mt30"><!-- mainmenu -->
                <?php
                if (!Yii::app()->user->isGuest) {

                    $this->widget('bootstrap.widgets.TbNavbar', array(
                        'display' => null, // default is static to top
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:main.php


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