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

📄 followmastermanager.jsp

📁 一个仿造淘宝的jsp网站。功能比较完善
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.jc.taobao.gjj.entity.*" %>
<jsp:useBean id="userbean" class="com.jc.taobao.gjj.logic.UserInfoBean" scope="request"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'FollowMasterManager.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

    <link href="CSS/manager.css" rel="stylesheet" type="text/css">
    <style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 {
	font-size: 16px;
	font-weight: bold;
}
-->
    </style>
    <script type="text/javascript">
      function form1sub()
     {
      if(document.getElementById("selectfollowbyfid").value=="")
      {
       alert("查询条件不能为空!");
       return ;
      }
       if(isNaN(document.getElementById("selectfollowbyfid").value))
      {
       alert('必须为整数!');
       return;
      }
      document.form1.submit();
    }
    function form2sub()
    {
      if(document.getElementById("selectfollowbyuserid").value=="")
      {
       alert("查询条件不能为空!");
       return ;
      }
      document.form2.submit();
    }
    function form3sub()
    {
      if(document.getElementById("selectfollowbymasterid").value=="")
      {
       alert("查询条件不能为空!");
       return ;
      }
       if(isNaN(document.getElementById("selectfollowbymasterid").value))
      {
       alert('必须为整数!');
       return;
      }
      document.form3.submit();
    }
    </script>
  </head>
  
  <body>
  <div id="managerfrontrightnum2buttom">
   <div id="managerfrontrightnum1"><span class="style2">从贴管理</span></div>
   <div id="shoptopselect">
     <table width="699" height="64" border="0" cellpadding="0" cellspacing="0">
       <tr bgcolor="#DCE2F0">
         <td width="231"><div align="center"><span class="style1">根据从贴编号查</span></div></td>
         <td width="233"><div align="center"><span class="style1">根据发贴人查</span></div></td>
         <td width="235"><div align="center"><span class="style1">根据所属主贴查</span></div></td>
       </tr>
       <tr bgcolor="#ECF4FF">
         <td><form name="form1" method="post" action="servlet/SelectFollowByFollowidServlet">
           <input type="text" name="selectfollowbyfid" id="selectfollowbyfid">
           <input type="button" name="Submit" value="提交" onclick="javascript:form1sub()">
         </form></td>
         <td><form name="form2" method="post" action="servlet/SelectFollowbyuseridServlet">
           <input type="text" name="selectfollowbyuserid" id="selectfollowbyuserid">
           <input type="button" name="Submit" value="提交" onclick="javascript:form2sub()">
         </form></td>
         <td><form name="form3" method="post" action="servlet/SelectFollowByMasteridServlet">
           <input type="text" name="selectfollowbymasterid" id="selectfollowbymasterid">
           <input type="button" name="Submit" value="提交" onclick="javascript:form3sub()">
         </form></td>
       </tr>
       <tr bgcolor="#ECF4FF">
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
       </tr>
     </table>
   </div>
   <div id="shopselect">
    <div id="shopshow">
      <table width="699" height="48" border="0" cellpadding="0" cellspacing="0">
        <tr bgcolor="#DCE2F0">
          <td width="61" height="23"><div align="center"><span class="style1">从贴编号</span></div></td>
          <td width="124"><div align="center"><span class="style1">所属主贴</span></div></td>
          <td width="134"><div align="center"><span class="style1">从贴标题</span></div></td>
          <td width="238"><div align="center"><span class="style1">从贴内容</span></div></td>
          <td width="74"><div align="center"><span class="style1">发帖人</span></div></td>
          <td width="68">&nbsp;</td>
        </tr>
        <%
          ArrayList al=(ArrayList)request.getAttribute("alfollownotebyother");
          if(al!=null)
          {
            for(int i=0;i<al.size();i++)
            {
             FollowNote follow=(FollowNote)al.get(i);
             ArrayList aluser=(ArrayList)userbean.getquerybyuserid(Integer.valueOf(follow.getUserid()));
             UserInfo user=(UserInfo)aluser.get(0);
         %>
        <tr bgcolor="#ECF4FF">
          <td align="center"><%=follow.getFid() %></td>
          <td align="center"><%=follow.getMid() %></td>
          <td align="center"><%=follow.getFollowtitle() %></td>
          <td align="center"><%=follow.getFollowmessage() %></td>
          <td align="center"><%=user.getUsername() %></td>
          <td><div align="center"><span class="style1"><a href="">删除</a></span></div></td>
        </tr>
        <%}} %>
      </table>
    </div>
   </div>
  </div>
  </body>
</html>

⌨️ 快捷键说明

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