Example #1
0
File: _pdf.php Project: Gnafu/wiz
    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 
}
Example #2
0
        echo $class;
        ?>
" id="<?php 
        echo $geom->wr->id . '_' . $geom->id . (isset($zones[0]) ? '_' . $zone->id : '');
        ?>
">
					<?php 
        echo $geom->name;
        ?>
					&nbsp;&ndash;&nbsp;
					<?php 
        echo Math::wd_round($geom->geom_water_demand) . '&nbsp;' . Yii::app()->params['water_demand_unit'];
        ?>
					&nbsp;&ndash;&nbsp;
					<?php 
        echo isset($zones[0]) ? Math::pe_round($zone->pe) . '&nbsp' . Yii::app()->params['pe_abbreviation'] : '';
        ?>
					&nbsp;&ndash;&nbsp;
					<?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(
                									'&nbsp;',    
                									array('waterRequestGeometryZones/popup', 'wr_id'=>$model->id,'type'=>'zone','geom_or_id'=>$geom->id),
Example #3
0
<?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);
Example #4
0
						<b> <?php 
        echo CHtml::encode(ucwords($property->description));
        ?>
:</b>
						<?php 
        echo CHtml::encode($property->value);
        ?>
						<br/>
						&#8659;
						<br/>
						<b> <?php 
        echo CHtml::encode($model->getAttributeLabel('pe'));
        ?>
:</b>
						<?php 
        echo CHtml::encode(Math::pe_round($model->pe));
        ?>
						<br/>
						&#8659;
						<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;