日期:2014-05-16 浏览次数:20468 次
<tr>
		<td class="tdEditLabel" >所属组</td>			
		<td class="tdEditContent"><input type="text" 
		id="orgName" disabled="disabled">
		<input type="hidden" name="orgId" id="orgId">
		<input type="button" value="选择" 
		onclick="openWin('person!selectOrg.action','selectparties',800,600,1);">
		</td>
		<td class="tdEditLabel" >姓名</td>			
		<td class="tdEditContent"><input type="text" name="name"></td>
	</tr>
function openWin(f,n,w,h,s){
	sb = s == "1" ? "1" : "0";
	l = (screen.width - w)/2;
	t = (screen.height - h)/2;
	sFeatures = "left="+ l +",top="+ t +",height="+ h +",width="+ w
			+ ",center=1,scrollbars=" + sb + ",status=0,directories=0,channelmode=0";
	openwin = window.open(f , n , sFeatures );
	if (!openwin.opener)
		openwin.opener = self;
	openwin.focus();
}
function selectOrg(orgId,orgName){
	window.opener.document.getElementById("orgName").value = orgName;
	window.opener.document.getElementById("orgId").value = orgId;
	window.close();
}
//调用页面的函数实现选择
 <td align="center" vAlign="middle">
	      <input type="radio" id="selectOrgId" onclick="selectOrg('<s:property value="id"/>','<s:property value="orgName"/>');" />
	       </td>