📄 selps.jsp
字号:
<%
/**********************************************************
Copyright (C),2003-12-10, Beijing USTB.
All rights reserved.
Filename: zddhead.jsp
Author: lbh
Version 1.0
Date:
Description:指定代组长
Other:
History:
***********************************************************/
%>
<%@page language="java" import="java.sql.*,java.text.*, java.util.*,java.lang.*,java.io.*,java.sql.*, kjb.main.*" contentType="text/html; charset=gb2312"%>
<jsp:useBean id="myBean" scope="page" class="kjb.bean.PersonBean"/>
<%
DealString ds = new DealString();
String strID = ds.toString((String)request.getParameter("txt_id"));
String strBMBH = ds.toString((String)request.getParameter("txt_bmbh"));
%>
<form name=form2 action="ys.jsp" method="post">
<input type=hidden value="<%=strID%>" name=xmid>
<table class="tab" bgColor="#6699FF" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<tr align="center" height="22">
<td width="100%" height="22" ><font color="#000000">选择单位负责人</font></td>
</tr>
</tbody>
</table>
<table class="tab" bgColor="#6699FF" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<tr align="left" height="22">
<!--td width="100%" height="22" ><font color="#000000">选择单位负责人:</font></td-->
</tr>
<tr align="center" height="22">
<%
Vector vect = myBean.getOneBmPs(strBMBH);
%>
<td width="100%" height="22" >
<select size="1" name="select_zz" style="width: 100" onchange="document.all.txt_fzrbh.value=document.all.select_zz.options[document.all.select_zz.selectedIndex].value;document.all.txt_fzrxm.value=document.all.select_zz.options[document.all.select_zz.selectedIndex].id;">
<option value="">请选择单位负责人</option>
<%
for(int i=0;i<vect.size();i++)
{
Hashtable hash = (Hashtable)vect.get(i);
String strZGBH = ds.toString((String)hash.get("ZGBH"));
String strXM = ds.toString((String)hash.get("XM"));
%>
<option value="<%=strZGBH%>" id="<%=strXM%>"><%=strXM%></option>
<%
}//end for
%>
</select>
<input type="hidden"NAME="txt_fzrbh" value="" ROWS="10" COLS="40">
<input type="hidden"NAME="txt_fzrxm" value="" ROWS="10" COLS="40">
</td>
</tr>
<br>
<p>
<tr align="center" height="22">
<td width="100%" height="22" ><input type=button value="确定" style="cursor:hand" onclick="return onSure1()">
</tr>
<p>
</tbody>
</table>
</form>
<%myBean.closeConn();%>
<script>
function onSure1()
{
if(document.all.txt_fzrbh.value=="")
{
alert("请选择一个负责任!");
return false;
}
window.opener.document.all.txt_fzrxm.value=document.all.txt_fzrxm.value;
window.opener.document.all.txt_fzrbh.value=document.all.txt_fzrbh.value;
window.close();
return true;
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -