Develop and Download Open Source Software

Browse CVS Repository

Contents of /pal/weather/target/weather/WEB-INF/view/edit.jsp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Feb 13 07:45:43 2007 UTC (17 years ago) by karma
Branch: MAIN
Changes since 1.2: +10 -0 lines
概況の表示,非表示の選択を可能にした.

1 <%--
2 Copyright 2005-2006 The Portal Application Laboratory Team.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 http://www.apache.org/licenses/LICENSE-2.0
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License.
13 --%>
14
15 <%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
16 <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
17 <%@ page import="java.util.*"%>
18
19 <fmt:setBundle basename="jp.sf.pal.weather.resources.WeatherResources" />
20 <portlet:defineObjects/>
21
22 <form action="<portlet:actionURL />" method="POST">
23
24 <table>
25 <tr>
26 <td><fmt:message key="weather.label.Area" />:</td>
27 <td><select name="city">
28 <option value="default"><fmt:message key="weather.label.SelectArea"/> </option>
29 <%
30 Map cityMap = (Map)renderRequest.getAttribute("city") ;
31 String reqId = (String)renderRequest.getAttribute("id") ;
32 Iterator it = cityMap.keySet().iterator() ;
33 while (it.hasNext()) {
34 Integer id = (Integer)it.next() ;
35 String cityId = id.toString() ;
36 String cityName = (String)cityMap.get(id) ;
37 String selected = "" ;
38 if (reqId.equals(cityId)) {
39 selected = "selected" ;
40 }
41 %>
42 <option value="<%= cityId %>" <%= selected %>><%= cityName %></option>
43 <%
44 }
45 %>
46 </select>
47 </td>
48 </tr>
49 <tr>
50 <td><fmt:message key="weather.label.EditDispDay" />:</td>
51 <td>
52 <input type="checkbox" name="today"
53 <%=renderRequest.getAttribute("today")%> >
54 <fmt:message key="weather.label.Today" />
55 <input type="checkbox" name="tomorrow"
56 <%=renderRequest.getAttribute("tomorrow")%> >
57 <fmt:message key="weather.label.Tomorrow" />
58 </tr>
59 <tr>
60 <td colspan="2" align="center">
61 <input type="submit" value="<fmt:message key="weather.label.EditSubmit"/>">
62 </td>
63 </tr>
64
65 </table>
66
67 </form>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26