private function pintaimagen($imagen) { $this->abrepanel(); $nombreimagen = array_pop(explode(DIRECTORY_SEPARATOR, $imagen)); $imagensola = substr($nombreimagen, 0, strpos($nombreimagen, ".")); echo CHTml::Ajaxlink(CHTml::image($this->_baseUrl . '/tacho.png', '', array('width' => 18, 'height' => 20)), Yii::app()->createUrl($this->rutaborra, array("cualfoto" => $nombreimagen)), array('type' => 'GET', 'update' => '#division_' . $imagensola), array("onClick" => "Loading.show(); Loading.hide();")); $this->cierradiv(); $this->abreborde($imagensola); echo CHTml::link(CHTml::image($this->rutaimagenes . $imagen, $imagensola, array('class' => 'imagen')), '#', array('onclick' => "document.images['" . $this->idimagen . "'].src='" . $this->rutaimagenes . $imagen . "';")); $this->cierradiv(); }
<ul> <?php foreach ($this->getRecentPosts() as $post) { ?> <li> <?php echo CHtml::link(CHtml::encode($post->title), array('post/show', 'id' => $post->id)); ?> on <?php echo CHTml::link(date('M j', $post->createTime), array('post/PostedOnDate', 'time' => $post->createTime)); ?> </li> <?php } ?> </ul>
<?php if ($news) { foreach ($news as $n) { $d = strtotime($n->date); $time = Yii::app()->dateFormatter->formatDateTime($d, null, "short"); $date = Yii::app()->dateFormatter->formatDateTime($d, "medium", null); echo '<div class="post clearfix">'; echo '<div class="title clearfix">'; echo '<time>' . $date . ($time != "0:00" ? " в " . $time : "") . "</time>"; echo CHTml::link(stripslashes($n->title), array("/news/news/show", "title" => $n->alias)); echo "</div>"; echo "<div class=\"content\">" . CHtml::decode(stripslashes($n->short_text)) . "</div>"; echo "</div>"; } } else { echo "<h1>По данному запросу ничего не найдено</h1>"; }
<?php if (empty($_SESSION['message'])) { $_SESSION['message'] = ''; } $_SESSION['message'] = $_SESSION['message'] . $message; echo $_SESSION['message']; if ($currentStep != 0 && $currentStep < 7) { $next_step = $currentStep + 1; $url = Yii::app()->baseUrl . '/index.php?r=/Setup/showUpdateProgress&curr_step=' . $next_step; //echo $url; echo "<SCRIPT LANGUAGE='javascript'>location.href='{$url}';</SCRIPT>"; } else { /*After printing the messages We are clearing the message variable, so that when update run again for next time gives us no error*/ $_SESSION['message'] = ''; echo "<br>"; echo CHTml::link('Restart Browser', array(' ')); } ?> </div><!-- content --> <div id="footer"> <table><tr><td> <?php echo CHtml::image($rapport_logo, "ballpop", array("width" => "170", "height" => "56.6")); ?> </td> <td style="text-align:right;"> Copyright © <?php
<?php echo CHtml::link('Buscar', '#', array('class' => 'search-button')); ?> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'clipro-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'columns' => array('codpro', 'despro', 'rucpro', 'telpro', 'emailpro', 'tipo', array('class' => 'CButtonColumn', 'template' => '{view}{update}', 'buttons' => array('template' => '{up}'))))); ?> <?php echo CHTml::link("Exportar", Yii::app()->createUrl('/clipro/admin', array('espe' => 1))); ?> <?php //--------------------- begin new code -------------------------- // add the (closed) dialog for the iframe $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'cru-dialog', 'options' => array('title' => 'Detail view', 'autoOpen' => false, 'modal' => false, 'width' => 750, 'height' => 800))); ?> <iframe id="cru-frame" width="100%" height="100%"></iframe> <?php $this->endWidget(); //--------------------- end new code -------------------------- ?> </div>
echo CHtml::image($rutabase . '/img/clock.png', "hola"); ?> <?php echo CHtml::link(" Quedan : " . Mifactoria::statusession()['minutosrestantes'] . " Minutos", "#", ""); ?> <div class="progress progress-<?php echo MiFactoria::getcolor(Mifactoria::statusession()['porcentaje'], 60, 80, 95); ?> "> <div class="bar" style="width: <?php echo 100 - Mifactoria::statusession()['porcentaje'] . ""; ?> %"></div> </div> </div> <!--FINALIZA EL PORTLET DE USUARIO --> <?php $this->endWidget(); ?> </div> <!--FINALIZA EL DIV USUARIO --> <?php } ?> <table class="table table-striped table-bordered"> <tbody> <tr> <td width="50%">Ancho de banda usado</td> <td> <div class="progress progress-right"> <div class="bar" style="width: 10%"></div> </div>
<ul> <?php foreach ($this->getRecentPosts() as $post) { ?> <li> <?php echo CHtml::link(CHtml::encode($post->title), array('post/show', 'slug' => $post->slug)); ?> → <?php echo CHTml::link(Yii::t('lan', date('F', $post->createTime)) . date(' j', $post->createTime), array('post/PostedOnDate', 'year' => date('Y', $post->createTime), 'month' => date('m', $post->createTime), 'day' => date('j', $post->createTime))); ?> </li> <?php } ?> </ul>
echo $form->labelEx($model, 'campototal'); ?> <?php echo $form->dropDownList($model, 'campototal', $model->isNewRecord ? array() : $listacampos, array('prompt' => 'Seleccione un campo')); ?> <?php echo $form->error($model, 'campototal'); ?> </div> <div class="row"> <?php if (!$model->isNewRecord) { echo CHTml::link("Crear Detalle", yii::app()->createUrl('/coordocs/creadetalle', array("id" => $model->id))); } ?> </DIV> </div> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Grabar'); ?> </div> <?php $this->endWidget();