showHole.jsp

<%@ 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">
       &nbsp;&nbsp;&nbsp;<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"/>" />
        &nbsp;</td>
       <td><input name="searchBtn" type="button" class="bt2"
        value="查询"
        οnclick="ret('<bean:write name="holeList"
                 property="count" />','<bean:write name="holeList"
                 property="courseName" />');" />
        &nbsp;</td>
       <td><bean:write name="holeList" property="holeNo" /> <input
        type="hidden" name="holeNo"
        value="<bean:write name="holeList" property="holeNo"/>" />
        &nbsp;</td>
       <td><bean:write name="holeList" property="frontLongitude" />
        <input type="hidden" name="frontLongitude"
        value="<bean:write name="holeList" property="frontLongitude"/>" />
        &nbsp;</td>
       <td><bean:write name="holeList" property="frontLatitude" />
        <input type="hidden" name="frontLatitude"
        value="<bean:write name="holeList" property="frontLatitude"/>" />
        &nbsp;</td>
       <td><bean:write name="holeList" property="longitude" /> <input
        type="hidden" name="longitude"
        value="<bean:write name="holeList" property="longitude"/>" />
        &nbsp;</td>
       <td><bean:write name="holeList" property="latitude" /> <input
        type="hidden" name="latitude"
        value="<bean:write name="holeList" property="latitude"/>" />
        &nbsp;</td>
       <td><bean:write name="holeList" property="behindLongitude" />
        <input type="hidden" name="behindLongitude"
        value="<bean:write name="holeList" property="behindLongitude"/>" />
        &nbsp;</td>
       <td><bean:write name="holeList" property="behindlatitude" />
        <input type="hidden" name="behindlatitude"
        value="<bean:write name="holeList" property="behindlatitude"/>" />
        &nbsp;</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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值