?? selecttopic.jsp
字號:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString"%>
<%
oa.bean.TopicBean myBean = null;
try{
myBean=new oa.bean.TopicBean();
DealString ds = new DealString();
String topicname = ds.toGBK((String)request.getParameter("topicname"));
Vector vt = new Vector();
vt = (Vector)myBean.getData(topicname);
%>
<html>
<head>
<title>專題選擇</title>
</head>
<body topmargin=0 leftmargin=0>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/left.gif" >
<tr>
<td height="23"><div align="center"> <font size=4><b>專題選擇</b></font>
</div></td>
<td width=30><font size=2><a href="javascript:window.close();">關閉</a></font></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="BodContent" style="border-collapse: collapse" bordercolor="#111111">
<tr width="100%" align="center" bgcolor="#F7F7F7">
<td><font size=2>可選列表</font></td>
</tr>
<tr width="100%" align="center"><font size=2>
<td><select name=leftselect size=10 style="width:130;" onclick="left_click(this.selectedIndex)">
<%for (int i=0;i<vt.size();i++)
{%>
<option value="<%=((Hashtable)vt.get(i)).get("ID")%>" ><%=((Hashtable)vt.get(i)).get("NAME")%></option>
<%}%>
</select>
</font>
</td>
</tr>
<tr width="100%" align=center>
<td><input type="button" value="確定" class=fashion onclick="form_submit()" ></td>
</tr>
<tr width="100%" bgcolor="#F7F7F7"><td height=3></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/left.gif" >
<tr>
<td height="21"><div align="center">
<font size=2>極限空間企業信息管理系統</font>
</div></td>
</tr>
</table>
</form>
</body>
<script language=javascript>
var selNo=-1;
//提交
function form_submit()
{
var all = "";
if(selNo!=-1)
{
all = document.all.leftselect.options[selNo].text;
window.opener.document.all.topicid.value=document.all.leftselect.options[selNo].value;
window.opener.document.all.txt_topic.value=all;
}
window.close();
window.opener.focus();
}
function left_click(id)
{
selNo=id;
}
</script>
</html>
<%
}finally{
if(myBean!=null)
myBean.closeConn();
}
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -