Edit D:\chineseall_products\bak\digitalLib6\pages\screen\admin\createRollPicture.jsp
??<%@ page contentType="text/html;charset=utf-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>??????????????</title> <link rel="stylesheet" type="text/css" href="/style/style.css" /> <script language="javascript" type="text/javascript" src="/js/jquery-1.8.0.min.js"></script> <style> body{font-size:14px;color:#000;background:#fff;} .searchTitle{float:left; height:20px; line-height:20px; margin:5px;} </style> </head> <body> <div class="crumbs tl">?????????????? >> ?????????</div> <div class="mainCon"> <form id="createRollPictrueForm" name="createRollPictrueForm" action="createRollPicture.action" method="post" accept="" enctype="multipart/form-data"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="addTable"> <tr> <td width="10%">???</td> <td width="90%"><input class="textIn1" type="text" name="rollPictrue.title" value="${rollPictrue.title}" id="title" style="width: 300px;" maxlength="50"/></td> </tr> <tr> <td width="10%">???</td> <td width="90%"> <input class="textIn1" type="file" name="headImage" id="headImage" style="width: 300px;"/>(?????317*154) </td> </tr> <!-- <tr> <td width="10%">??????</td> <td width="90%"><input class="textIn1" type="text" name="rollPictrue.websit" value="${rollPictrue.websit}" id="title" style="width: 500px;" /></td> </tr> --> <tr> <td></td> <td> <s:if test="rollPictrue.picturePath != null"> <img alt="" src="${rollPictrue.picturePath }" style="max-height: 154px; max-width: 317px;"> </s:if> </td> </tr> <tr> <td> </td> <td align="left" colspan="2"> <input type="hidden" id="id" name="rollPictrue.id" value="${rollPictrue.id}" /> <input type="hidden" id="id" name="rollPictrue.picturePath" value="${rollPictrue.picturePath}" /> <input type="hidden" name="currentPage" value="${currentPage}" /> <input type="button" class="searchBtn" onclick="dosubmit();" value="???" /> <input type="button" class="searchBtn" onclick="returnListPage();" value="???" /> <font color="red"><s:property value="info" /></font> </td> </tr> </table> </form> </div> <script type="text/javascript"> function returnListPage() { var obj = document.getElementById("createRollPictrueForm"); obj.action = "listRollPicture.action"; obj.submit(); } function dosubmit() { var obj; obj = document.getElementById("headImage"); if (obj.value == "") { alert("??????banner???"); return; } if (obj.value.length > 0 && !/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(obj.value)) { alert("???????????") return; } document.getElementById("createRollPictrueForm").submit(); } </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de