echo CHtml::encode($geom->getAttributeLabel('water_demand')); ?> </b></td> </tr> </thead> <tbody> <?php foreach ($geom->zones() as $zone) { ?> <tr> <td><?php echo CHtml::encode($zone->zoneDescription) . ' - ' . CHtml::encode($zone->zone_name); ?> </td> <td><?php echo CHtml::encode(Math::pe_round($zone->pe)); ?> </td> <td><?php echo CHtml::encode(Math::wd_round($zone->water_demand)) . ' ' . Yii::app()->params['water_demand_unit']; ?> </td> </tr> <?php } ?> </tbody> </table> </page> <?php }
echo $class; ?> " id="<?php echo $geom->wr->id . '_' . $geom->id . (isset($zones[0]) ? '_' . $zone->id : ''); ?> "> <?php echo $geom->name; ?> – <?php echo Math::wd_round($geom->geom_water_demand) . ' ' . Yii::app()->params['water_demand_unit']; ?> – <?php echo isset($zones[0]) ? Math::pe_round($zone->pe) . ' ' . Yii::app()->params['pe_abbreviation'] : ''; ?> – <?php echo isset($zones[0]) ? $zone->zoneDescription : 'Tipologia mancante'; ?> </h6> <span style="display: inline-block; text-align: right; float:right;"> <div class="geometry_add_edit_geom"> <?php if (!$view) { if (!isset($zones[0])) { /* echo CHtml::ajaxLink( ' ', array('waterRequestGeometryZones/popup', 'wr_id'=>$model->id,'type'=>'zone','geom_or_id'=>$geom->id),
<?php $ret = array(); foreach ($model->zones() as $zone) { $z = array('wr_id' => $model->wr->id, 'geom_id' => $model->id, 'id' => $zone->id, 'zone' => $zone->zoneDescription, 'pe' => Math::pe_round($zone->pe), 'wd' => Math::wd_round($zone->water_demand) . ' ' . Yii::app()->params['water_demand_unit']); array_push($ret, $z); } echo htmlspecialchars(json_encode($ret), ENT_NOQUOTES);
<b> <?php echo CHtml::encode(ucwords($property->description)); ?> :</b> <?php echo CHtml::encode($property->value); ?> <br/> ⇓ <br/> <b> <?php echo CHtml::encode($model->getAttributeLabel('pe')); ?> :</b> <?php echo CHtml::encode(Math::pe_round($model->pe)); ?> <br/> ⇓ <br/> <b> <?php echo CHtml::encode($model->getAttributeLabel('water_demand')); ?> :</b> <?php echo CHtml::encode(Utilities::printWD($model->water_demand)); ?> <?php $info_wd = true; break;