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

📄 edittopic.jsp

📁 电子书店管理系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../error.jsp" %>
<%@ include file="../trans.jsp"%>
<jsp:useBean id="topic" class="com.jspdev.business.TopicBean" scope="page"/>
<script  language="javascript">
<!-- Begin validation script  
function checkForm(){
	   if(document.form1.title.value==""){
		alert("请输入标题!");
		return false;
		}
		if(document.form1.content.value==""){
		alert("请输入内容!");
		return false;
		}
	return true;
	}
-->
</script>

<% com.jspdev.vo.TopicVO top=new com.jspdev.vo.TopicVO ();
   String type=request.getParameter("type");
   String id=request.getParameter("id");
   if(type.equals("topic"))top=topic.getTopic(id);
   else if(type.equals("reply"))top=topic.getReply(id);
   else out.println("error");
   
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../hellking.css" type=text/css rel=stylesheet>
</head>
<body>
<form name="form1" action="/jspdev/servlet/edittopicservlet" method=post onSubmit="return checkForm()">
<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="5" width=80%>
    <tr bgcolor="#cccccc"> 
    <td>标题</td> <td><input type=text name="title" value=<%=trans(top.getTitle())%>></td>
    </tr>
    <tr bgcolor="#cc99cc"> 
    <td>作者</td><td><input type=text value=<%=trans(top.getAuthor())%> name=author></td>
    </tr>
     <tr bgcolor="#cccccc"> 
    <td>电子邮件</td><td><input type=text value=<%=top.getEmail()%>  name=email></td>
    </tr>
    <tr bgcolor="#cc99cc"> 
    <td>内容</td><td><textarea cols=40 rows=9 name="content"><%=trans(top.getContent())%></textarea></td>
    </tr>
      <tr bgcolor="#cccccc"> 
      <input type=hidden name=id value=<%=top.getId()%> >
      <input type=hidden name=type value=<%=type%> >
    <td>提交</td><td><input type=submit value=提交> </td>
    </tr>
    </table>
</form>    
    
</body>
</html>

⌨️ 快捷键说明

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