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

📄 index.jsp

📁 本系统分两部分管理,前台用于文章发布和用户文章发表,后台有管理员审核和不同权限的用户管理,具有高稳定性和安全性。整个站的全部数据逻辑运算完全有beans封装, 具有界面简洁、功能强大、操作方便等特点。
💻 JSP
📖 第 1 页 / 共 2 页
字号:
                          <%
								}
						  %>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          <td width="209" align="left" valign="top"> <table width="97%" height="405" cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border-collapse: collapse">
              <tr> 
                <td height="403" valign="top"> <div align="center"> 
                    <center>
                      <table width="100%" height="398" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
                        <tr> 
                          <td height="86" valign="top"> <table width="100%" height="86" border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr> 
                                <td height="86" align="center" valign="top" bordercolor="#D8DEEB" > 
                                  <table width="100%" height="85" border="0" cellpadding="0" cellspacing="0">
                                    <form action="search.jsp" method="post">
                                      <tr align="center" valign="top"> 
                                        <td height="30" colspan="2"><img src="../images/big_search.gif" width="189" height="30"></td>
                                      </tr>
                                      <tr valign="middle"> 
                                        <td height="26" colspan="2" align="center"> 
                                          <input name="search" type="text" class="text" id="search" size="20"> 
                                        </td>
                                      </tr>
                                      <tr> 
                                        <td width="57%" height="29" align="center" valign="middle"> 
                                          <table width="91%" height="29" border="0" cellpadding="0" cellspacing="0">
                                            <tr> 
                                              <td height="29" align="right"> <select name="select">
                                                  <option value="0">文章标题</option>
                                                  <option value="1">文章内容</option>
                                                </select> </td>
                                            </tr>
                                          </table></td>
                                        <td width="43%" align="center" valign="middle">
                                        <input type="image" src="../images/search.gif" width="56" height="22"></td>
                                      </tr>
                                    </form>
                                  </table></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="115" valign="top" > 
					  <%
					  	String user=SessionManager.getSession(session,"sessionuser");
					  	if(user==null){		
					  %>	  	
						  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                              <form method="post" action="checkuser.jsp">
                                <tr> 
                                  <td height="28" colspan="2" align="center"><img src="../images/big_load.gif" width="189" height="30"></td>
                                </tr>
                                <tr align="center"> 
                                  <td width="41%" height="28"><strong>用户名:</strong></td>
                                  <td width="59%"><input name="userName" type="text" class="text" id="userName" size="16"> 
                                  </td>
                                </tr>
                                <tr align="center"> 
                                  <td height="27"><strong>密&nbsp;&nbsp;码:</strong></td>
                                  <td height="27"> <input name="passWd" type="password" class="text" id="passWd" size="16"> 
                                  </td>
                                </tr>
                                <tr align="center"> 
                                  <td height="30" colspan="2"> <table width="100%" cellpadding="0" cellspacing="0">
                                      <tr align="center"> 
                                        <td width="31%" height="20" align="right" valign="middle"> 
                                          <input type="image" src="../images/button_login.gif" width="46" height="18"> 
                                        </td>
                                        <td width="29%" align="center" valign="middle"><a href="register.jsp"><img src="../images/button_reg.gif" width="44" height="18" border="0"></a> 
                                        </td>
                                        <td width="40%" align="left" valign="middle"><a href="javascript:show('fetchpwd.jsp')"><img src="../images/button_getps.gif" width="69" height="18" border="0"></a></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </form>
                            </table>
						<%
							}else{
						%>
					    <table width="100%" height="107" border="0" cellpadding="0" cellspacing="0">
                          <tr> 
							 <td height="28" align="center"><font color="red"><u><b><%=user%></b></u></font>&nbsp;:&nbsp;您好!</td>
                            </tr>
                            <tr> 
                              <td height="28">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您的IP:<font color="red"><%=request.getRemoteAddr()%></font></td>
                            </tr>
                            <tr> 
                              <td height="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您的身份:<font color="red"><%=personal.pdmPersonal()%></font></td>
                            </tr>
                            <tr> 
                              <td height="24">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您发表的文章总数:<font color="red"><%=personal.sumPersonal()%></font></td>
                            </tr>
                        </table>
						<%
							}
						%>
							</td>
                        </tr>
                        <tr> 
                          <td height="100" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr> 
                                <td height="39" colspan="2" align="center"><img src="../images/lltj.gif" width="189" height="30"></td>
                              </tr>
                              <tr> 
                                <td width="21%" height="23" align="right"><img src="../images/1.gif" width="21" height="21"></td>
                                <td width="79%">&nbsp;&nbsp;文章总数:&nbsp;<font color="#ff0000"><%=newsShow.sumNews()%></font></td>
                              </tr>
                              <tr> 
                                <td height="23" align="right"><img src="../images/2.gif" width="21" height="20"></td>
                                <td height="23">&nbsp;&nbsp;注册用户数:&nbsp;<font color="#ff0000"><%=newsShow.sumUser()%></font></td>
                              </tr>
                              <tr> 
                                <td height="22" align="right"><img src="../images/3.gif" width="21" height="21"></td>
                                <td height="22">&nbsp;&nbsp;共计访问总数:&nbsp;<font color="red"><%
									if(counter.isIp(request.getRemoteAddr())){
										out.print(counter.counter());
									}
									else{
										counter.upCounter(request.getRemoteAddr());
										out.print(counter.counter());
									}
								%>
                                  </font> </td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="90" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr> 
                                <td height="22" align="center"><img src="../images/cjlj.gif" width="189" height="30"></td>
                              </tr>
                              <tr> 
                                <td height="37"> </td>
                              </tr>
                            </table></td>
                        </tr>
                      </table>
                    </center>
                  </div></td>
              </tr>
            </table></td>
        </tr>
      </table><br></td>
  </tr>
  <tr> 
    <td align="center" bgcolor="#FFFFFF"></td>
  </tr>
</table>
</body>
<%@ include file="../include/copyleft.jsp"%>

⌨️ 快捷键说明

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