コード例 #1
0
ファイル: vw_carteres_total.php プロジェクト: hipogea/zega
echo "                              (70% - 90%)   ";
echo "</td>";
echo "<td  class='empty'>";
echo "<td  class='empty'>";
echo "  ------>  ";
echo "</td>";
echo CHtml::image(Yii::app()->params['rutaimagenes'] . Vwaceites::colocaicono(80), "r", array("id" => "gatito", "border" => 0, "width" => 25, "height" => 25));
echo "</td>";
echo "<td>";
echo ".       .               .";
echo "</td>";
echo "</tr>";
echo "<td  class='empty'>";
echo "                              (90% -> mas)     ";
echo "</td>";
echo "<td  class='empty'>";
echo "<td  class='empty'>";
echo "  ------>  ";
echo "</td>";
echo CHtml::image(Yii::app()->params['rutaimagenes'] . Vwaceites::colocaicono(100), "r", array("id" => "gatito", "border" => 0, "width" => 25, "height" => 25));
echo "</td>";
echo "</tr>";
$this->endWidget();
?>




	  
<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'inventario-grid', 'summaryText' => '', 'dataProvider' => $proveedorcarteres, 'cssFile' => '' . Yii::app()->getTheme()->baseUrl . Yii::app()->params['rutatemagrid'] . 'style_gridpartes.css', 'columns' => array(array('name' => 'nomep', 'header' => 'Embarcacion'), array('name' => 'descripcion', 'header' => 'Equipo'), array('name' => 'material', 'header' => 'Tipo Lub.'), array('name' => 'horascambio', 'header' => 'Horas Cambio'), array('name' => 'fucambio', 'header' => 'Fu cambio', 'value' => 'date("d/m/Y",strtotime($data->fucambio))'), 'hucambio', array('name' => 'horasaceite', 'header' => 'Vida del aceite (Hr)'), array('name' => 'porcentaje', 'header' => 'porcentaje', 'value' => '$data->porcentaje."%"'), array('name' => 'fulectura', 'header' => 'Fu lectura', 'value' => 'date("d/m/Y",strtotime($data->fulectura))'), array('name' => 'horasfaltantes', 'header' => 'Faltan (Hr)', 'value' => '$data->horasfaltantes'), array('name' => 'diasfaltantes', 'header' => 'Faltan (dias)', 'value' => '$data->diasfaltantes'), array('name' => 'pp', 'header' => 'Faltan (dias)', 'value' => '$data->pp'), array('name' => '', 'header' => '.', 'type' => 'raw', 'value' => ' CHtml::image(Yii::app()->params["rutaimagenes"].Vwaceites::colocaicono($data->porcentaje),"r",array("id"=>"gatito","border"=>0,"width"=>15,"height"=>15))       '), array('name' => 'Horometro', 'header' => 'Horomerrrtro', 'type' => 'raw', 'value' => 'CHtml::link("($data->horometro)"," ".Yii::app()->createurl(\'/cartereshorometro/update\', array(\'id\'=> $data->id))."")'), array('class' => 'CButtonColumn', 'buttons' => array('update' => array('url' => '$this->grid->controller->createUrl("carteres/update", array("id"=>$data->id))'), 'view' => array('url' => '$this->grid->controller->createUrl("carterescambio/update", array("id"=>$data->id))'), 'delete' => array('visible' => 'false'))))));