EditDownLoad.jsp~1~
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
  3. <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  4. <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
  5. <html>
  6. <head>
  7. <title>EditDownLoad</title>
  8. <script type="text/javascript">
  9. function SaveAction(){
  10.   var form = document.all.downLoadActionForm;
  11.   var edit = false;
  12.   <c:if test="${param.Edit != null && param.Edit != ''}">
  13.   edit = <c:out value="${param.Edit}" />;
  14.   </c:if>
  15.   var key = '<c:out value="${param.Key}" />';
  16.   if(edit == true){
  17.     form.action = "<%=request.getContextPath()%>/Manage/DownLoad.do?todo=EditDownLoad&Edit=true&Key=" + key;
  18.   }else{
  19.     form.action = "<%=request.getContextPath()%>/Manage/DownLoad.do?todo=EditDownLoad&Key=" + key;
  20.   }
  21.   form.submit();
  22. }
  23. </script>
  24. <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  25. </head>
  26. <body bgcolor="#ffffff">
  27. <html:form method="post" action="/Manage/DownLoad.do?todo=EditDownLoad" enctype="multipart/form-data">
  28. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  29.   <tr bgcolor="#cfdbe8">
  30.     <td style="WIDTH: 20px" width="20" bgcolor="#cfdbe8" height="19">&nbsp;<img height="10" src="<%=request.getContextPath() %>/Manage/images/icon.gif" width="12" alt="" /></td>
  31.     <td valign="middle" bgcolor="#cfdbe8" colspan="2">&nbsp; <c:out value="${MainTitle}" /></td>
  32.   </tr>
  33.   <tr>
  34.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  35.     <td style="HEIGHT: 31px" valign="middle" align="left" colspan="2">
  36.       &nbsp;<img src="<%=request.getContextPath() %>/Manage/images/edit.gif" align="middle" alt="" />&nbsp;<c:out value="${ChildTitle}" />
  37.     </td>
  38.   </tr>
  39.   <tr>
  40.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  41.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  42.     <td style="HEIGHT: 1px; width: 144px;" valign="top" align="left"></td>
  43.   </tr>
  44.   <tr>
  45.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  46.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  47.       <br/>
  48.       <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
  49.         <tr bgcolor="#ffffff">
  50.           <td style="height: 25px; width: 117px;">
  51.           &nbsp; 文件中文标题:
  52.           </td>
  53.           <td style="height: 23px">
  54.             <input type="text" id="txtTitle" name="cnTitle" value='<c:out value="${dl.dow_Title}" />' />
  55.             <input type="hidden" id="hidID" name="id" value='<c:out value="${dl.dow_ID}" />' />
  56.           </td>
  57.         </tr>
  58.         <tr bgcolor="#ffffff">
  59.           <td style="height: 25px; width: 117px;">
  60.           &nbsp; 排列顺序:
  61.           </td>
  62.           <td style="height: 23px">
  63.             <input type="text" id="txtTitle" name="order" value='<c:out value="${dl.dow_Order}" />' />
  64.           </td>
  65.         </tr>
  66.         <tr bgcolor="#ffffff">
  67.           <td style="height: 25px; width: 117px;">
  68.           &nbsp; 摘要说明:
  69.           </td>
  70.           <td style="height: 23px">
  71.             <textarea cols="50" rows="4" name="summary"><c:out value="${dl.dow_Summary}" /></textarea>
  72.           </td>
  73.         </tr>
  74.         <tr bgcolor="#ffffff">
  75.           <td style="height: 25px; width: 117px;">
  76.           &nbsp; 图片上传:
  77.           </td>
  78.           <td style="height: 23px">
  79.             <a href=""><c:out value="${dl.imageUp.filename}" /></a>
  80.             <html:file property="downLoadImg" size="30"></html:file>
  81.             <input type="hidden" name="fileID" value='<c:out value="${dl.imageUp.id}" />' />
  82.           </td>
  83.         </tr>
  84.         <tr bgcolor="#ffffff">
  85.           <td style="height: 25px; width: 117px;">
  86.           &nbsp; 文件上传:
  87.           </td>
  88.           <td style="height: 23px">
  89.             <a href=""><c:out value="${dl.fileUp.filename}" /></a>
  90.             <html:file property="image" size="30"></html:file>
  91.             <input type="hidden" name="imageID" value='<c:out value="${dl.fileUp.id}" />' />
  92.           </td>
  93.         </tr>
  94.         <tr bgcolor="#ffffff" align="center">
  95.           <td colspan="2">
  96.             <input type="button" id="btnSave" value="保  存" onclick="SaveAction();" />&nbsp;&nbsp;&nbsp;&nbsp;
  97.             <input type="submit" value="返  回" />
  98.           </td>
  99.         </tr>
  100.       </table>
  101.     </td>
  102.   </tr>
  103. </table>
  104. </html:form>
  105. </body>
  106. </html>