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

📄 logininfomodify.jsp

📁 基于J2EE的网络物流系统 用户操作: 1. 录入出库商品信息 2. 查询出库单信息 3. 录入入库商品信息 4. 查询入库单信息 5. 查询商品位置信息 6. 查询商品信息 7. 查
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<%@ page import="java.sql.*" %>
<%@ page import="com.logistic.model.LoginInfo" %>
<%@ page import="com.logistic.business.LoginManager" %>
<% request.setCharacterEncoding("gb2312");%>
<%
   String lid=(String)request.getParameter("lid");
   System.out.print(lid); 
   LoginInfo li=null;  
   if(lid==null){
   	   session.setAttribute("errors","对不起您没有权限对logininfomodify.jsp页面进行操作!");
  	   response.sendRedirect("../../errors/errorpage.jsp");
    }else{ 
     LoginManager lm=new LoginManager();
                li=lm.LoginSearchById(lid);
     if(li==null){
        session.setAttribute("errors","供应商信息获取失败!");
  	    response.sendRedirect("../../errors/errorpage.jsp");
     }
 }	
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>登陆用户管理窗体</title>
<style type="text/css">
<!--
body {
	background-color: #168AC2;
}
-->
</style>
<jsp:useBean id="dblink" class="com.logistic.data.DataConnect" scope="page"/>
<link href="<%=request.getContextPath()%>/cssjs/comcss.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<%=request.getContextPath()%>/cssjs/comjs.js"></script>
</head>
<body>
<% 
		String success=(String)session.getAttribute("success");
		if(success!=null){
%>
	 <script language="javascript">
    	alert("登陆信息修改成功!");
    	location.href="<%=request.getContextPath()%>/viewpage/showpage/adminlogininfo.jsp";
     </script> 
<%
		session.removeAttribute("success");
		}
%>
<table width="431" height="185" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#9999CC">
  <tr>
    <td width="52" height="24" align="center" class="style9">编号:</td>
    <td width="76" align="center" class="style5"><%=lid %></td>
    <td width="289" align="center"><span class="style5">*标识项必须填写</span></td>
  </tr>
  <tr>
    <td height="159" colspan="3"><form name="logininfo" method="post" action="/Logistic/logininfoupdate">
      <table width="318" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#CCCCFF">
        <tr>
          <td width="91" height="28" align="right" class="style9">职员姓名:</td>
          <td width="217"><select name="employeename" class="style9" id="employeename">
		  <option value="">--职员姓名--</option>
		  <%
				String sqlemploy="select *from employeeinfotable";
				Statement statemploy=dblink.getStmtread();
				ResultSet rsemploy=statemploy.executeQuery(sqlemploy);
				while(rsemploy.next()){
				String employid=rsemploy.getString("EmployeeId");
				String employname=rsemploy.getString("EmployeeName");
				out.print("<option value="+employid);
				if(li.getEmployeeid().equals(employid)){
				   out.print(" selected ");
				}
				out.print(">"+employname+"</option>");
				}
				dblink.close();
		   %>
          </select>
            <span class="style5">*
            <input type="hidden" name="lid" value="<%=lid%>">
            </span></td>
        </tr>
        <tr>
          <td height="22" align="right" class="style9">职员密码:</td>
          <td><input name="password" type="password" class="style9" id="password" size="20" maxlength="20" value="<%=li.getLoginpassword() %>">
            <span class="style5">*</span></td>
        </tr>
        <tr>
          <td height="23" align="right" class="style9">确认密码:</td>
          <td><input name="repassword" type="password" class="style9" id="repassword" size="20" maxlength="20" value="<%=li.getLoginpassword() %>">
            <span class="style5">*</span></td>
        </tr>
        <tr>
          <td height="28" align="right" class="style9">权限:</td>
          <td><select name="power" class="style9" id="power">
		  <option value="">----权限----</option>
		  <option value="superadmin">超级管理员</option>
		  <option value="admin">管理员</option>
		  <option value="user">用户</option>
          </select>
            <span class="style5">*</span></td>
        </tr>
        <tr align="center">
          <td height="29" colspan="2"><input name="Submit" type="submit" class="buttonstyle" value="提交数据" onClick="return logininfo_check()">&nbsp;&nbsp;
            <input name="cancel" type="submit" class="buttonstyle" id="cancel" value="重置数据"></td>
          </tr>
      </table>
    </form></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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