本文整理汇总了PHP中datos::datoDom方法的典型用法代码示例。如果您正苦于以下问题:PHP datos::datoDom方法的具体用法?PHP datos::datoDom怎么用?PHP datos::datoDom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类datos
的用法示例。
在下文中一共展示了datos::datoDom方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: datos
<?php
$datoA = new datos($estacion);
$datoTotalA = new datos($estacion);
$datoPrecA = new datos($estacion);
$datoVDVientoA = new datos($estacion);
$datoA->DiaAyer();
$datoTotalA->maxminDia($datoA->ano, $datoA->mes, $datoA->dia);
$datoPrecA->diaSeco('precHoy', $datoA->ano, $datoA->mes, $datoA->dia);
$datoPrecA->diaLluvioso('precHoy', $dato->ano, $datoA->mes, $datoA->dia);
$datoVDVientoA->datoDom('dVientoActual', $datoA->ano, $datoA->mes, $datoA->dia);
echo "\n<div class='row' style='padding-top:10px'>\n \n <!-- Primer Panel Temperatura-->\n <div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Temperatura y Humedad</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Temperatura Maxima Exterior</strong></td>\n <td>" . $datoTotalA->maxDatoTemp . " °C</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraTemp . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Temperatura Minima Exterior</strong></td>\n <td>" . $datoTotalA->minDatoTemp . " °C</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->minDatoHoraTemp . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Rango de Temperatura</strong></td>\n <td>" . ($datoTotalA->maxDatoTemp - $datoTotalA->minDatoTemp) . " °C</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td></td>\n </tr>\n <tr>\n <td><strong>Maxima Sensacion Termica</strong></td>\n <td>" . $datoTotalA->maxDatoSen . " °C</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraSen . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Minima Sensacion Termica</strong></td>\n <td>" . $datoTotalA->minDatoSen . " °C </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->minDatoHoraSen . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n <td><strong>Maximo Punto de Rocío</strong></td>\n <td>" . $datoTotalA->maxDatoRocio . " °C</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraRocio . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Minimo Punto de Rocío</strong></td>\n <td>" . $datoTotalA->minDatoRocio . " °C </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->minDatoHoraRocio . "</td>\n </tr>\n <tr>\n <td><strong>Maxima Humedad Exterior</strong></td>\n <td>" . $datoTotalA->maxDatoHum . " % </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraHum . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n <td><strong>Minima Humedad Exterior</strong></td>\n <td>" . $datoTotalA->minDatoHum . " % </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->minDatoHoraHum . "</td>\n </tr> \n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\t\t\t\n\t\t\t<div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Precipitación</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Precipitación Hoy</strong></td>\n <td>" . $datoTotalA->maxDatoPrec . " mm</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td></td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Ritmo Maximo</strong></td>\n <td>" . $datoTotalA->maxDatoPrecA . " mm/hr</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraPrecA . "</td>\n </tr>\n \n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\t\t\t\n\t\t\t<div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Viento y fuerza</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Maxima Rafaga de Viento</strong></td>\n <td>" . $datoTotalA->maxDatoViR . " kts</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraViR . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Maxima Intencidad del Viento</strong></td>\n <td>" . $datoTotalA->maxDatoVi . " kts</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraVi . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Dirección del Viento Dominante</strong></td>\n <td>" . $datoVDVientoA->datoDomV . "° " . $datoVDVientoA->letra . "</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td></td>\n </tr>\n \n \n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\t\t\t\n\t\t\t<div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Presión</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Presión Maxima</strong></td>\n <td>" . $datoTotalA->maxDatoPres . " hPa</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraPres . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Presión Minima</strong></td>\n <td>" . $datoTotalA->minDatoPres . " hPa</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->minDatoHoraPres . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Radiación Solar Maxima</strong></td>\n <td>" . $datoTotalA->maxDatoRSol . " W/m²</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTotalA->maxDatoHoraRSol . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n \n</div>\n\n";
示例2: datos
<?php
$datoAn = new datos($estacion);
$datoTAn = new datos($estacion);
$datoPrecAn = new datos($estacion);
$datoVDVientoAn = new datos($estacion);
$datoAn->DiaHoy();
$datoTAn->maxminDia($datoAn->ano, '%', '%');
$datoPrecAn->diaSeco('precHoy', $datoAn->ano, '%', '%');
$datoPrecAn->diaLluvioso('precHoy', $datoAn->ano, '%', '%');
$datoVDVientoAn->datoDom('dVientoActual', $datoAn->ano, '%', '%');
echo "\n<div class='row' style='padding-top:10px'>\n \n <!-- Primer Panel Temperatura-->\n <div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Temperatura y Humedad</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Temperatura Maxima Exterior</strong></td>\n <td>" . $datoTAn->maxDatoTemp . " °C</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraTemp . " el " . $datoTAn->maxDatoDiaTemp . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Temperatura Minima Exterior</strong></td>\n <td>" . $datoTAn->minDatoTemp . " °C</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->minDatoHoraTemp . " el " . $datoTAn->minDatoDiaTemp . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Rango de Temperatura</strong></td>\n <td>" . ($datoTAn->maxDatoTemp - $datoTAn->minDatoTemp) . " °C</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td></td>\n </tr>\n <tr>\n <td><strong>Maxima Sensacion Termica</strong></td>\n <td>" . $datoTAn->maxDatoSen . " °C</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraSen . " el " . $datoTAn->maxDatoDiaSen . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Minima Sensacion Termica</strong></td>\n <td>" . $datoTAn->minDatoSen . " °C </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->minDatoHoraSen . " el " . $datoTAn->minDatoDiaSen . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n <td><strong>Maximo Punto de Rocío</strong></td>\n <td>" . $datoTAn->maxDatoRocio . " °C</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraRocio . " el " . $datoTAn->maxDatoDiaRocio . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Minimo Punto de Rocío</strong></td>\n <td>" . $datoTAn->minDatoRocio . " °C </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->minDatoHoraRocio . " el " . $datoTAn->minDatoDiaRocio . "</td>\n </tr>\n <tr>\n <td><strong>Maxima Humedad Exterior</strong></td>\n <td>" . $datoTAn->maxDatoHum . " % </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraHum . " el " . $datoTMes->maxDatoDiaHum . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n <td><strong>Minima Humedad Exterior</strong></td>\n <td>" . $datoTAn->minDatoHum . " % </td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->minDatoHoraHum . " el " . $datoTMes->minDatoDiaHum . "</td>\n </tr>\n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\t\t\t\n\t\t\t<div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Precipitación</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Maxima Precipitación</strong></td>\n <td>" . $datoTAn->maxDatoPrec . " mm</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td> el " . $datoTAn->maxDatoDiaPrec . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Ritmo Maximo</strong></td>\n <td>" . $datoTAn->maxDatoPrecA . " mm/hr</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraPrecA . " el " . $datoTAn->maxDatoDiaPrecA . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n \n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\t\t\t\n\t\t\t<div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Viento y fuerza</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Maxima Rafaga de Viento</strong></td>\n <td>" . $datoTAn->maxDatoViR . " kts</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraViR . " el " . $datoTAn->maxDatoDiaViR . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Maxima Intencidad del Viento</strong></td>\n <td>" . $datoTAn->maxDatoVi . " kts</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraVi . " el " . $datoTAn->maxDatoDiaVi . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Dirección del Viento Dominante</strong></td>\n <td>" . $datoVDVientoAn->datoDomV . "° " . $datoVDVientoAn->letra . "</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td></td>\n </tr>\n \n \n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\t\t\t\n\t\t\t<div class='col-md-12 col-xs-12'>\n <div class='panel panel-primary'>\n <div class='panel-heading'>\n <h3 class='panel-title'>Presión</h3>\n </div>\n <div class='panel-body'>\n <div class='row'>\n <div class='col-md-12'>\n <div class='bs-example' data-example-id='bordered-table'>\n <table class='table table-striped table-hover table-condensed table-responsive'>\n \n <tbody>\n <tr>\n <td width='50%'><strong>Presión Maxima</strong></td>\n <td>" . $datoTAn->maxDatoPres . " hPa</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraPres . " el " . $datoTAn->maxDatoDiaPres . "</td>\n </tr>\n <tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Presión Minima</strong></td>\n <td>" . $datoTAn->minDatoPres . " hPa</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->minDatoHoraPres . " el " . $datoTAn->minDatoDiaPres . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><strong>Radiación Solar Maxima</strong></td>\n <td>" . $datoTAn->maxDatoRSol . " W/m²</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>a las " . $datoTAn->maxDatoHoraRSol . " el " . $datoTAn->maxDatoDiaRSol . "</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n </tbody>\n </table>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n \n</div>\n\n";