Advertisement:

Just one more coding question, please?

Aloittaja rucanunes, tammikuu 12, 2008, 02:50:33 IP

« edellinen - seuraava »

rucanunes

Hello,

Could you please tell me hwo to make this text "._W_SELECT_LOCATION." appear on the top of this Mod?

[code]<?php

/**

* @version $Id: eweather.html.php,v 1.1.0 2006/04/30 10:00:00 stingrey Exp $

* @package eWeather

* @subpackage eWeather

* @copyright (C) 2000 - 2006 MamboBaer.de (Harald Baer)

* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL

* eWeather is Free Software

*/



/** ensure this file is being included by a parent file */

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );



class weather_day {

  var $day_num = null;

  var $day_weekday = null;

  var $day_date = null;

  var $day_temp_max = null;

  var $day_temp_min = null;

  var $day_sunrise = null;

  var $day_sunset = null;

  // Day Part

  var $day_d_icon = null;

  var $day_d_text = null;

  var $day_d_windspeed = null;

  var $day_d_windgust = null;

  var $day_d_winddirection = null;

  var $day_d_windtext = null;

  var $day_d_precipitation = null;

  var $day_d_windtextd = null;

  var $day_d_humidity = null;

  // Night Part

  var $day_n_icon = null;

  var $day_n_text = null;

  var $day_n_windspeed = null;

  var $day_n_windgust = null;

  var $day_n_winddirection = null;

  var $day_n_windtext = null;

  var $day_n_precipitation = null;

  var $day_n_windtextd = null;

  var $day_n_humidity = null;

}



class weather_global {

  // Header Tag Informations

  var $h_temp = null;

  var $h_distance = null;

  var $h_speed = null;

  var $h_precipitation = null;

  var $h_pressure = null;



  var $e_error = null;

  var $n_channels = null;



  // Location Tag Information

  var $loc_city = null;

  var $loc_code = null;

  var $loc_localtime = null;

  var $loc_longitude = null;

  var $loc_latitude = null;

  var $loc_sunrise = null;

  var $loc_sunset = null;

  var $loc_timezone = null;



  // Current Conditions Tag Information

  var $cc_lastupdate = null;

  var $cc_observatory = null;

  var $cc_temp = null;

  var $cc_windchill = null;

  var $cc_text = null;

  var $cc_icon = null;

  var $cc_windspeed = null;

  var $cc_winddirection = null;

  var $cc_windtext = null;

  var $cc_windgust = null;

  var $cc_barpressure = null;

  var $cc_bartext = null;

  var $cc_humidity = null;

  var $cc_uvindex = null;

  var $cc_uvtext = null;

  var $cc_moonicon = null;

  var $cc_moontext = null;

  var $cc_visibility = null;

  var $cc_dewp =null;



  // Forecast Tag Information

  var $dayf_lastupdate = null;

  var $dayf_forecasts = array();



}



class HTML_weather {



  function displayHeader(){

    global $mosConfig_live_site, $Itemid, $database;



    $mname = new mosMenu( $database );

    $mname->load($Itemid);

   

  }



  function displayWeather(&$weather, $weatherIconsStyle){

    global $mosConfig_live_site, $mosConfig_absolute_path;



    $cont_xx = "<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\">\n"

              ."  <tr>\n"

              ."    <td class=\"sectiontableheader\" valign=\"middle\">"

              ."      "._W_ACTUAL."&nbsp;-&nbsp;".$weather->cc_lastupdate."\n"

              ."    </td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td>&nbsp;</td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td>\n"

              ."      <table border=\"0\" width=\"99%\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">\n"

              ."        <tr>\n"

              ."          <td width=\"33%\"style=\"font-size: 13px; color: #000000; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; text-indent: 5px; background: url(".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png) repeat-x;\"><b>".$weather->loc_city."</b></td>\n"

              ."          <td>&nbsp;</td>\n"

              ."          <td width=\"33%\"style=\"font-size: 13px; color: #000000; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; text-indent: 5px; background: url(".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png) repeat-x;\"><b>"._W_WIND."</b></td>\n"

              ."          <td>&nbsp;</td>\n"

              ."          <td width=\"33%\" style=\"font-size: 13px; color: #000000; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; text-indent: 5px; background: url(".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png) repeat-x;\"><b>"._W_LOC_DATA."</b></td>\n"

              ."        </tr>\n"

              ."        <tr>\n"

              ."          <td valign=\"top\" style=\"border: 1px solid #CCCCCC;\">\n"



              ."            <table border=\"0\" width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n"

              ."              <tr>\n"

              ."                <td>\n"

              ."                  <div align=\"center\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/large/".$weather->cc_icon.".png\" alt=\"\" border=\"0\" /></div>\n"

              ."                  <div style=\"font-size: 13px; font-weight: normal; text-align: center\">".$weather->cc_text."</div>\n"

              ."                </td>\n"

              ."                <td>\n"

              ."                  <div style=\"font-size: 23px; font-weight: bold; text-align: center;\">".$weather->cc_temp."°".$weather->h_temp."</div><br />\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."            </table>\n"

              ."            <table border=\"0\" width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n"

              ."              <tr>\n"

              ."                <td>\n"

              ."                  <table border=\"0\" width=\"100%\" cellspacing=\"0\" summary=\"\">\n"

              ."                    <tr style=\"background: #DFDFDF;\">\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: left;\">"._W_WINDCHILL.":</div>\n"

              ."                      </td>\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: right;\">".$weather->cc_windchill."°".$weather->h_temp."</div>\n"

              ."                      </td>\n"

              ."                    </tr>\n"

              ."                    <tr style=\"background: #EFEFEF;\">\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: left;\">"._W_SUNRISE.":</div>\n"

              ."                      </td>\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: right;\">".$weather->loc_sunrise."</div>\n"

              ."                      </td>\n"

              ."                    </tr>\n"

              ."                    <tr style=\"background: #DFDFDF;\">\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: left;\">"._W_SUNSET.":</div>\n"

              ."                      </td>\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: right;\">".$weather->loc_sunset."</div>\n"

              ."                      </td>\n"

              ."                    </tr>\n"

              ."                  </table>\n"

              ."                </td>\n"

              ."                <td>\n"

              ."                 <div align=\"center\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/moon/".$weather->cc_moonicon.".gif\" border=\"0\" alt=\"\" /><br />".$weather->cc_moontext."</div>\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."            </table>\n"

              ."          </td>\n"



              ."          <td>&nbsp;</td>\n"



              ."          <td valign=\"top\" style=\"border: 1px solid #CCCCCC\">\n"



              ."            <table border=\"0\" width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n"

              ."              <tr>\n"

              ."                <td>\n"

              ."                  <div align=\"center\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/winddirs/wind_".$weather->cc_windtext.".gif\" alt=\"\" border=\"0\" /></div>\n"

              ."                </td>\n"

              ."                <td>\n"

              ."                  <div style=\"font-size: 23px; font-weight: bold; text-align: center;\">".$weather->cc_windtext."</div><br />\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."            </table><br />\n"

              ."            <table border=\"0\" width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n"

              ."              <tr>\n"

              ."                <td valign=\"middle\">\n"



              ."                  <table border=\"0\" width=\"80%\" cellspacing=\"0\" align=\"center\">\n"

              ."                    <tr style=\"background: #DFDFDF;\">\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: left;\">"._W_WINDSPEED.":</div>\n"

              ."                      </td>\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: right;\">".$weather->cc_windspeed."&nbsp;".$weather->h_speed."</div>\n"

              ."                      </td>\n"

              ."                    </tr>\n"

              ."                    <tr style=\"background: #EFEFEF;\">\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: left;\">"._W_WINDDIR.":</div>\n"

              ."                      </td>\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: right;\">".$weather->cc_winddirection."°</div>\n"

              ."                      </td>\n"

              ."                    </tr>\n"

              ."                    <tr style=\"background: #DFDFDF;\">\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: left;\">"._W_WINDGUST.":</div>\n"

              ."                      </td>\n"

              ."                      <td>\n"

              ."                        <div style=\"font-size: 11px; font-weight: normal; color: #000000; text-align: right;\">".$weather->cc_windgust."&nbsp;".$weather->h_speed."</div>\n"

              ."                      </td>\n"

              ."                    </tr>\n"

              ."                  </table>\n"



              ."                </td>\n"

              ."              </tr>\n"

              ."            </table>\n"





              ."          </td>\n"



              ."          <td>&nbsp;</td>\n"



              ."          <td valign=\"top\" style=\"border: 1px solid #CCCCCC;\">\n"



              ."            <br />\n"

              ."            <table border=\"0\" width=\"98%\" cellspacing=\"0\" align=\"center\" summary=\"\">\n"

              ."              <tr style=\"background: #DFDFDF;\">\n"

              ."                <td>\n"

              ."                  <div style=\" color: #000000;\">"._W_OBST.":</div>\n"

              ."                </td>\n"

              ."                <td style=\"text-align: right; color: #000000;\">\n"

              ."                ".$weather->cc_observatory."\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."              <tr style=\"background: #EFEFEF;\">\n"

              ."                <td>\n"

              ."                  <div style=\" color: #000000;\">"._W_LAT.":</div>\n"

              ."                </td>\n"

              ."                <td style=\"text-align: right; color: #000000;\">\n"

              ."                ".$weather->loc_latitude."\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."              <tr style=\"background: #DFDFDF;\">\n"

              ."                <td>\n"

              ."                  <div style=\" color: #000000;\">"._W_LON.":</div>\n"

              ."                </td>\n"

              ."                <td style=\"text-align: right; color: #000000;\">\n"

              ."                ".$weather->loc_longitude."\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."              <tr style=\"background: #EFEFEF;\">\n"

              ."                <td>\n"

              ."                  <div style=\" color: #000000;\">"._W_DEWP.":</div>\n"

              ."                </td>\n"

              ."                <td style=\"text-align: right; color: #000000;\">\n"

              ."                ".$weather->cc_dewp."°".$weather->h_temp."\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."              <tr style=\"background: #DFDFDF;\">\n"

              ."                <td>\n"

              ."                  <div style=\" color: #000000;\">"._W_VISIBILITY.":</div>\n"

              ."                </td>\n"

              ."                <td style=\"text-align: right; color: #000000;\">\n"

              ."                ".$weather->cc_visibility."&nbsp;".$weather->h_distance."\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."              <tr style=\"background: #EFEFEF; color: #000000;\">\n"

              ."                <td>\n"

              ."                  <div style=\" color: #000000;\">"._W_HUMIDITY.":</div>\n"

              ."                </td>\n"

              ."                <td style=\"text-align: right; color: #000000;\">\n"

              ."                ".$weather->cc_humidity."%\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."              <tr style=\"background: #DFDFDF;\">\n"

              ."                <td>\n"

              ."                  <div style=\" color: #000000;\">"._W_PRESSURE.":</div>\n"

              ."                </td>\n"

              ."                <td style=\"text-align: right; color: #000000;\">\n"

              ."                ".$weather->cc_barpressure."&nbsp;".$weather->h_pressure."&nbsp;(".$weather->cc_bartext.")\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."            </table>\n"

              ."            <br />\n"

              ."            <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"174\" align=\"center\" summary=\"\">\n"

              ."            <tbody>\n"

              ."              <tr>\n"

              ."                <td colspan=\"4\" style=\"height: 2px;\"></td>\n"

              ."              </tr>\n"

              ."              <tr>\n"

              ."                <td colspan=\"4\" valign=\"top\">\n"

              ."                  <face=\"verdana\" size=\"1\">&nbsp;<b>"._W_UV_INDEX."&nbsp;(".$weather->cc_uvindex.")</b></font>\n"

              ."                </td>\n"

              ."              </tr>\n"

              ."              <tr>\n"

              ."                <td rowspan=\"3\" style=\"height: 3px; width: 4px;\"></td>\n"

              ."              </tr>\n"

              ."              <tr>\n"

              ."                <td colspan=\"4\" height=\"4\">\n"

              ."                  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"height: 2; \" summary=\"\">\n"

              ."                  <tbody>\n"

              ."                    <tr>\n";



              for ($y = 0; $y < 11; $y++) {

                 if($weather->cc_uvindex != $y){

                    $cont_xx.= "          <td width=\"15\"></td>\n";

                 } else {

                    $cont_xx.= "          <td width=\"15\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/arrow.gif\" height=\"6\" width=\"6\" alt=\"\" /></td>\n";

                 }

              }





    $cont_xx.= "        </tr>\n"

              ."        </tbody>\n"

              ."      </table>\n"

              ."    </td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td colspan=\"4\" height=\"4\">\n"

              ."      <img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/uvkey.gif\" height=\"10\" width=\"166\" alt=\"\" />\n"

              ."    </td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td colspan=\"4\" style=\"height: 1px;\"></td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td rowspan=\"3\" style=\"width: 4px;\"></td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td width=\"42\"><face=\"Verdana,sans-serif\" size=\"-2\">"._W_UV_LOW."</font></td>\n"

              ."    <td width=\"42\"><face=\"Verdana,sans-serif\" size=\"-2\">"._W_UV_MED."</font></td>\n"

              ."    <td width=\"42\"><face=\"Verdana,sans-serif\" size=\"-2\">"._W_UV_HIGH."</font></td>\n"

              ."    <td width=\"42\"><face=\"Verdana,sans-serif\" size=\"-2\">"._W_UV_SHIGH."</font></td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td width=\"42\"><face=\"Verdana,sans-serif\" size=\"-2\">0</font></td>\n"

              ."    <td width=\"42\"><face=\"Verdana,sans-serif\" size=\"-2\">&nbsp;</font></td>\n"

              ."    <td width=\"42\"><face=\"Verdana,sans-serif\" size=\"-2\">&nbsp;</font></td>\n"

              ."    <td width=\"42\" align=\"right\" style=\"text-align: right;\"><face=\"Verdana,sans-serif\" size=\"-2\">+10</font></td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td colspan=\"4\" style=\"height: 6px;\"></td>\n"

              ."  </tr>\n"

              ."  </tbody>\n"

              ."</table>\n"



              ."          </td>\n"



              ."        </tr>\n"

              ."      </table>\n"

              ."    </td>\n"

              ."  </tr>\n"

              ."</table><br /><br />\n";



    echo $cont_xx;

  }





  function displayForecast(&$weather, $weatherIconsStyle, $date_format){

    global $mosConfig_live_site, $Itemid;



    $day_counter = count($weather->dayf_forecasts);

    $content = "<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" summary=\"\">\n"

              ."  <tr>"

              ."    <td class=\"sectiontableheader\" valign=\"middle\">"

              ."      "._W_FORECAST."&nbsp;-&nbsp;".$weather->dayf_lastupdate."\n"

              ."    </td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td>\n"

              ."      <br />\n"

              ."      <table border=\"0\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\" summary=\"\">\n"

              ."        <tr>\n";



    for ($x = 0; $x < $day_counter; $x++) {

    $v = strftime($date_format, strtotime($weather->dayf_forecasts[$x]->day_date));

    $content.= "          <td>\n"

              ."      <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" summary=\"\">\n"

              ."        <tr>\n"

              //  background=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png\"

              ."          <td style=\" border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; background: url(".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png) repeat-x;\" height=\"19\" colspan=\"2\">\n"

              //  valign=\"absmiddle\"

              ."            <div style=\"font-weight: bold; text-align: center; color: #000000; border: 0px; vertical-align: bottom;\">\n"

              ."              <a href=\"index.php?option=com_eweather&amp;Itemid=".$Itemid."&amp;detail_view=".$x."\" title=\""._W_FORECAST_FTITLE."\">\n"

              ."              <img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/plus.gif\" align=\"left\" border=\"0\" alt=\"\" />\n"

              ."              </a>\n"

              ."            ".$v."</div>\n"

              ."          </td>\n"

              ."        </tr>\n"

              ."        <tr>\n"

              ."          <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;\">\n"

              ."            <div style=\"font-weight: bold; text-align: center;\">"._W_FORECAST_DAY."</div>\n"

              ."          </td>\n"

              ."          <td style=\"border-right: 1px solid #CCCCCC;\">\n"

              ."            <div style=\"font-weight: bold; text-align: center;\">"._W_FORECAST_NIGHT."</div>\n"

              ."          </td>\n"

              ."        <tr>\n"

              ."          <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"

              ."            <div align=\"center\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/small/".$weather->dayf_forecasts[$x]->day_d_icon.".png\" border=\"0\" alt=\"\" /><br /></div>\n"

              ."          </td>\n"

              ."          <td style=\"border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"

              ."            <div align=\"center\"><img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/small/".$weather->dayf_forecasts[$x]->day_n_icon.".png\" border=\"0\" alt=\"\" /><br /></div>\n"

              ."          </td>\n"

              ."        </tr>\n"

              ."        <tr>\n"

              ."          <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;\" colspan=\"2\">\n"

              ."            <div style=\"font-weight: bold; text-align: center; color: #000000; background: #EFEFEF;\">"._W_FORECAST_TEMP."</div>\n"

              ."          </td>\n"

              ."        </tr>\n"

              ."        <tr>\n"

              ."          <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"

              ."            <div align=\"center\">"._W_FORECAST_TEMP_MAX.": ".$weather->dayf_forecasts[$x]->day_temp_max."°".$weather->h_temp."<br /></div>\n"

              ."          </td>\n"

              ."          <td style=\"border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"

              ."            <div align=\"center\">"._W_FORECAST_TEMP_MIN.": ".$weather->dayf_forecasts[$x]->day_temp_min."°".$weather->h_temp."<br /></div>\n"

              ."          </td>\n"

              ."        </tr>\n"

              ."        <tr>\n"

              ."          <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;\" colspan=\"2\">\n"

              ."            <div style=\"font-weight: bold; text-align: center; color: #000000; background: #EFEFEF;\">"._W_FORECAST_RAIN."</div>\n"

              ."          </td>\n"

              ."        </tr>\n"

              ."        <tr>\n"

              ."          <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"

              ."            <div align=\"center\">".$weather->dayf_forecasts[$x]->day_d_precipitation."%<br /></div>\n"

              ."          </td>\n"

              ."          <td style=\"border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"

              ."            <div align=\"center\">".$weather->dayf_forecasts[$x]->day_n_precipitation."%<br /></div>\n"

              ."          </td>\n"

              ."        </tr>\n"

              ."      </table>\n";

              if ($x == 4) {

                  $content.= "</td></tr><tr><td colspan=\"15\" height=\"10\"></td></tr><tr>";

              } elseif ($x != $day_counter-1) {

                  $content.= "<td width=\"15\"></td>";

              }

    }



    $content.= "    </tr></table>\n"

              ."    </td>\n"

              ."  </tr>\n"

              ."</table>\n";

    echo $content;

  }



  function displayDetailForecast(&$weather, $weatherIconsStyle, $lastUpdate, $metric_v, $metric_t, $date_format){

    global $mosConfig_live_site, $Itemid;



    $v = strftime($date_format, strtotime($weather->day_date));

    $content = "<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" summary=\"\">\n"

              ."  <tr>"

              ."    <td class=\"sectiontableheader\" valign=\"middle\">"

              ."      "._W_FORECAST."&nbsp;-&nbsp;".$lastUpdate."\n"

              ."    </td>\n"

              ."  </tr>\n"

              ."  <tr>\n"

              ."    <td>\n"

              ."      <br />\n"

              ."      <table width=\"70%\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" summary=\"\">\n"

              ."        <tr>\n"

              ."          <td background=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/subhead.png\" style=\"font-size: 13px; color: #000000; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; text-indent: 5px;\">\n"

              ."            <div style=\"font-weight: bold; text-align: center; color: #000000; border: 0px; vertical-align: bottom;\" valign=\"absmiddle\">\n"

              ."              <a href=\"index.php?option=com_eweather&amp;Itemid=".$Itemid."\" title=\""._W_FORECAST_BACK."\">\n"

              ."              <img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/minus.gif\" align=\"left\" border=\"0\" alt=\"\" />\n"

              ."              </a>\n"

              ."            </div>\n"

              ."            <b>"._W_FORECAST."&nbsp;"._W_FORECAST_FOR."&nbsp;".$v."</b>\n"

              ."          </td>\n"

              ."        </tr>\n"

              ."        <tr>\n"

              ."          <td style=\"border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;\">\n"

              ."            <br />\n"

              ."            <table width=\"98%\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" summary=\"\">\n"

              ."              <tr>\n"

              ."                <td colspan=\"2\" align=\"center\" style=\"padding-bottom: 5px; border-bottom: 1px solid #CCCCCC;\">\n"



              ."            <table border=\"0\" width=\"290\" cellspacing=\"0\" align=\"center\" cellpadding=\"2\" cellspacing=\"5\" summary=\"\">\n"

              ."              <tr style=\"background: #DFDFDF;\">\n"

              ."
Sala dos Professores http://www.saladosprofessores.com

SleePy

It looks like this outputs everything:

    $cont_xx = "<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\">\n"

So
    $cont_xx = _W_SELECT_LOCATION . "<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\">\n"
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: