| 16 |
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %> |
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %> |
| 17 |
<%@ page import="java.util.*"%> |
<%@ page import="java.util.*"%> |
| 18 |
|
|
| 19 |
<jsp:useBean id="weather" class="jp.sf.pal.weather.Weather" scope="request" /> |
<jsp:useBean id="todayweather" class="jp.sf.pal.weather.Weather" scope="request" /> |
| 20 |
|
<jsp:useBean id="tomorrowweather" class="jp.sf.pal.weather.Weather" scope="request" /> |
| 21 |
|
<jsp:useBean id="dayaftertomorrowweather" class="jp.sf.pal.weather.Weather" scope="request" /> |
| 22 |
<fmt:setBundle basename="jp.sf.pal.weather.resources.WeatherResources" /> |
<fmt:setBundle basename="jp.sf.pal.weather.resources.WeatherResources" /> |
| 23 |
<portlet:defineObjects/> |
<portlet:defineObjects/> |
| 24 |
|
|
| 26 |
<table width="100%" border="1"> |
<table width="100%" border="1"> |
| 27 |
<tr> |
<tr> |
| 28 |
<td colspan="2" align="center"> |
<td colspan="2" align="center"> |
| 29 |
<a href="<jsp:getProperty name="weather" property="link" />" style="font-size:x-small;"> |
<a href="<jsp:getProperty name="todayweather" property="link" />" style="font-size: x-small"> |
| 30 |
<jsp:getProperty name="weather" property="title" /> |
<jsp:getProperty name="todayweather" property="pref" /> |
| 31 |
|
<jsp:getProperty name="todayweather" property="city" /> |
| 32 |
|
<fmt:message key="weather.label.OfWeather" /> |
| 33 |
</a> |
</a> |
| 34 |
</td> |
</td> |
| 35 |
</tr> |
</tr> |
| 37 |
<td colspan="2" align="center"> |
<td colspan="2" align="center"> |
| 38 |
<span style="font-size:x-small">( |
<span style="font-size:x-small">( |
| 39 |
<fmt:message key="weather.label.Publictime"/>: |
<fmt:message key="weather.label.Publictime"/>: |
| 40 |
<jsp:getProperty name="weather" property="publictime" /> |
<jsp:getProperty name="todayweather" property="publictime" /> |
| 41 |
) |
) |
| 42 |
</span> |
</span> |
| 43 |
</td> |
</td> |
| 44 |
</tr> |
</tr> |
| 45 |
<tr> |
<tr> |
| 46 |
<td align="center" colspan="2"> |
<td align="center" colspan="2"> |
| 47 |
<a href="<jsp:getProperty name="weather" property="imgLink" />"> |
<!-- Display Weather --> |
| 48 |
<img src="<jsp:getProperty name="weather" property="imgUrl" />" |
<table width="100%"> |
| 49 |
alt="<jsp:getProperty name="weather" property="imgTitle" />" |
<tr> |
| 50 |
width="<jsp:getProperty name="weather" property="imgWidth" />" |
<% |
| 51 |
height="<jsp:getProperty name="weather" property="imgHeight" />" |
Boolean isTodayDisp = (Boolean)renderRequest.getAttribute("istodaydisplay"); |
| 52 |
|
if (isTodayDisp.booleanValue()) { |
| 53 |
|
%> |
| 54 |
|
<td align="center" style="font-size: x-small;"> |
| 55 |
|
<fmt:message key="weather.label.Today"/><br /> |
| 56 |
|
<a href="<jsp:getProperty name="todayweather" property="imgLink" />"> |
| 57 |
|
<img src="<jsp:getProperty name="todayweather" property="imgUrl" />" |
| 58 |
|
alt="<jsp:getProperty name="todayweather" property="imgTitle" />" |
| 59 |
|
width="<jsp:getProperty name="todayweather" property="imgWidth" />" |
| 60 |
|
height="<jsp:getProperty name="todayweather" property="imgHeight" />" |
| 61 |
border="0" /> |
border="0" /> |
| 62 |
</a> |
</a> |
| 63 |
|
<br /> |
| 64 |
|
<jsp:getProperty name="todayweather" property="telop" /> |
| 65 |
|
<br /> |
| 66 |
|
<span style="color: red"> |
| 67 |
|
<fmt:message key="weather.label.High" />: |
| 68 |
|
<jsp:getProperty name="todayweather" property="tempMaxOutput" /></span> |
| 69 |
|
|
| 70 |
|
<span style="color: blue" /><fmt:message key="weather.label.Low" />: |
| 71 |
|
<jsp:getProperty name="todayweather" property="tempMinOutput" /></span> |
| 72 |
|
</td> |
| 73 |
|
<% |
| 74 |
|
} |
| 75 |
|
Boolean isTomorrowDisp = (Boolean)renderRequest.getAttribute("istomorrowdisplay"); |
| 76 |
|
if (isTomorrowDisp.booleanValue()) { |
| 77 |
|
%> |
| 78 |
|
<td align="center" style="font-size: x-small;"> |
| 79 |
|
<fmt:message key="weather.label.Tomorrow"/><br /> |
| 80 |
|
<a href="<jsp:getProperty name="tomorrowweather" property="imgLink" />"> |
| 81 |
|
<img src="<jsp:getProperty name="tomorrowweather" property="imgUrl" />" |
| 82 |
|
alt="<jsp:getProperty name="tomorrowweather" property="imgTitle" />" |
| 83 |
|
width="<jsp:getProperty name="tomorrowweather" property="imgWidth" />" |
| 84 |
|
height="<jsp:getProperty name="tomorrowweather" property="imgHeight" />" |
| 85 |
|
border="0" /> |
| 86 |
|
</a> |
| 87 |
|
<br /> |
| 88 |
|
<jsp:getProperty name="tomorrowweather" property="telop" /> |
| 89 |
|
<br /> |
| 90 |
|
<span style="color: red"> |
| 91 |
|
<fmt:message key="weather.label.High" />: |
| 92 |
|
<jsp:getProperty name="tomorrowweather" property="tempMaxOutput" /></span> |
| 93 |
|
|
| 94 |
|
<span style="color: blue" /><fmt:message key="weather.label.Low" />: |
| 95 |
|
<jsp:getProperty name="tomorrowweather" property="tempMinOutput" /></span> |
| 96 |
|
</td> |
| 97 |
|
<% |
| 98 |
|
} |
| 99 |
|
Boolean isDayAfterTomorrowDisp = (Boolean)renderRequest.getAttribute("isdayaftertomorrowdisplay"); |
| 100 |
|
if (isDayAfterTomorrowDisp.booleanValue()) { |
| 101 |
|
%> |
| 102 |
|
<td align="center" style="font-size: x-small;"> |
| 103 |
|
<fmt:message key="weather.label.DayAfterTomorrow"/><br /> |
| 104 |
|
<a href="<jsp:getProperty name="dayaftertomorrowweather" property="imgLink" />"> |
| 105 |
|
<img src="<jsp:getProperty name="dayaftertomorrowweather" property="imgUrl" />" |
| 106 |
|
alt="<jsp:getProperty name="dayaftertomorrowweather" property="imgTitle" />" |
| 107 |
|
width="<jsp:getProperty name="dayaftertomorrowweather" property="imgWidth" />" |
| 108 |
|
height="<jsp:getProperty name="dayaftertomorrowweather" property="imgHeight" />" |
| 109 |
|
border="0" /> |
| 110 |
|
</a> |
| 111 |
|
<br /> |
| 112 |
|
<jsp:getProperty name="dayaftertomorrowweather" property="telop" /> |
| 113 |
|
<br /> |
| 114 |
|
<span style="color: red"> |
| 115 |
|
<fmt:message key="weather.label.High" />: |
| 116 |
|
<jsp:getProperty name="dayaftertomorrowweather" property="tempMaxOutput" /></span> |
| 117 |
|
|
| 118 |
|
<span style="color: blue" /><fmt:message key="weather.label.Low" />: |
| 119 |
|
<jsp:getProperty name="dayaftertomorrowweather" property="tempMinOutput" /></span> |
| 120 |
|
</td> |
| 121 |
|
<% |
| 122 |
|
} |
| 123 |
|
%> |
| 124 |
|
</tr> |
| 125 |
|
</table> |
| 126 |
|
<!-- Display Weather --> |
| 127 |
</td> |
</td> |
|
</tr> |
|
|
<tr> |
|
|
<td align="center" colspan="2" style="font-size: x-small;"> |
|
|
<jsp:getProperty name="weather" property="telop" /></td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td align="center" colspan="2" style="font-size: x-small;"> |
|
|
<span style="color: red"> |
|
|
<fmt:message key="weather.label.High" />: |
|
|
<jsp:getProperty name="weather" property="tempMaxOutput" /></span> |
|
|
|
|
|
<span style="color: blue" /><fmt:message key="weather.label.Low" />: |
|
|
<jsp:getProperty name="weather" property="tempMinOutput" /></span> |
|
|
</td> |
|
| 128 |
</tr> |
</tr> |
| 129 |
<% |
<% |
| 130 |
Boolean isDisplayDescription = (Boolean)renderRequest.getAttribute("description") ; |
Boolean isDescription = (Boolean)renderRequest.getAttribute("description") ; |
| 131 |
if (isDisplayDescription.booleanValue()) { |
if (isDescription.booleanValue()) { |
| 132 |
%> |
%> |
| 133 |
<tr> |
<tr> |
| 134 |
<td align="right" style="font-size: x-small;" width="10%"> |
<td align="right" style="font-size: x-small;" width="10%"> |
| 135 |
<fmt:message key="weather.label.Overview"/>:</td> |
<fmt:message key="weather.label.Overview"/>:</td> |
| 136 |
<td align="left" style="font-size: x-small"> |
<td align="left" style="font-size: x-small"> |
| 137 |
<jsp:getProperty name="weather" property="description" /> |
<jsp:getProperty name="todayweather" property="description" /> |
| 138 |
</td> |
</td> |
| 139 |
</tr> |
</tr> |
| 140 |
<% |
<% |
| 142 |
%> |
%> |
| 143 |
<tr> |
<tr> |
| 144 |
<td align="center" colspan="2"> |
<td align="center" colspan="2"> |
| 145 |
<a href="<jsp:getProperty name="weather" property="copyrightLink" />" style="font-size:x-small"> |
<a href="<jsp:getProperty name="todayweather" property="copyrightLink" />" style="font-size:x-small"> |
| 146 |
<jsp:getProperty name="weather" property="copyrightTitle" /> |
<jsp:getProperty name="todayweather" property="copyrightTitle" /> |
| 147 |
</a> |
</a> |
| 148 |
</td> |
</td> |
| 149 |
</tr> |
</tr> |