?? addtakeselfaddress.jsp
字號:
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title></title>
<style type="text/css">
<!--
.STYLE1 {font-size: 16px}
-->
</style>
<script type="text/javascript" language="javascript">
function isEmpty(){
if(document.getElementById("address").value.length == 0 ){
document.getElementById("addressDiv").innerHTML="詳細地址不能為空";
return false;
}
document.getElementById("addressDiv").innerHTML="";
return true;
}
function show(){
document.location.href="/air/addTakeSelfAddressAction.do?act=show&cty="+document.getElementById("city").value;
}
</script>
</head>
<body>
<html:form action="/addTakeSelfAddressAction.do?act=add" method="post">
<p> </p>
<table width="723" height="132" border="1" align="center">
<tr>
<th colspan="3" scope="col"><div align="left"><span class="STYLE1">增加取票地點</span></div></th>
</tr>
<tr>
<td width="156">城市:</td>
<td width="267"><label>
<select name="city" id="city">
<logic:iterate id="city" name="citys">
<option value="${city}">${city}</option>
</logic:iterate>
</select>
</label></td>
<td width="442"><html:submit>顯示選中城市的取票地址</html:submit></td>
</tr>
<tr>
<td>詳細地址:</td>
<td><label>
<input type="text" name="address" id="address" onblur="isEmpty()"/>
</label></td>
<td><div id="addressDiv" style="display:block;color:red"/> </td>
</tr>
<tr>
<td colspan="3"><label>
<input type="submit" name="Submit" value="提交" />
</label></td>
</tr>
</table>
<table align="center">
<logic:present name="addresss">
<tr>
<td colspan="3"><label>
</label></td>
</tr>
<tr>
<td colspan="3"><label>
以下是選中城市的取票地點
</label></td>
</tr>
<logic:iterate id="address" name="addresss">
<tr>
<td colspan="3"><label>
<li>${address.city}市${address.address}</li>
</label></td>
<td><a href="/air/editTakeTicketAddressAction.do?id=${address.id }">修改</a>
<a href="/air/deleteTakeTicketAddressAction.do?id=${address.id }">刪除</a></td>
</tr>
</logic:iterate>
</logic:present>
</table>
</html:form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -