📄 friends.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="comm/header.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的好友</title>
<script language="javascript">
<!--
function checkadd(){
if (document.addfriends.fname.value.length == 0) {
alert("请输入用户名");
document.addfriends.fname.focus();
return false;
}
}
-->
</script>
</head>
<body>
<div class="tabwidth">
<table align=center cellSpacing=0 cellPadding=0 width=100%>
<tr height=25px class=tr_2><td class=tab1>
<a href=index.htm>『<bean:write name="bbsname" />』</a> → 论坛好友列表
</td></tr>
<tr><td height=3px colspan=5> </td></tr>
<tr><td>
<logic:present name="bbsuser">
<table class=tab1 align=center cellSpacing=0 cellPadding=0 width=100% >
<tr height=25px><td class=tab_c align=center colspan=2 width=100%>
<b><font color=#FFFFFF>『 我的论坛好友 』</font></b>
</td></tr>
<tr height=25px align=center>
<td class=td_t width=35% >朋友名称</td>
<td class=td_lt>操作</td>
</tr>
<logic:iterate id="friend" name="flist">
<tr height=25px align=center><td class=td_t width=35% >
<a href=User.htm?uId=<bean:write name="friend" property="fid"/>>
<bean:write name="friend" property="fname"/>
</a></td><td class=td_lt>
<a href=Friend.htm?action=delete&fid=<bean:write name="friend" property="fid"/>>删 除</a>
</td></tr>
</logic:iterate>
<tr height=25px align=center>
<form name="addfriends" method="post" action="Friend.htm" onsubmit="return checkadd()" >
<input type="hidden" name="action" value="add">
<td class=td_t width=35% ><input type=text name=fname class=input></td>
<td class=td_t><input type=submit value=提交></td>
</form>
</tr>
</table>
</logic:present>
</td></tr>
<logic:notPresent name="bbsuser">
<tr height=25px align=center><td class=td_t>只有论坛用户才拥有论坛好友</td></tr>
</logic:notPresent>
<tr height=25px align=center><td><font color="red"><html:errors /></font> </td></tr>
</table>
</div>
<div class="tabwidth"><yhbbs:footer/></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -