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


PHP Chtml::openTag方法代码示例

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


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

示例1: array

<?php

if (strtolower($this->action->id) == 'verdocumento') {
    $proveedor = Docompra::model()->search_por_compra($filtro);
} else {
    $proveedor = Docompratemp::model()->search_por_compra($filtro);
}
$descuento = $model->descuento + 0;
//var_dump($descuento);yii::app()->end();
?>
<div id="AjFlash" class="flash-regular"></div>
<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'detalle-grid', 'dataProvider' => $proveedor, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'summaryText' => '>', 'columns' => array(array('class' => 'CCheckBoxColumn', 'selectableRows' => 20, 'value' => '$data->idtemp', 'checkBoxHtmlOptions' => array('name' => 'cajita[]')), array('name' => 'st.', 'header' => 'st', 'type' => 'raw', 'value' => 'CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"].$data->coddocu.$data->estadodetalle.".png")'), 'codentro', 'codigoalma', 'item', 'cant', 'ums.desum', 'codart', 'descri', array('name' => 'texto', 'type' => 'raw', 'header' => 't', 'value' => '(!empty($data->detalle))?CHtml::image(Yii::app()->getTheme()->baseUrl.Yii::app()->params["rutatemaimagenes"]."texto.png","hola"):""'), 'punit', array('name' => 'Bruto', 'header' => 'Bruto', 'value' => 'Mifactoria::decimal($data->cant*($data->punit),2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["bruto"], 2) . CHTml::CloseTag("span")), array('name' => 'Descuento', 'visible' => $descuento > 0 ? true : false, 'header' => 'Dcto', 'value' => 'Mifactoria::decimal($data->cant*$data->punit*($data->ocompra->descuento/100),2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["descuento"], 2) . CHTml::CloseTag("span")), array('name' => 'potal', 'value' => 'Mifactoria::decimal(($data->punit*(1-$data->ocompra->descuento/100))*$data->cant,2)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(Docompratemp::getTotal($proveedor)["total"], 2) . CHTml::CloseTag("span")), array('class' => 'CButtonColumn', 'buttons' => array('view' => array('visible' => 'false'), 'update' => array('visible' => $this->eseditable($model->{$this->campoestado}) ? 'false' : 'true', 'url' => '$this->grid->controller->createUrl("/Ocompra/Modificadetalle/",
										    array("id"=>$data->idtemp,
                                                                                         "asDialog"=>1,
											"gridId"=>$this->grid->id
											)
									    )', 'click' => 'function(){ 
							    $("#cru-detalle").attr("src",$(this).attr("href")); 
							    $("#cru-dialogdetalle").dialog("open");  
							     return false;
							 }', 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemagrid'] . 'update.png', 'label' => 'Actualizar Item'), 'delete' => array('visible' => $this->eseditable($model->{$this->campoestado}) ? 'false' : 'true', 'url' => '$this->grid->controller->createUrl("/Ocompra/borraitem", array("identi"=>$data->id,"idcabecera"=>$data->hidguia))', 'options' => array('ajax' => array('type' => 'GET', 'success' => "js:function() { \$.fn.yiiGridView.update('detalle-grid'); }", 'url' => 'js:$(this).attr("href")')), 'imageUrl' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemaimagenes'] . 'borrador.png', 'label' => 'Borrary'))))));
开发者ID:hipogea,项目名称:zega,代码行数:22,代码来源:vw_detalle.php

示例2: array

<?php

$this->menu = array(array('label' => 'Ver docs', 'url' => array('admin')));
$prove = VwStockPorTipos::model()->search_por_almacen($model->codalm, $model->codcen);
?>




<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'almacenes-grid', 'dataProvider' => $prove, 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'columns' => array('codcen', 'codtipo', 'destipo', array('name' => 'stocklibre', 'value' => 'MiFactoria::decimal($data->stocklibre)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(VwStockPorTipos::getTotal($prove)["libre"], 2) . CHTml::CloseTag("span")), array('name' => 'stockreservado', 'value' => 'MiFactoria::decimal($data->stockreservado)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(VwStockPorTipos::getTotal($prove)["reservado"], 2) . CHTml::CloseTag("span")), array('name' => 'stocktransito', 'value' => 'MiFactoria::decimal($data->stocktransito)', 'footer' => Chtml::openTag("span", array("class" => "label label-info")) . MiFactoria::decimal(VwStockPorTipos::getTotal($prove)["transito"], 2) . CHTml::CloseTag("span")), array('class' => 'CButtonColumn', 'template' => '{view}{update}'))));
开发者ID:hipogea,项目名称:zega,代码行数:11,代码来源:adminalmacenes.php

示例3: insertModelAttributes

 /**
  * Display current model attributes as json string in hidden block
  * for "save filter" js function.
  */
 public function insertModelAttributes()
 {
     if ($this->getModelAttributes()) {
         $attrs = array();
         foreach ($this->getModelAttributes() as $key => $value) {
             if ($value !== null) {
                 $attrs[get_class($this->filter) . '[' . $key . ']'] = $value;
             }
         }
         if (!empty($attrs)) {
             echo Chtml::openTag('div', array('id' => $this->getId() . 'HiddenJsonAttributes', 'style' => 'display:none'));
             echo json_encode($attrs);
             echo CHtml::closeTag('div');
         }
     }
 }
开发者ID:kolbensky,项目名称:rybolove,代码行数:20,代码来源:SGridView.php

示例4: array

<?php

/* @var $this SiteController */
/* @var $error array */
$this->pageTitle = Yii::app()->name . ' - Error';
$this->breadcrumbs = array('Error');
echo Chtml::openTag('div', array('class' => 'col-sm-12 col-xs-8'));
echo Chtml::openTag('div', array('class' => 'col-sm-10', 'style' => 'margin:0px auto;float: none;'));
echo Chtml::openTag('div', array('style' => 'width: 70%;display: inline-block;', 'align' => 'center'));
echo Chtml::imageButton(Yii::app()->baseUrl . "/images/img_" . $code . ".png", array());
?>
    <h3 style="color: #00a0e9;" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <?php 
echo CHtml::encode($message);
?>
    </h3>
<?php 
echo CHtml::closeTag('div');
echo Chtml::imageButton(Yii::app()->baseUrl . "/images/img_" . substr($code, 0, 1) . "_bj.png", array('style' => 'width: 30%;'));
echo CHtml::closeTag('div');
echo CHtml::closeTag('div');
开发者ID:FavorMylikes,项目名称:ResumeManager,代码行数:21,代码来源:error.php


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