|
From: Florin C B. <ory...@us...> - 2013-06-17 18:20:12
|
Update of /cvsroot/mxbb/mx_weather/templates/_core In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20249/_core Added Files: _core.cfg blank.gif citycode_finder.tpl divtools.js mx_weather.tpl mx_weather_edit.tpl mx_weather_local.tpl mx_weather_view.tpl objectTools.js style_sheet.css weather.tpl weather_4401.html weather_center.tpl weather_side.html Log Message: --- NEW FILE: mx_weather_edit.tpl --- <h1>{L_WEATHER_TITLE}</h1> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span> <form action="{S_CONFIG_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" align="left" class="forumline"> <tr> <th class="thHead" colspan="3">{L_WEATHER_SETTINGS}</th> </tr> <tr> <td class="row1">{L_WEATHER_UNIT_DEFAULT}</td> <td class="row2"> <span class="gensmall"> {WEATHER_UNIT_SELECT}</span></td> </tr> <tr> <td class="catBottom" colspan="3" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </tr> </table></form> <br clear="all" /> <br /> <P>{L_WEATHER_BLOCK}</p> <table cellspacing="1" cellpadding="4" border="0" align="left" class="forumline"> <tr> <th class="thCornerL">{L_WEATHER_REGION}</th> <th class="thCornerL">{L_WEATHER_COUNTRY}</th> <th class="thCornerL">{L_WEATHER_SUBDIV}</th> <th class="thCornerL">{L_WEATHER_CITY}</th> <th class="thCornerR" colspan="3">{L_ACTION}</th> </tr> <!-- BEGIN weather --> <tr> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_REGION}</span></td> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_COUNTRY}</span></td> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_SUBDIV}</span></td> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_CITY}</span></td> <td class="{weather.ROW_CLASS}" align="center"><span class="genmed" ><a href="{weather.U_DELETE}">{L_DELETE}</a></span></td> <td class="{weather.ROW_CLASS}" align="center"><span class="genmed" ><a href="{weather.U_MENU_MOVE_UP}">{L_MOVE_UP}</a></span></td> <td class="{weather.ROW_CLASS}" align="center"><span class="genmed" ><a href="{weather.U_MENU_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> </tr> <!-- END weather --> </table> <br clear="all" /> <br /> <P>{L_WEATHER_LIST}</p> <form action="{S_WEATHER_ACTION}" method="post"> <table cellspacing="1" cellpadding="4" border="0" align="left" class="forumline"> <tr> <td class="row1">{L_WEATHER_REGION} :</td> <td class="row2" valign="middle" colspan="6"> {WEATHER_REGION_SELECT} <input type="submit" class="mainoption" name="cangenow" value="{L_CHANGE_NOW}" /> </td> </tr> <tr> <th class="thCornerL">{L_WEATHER_REGION}</th> <th class="thCornerL">{L_WEATHER_COUNTRY}</th> <th class="thCornerL">{L_WEATHER_SUBDIV}</th> <th class="thCornerL">{L_WEATHER_CITY}</th> <th colspan="5" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN weather_list --> <tr> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_REGION}</span></td> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_COUNTRY}</span></td> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_SUBDIV}</span></td> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_CITY}</span></td> <td class="{weather_list.ROW_CLASS}" colspan="3" ><span class="genmed" ><a href="{weather_list.U_ADD}">{L_ADD}</a></span></td> </tr> <!-- END weather_list --> </table></form> <br clear="all" /> --- NEW FILE: divtools.js --- var dtVersion = '1.3'; var dtAuthor = 'Joe Pearson'; var dtLastModifiedDate = '10/09/2005'; var dtLastModifiedBy = 'Nick Hess'; var timerRunning = false; function findPosX(obj) { var curleft = 0; if (isNS6 || isMinIE4) { if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } } else if (isMinNS4) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if (isNS6 || isMinIE4) { if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } } else if (isMinNS4) curtop += obj.y; return curtop; } function showImgX(imgName){ return findPosX(getObject(imgName)); } function showImgY(imgName){ return findPosY(getObject(imgName)); } function showDivX(divName) { if(isMinNS4) { return document.layers[divName].pageX; } else if(isMinIE4) { return document.all[divName].style.left.replace(/px/,''); } else if(isNS6) { return parseInt(document.getElementById(divName).style.left); } } function showDivY(divName) { if(isMinNS4) { return document.layers[divName].clip.width; } else if(isMinIE4) { return document.all[divName].style.top.replace(/px/,''); } else if(isNS6) { return parseInt(document.getElementById(divName).style.top); } } function mD(div, anchor, osX, osY) { xposition = (anchor != null)?findPosX(anchor):0; yposition = (anchor != null)?findPosY(anchor):0; div.style.left = ((osX)?xposition + osX:xposition) + "px"; div.style.top = ((osY)?yposition + osY:yposition)+"px"; div.style.visibility = "visible"; } function moveDiv(divName,anchorName,osX,osY) { var anchor=getObject(anchorName); var over=getObject(divName); mD(over,anchor,osX,osY) } function writeDiv(divName,divContent) { var thingy=getObject(divName); thingy.innerHTML = divContent; } function clipDiv(divName,clipTop,clipRight,clipBottom,clipLeft) { var thingy=getObject(divName); thingy.style.clip = "rect("+clipTop+"px "+clipRight+"px "+clipBottom+"px "+clipLeft+"px)"; } function hideDiv(divName){ var thingy=getObject(divName); thingy.style.visibility = "hidden"; } function showDiv(divName){ var thingy=getObject(divName); thingy.style.visibility = "visible"; } function stopSlide(){ if(timerRunning) clearInterval(timerID); timerRunning = false; } function startSlide(slideDiv,slideX,slideY,slideUnits,slideInt){ stopSlide(); timerRunning = true; xDone = false; yDone = false; var thisX = (slideX == 'null')?showDivX(slideDiv):slideX; var thisY = (slideY == 'null')?showDivY(slideDiv):slideY; slideFunc = "slideDiv('"+slideDiv+"',"+thisX+","+thisY+","+slideUnits+")"; timerID = setInterval(slideFunc,slideInt); } function slideDiv(slideDivName,destX,destY,moveUnits){ var yDone = false; var xDone = false; var divX = parseInt(showDivX(slideDivName)); var divY = parseInt(showDivY(slideDivName)); if (divX == destX || ((divX < destX)&&(divX+moveUnits >= destX)) || ((divX > destX)&&(divX-moveUnits <= destX))){ xDone = true; divX = parseInt(destX); } else if ((divX+moveUnits) > destX){ divX -= moveUnits; } else { divX += moveUnits; } if (divY == destY || ((divY < destY)&&(divY+moveUnits >= destY)) || ((divY > destY)&&(divY-moveUnits <= destY))){ yDone = true; divY = parseInt(destY); } else if ((divY+moveUnits) > destY){ divY -= moveUnits; } else { divY += moveUnits; } moveDiv(slideDivName,'null',divX,divY); if (xDone && yDone) { stopSlide(); } } --- NEW FILE: blank.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: weather.tpl --- <table class="tablebg" cellspacing="1" width="100%"> <!--<tr> <th>{L_WEATHER}</td> </tr>--> <tr> <td class="row1 gensmall" align="center" valign="middle">{WEATHER_ALTERNATE_URL}</td> </tr> <tr> <td class="row1 gensmall" align="center" valign="middle">{WEATHER_ALTERNATE_URL1}</td> </tr> <tr> <td class="row1 gensmall" align="center" valign="middle">{WEATHER_ALTERNATE_URL2}</td> </tr> <tr> <td class="row1 gensmall" align="center" valign="middle"> <!-- IF S_DISPLAY_WEATHER_GER --> <dd><a href="http://www.wetter.com/home/extern/ex_search.php?ms=1&ss=1&sss=2&search={LOCATION_ZIP}"><img src="http://www.wetter.com/home/woys/woys.php?,C,1,DEPLZ,{LOCATION_ZIP}" border="0" alt="" /></a></dd> <dd><a href="http://www.wetter.com/home/extern/ex_search.php?ms=1&ss=1&sss=2&search={LOCATION_ZIP}"><img src="http://www.wetter.com/home/woys/woys.php?,F,1,DEPLZ,{LOCATION_ZIP}" border="0" alt="" /></a></dd> <!-- ENDIF --> </td> </tr> </table> --- NEW FILE: weather_4401.html --- <div id="wx_module_4401"> <a href="http://www.weather.com/weather/local/ROXX0024">Arad Weather Forecast, Romania</a> </div> <script type="text/javascript"> /* Locations can be edited manually by updating 'wx_locID' below. Please also update */ /* the location name and link in the above div (wx_module) to reflect any changes made. */ var wx_locID = 'ROXX0024'; /* If you are editing locations manually and are adding multiple modules to one page, each */ /* module must have a unique div id. Please append a unique # to the div above, as well */ /* as the one referenced just below. If you use the builder to create individual modules */ /* you will not need to edit these parameters. */ var wx_targetDiv = 'wx_module_4401'; /* Please do not change the configuration value [wx_config] manually - your module */ /* will no longer function if you do. If at any time you wish to modify this */ /* configuration please use the graphical configuration tool found at */ /* https://registration.weather.com/ursa/wow/step2 */ var wx_config='SZ=160x600*WX=HWP*LNK=SSNL*UNT=C*BGI=snow*MAP=eur|null*DN= .ro*TIER=0*PID= *MD5='; document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>'); </script> --- NEW FILE: weather_center.tpl --- <table class="tablebg" cellspacing="1" width="100%"> <!--<tr> <th>{L_WEATHER}</td> </tr>--> <tr class="row1"> <td style="text-align:center;"> <!-- Wettercode Start --> <a href="http://www.wetter.com/home/extern/ex_search.php?search={WEATHER_PLZ}"><img src="http://www.wetter.com/home/woys/woys.php?,C,1,{WEATHER_COUNTRY}PLZ,{WEATHER_PLZ}" alt="" /></a> <a href="http://www.wetter.com/home/extern/ex_search.php?search={WEATHER_PLZ}"><img src="http://www.wetter.com/home/woys/woys.php?,F,1,{WEATHER_COUNTRY}PLZ,{WEATHER_PLZ}" alt="" /></a> <!-- Wettercode Ende --> </td> </tr> </table> --- NEW FILE: weather_side.html --- <div width="{BLOCK_SIZE}" class="forabg block"> <span class="corners-top"><span><h4>{L_TITLE}</h4></span></span> <div id="p1" class="inner bg2"> <ul class="content" id="logo"> <li class="{IMAGE_STYLE}" style="padding-right: 6px;padding-left: 6px;background-image: url('{IMAGE_SRC}');"> </li> <!-- img src="{IMAGE_SRC}" width="{IMAGE_WIDTH}" height="{IMAGE_HEIGHT}" alt="" /> {BLOCK_ICON} {L_WEATHER} --> </ul> <ul class="inner topiclist forums"> <li style="padding-right:1px;"><h4>{L_WEATHER}</h4></li> <li style="padding-right:1px;"> <div class="textbody post"> <div style="text-align: center;"> <!-- Yahoo Wetter Start --> <h3>{L_WEATHER_NOW}{CITY_NAME}</h3> {L_ACTTEMP}: {ACTTEMP}{L_TEMP_ICON}{L_TEMP_UNIT} <br /> <!-- img src="http://us.i1.yimg.com/us.yimg.com/i/us/we/52/{ACTCODE}.gif" alt="" / --> <img src="{ACTIMG_SRC}" alt="" /><br /> {L_ACTTEXT}: {ACTTEXT} <br /> {ACTTIME} <br /> <hr /> <!-- Yahoo! Wetter Ends --> </div> </div> <div style="text-align: center;"> {IMAGURL} <h5><a href="{WEATHER_YAHOOLINK}"><!-- img src="{WEATHER_COUNTRY}" alt="" / -->{L_YAHOO_WEATHER}</a></h5> </div> </li> </ul> </div> <span class="corners-bottom"><span> </span></span> </div> <!-- api11.weather.ch1.yahoo.com Mon Jun 3 22:58:27 PST 2013 --> --- NEW FILE: _core.cfg --- <?php /** * * @package MX-Publisher Module - mx_navmenu * @version $Id: _core.cfg,v 1.1 2013/06/17 18:20:09 orynider Exp $ * @copyright (c) 2002-2006 MX-Publisher Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // Please note that to enable support of different languages // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If // that language isn't available it will default to english. // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // // // Do not alter this line! // define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; // ------------------------------------------------------------------------- // Do some checks // ------------------------------------------------------------------------- $current_template_path = file_exists( $mx_root_path . $current_template_path . "/images" ) ? $current_template_path : ( file_exists( $mx_root_path . $cloned_template_path . "/images" ) ? $cloned_template_path : $default_template_path ); // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- $current_template_images = PORTAL_URL . $current_template_path . "/images"; // ------------------------------------------------------------------------- // Define images path // ------------------------------------------------------------------------- $mx_images['mx_menu_images'] = $current_template_images; ?> --- NEW FILE: style_sheet.css --- BODY { FONT-FAMILY: Verdana, Arial, Helvetica, Sans Serif; COLOR: #333; FONT-SIZE: 12px } TD { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } OL { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } UL { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } LI { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } .mpdToHide { DISPLAY: inline } .mpdToShow { [...3159 lines suppressed...] WHITE-SPACE: nowrap !important } #bodyContainer TABLE TD.inDentA IMG { MARGIN-RIGHT: 11px } #bodyContainer .module TD.blkVerdanaText10 .modBody UL LI DIV { MARGIN-LEFT: 18px !important } INPUT[name=height_feets] { MARGIN-BOTTOM: 5px; HEIGHT: 9px } INPUT[name=height_inches] { MARGIN-BOTTOM: 5px; HEIGHT: 9px } INPUT[name=weight] { MARGIN-BOTTOM: 5px; HEIGHT: 9px } TD.bodyText { DISPLAY: block } --- NEW FILE: citycode_finder.tpl --- <script language="JavaScript"> function changeParent(color){ opener.document.registrationform.zipcode.value = color; self.close(); } </script> <!-- BEGIN select_city --> <a href=javascript:changeParent('{select_city.CITY_CODE}')>{select_city.CITY_NAME}</a><br /> <!-- END select_city --> <form action="{U_FILENAME}" method="POST"> <p>{L_ENTER_CITY} <input type="text" name="loc" size="20" /><input type="submit" value="{L_SEARCH}" /></p> </form> <!-- BEGIN switch_user_logged_out --> <p class="gensmall" align="center">{WEATHER_DATA}</p> <!-- END switch_user_logged_out --> --- NEW FILE: mx_weather_view.tpl --- <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <td class="catHead" height="28"><span class="cattitle"><a href="{U_URL}" class="cattitle">{L_TITLE}</a></span></td> </tr> <tr> <td class="row1" height="28"><span class="catHead">{L_INFO}</td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=0 border=0 > <tr> <td align="right" class="row1" ><span class="gensmall">All temperatures shown in:</span><br/> <span class="gensmall"><input type=radio name=temp {CHECKED_TP_F} {ONCLICK_F}>Fahrenheit<input type=radio name=temp {CHECKED_TP_C} {ONCLICK_C}>Celsius</span></td> </tr> </table> </td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=0 border=0 > <tr> <td class="row1" > <img src="{IMG_CURRENT_COND}" align="top" alt="Current Conditions"> <font size="4" face="Arial" color="red">{TEMPERATURE}{GRAD}</font> <img src="{IMG}" align="center"><br> </td> <td class="row1" align="center" valign="middle" height="28" colspan="7"> <span class="gensmall">Wind: <b>{WINDD} {WINDS}</b>, Barometer: <b>{BARO}</b>, Humidity: <b>{HUMID}</b></span><br /> <span class="gensmall">UV: <b>{UV}</b>, Real Feel: <b>{REAL}</b>, Visibilty: <b>{VIS}</b></span> </td> </tr> </table> </td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=5 border=0 > <tr> <td class="row1"><img src="{IMG_FORECAST}" alt="5 Day Forecast"></td> <td class="row1" align="center" colspan="7"> <table cellpadding=0 cellspacing=5 border=0 > <tr> <td class="row1"> </td> <td class="row1" align="center"><span class="catHead">{L_DAY1}<br><img src="{IMG_DAY1}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY2}<br><img src="{IMG_DAY2}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY3}<br><img src="{IMG_DAY3}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY4}<br><img src="{IMG_DAY4}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY5}<br><img src="{IMG_DAY5}"></span></td> </tr> <tr> <td class="row1"><span class="gen">High:</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY1}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY2}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY3}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY4}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY5}{GRAD}</span></td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"><span class="gen">Low:</td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY1}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY2}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY3}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY4}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY5}{GRAD}</span></td> </tr> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=5 border=0 > <tr> <td width=88 rowspan=3 valign=top><img src="http://a799.ms.akamai.net/3/799/388/c88bde85a510d7/www.msnbc.com/m/wea/i/map_tag.gif" height=19 width=88 border=0 alt='Weather Maps'></td> <td colspan=7 height=9><spacer type=block height=9></td> </tr> <tr> <td align=center><a href=http://www.msnbc.com/m/c/ct_twc_lnk.asp?0wc=wm&url=http://www.weather.com/weather/mapredirect&cobrand=msnbc&locid={ACCID}&par=msnbc&site=msnbc.com&promo=regrad> <img src="http://a799.ms.akamai.net/3/799/388/795d8d54194025/www.msnbc.com/m/wea/i/radar.gif" height=64 width=62 alt=radar border=0></a></td> <td width=8><spacer type=block width=8></td> <td align=center><a href=http://www.msnbc.com/m/c/ct_twc_lnk.asp?0wc=wm&url=http://www.weather.com/weather/mapredirect&cobrand=msnbc&locid={ACCID}&mapid=regsat&par=msnbc&site=msnbc.com&promo=regsat><img src="http://a799.ms.akamai.net/3/799/388/981dca24a09bcf/www.msnbc.com/m/wea/i/satellite.gif" height=64 width=62 alt=satellite border=0></a></td> <td width=8><spacer type=block width=8></td> <td width=62><spacer type=block width=60></td> <td width=8><spacer type=block width=8></td> <td width=62><spacer type=block width=62></td> </tr> </table> </td></tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28" colspan="7"><span class="gensmall"> {L_COPYRIGHT}</span></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28" colspan="7"> <!-- begin weather.com logo include code --> <table cellpadding=0 cellspacing=0><tr><td align="center" > <a href="http://www.weather.com?par=internal&code=614221&site=logo&promo=english"> <img border=0 src="http://image.weather.com/pics/oap/slogo.gif"></a> </td></tr><tr><td align="center"> <form method="post" action="http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=internal&code=614221&site=logo&promo=english"> <table cellpadding=0 cellspacing=0><tr><td valign=center colspan=2> <font face="Arial, Helvetica, Chicago, Sans Serif" color="#004371" size="2"> Enter city or US Zip </font></td></tr><tr> <td width="40" align="left" valign="bottom"> <input name="destination" type="text" size="15" value=""> </td><td width="20" align="left" valign="bottom"> <input type="image" src="http://image.weather.com/pics/button_go.gif" width="26" height="23" border="0" alt="go!" value="Go City"></td></tr> </table></form> </td></tr></table> <!-- end weather.com logo include code--> </td> </tr> </table> --- NEW FILE: mx_weather.tpl --- <table width="{BLOCK_SIZE}" cellpadding="0" cellspacing="0" border="0" class="forumline"> <tr> <th class="thCornerL" align="left" colspan="2"> {L_TITLE} </th> <th class="thCornerR" align="right">{EDIT_IMG}</th> </tr> <!-- BEGIN cityrow --> <tr> <td class="row1" valign="middle" ><span class="genmed"><a href="{cityrow.U_CITY}" class="nav">{cityrow.CITY}</a></span></td> <td class="row1" valign="middle" align="right" nowrap="nowraw" ><span class="genmed"><a href="{cityrow.U_CITY}" class="nav">{cityrow.GRAD}</a></span></td> <td class="row1" valign="middle" align="right"><img src="{cityrow.IMAGE}"/> </td> </tr> <!-- END cityrow --> </table> <br clear="all" /> --- NEW FILE: mx_weather_local.tpl --- <!-- BEGIN switch_city_error --> <table> <tr> <td>{L_CITY_ERROR}</td> </tr> </table> <!-- END switch_city_error --> <!-- BEGIN switch_select_city --> <form action="{U_FILENAME}" method="POST"> {L_SELECT_A_CITY} <select size="1" name="id"> <!-- END switch_select_city --> <!-- BEGIN select_city --> <option value="{select_city.CITY_CODE}">{select_city.CITY_NAME}</option> <!-- END select_city --> <!-- BEGIN switch_select_city --> </select> {L_SELECT_FORECAST_LENGTH} <select size="1" name="length"> <option selected>10</option> <option>9</option> <option>8</option> <option>7</option> <option>6</option> <option>5</option> <option>4</option> <option>3</option> <option>2</option> <option>1</option> </select> <input type="submit" value="{L_GET_WEATHER}"> </form> <!-- END switch_select_city --> <!-- BEGIN switch_weather --> <table border="2" bordercolor="#0000FF" align="center"> <tr> <th bgcolor="#009933"><span class="city"><b>{CITY}</b></span></th> </tr> <tr> <td><font size=1>({L_LAST_UPDATED} {LAST_UPDATE}).</font></td> </tr> <tr> <td> <table> <tr> <td align="center"><img border="1" src="{CURRENT_WEATHER_ICON}" alt="{CURRENT_TEXT}" title="{CURRENT_TEXT}" /><br />{CURRENT_TEXT}</td> <td colspan="2"> <table> <tr> <td colspan="2"><font size=3><b>{L_CURRENT_CONDITIONS}</b></font></td> </tr> <tr> <td>{L_CURRENTLY}</td><td>{CURRENT_TEMP}{L_TEMP_ICON} {UNIT_TEMP}</td> </tr> <tr> <td>{L_FEELS_LIKE}</td><td>{CURRENT_FLTEMP}{L_TEMP_ICON} {UNIT_TEMP}</td> </tr> </table> </td> </tr> <tr> <td colspan="2"> <table> <tr> <td>{L_UV_INDEX}</td> <td>{CURRENT_UV_INDEX} {CURRENT_UV_RATING}</td> </tr> <tr> <td>{L_WIND}</td> <td>{CURRENT_WIND_CONDITIONS}</td> </tr> <tr> <td>{L_HUMIDITY}</td> <td>{CURRENT_HUMIDITY} {L_PERCENT_ICON}</td> </tr> <tr> <td>{L_PRESSURE}</td> <td>{CURRENT_PRESSURE} {UNIT_PRESSURE} {CURRENT_PRESSURE_CHANGE}</td> </tr> <tr> <td>{L_DEW_POINT}</td> <td>{CURRENT_DEWPOINT}{L_TEMP_ICON} {UNIT_TEMP}</td> </tr> <tr> <td>{L_VISIBILITY}</td> <td>{CURRENT_VISIBILITY} {UNIT_DISTANCE}</td> </tr> <tr> <td>{L_LOCAL_TIME}</td> <td>{CURRENT_TIME}</td> </tr> <tr> <td>{L_SUNRISE}</td> <td>{SUNRISE}</td> </tr> <tr> <td>{L_SUNSET}</td> <td>{SUNSET}</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table border="1" cellspacing="0" cellpadding="4" bordercolor="#000000" align="center"> <tr> <b> <span class="verdana_font"> <td width="8%" bgcolor="#feffff" align="center"><-10</td> <td width="8%" bgcolor="#d1c9df" align="center">-10</td> <td width="8%" bgcolor="#a496c0" align="center">0</td> <td width="8%" bgcolor="#3993ce" align="center">10's</td> <td width="8%" bgcolor="#0772b8" align="center">20's</td> <td width="8%" bgcolor="#03902b" align="center">30's</td> <td width="8%" bgcolor="#2dc558" align="center">40's</td> <td width="8%" bgcolor="#fecf3b" align="center">50's</td> <td width="8%" bgcolor="#ec9800" align="center">60's</td> <td width="8%" bgcolor="#dd531e" align="center">70's</td> <td width="8%" bgcolor="#c53600" align="center">80's</td> <td width="8%" bgcolor="#b10909" align="center">90's</td> <td width="9%" bgcolor="#6f0015" align="center"> <span class="white_text">100+</span> </td> </span> </b> </tr> </table> <table border="0" cellpadding="4" cellspacing="1" align="center"> <tr> <th>{L_DATE}</th> <th>{L_HIGHLOW}</th> <th>{L_DAY}</th> <th>{L_NIGHT}</th> </tr> <!-- END switch_weather --> <!-- BEGIN user_row --> <tr> <td bgcolor="{user_row.TEMP_COLOR}"><b>{user_row.DAY}, {user_row.DATE}</b></td> <td bgcolor="{user_row.ROW_COLOR}"><b>{user_row.HI_OR_CURRENT} {user_row.HI_OR_CURRENT_TEMP}{user_row.L_TEMP_ICON} {user_row.UNIT_TEMP}</b> <hr noshade><b>{L_LO} {user_row.LOW_TEMP_FORECAST}{user_row.L_TEMP_ICON} {user_row.UNIT_TEMP}</b></hr> </td> <td bgcolor="{user_row.ROW_COLOR}"> <table> <tr> <td colspan="2"><b>{user_row.DAY_TEXT_FORECAST}</b></td> </tr> <tr> <td> {user_row.L_SUNRISE} {user_row.SUNRISE}<br /> {user_row.L_WIND} {user_row.WIND_DAY_FORECAST} {user_row.WINDSPEED_DAY_FORECAST} {user_row.UNIT_SPEED}<br /> {user_row.L_HUMIDITY} {user_row.HUMIDITY_DAY_FORECAST}{user_row.L_PERCENT_ICON}<br /> {user_row.L_PRECIP} {user_row.PRECIP_DAY_FORECAST}{user_row.L_PERCENT_ICON} </td> <td align="right"><img src="{user_row.DAY_IMG_FORECAST}" /></td> </tr> </table> </td> <td bgcolor="{user_row.ROW_COLOR}"> <table> <tr> <td colspan="2"><b>{user_row.NIGHT_TEXT_FORECAST}</b></td> </tr> <tr> <td> {user_row.L_SUNSET} {user_row.SUNSET}<br /> {user_row.L_WIND} {user_row.WIND_NIGHT_FORECAST} {user_row.WINDSPEED_NIGHT_FORECAST} {user_row.UNIT_SPEED}<br /> {user_row.L_HUMIDITY} {user_row.HUMIDITY_NIGHT_FORECAST}{user_row.L_PERCENT_ICON}<br /> {user_row.L_PRECIP} {user_row.PRECIP_NIGHT_FORECAST}{user_row.L_PERCENT_ICON} </td> <td align="right"><img src="{user_row.NIGHT_IMG_FORECAST}" /></td> </tr> </table> </td> </tr> <!-- END user_row --> <!-- BEGIN switch_weather --> <tr> <td colspan="4">{USA_MAP}</td> </tr> <tr> <form action="{U_FILENAME}" method="POST"> <td colspan="4">{L_ENTER_CITY} <input type="text" name="loc" size="20"><input type="submit" value="{L_SEARCH}"></td> </form> </tr> <tr> <td colspan="4">{WEATHERCOM_DATA}</td> </tr> </table> <!-- END switch_weather --> <!-- BEGIN switch_user_logged_out --> <p class="gensmall" align="center">{WEATHER_DATA}</p> <!-- END switch_user_logged_out --> --- NEW FILE: objectTools.js --- // objectTools - a toolbox of DOM Object utilities // version info: $Author: orynider $ $Revision: 1.1 $ ($Date: 2013/06/17 18:20:09 $) // returns an object, given its ID function getObject(id) { var returnVal=null if (!isNS6) { returnVal=document.all[id]; } else { returnVal= document.getElementById(id); } return returnVal; } // stolen directly from ext.js. Attaches a function to an event on an object function addEvent(objObject, strEventName, fnHandler) { if (objObject.addEventListener) objObject.addEventListener(strEventName, fnHandler, false); else if (objObject.attachEvent) objObject.attachEvent("on" + strEventName, fnHandler); } |