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

📄 index.jsp

📁 这是我老师布置一个学习任务:保险管理系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="connDB" scope="page" class="beans.connDB"/>
<html>
<head>
<title>picc</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../CSS/style.css" rel="stylesheet">
</head>

<body bgcolor="#FFFFCC" leftmargin=10 topmargin="8" background="pictures/background.jpg">
<table width="100%"  border="0" cellspacing="0" cellpadding="0" background="pictures/bg.gif">
  <tr>
    <td>
<table width="777" height="609"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td valign="top">
	<jsp:include page="top.jsp"/>
	<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableBorder_LTR">
      <tr>
        <td height="30" align="center" bgcolor="#eeeeee">≡≡≡ <span class="word_grey"><a href="custom_add.jsp">添加客户(单击此处即可添加客户)</a></span> ≡≡≡</td>
       
      </tr>
    </table>
	<table width="100%" height="396"  border="0" cellpadding="0" cellspacing="0" class="tableBorder_LBR">
        <tr>
          <td width="26%" height="395" valign="top"><table width="100%"  border="0" cellspacing="-2" cellpadding="-2">
            <tr>
              <td width="55%" height="82" align="center" class="word_grey">&nbsp;<img src="pictures/reg.gif" width="84" height="54"></td>
              <td width="45%" align="left" class="word_grey">客户管理</td>
            </tr>
            <tr>
              <td height="112" colspan="2" valign="top" class="word_grey"><ul>
                <li> 添加客户信息:点击添加图标即可添加客户信息。</li>
                <li>修改客户信息:点击添加图标即可修改客户信息。</li>
                <li>删除客户信息:点击添加图标即可删除客户信息。</li>
               
               </ul></td>
            </tr>
            <tr align="center">
              <td colspan="2" valign="middle" class="word_grey"></td>
            </tr>
          </table></td>
          <td width="5" valign="top" background="pictures/Cen_separate.gif"></td>
          <td width="73%" valign="top"><table width="100%" height="14"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="13" align="center">&nbsp;</td>
            </tr>
          </table>
            <table width="100%" height="48"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#CCCCCC" bordercolorlight="#FFFFFF">
              
              <tr>
                <td width="18%" height="27" align="center">
                  客户号</td>
                <td width="36%" align="center">客户性质</td>
                <td width="20%" align="center">客户名称</td>
                <td width="8%" align="center">客户地址</td>
                <td width="5%" align="center">添加</td>
                <td width="5%" align="center">修改</td>
                <td width="5%" align="center">删除</td>
              </tr>

 <%     try{
       
        
        ResultSet rs=connDB.executeQuery("select * from Customer");
       
while(rs.next()){
	  String custom_id=rs.getString("custom_id");
	  String custom_property=rs.getString("custom_property");
	  String custom_name=rs.getString("custom_name");
	  String custom_address=rs.getString("custom_address");
	 
	  %>

              

              
              <tr style="padding:5px;">
                <td height="24" align="center"><a href="custom_info.jsp?custom_id=<%=custom_id%>"><%=custom_id%></a></td>
               
                <td align="center"><%=custom_property%></td>
                <td align="center"><%=custom_name%></td>
                <td align="center"><%=custom_address%></td>
                <td align="center"><a href="custom_add.jsp?custom_id=<%=custom_id%>"><img src="pictures/add.gif" width="16" height="16"></a></td>
                <td align="center"><a href="custom_modify.jsp?custom_id=<%=custom_id%>"><img src="pictures/modify.gif" width="16" height="16"></a></td>
                <td align="center"><a href="custom_del_deal.jsp?custom_id=<%=custom_id%>"><img src="pictures/del.gif" width="16" height="16"></a></td>
              </tr>
<%  }
  connDB.close();
 }catch(SQLException e)
        {}


%>
            </table>
		</td>
        </tr>
      </table>
      <jsp:include page="copyright.jsp"/>
    </td>
  </tr>
</table>
</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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