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

📄 userlogview.jsp~54~

📁 java 通用进销存系统。很完整的说明文档和源码以及源程序。
💻 JSP~54~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "user.*"%>
<%
  //设置取得字符串的编码机制
  request.setCharacterEncoding("GBK");
  String userName = "";
  if(session.getAttribute("user") != null){
    User user = (User)session.getAttribute("user");
    userName = user.getUserName();
  }else{
    out.print("<h3>请先登陆系统.</h3>");
    return;
  }
  //创建用户日志数组
  String[][] userLog = new String[0][5];
  if(request.getAttribute("userLog") != null){
    userLog = (String[][])request.getAttribute("userLog");
  }
  //创建表格标题数组
  String[] colNames = new String[]{"序号", "操作程序名字", "操作内容", "用户名字", "操作时间"};
%>
<html>
<head>
<title>用户日志查看页面:用户(<%=userName%>)</title>
</head>
<body bgcolor="#ffffff">
<center>
<h3>用户日志查看页面:用户(<%=userName%>)</h3>
<form action="userlogview.jsp" method="get">
<p>
  查询条件:
  <select name="selectedIndex">
    <option value="0">按操作程序名字查询</option>
    <option value="1">按操作内容查询</option>
    <option value="2">按用户名字查询</option>
    <option value="3">按操作时间查询</option>
  </select>
  查询值:
  <input name="searchValue" type="text" size="18">
</p>
<p>
  开始日期:<input name="startDate" type="text" size="16">
  结束日期:<input name="endDate" type="text" size="16">
  <input name="search" type="submit" value="查询">
</p>
</form>
<hr size="3" color="#0066FF">
<!--根据用户日志数组显示表格内容-->
<table width="100%" border="1">
  <tr align="center">
    <%for(int i = 0; i < colNames.length; i++){%>
      <td><font size="-1"><%=colNames[i]%></font></td>
    <%}%>
  </tr>
  <%for (int i = 0; i < userLog.length; i++){%>
    <tr align="left">
      <%for(int j = 0; j < userLog[0].length; j++){%>
            <td><font size="-1"><%=userLog[i][j]%></font></td>
      <%}%>
    </tr>
  <%}%>
</table>
</center>
</body>
</html>

⌨️ 快捷键说明

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