📄 member_in.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="com.ayi.web.*" %>
<%@ page import="java.util.*" %>
<%
User user=new User();
DB db=new DB();
Pic p=new Pic();
Vector allPicPath=p.getAllPicPath(db);
Vector path = p.picPath(db, (String) session.getAttribute(Constant.USER_KEY));
Message message=new Message();
Vector IDmessages=message.getMessages(db,(String) session.getAttribute(Constant.USER_KEY));
GoodFriends gf=new GoodFriends();
Vector goodFriends=gf.getGoodFriends(db,(String)session.getAttribute(Constant.USER_KEY));
%>
<table align="center" width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" width="200" height="30" style="">欢迎您:
<%=(String)session.getAttribute(Constant.USER_KEY) %>
<%=user.checkGrade(db,(String)session.getAttribute(Constant.USER_KEY)) %>
</td>
</tr>
<tr>
<td class="bold" align="left" width="200" height="30">
<font color="red">用户控制面板</font>
</td>
</tr>
<tr>
<td align="right" width="200" height="30">
<a href="personal.jsp">个人资料</a>
</td>
</tr>
<tr>
<td align="right" width="200" height="30">
<%if(path.size()!=0){ %>
已有<%=p.count(db,(String)session.getAttribute(Constant.USER_KEY)) %>张照片
<a href="showpic.jsp?&ID=<%=(String)session.getAttribute(Constant.USER_KEY) %>">查看照片</a>
<%} %>
<a href="uploadpic.jsp">上传照片</a>
</td>
</tr>
<tr>
<td align="right" width="200" height="30">
<%if(IDmessages.size()>0){ %>
有<%=IDmessages.size()%>条留言
<a href="read.jsp">查看留言</a>
<%}else{ %>
没有留言
<%} %>
</td>
</tr>
<tr>
<td align="right" width="200" height="30">
<%if(goodFriends.size()>0){ %>
<a href="friends.jsp">好友列表</a>
<%}else{ %>
好友列表
<%} %>
</td>
</tr>
<tr>
<td align="left" width="200" height="60"><a href="logout.jsp">退出登录</a></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -