Пример #1
0
?>
">
      </div>

      <div class="form-group">
        <label for="temp">Temperature:</label>
        <input class="form-control" id="temp" type="text" name="Temperature" value="<?php 
echo $Weather->getTemperature();
?>
">
      </div>

      <div class="form-group">
        <label for="conditions">Conditions:</label>
        <input id="conditions" class="form-control" type="text" name="Conditions" value="<?php 
echo $Weather->getConditions();
?>
">
      </div>

      <?php 
$date = new DateTime('America/Denver');
$CurrentDate = $date->format("Y-m-d H:i:s");
$currentConditions = "Loading...";
$currentLocation = "Loading...";
?>

      <div class="form-group">
        <label for="currenttime">Current Date and Time:</label>
        <input id="currenttime" class="form-control" type="text" name="CurrentTime" value="<?php 
echo $CurrentDate;