从子页你传值到父页面
<%@ 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">
</td>
</tr>
<tr>
<td align="center" colspan="4">
<input name="back" type="button" class="button" onClick="query()"
value=" 查 询 ">
<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="确 定">
<input type="button" class="button" onclick="closeWid()"
id="toSave" value="关 闭">
</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>
分享到:
相关推荐
easyUi弹出window窗口传值与调用父页面的方法,子页面给父页面赋值,详情链接:
子窗口传值到父窗口.rar
主要介绍了使用JS在父页面和子页面间相互传值方法,子页面可以是window.open弹出的,也可以是iframe框架中的页面,需要的朋友可以参考下
父页面获取子页面元素 格式: $("#iframeID").contents().find("#eleID") 示例代码: father.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>...
在父窗体中点击按钮弹出子窗体,然后在关闭子窗体的时候把子窗体中的相关值回传给父窗体。
父页面动态的获取子页面的元素,以及弹出子页面的时候获取父页面的元素;
FineUI 子父页面传值交互,主JS,避免后台
模式窗体页面传值,我相信能够学到一些东西,我自己本身也是学习。。。。。关于自定义控件与页面之间的传值
用途:把父页面的数据表格中的指定行数据传递到子页面,在子页面中把数据传递到父页面。内有项目一个,说明文本一个。
今天小编就为大家分享一篇在Layui 的表格模板中,实现layer父页面和子页面传值交互的方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
在父窗体里面点击按钮,弹出子窗体, 查询所有的员工信息,选择复选框checkbox 选择所要的员工, 点击确定, 被选中的值被传入父窗体,并且每个员工前面都有一个 checkbox , 在父窗体里面选择对应的员工又可以删除
子父窗口传值--动态添加行(仅供参考)
layer弹窗:top.layer弹窗到父页面跨域,通过postMessage方法将子页面的配置对象发送到父页面中,父页面再通过子页面的配置对象打开弹窗,对象内不能存在事件。
微信小程序中子页面向父页面传值实例详解 上面一张图是编辑款项页面,下面一张图是点击了编辑款项页面中选择好友的图标后打开的子页面。这个时候点选子页面的某个好友时,需要把好友的名字传递回编辑款项父页面。 ...
asp.net父子页面传值,资源共享是为了共同进步, 希望帮助需要的兄弟。
1、父页面传参数到子页面 代码如下: //JavaScript代码 $.ajax({ type:”POST”, uri:”../student/studentInfo.action”, data:{ “date”:date, “stuNo”:stuNo }, success:function(data){ var params = “?...
Web开发中的window.open父子窗口传值问题 部署在tomcat中进行
下面小编就为大家带来一篇layer子层给父层页面元素赋值,以达到向父层页面传值的效果实例。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
这个时候点选子页面的某个好友时,需要把好友的名字传递回编辑款项父页面。 采取的方法: 从页面路由栈中直接获取和操作目标Page对象,这种方式,是通过调用小程序的API: getCurrentPages(),来获取当前页面路由栈...