⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listprize.jsp

📁 采用MySQL作为后台数据库
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@page import="java.util.*,java.text.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id='db' scope='request' class='Base.DataBean.DefaultDataBean' />
<jsp:useBean id='dealstring' scope='request' class='com.util.DealString' />
<%	
	com.util.DealString ds = new com.util.DealString();
	com.db.CommonBean myBean = new com.db.CommonBean();
%>
<html>
<head>
<link rel=stylesheet href="../index.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>奖励项目</title>
</head>
<body>
<%
//取得本年奖励项目
String strThisId = ds.toString((String)db.getAttributeStr("people.id"));
String strThisName = ds.toString((String)db.getAttributeStr("people.name"));
String sql = "";

sql = "select * from kjc2_prizeproject "
	+ " where wcr='"+strThisName+"' "
	+ " or wcr like '"+strThisName+",%' "
	+ " or wcr like '%,"+strThisName+",%' "
	+ " or wcr like '%,"+strThisName+"' ";
Vector vectprize = (Vector)myBean.getDataBySql(sql);

%>

<table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="25">&nbsp;</td>
      <td width="790">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0">
			  <tr>
				<td width="10">&nbsp;</td>
				<td width="*"><table width="100%" height="20"  border="0" cellpadding="0" cellspacing="0">
					<tr>
					  <td height="20" class="title_s"><img src="../pics/login.gif" width=50>&nbsp;欢迎您>><%=(String)session.getAttribute("NAME")%> </td>
					</tr>
					<tr>
					  <td height="5" bgcolor="#C8F8BA" colspan=2></td>
					</tr>
					<tr>
					  <td height="1" bgcolor="#2E990F" colspan=2></td>
					</tr>
				</table></td>
				<td width="30">&nbsp;</td>
			  </tr>
			</table>
	</td>

    </tr>
  </table>
  <table width="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="40">&nbsp;</td>
      <td width="910">
	<br>
	<table class="main_w" width="100%"  border="1" cellpadding="4" cellspacing="0" bordercolor="FFFFFF" bgcolor="E8FCE2">
	  <tr bgcolor="#FFFFFF" class="title_s">
		<td  colspan="8"><div align="center">全部奖励项目</div></td>
	  </tr>
	  <tr>
		<td height="20" class="title_s">序号</td>
		<td height="20" class="title_s">项目名称</td>
		<td height="20" class="title_s">奖励级别</td>
		<td height="20" class="title_s">奖励类型</td>
		<td height="20" class="title_s">授奖部门</td>
		<td height="20" class="title_s">奖励名称</td>
		<td height="20" class="title_s">奖种</td>
		<td height="20" class="title_s">获奖等级</td>
	  </tr>
		<%
		int sizeprize = vectprize.size();
		for(int i=0;i<sizeprize;i++){
			Hashtable hashprize = (Hashtable)vectprize.get(i);
			String str_id = ds.toString((String)hashprize.get("id"));
			String str_Bh = ds.toString((String)hashprize.get("bh"));
			String str_Xy = ds.toString((String)hashprize.get("xy"));
			String str_Xys[] = str_Xy.split(",");
			str_Xy = "";
			for(int j=0;j<str_Xys.length;j++){
				String strtemp = ds.toString((String)myBean.toName("kjc_college","id","name",str_Xys[j]));
				if(str_Xy.equals("")) str_Xy += strtemp;
				else str_Xy += ","+strtemp;
			}
			String str_Jljb = ds.toString((String)hashprize.get("jljb"));
			str_Jljb = ds.toString((String)myBean.toName("kjc2_code","id","code_value",str_Jljb));

			String str_Jllx = ds.toString((String)hashprize.get("jllx"));
			String str_Sjbm = ds.toString((String)hashprize.get("sjbm"));
			String str_jlmc = ds.toString((String)hashprize.get("jlmc"));
			str_jlmc = ds.toString((String)myBean.toName("kjc2_code","id","code_value",str_jlmc));

			String str_jz = ds.toString((String)hashprize.get("jz"));
			str_jz = ds.toString((String)myBean.toName("kjc2_code","id","code_value",str_jz));

			String str_Jldj = ds.toString((String)hashprize.get("jldj"));
			str_Jldj = ds.toString((String)myBean.toName("kjc2_code","id","code_value",str_Jldj));

			String str_Xmmc = ds.toString((String)hashprize.get("xmmc"));
		%>
			  <tr>
				<td><%=i+1%></td>
				<td><a href="../kjc2_manage/view2.jsp?projectid=<%=str_id%>"><%=str_Xmmc%></a></td>
				<td><%=str_Jljb%></td>
				<td><%=str_Jllx%></td>
				<td><%=str_Sjbm%></td>
				<td><%=str_jlmc%></td>
				<td><%=str_jz%></td>
				<td><%=str_Jldj%></td>
			  </tr>
		<%
		}
		%>
		<%if(sizeprize==0){%>
			  <tr>
				<td colspan=8 align=center>没有奖励项目!</td>
			  </tr>
		<%}%>
  </table>
  
  </td>
      <td width="50">&nbsp;</td>
    </tr>
  </table>
</body>
</html>
<%
myBean.closeConn ( ) ;
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -