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

📄 requestadd.jsp

📁 《Web程序测试实训教程(Java版)》-徐民鹰-源代码
💻 JSP
字号:
<%@ page language="java" import="java.util.*" %>
<%@page import="java.text.*" 
contentType="text/html; charset=gb2312" 
buffer="20kb" 
%>
<% request.setCharacterEncoding("gb2312"); %><html>    <head>        <title>图书信息添加</title>    </head>
    <LINK href="../include/style.css" type=text/css rel=stylesheet>    <body bgcolor="#ffffee">
                <h4><center>图书信息添加</center></h4>        <form name="form1" method="post" action="DoAdd.jsp?saveType=1">
        <input name="id" type="hidden" value="0">        <table align="left" cellpadding="1" cellspacing="1" border="1" width="500" bgcolor="#dddddd">            <tr>                <td>图书类别:</td>                <td>
                <select size=1 name="bookType">
<%
            //图书类别列表
            bookType.BtypeDB btypeDB = new bookType.BtypeDB();
            Collection booktype = btypeDB.getTypes();
            if (booktype != null)
            {
                if (booktype.size () > 0)
                {
                    for (Iterator iterator = booktype.iterator(); iterator.hasNext(); )
                    {
                    	bookType.Btype btype = (bookType.Btype) iterator.next ();
%>
                <option value="<%= btype.getId ()%>"><%= btype.getType()%></option>
<%
                    }
                }
            }
%> 
                </select>
               </td>            </tr>
            <tr>
                <td>图书名称:</th>
                <td><input name="bookTitle" type="text"></td>
            </tr>            <tr>
                <td>ISBN:</th>
                <td><input name="ISBN" type="text"></td>
            </tr>
            <tr>
                <td>作者译者:</th>
                <td><input name="author" type="text"></td>
            </tr>
            <tr>
                <td>出版日期:</th>
                <td><input name="pubDate" type="text"></td>
            </tr>
            <tr>
                <td>出版社:</th>
                <td><input name="press" type="text"></td>
            </tr>
            <tr>
                <td>数量:</th>
                <td><input name="amount" type="text"></td>
            </tr>
            <tr>
                <td>价格:</th>
                <td><input name="price" type="text"></td>
            </tr>
            <tr>
                <td>图片上载:</th>
                <td><iframe frameborder="0" width="360" height="50" scrolling="no" src="upload.jsp" ></iframe>
               
                </td>
            </tr>
            <tr>
                <td>图片路径:</th>
                <td> <input name="upPic" type="text" readonly></td>
            </tr>
            <tr>
                <td>内容摘要:</th>
                <td><textarea rows="8" name="content" cols="32"></textarea></td>
            </tr>
             <tr>
               
                <td colspan="2">
                <center>
                    <input name="pagemode" type="hidden" value="submit">
                    <input type="submit" value="确定">&nbsp;&nbsp;
                    <input type="reset" value="取消">
                </center>
                </td>
            </tr>
             <tr>
               
                <td colspan="2">
                
                <center>
                       <b><a href="javascript:window.close();">[关闭]</a></b>
                </center>
                </td>
            </tr>        </table>        <br>        <center>                    </center>            </body></html>

⌨️ 快捷键说明

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