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

📄 sendmsg.jsp

📁 这是一个用JAVA语言编写的BBS论坛程序
💻 JSP
字号:
<%
/*
 * Copyright:  Copyright (c) 2004 
 * @author http://hi.baidu.com/lael80*/
%>
<%@ page contentType="text/html; charset=gb2312" errorPage=""%>
<%@ include file="head.jsp"%>
<br>
<%
if(!workFC.cNULL(String.valueOf(session.getAttribute("u_name")))){
  response.sendRedirect("result.jsp?errcodes="+workFC.GBtoUni("<li>您还没注册或登录,没权发送留言"));
  return;
}
String friend=workDB.queryData("select user_friend from user_info where user_name='"+session.getAttribute("u_name")+"'");
String temp[]=friend.split(",");
%>
<%=tabletop%>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1">
  <tr>
   <td width="100%" height="25" class="b1">&nbsp;</td>
  </tr>
  <form name="form1" method="post" action="msg_ok.jsp">
  <tr>
    <td align="center">名称:
      <input name="user_name" type="text" size="20" maxlength="15" value="<%=workFC.UnitoGB(request.getParameter("name"))%>" onfocus="this.select();">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <select name="select" onChange="document.form1.user_name.value=this.options[this.selectedIndex].value">
        <option selected>好友列表</option>
<%
for(int i=0;i<temp.length;i++){
 if(workFC.cNULL(temp[i]))out.println("<option value="+temp[i]+">"+temp[i]+"</option>");
}
%>
        </select></td>
  </tr>
  <tr>
    <td align="center"><textarea name="msg_content" cols="50" rows="5"></textarea></td>
  </tr>
  <tr>
    <td align="center">
      <input type="button" name="Submit" value=" 返 回 " onclick="history.back();">
      &nbsp;&nbsp;&nbsp;
      <input type="submit" name="Submit3" value="发送留言  &gt;&gt;&gt;">
    </td>
  </tr>
 </form>
</table>
<%=tablebottom%>
<br>
<%@ include file="footer.jsp"%>
</body>
</html>

⌨️ 快捷键说明

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