本文整理汇总了PHP中Math::pe_round方法的典型用法代码示例。如果您正苦于以下问题:PHP Math::pe_round方法的具体用法?PHP Math::pe_round怎么用?PHP Math::pe_round使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Math
的用法示例。
在下文中一共展示了Math::pe_round方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
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
}
示例2: isset
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),
示例3: array
<?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);
示例4:
<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;