`

从子页你传值到父页面

阅读更多

 

 从子页你传值到父页面

 

 

<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/cvicse-param.tld" prefix="param"%>
<%@ taglib uri="/WEB-INF/cvicse-common.tld" prefix="common"%>

<%
	response.setHeader("Cache-Control", "no-store");
	response.setHeader("Pragma", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<link href="/css/public.css" rel="stylesheet" type="text/css">
<script language="javascript" src="/cbdt/js/jquery.js">
</script>

<html:html>
<head>
	<base target="_self" />
	<title>清污单位查询</title>

</head>
<body onbeforeunload="aaall()"
	onkeydown="if(event.keyCode==13)event.keyCode=9">
	<form method="post" action="/fwrqwxyList.do?method=queryDw">
		<br />
		<h2 align="center">
			清污单位查询
		</h2>

		<table width="95%" align="center" border="1">
			<tr>
				<td colspan="4" class="tab">
					<table class="tabs" cellpadding=0 cellspacing=0>
						<tr>
							<td class=tab_sf></td>
							<td class=tab_f>
								查询条件
							</td>
							<td class=tab_ef></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<th>
					单位名称
				</th>
				<td>

					<html:text styleId="dwmc" property="dtywfwrqwdwsqbPO.dwmc"
						name="fwrqwxyForm" maxlength="60" title="单位名称" />
				</td>
				<th>
					单位代码
				</th>
				<td>
					<html:text styleId="sqbh" property="dtywfwrqwdwsqbPO.sqbh"
						name="fwrqwxyForm" maxlength="60" title="单位代码" />
				</td>
			</tr>
			<tr>
				<td class="Show" colspan="4">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td align="center" colspan="4">
					<input name="back" type="button" class="button" onClick="query()"
						value=" 查 询 ">
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input name="back" type="button" class="button"
						onclick="clearAll()" value="重  置">
				</td>
			</tr>

			<!-- 以下为分页显示 -->
			<tr>
				<td bgcolor="CCDCF2" colspan="9" align="center">
					<bean:write name="fwrqwxyForm" property="pageConditionStr"
						filter="false" />
					<bean:write name="fwrqwxyForm" property="pageFooter" filter="false" />
				</td>
			</tr>
		</table>
		<table width="95%" align="center" border="1">
			<tr>
				<th width="5%">
					操作
				</th>
				<th width="20%">
					单位名称
				</th>
				<th width="15%">
					法定代表人姓名
				</th>
				<th width="15%">
					单位地址
				</th>
				<th width="12%">
					申请作业等级
				</th>
				<%--
				<th width="15%">
					水域服务范围
				</th> --%>
			</tr>

			<logic:notEmpty name="fwrqwxyForm" property="pageResult.pageIterator">

				<logic:iterate id="data" name="fwrqwxyForm"
					property="pageResult.pageIterator" indexId="index">
					<tr onMouseOver="this.style.backgroundColor='#FFCCCC'"
						onMouseOut="this.style.backgroundColor=''">
						<td>

							<input type="radio" name="select" id="index"
								value="<bean:write property='sqbh' name='data' />||<bean:write property='dwmc' name='data' />||<bean:write property='sqzydj' name='data' />||<bean:write property='zsbh' name='data' />||<bean:write property='syfwfw' name='data' />||<bean:write property='syfwfwbz' name='data' />||<bean:write property='zsyxq' name='data' />" />

						</td>
						<td>
							<!--   单位名称  -->
							<bean:write property="dwmc" name="data" />

						</td>
						<td>
							<!--   法定代表人姓名  -->
							<bean:write property="fddbrxm" name="data" />
						</td>
						<td>
							<!--   单位地址 -->
							<bean:write property="dwdz" name="data" />
						</td>
						<td>
							<!--   申请作业等级  -->
							<bean:write property="sqzydj" name="data" />
						</td>
						<!-- 
						<td>
							  水域服务范围
							<bean:write property="syfwfw" name="data" />
						</td> -->
					</tr>
				</logic:iterate>
			</logic:notEmpty>
		</table>
		<br />

		<table cellpadding="0" cellspacing="0" border="1" width="95%"
			align="center">
			<tr>
				<td colspan="6" align="center">
					<input type="button" class="button" onclick="okWid()"
						id="toSave" value="确&nbsp;定">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="button" class="button" onclick="closeWid()"
						id="toSave" value="关&nbsp;闭">
				</td>
			</tr>
		</table>

	</form>
</body>

<script>
var flag = true;
function clearAll() {
	$(":text").each(function() {
		this.value = "";
	});
}

function closeWid() {	
	window.close();
}
function okWid() {
	var one=false;
	$("input[type=radio]").each(function() {
		if (this.checked) {
			one=true;
		}
	});
	if(!one){
		alert("请选择清污单位");
		return ;
	}
	flag = false;
	window.close();
}

function aaall() {
	//$(":radio").each()
	var list = new Array();
	if (!flag) {
		$("input[type=radio]").each(function() {
			if (this.checked) {
				var ss = this.value.split("||");
				list[0] = ss[0];
				list[1] = ss[1];
				list[2] = ss[2];
				list[3] = ss[3];
				list[4] = ss[4];
				list[5] = ss[5];
				list[6] = ss[6];
			}
		});
	}else{
		list=null;
	}
	window.returnValue = list;
}


function query() {
	document.forms[0].action = "/fwrqwxyList.do?method=queryDw";
	document.forms[0].submit();
}
</script>
</html:html>

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics