www.pudn.com > liberSystem.rar > booktype_edit.jsp, change:2012-05-30,size:1790b


<%@page import="com.ccl.service.BookTypeService"%> 
<%@page import="com.ccl.domin.BookType"%> 
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head> 
    <base href="<%=basePath%>"> 
     
    <title>My JSP 'admin_add.jsp' starting page</title> 
     
	<meta http-equiv="pragma" content="no-cache"> 
	<meta http-equiv="cache-control" content="no-cache"> 
	<meta http-equiv="expires" content="0">     
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
	<meta http-equiv="description" content="This is my page"> 
	<link rel="stylesheet" type="text/css" href="css/main.css"> 
	 
	<script type="text/javascript"> 
	function on_submit(){ 
		booktype_edit.submit(); 
	} 
	</script> 
  </head> 
 
  <body style="text-align: center;"> 
  <% 
  	String id=request.getParameter("id"); 
  	BookType o=new BookTypeService().getBooktype(Integer.parseInt(id)); 
  	request.setAttribute("o", o); 
  %> 
  <div class="box"> 
  	<form action="booktype_update" method="post" name="booktype_edit"> 
	  <table border="1"> 
	  <tr> 
	  	<th colspan="2">编辑图书类型</th> 
	  </tr> 
	  <tr> 
	  	<td>类型名称</td> 
	  	<td> 
	  		<input type="text" name="name" value="${o.name}"> 
	  		<input type="hidden" name="id" value="${o.id }"> 
	  	</td> 
	  </tr> 
	   <tr> 
	  	<td colspan="2" class="box_bottom"> 
	  		<input type="button" value="提交" onclick="on_submit()"> 
	  		<input type="button" value="返回" onclick="javascript:history.go(-1)"> 
	  	</td> 
	  </tr> 
	  </table> 
	  </form> 
  </div> 
  </body> 
</html>