?? createorderitem.jsp
字號:
<%@ page language="java" import="java.util.List" pageEncoding="gb2312"%>
<%@ page import="java.util.Iterator" %>
<%@ page import="bit.jeffy.orm.Flight" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<%
String tmp = (String)session.getAttribute("curr_admin");
if( tmp == null ){
%>
<jsp:forward page="/index.jsp"/>
<%
}
List list = (List)request.getAttribute("items");
Iterator it = (Iterator)list.iterator();
Flight f = null;
String id = null, str = null, year = null, month = null, day = null;
int y = 2006, m = 1, d = 1;
%>
<body>
<html:form action="/CreateOrderItem.do">
<table width="97%" height="495" border="1">
<tr>
<td height="27" align="center"><table width="68%" height="38" border="1">
<tr>
<td align="center" bgcolor="#0099FF">管理員系統(tǒng)</td>
</tr>
</table></td>
</tr>
<tr>
<td height="17" align="center"><hr></td>
</tr>
<tr>
<td height="280" align="center"><table width="66%" height="201" border="5">
<tr>
<td width="23%" height="73" align="center">選擇航班</td>
<td width="77%">
<html:select property="id" multiple="false" size="1">
<%
while(it.hasNext()){
f = (Flight)it.next();
id = f.getId().longValue()+"";
str = f.getFlight_no();
%>
<html:option value="<%=id%>"><%=str%></html:option>
<%
}
%>
</html:select>
</td>
</tr>
<tr>
<td height="69" align="center">設(shè)定航班日期</td>
<td align="center"><table width="95%" border="1">
<tr>
<td height="34">
<html:select property="year" multiple="false" size="1">
<%
while(y <= 2015){
year = ""+y;
%>
<html:option value="<%=year%>"></html:option>
<%
y ++;
}
%>
</html:select>
年
</td>
<td>
<html:select property="month" multiple="false" size="1">
<%
while(m <= 12){
month = ""+m;
%>
<html:option value="<%=month%>"></html:option>
<%
m ++;
}
%>
</html:select>
月
</td>
<td>
<html:select property="day" multiple="false" size="1">
<%
while(d <= 31){
day = ""+d;
%>
<html:option value="<%=day%>"></html:option>
<%
d ++;
}
%>
</html:select>
日
</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="center"><table width="58%" height="37" border="0" cellspacing="0">
<tr align="center">
<td><html:submit property="submit" value="設(shè)定"/></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><html:errors/></td>
</tr>
</table>
</html:form>
</body>
</html:html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -