📄 upload.jsp
字号:
<%-- Created by IntelliJ IDEA. User: Administrator Date: 2006-6-23 Time: 9:51:25 To change this template use File | Settings | File Templates.--%><%@ page contentType="text/html;charset=GB2312" language="java" %><% request.setCharacterEncoding("GBK");%><html> <head><title>图片上传</title> <script language="JavaScript"> function OpenWindow(name,type,des,pos){ thisWin = window.open("", null, "width=400,height=400,toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no") thisWin.document.write("<head><title>预览</title></head>") thisWin.document.write("<body><center>这是您选择的图片</center>"); thisWin.document.write ("name : "); thisWin.document.write (name); thisWin.document.write ("<br>"); thisWin.document.write ("type : "); thisWin.document.write(type); thisWin.document.write ("<br>"); thisWin.document.write("<IMG src='"); thisWin.document.write(pos); thisWin.document.write("'>"); thisWin.document.write ("<br>"); thisWin.document.write ("description : "); thisWin.document.write(des); thisWin.document.write ("<br>"); thisWin.documeng.write ("</body>"); }</script> </head><body background="image/t1.jpg"><img src=image/banner.jpg alt=""/><br><br><p align="center"><font color="#66000" size="5" face="隶书">上传文件选择</font></p><form action="upload.do" method="post" enctype="multipart/form-data" type="formbean.UploadForm"> <table width="75%" border="0" align="center"> <tr> <td width="300"> <div align="right" >上传文件的名称</div></td> <td align="left"><input type="text" name="name" size="30"> </td> </tr> <tr> <td width="300"> <div align="right" >上传文件的类别</div></td> <td align="left"><select name="pictype" ><option value="all" >全部</option><option value="fengjing" >风景</option><option value="renwu" >人物</option><option value="dongwu" >动物</option> </select> </td> </tr> <tr> <td width="300"> <div align="right">选择上传的图片</div></td> <td align="left"> <input type="file" name="pic" size="30"> </td> </tr> <tr> <td width="300"> <div align="right">图片简介</div></td> <td align="left"> <textarea rows="3" name="description" cols="30"></textarea> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="button" value="预览" name="browse" onclick = "OpenWindow(this.form.elements ('name').value ,this.form.elements ('pictype').value ,this.form.elements ('description').value,this.form.elements ('pic').value );"> <input type="submit" name="submit" value="上传"> </div> </td> </tr> </table></form> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -