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(); } } } }
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; }
<?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'),
<?php /** * Banners (banners) * @var $this AdminController * @var $model Banners * * @author Putra Sudaryanto <*****@*****.**> * @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>
<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');
<?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();
<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>
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)); }
<?php /** * Album Categories (album-category) * @var $this CategoryController * @var $model AlbumCategory * version: 0.1.4 * * @author Putra Sudaryanto <*****@*****.**> * @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>
</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'); ?> <?=$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'); ?>
* * @author Putra Sudaryanto <*****@*****.**> * @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>
* * @author Putra Sudaryanto <*****@*****.**> * @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>
$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
<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>
<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
?> <?php } else { ?> <?php echo $form->DropDownList($model, 'um', Alconversiones::Listadoums($model->codart), array('empty' => '--Um--', 'disabled' => $habilitado, 'maxlength' => 4)); ?> <?php } ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "package.png"), CController::createUrl($this->id . '/stock'), array('type' => 'POST', 'url' => CController::createUrl($this->id . '/stock'), "data" => array("codiguito" => "js:Desolpe_codart.value", "centrito" => "js:Desolpe_codal.value", "almacencito" => "js:Desolpe_centro.value"), "update" => "#zonamaterial"), array('onClick' => 'Loading.show();Loading.hide(); return false;')); ?> <?php echo $form->error($model, 'um'); ?> </div> <?php /* echo CHtml::ajaxSubmitButton("Ver detalle material.",
<div class='col-xs-4'> <div class='well' > <div> <?php echo Chtml::image(Helper::getThumbYoutube($data->post_image, 'medium'), '', array('style' => 'width:100%;')); ?> </div> <small class='text-muted'><?php echo FTime::id('D, d M Y | H:i', $data->post_modified); ?> WIB</small> <h4 style='margin-top: 5px;line-height:23px;'><a href='<?php echo $this->createUrl('video/index', array('id' => $data->ID, 'slug' => $data->post_link)); ?> '> <?php echo Helper::getExcerpt($data->post_name, 0, 60); ?> </a></h4> </div></div>
<?php $this->breadcrumbs = array('Gurus' => array('index'), $model->kode_guru); $this->menu = array(array('label' => 'Daftar Guru', 'icon' => 'icon-list-alt', 'url' => array('index')), array('label' => 'Tambah Guru', 'icon' => 'icon-plus-sign', 'url' => array('create')), array('label' => 'Ubah Guru', 'icon' => 'icon-edit', 'url' => array('update', 'id' => $model->kode_guru)), array('label' => 'Hapus Guru', 'icon' => 'icon-remove', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->kode_guru), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => 'Kelola Guru', 'icon' => 'icon-th', 'url' => array('admin')), array('label' => 'Cetak Guru', 'icon' => 'icon-print', 'url' => 'javascript:void(0);return false', 'linkOptions' => array('onclick' => 'printDiv();return false;'))); ?> <div class='printableArea'> <?php $box = $this->beginWidget('bootstrap.widgets.TbBox', array('title' => 'VIEW BIODATA GURU ' . strtoupper($model->nama_guru), 'headerIcon' => 'icon-picture')); ?> <?php $this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('kode_guru', 'nama_guru', 'nip', 'jabatan', 'ahli', 'agama', 'alamat', 'jk', 'tempat_lahir', 'tanggal_lahir', 'telp', array('label' => 'foto', 'type' => 'raw', 'value' => Chtml::image(Yii::app()->request->baseUrl . '/images/' . $model->foto, 'DORE', array("width" => 100))), 'idkec0.nama_kec', 'no_sertifikasi'))); $this->widget('bootstrap.widgets.TbDetailView', array('data' => User::model()->findByPk($model->kode_guru), 'attributes' => array('username', 'email'))); $this->endWidget(); ?> </div> <style type="text/css" media="print"> body {visibility:hidden;} .printableArea{visibility:visible;} </style> <script type="text/javascript"> function printDiv() { window.print(); } </script>
?> <?php echo !$model->isNewRecord ? $moneda = $model->alkardex_alinventario->almacen->codmon : Almacendocs::model()->findByPk($idcabeza)->codalmacen0->codmon; ?> <?php echo $form->error($model, 'preciounit'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'um'); ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "filter.png"), CController::createUrl('Ums/cargaum'), array('type' => 'POST', 'url' => CController::createUrl('Ums/cargaum'), 'update' => '#Tempalkardex_um', 'data' => array('codigomaterial' => 'js:Tempalkardex_codart.value'))); ?> <?php if ($model->isNewRecord) { //$datos = CHtml::listData(Ums::model()->findAll(),'um','desum'); $datos = array(); echo $form->DropDownList($model, 'um', $datos, array('disabled' => in_array($model->codmov, $model->campoeditable()['um']) ? '' : 'disabled', 'maxlength' => 4)); ?> <?php } else { ?> <?php echo $form->DropDownList($model, 'um', Alconversiones::Listadoums($model->codart), array('empty' => '--Um--', 'disabled' => in_array($model->codmov, $model->campoeditable()['um']) ? '' : 'disabled', 'maxlength' => 4)); ?>
<?php echo $form->textField($model, 'pttotal', array('value' => round($model->cantlibre * $model->punit, 2), 'disabled' => 'disabled')); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'ubicacion'); ?> <?php echo $form->textField($model, 'ubicacion', array('size' => 10, 'maxlength' => 10)); ?> <?php echo Chtml::ajaxLink(Chtml::image(Yii::app()->getTheme()->baseUrl . Yii::app()->params["rutatemaimagenes"] . "package.png"), CController::createUrl($this->id . '/updateubicacion'), array('type' => 'POST', 'url' => CController::createUrl($this->id . '/updateubicacion'), "data" => array("codubicacion" => "js:Alinventario_ubicacion.value", "id" => "js:Alinventario_id.value"), "update" => "#zonamensajes")); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'lote'); ?> <?php echo $form->textField($model, 'lote', array('disabled' => 'disabled', 'size' => 10, 'maxlength' => 10)); ?> <?php echo $form->error($model, 'lote'); ?>
echo CHtml::link(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/imprimir.png'), array('/solpe/imprimir2', 'id' => $model->id)); echo "</div>"; } ?> <?php if ($model->cestadovale == '01') { echo "<div class='botones'>"; echo CHtml::link(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/ok.png'), array('/solpe/procesarsolpe', 'id' => $model->id, 'ev' => 60)); echo "</div>"; } ?> <?php if ($model->cestadovale == '01') { echo "<div class='botones'>"; echo CHtml::link(Chtml::image(Yii::app()->getTheme()->baseUrl . '/img/tacho1.png'), array('/solpe/procesarsolpe', 'id' => $model->id, 'ev' => 61)); echo "</div>"; } ?> </div> <div class="panelizquierdo"> <div class="row"> <?php
<?php echo CHtml::link(CHtml::image($imgUrl, CHtml::encode($this->modelProducts->lang->name)), $imgUrl, ['class' => 'fancybox-button', 'rel' => 'photos-lib']); ?> <?php } ?> </div> </div> <?php } else { ?> <div class="col-md-6 col-sm-6"> <div class="product-main-image"> <?php echo Chtml::image(Yii::app()->theme->baseUrl . '/public/store/default-no-image.png', 'no-image'); ?> </div> </div> <?php } ?> <div class="col-md-6 col-sm-6"> <h1><?php echo CHtml::encode($this->modelProducts->lang->name); ?> </h1> <div class="price-availability-block clearfix"> <div class="price"> <strong><span><?php