<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ 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"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="form.ShowHoleForm"%>
<%@ page import="common.UserLoginInfo"%>
<%
ShowHoleForm holeForm = new ShowHoleForm();
holeForm = (ShowHoleForm) request.getAttribute("holeForm");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据采集系统</title>
<script language="JavaScript" type="text/javascript">
window.onload = function init(){
var count = 0
var a = document.getElementsByName("courseName1");
var b = document.getElementsByName("holeNo");
var c = document.getElementsByName("searchBtn");
// for (var i = 0;i<b.length;i++ ){
c[0].style.display = "none";
count++
//alert(a[i+1].value)
// }
}
function uploadSubmit(){
document.forms[0].action="/Golf/update.do";
document.forms[0].submit();
}
function ret(count,clubName) {
window
.open(
"indexSubmit.do?clubName=" + clubName+"&count="+count,
"_blank",
"width=600,height=500,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizeable=yes");
}
function getValue(courseId, clubId,courseName,clubName,count) {
document.forms[0].document.getElementById("courseId"+count).value = courseId;
document.forms[0].document.getElementById("clubId"+count).value = clubId;
document.forms[0].document.getElementById("courseName"+count).value = courseName;
document.forms[0].document.getElementById("clubName"+count).value = clubName;
}
</script>
</head>
<body background="WebRoot/images/bg19_007.gif">
<html:form action="/indexSearch" enctype="multipart/form-data">
<input type="hidden" name="pageFlag" id="pageFlag" value="1" />
<center>
<b>数据采集画面</b>
</center>
<table border="1" align="center">
<tr class="title" align="center">
<td>球场名</td>
<td>查询</td>
<td>洞号</td>
<td>果岭前沿经度</td>
<td>果岭前沿纬度</td>
<td>洞经度</td>
<td>洞纬度</td>
<td>果岭后沿经度</td>
<td>果岭后沿纬度</td>
</tr>
<logic:empty name="holeForm" property="holeList">
<font color="red">没有符合条件的数据</font>
</logic:empty>
<logic:notEmpty name="holeForm" property="holeList">
<logic:iterate id="holeList" name="holeForm" property="holeList">
<input type="hidden" name="courseId"
id="courseId<bean:write name="holeList"
property="count"/>"
value="0" />
<input type="hidden" name="clubId"
id="clubId<bean:write name="holeList"
property="count" />"
value="0" />
<input type="hidden" name="courseName"
id="courseName<bean:write name="holeList"
property="count"/>"
value="" />
<input type="hidden" name="clubName"
id="clubName<bean:write name="holeList"
property="count" />"
value="" />
<tr align="center">
<td height = 25px><bean:write name="holeList" property="courseName" /> <input
type="hidden" name="courseName1"
value="<bean:write name="holeList" property="courseName"/>" />
</td>
<td><input name="searchBtn" type="button" class="bt2"
value="查询"
οnclick="ret('<bean:write name="holeList"
property="count" />','<bean:write name="holeList"
property="courseName" />');" />
</td>
<td><bean:write name="holeList" property="holeNo" /> <input
type="hidden" name="holeNo"
value="<bean:write name="holeList" property="holeNo"/>" />
</td>
<td><bean:write name="holeList" property="frontLongitude" />
<input type="hidden" name="frontLongitude"
value="<bean:write name="holeList" property="frontLongitude"/>" />
</td>
<td><bean:write name="holeList" property="frontLatitude" />
<input type="hidden" name="frontLatitude"
value="<bean:write name="holeList" property="frontLatitude"/>" />
</td>
<td><bean:write name="holeList" property="longitude" /> <input
type="hidden" name="longitude"
value="<bean:write name="holeList" property="longitude"/>" />
</td>
<td><bean:write name="holeList" property="latitude" /> <input
type="hidden" name="latitude"
value="<bean:write name="holeList" property="latitude"/>" />
</td>
<td><bean:write name="holeList" property="behindLongitude" />
<input type="hidden" name="behindLongitude"
value="<bean:write name="holeList" property="behindLongitude"/>" />
</td>
<td><bean:write name="holeList" property="behindlatitude" />
<input type="hidden" name="behindlatitude"
value="<bean:write name="holeList" property="behindlatitude"/>" />
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
<table align="center">
<tr>
<td><input
value="<bean:write name="holeForm" property="flag"/>"
type="button" name="submitButton" οnclick="uploadSubmit()"
class="bt3" /> <html:hidden property="flag" />
</td>
</tr>
<tr>
<td height="20"></td>
</tr>
</table>
</table>
</html:form>
</body>
</html>