www.pudn.com > liberSystem.rar > book_add.jsp, change:2012-05-28,size:2247b


<%@page import="com.ccl.service.BookTypeService"%> 
<%@page import="com.ccl.domin.BookType"%> 
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<% 
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(){ 
		book_add.submit(); 
	} 
	</script> 
  </head> 
 
  <body style="text-align: center;"> 
  <div class="box"> 
  	<form action="book_add" method="post" name="book_add"> 
	  <table border="1"> 
	  <tr> 
	  	<th colspan="2">添加图书</th> 
	  </tr> 
	  <tr> 
	  	<td>图书名称*</td> 
	  	<td><input type="text" name="bookName"></td> 
	  </tr> 
	   <tr> 
	  	<td>作者*</td> 
	  	<td><input type="text" name="author"></td> 
	  </tr> 
	   <tr> 
	  	<td>出版社*</td> 
	  	<td><input type="text" name="publisher"></td> 
	  </tr> 
	   <tr> 
	  	<td>价格*</td> 
	  	<td><input type="text" name="price"></td> 
	  </tr> 
	   <tr> 
	  	<td>类型*</td> 
	  	<% 
	  		List<Object> lists=new BookTypeService().booktype_list(); 
	  	request.setAttribute("lists", lists); 
	  	%> 
	  	<td><select name="type"> 
	  	<c:forEach items="${lists }" var="l"> 
	  		<option value="${l.id }">${l.name }</option> 
	  	</c:forEach> 
	  	</select> </td> 
	  </tr> 
	    <tr> 
	  	<td>数量*</td> 
	  	<td><input type="text" name="count"></td> 
	  </tr> 
	   <tr> 
	  	<td colspan="2" class="box_bottom"> 
	  		<input type="button" value="提交" onclick="on_submit()"> 
	  		<input type="reset" value="重置"> 
	  	</td> 
	  </tr> 
	  </table> 
	  </form> 
  </div> 
  </body> 
</html>