?? 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 + -