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

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>LinkManage</title>
  8. <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  9. <script type="text/javascript">
  10. <c:if test="${link != null}">
  11. window.onload = function(){
  12.   document.getElementById("type").value = <c:out value="${link.lin_Type}" />;
  13. }
  14. </c:if>
  15. function saveAction(){
  16.   document.getElementById("").action = "<%=request.getContextPath() %>/Manage/Link.do?todo=EditLink&Type=<c:out value="${param.Type}" />";
  17. }
  18. </script>
  19. </head>
  20. <body bgcolor="#ffffff">
  21. <html:form method="post" action="Manage/Link.do?todo=EditLink">
  22. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  23.   <tr bgcolor="#cfdbe8">
  24.     <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>
  25.     <td valign="middle" bgcolor="#cfdbe8" colspan="2">&nbsp; 链接管理</td>
  26.   </tr>
  27.   <tr>
  28.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  29.     <td style="HEIGHT: 31px" valign="middle" align="left" colspan="2">
  30.       &nbsp;<img src="<%=request.getContextPath() %>/Manage/images/edit.gif" align="middle" alt="" />&nbsp;
  31.         <c:if test="${param.Type == 1}">
  32.         集团旗下网站
  33.         </c:if>
  34.         <c:if test="${param.Type == 2}">
  35.         集团合作伙伴
  36.         </c:if>
  37.         <c:if test="${param.Type == 3}">
  38.         友情链接
  39.         </c:if>
  40.     </td>
  41.   </tr>
  42.   <tr>
  43.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  44.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  45.     <td style="HEIGHT: 1px; width: 144px;" valign="top" align="left"></td>
  46.   </tr>
  47.   <tr>
  48.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  49.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  50.       <br/>
  51.       <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
  52.         <tr bgcolor="#ffffff">
  53.           <td style="height: 25px; width: 117px;">
  54.           &nbsp; 链接中文名:
  55.           </td>
  56.           <td style="height: 23px">
  57.             <input type="text" id="txtCatName" name="CName" value='<c:out value="${link.lin_CName}" />' />
  58.             <input type="submit" id="btnSaveCategory" value="保存" />
  59.             <input type="hidden" name="linkID" value='<c:out value="${link.lin_ID}" />' />
  60.           </td>
  61.         </tr>
  62.         <tr bgcolor="#ffffff">
  63.           <td style="height: 25px; width: 117px;">
  64.           &nbsp; 链接英文名:
  65.           </td>
  66.           <td style="height: 23px">
  67.             <input type="text" id="txtOrder" name="EName" value='<c:out value="${link.lin_EName}" />' />
  68.           </td>
  69.         </tr>
  70.         <c:if test="${}">
  71.         <tr bgcolor="#ffffff">
  72.           <td style="height: 25px; width: 117px;">
  73.           &nbsp; 链接图片:
  74.           </td>
  75.           <td style="height: 23px">
  76.             <a href=""><c:out value="${pro.image.filename}" /></a>
  77.             <html:file property="linkImg" size="30"></html:file>
  78.             <input type="hidden" name="imageID" value='<c:out value="${pro.image.id}" />' />
  79.           </td>
  80.         </tr>
  81.         </c:if>
  82.         <tr bgcolor="#ffffff">
  83.           <td style="height: 25px; width: 117px;">
  84.           &nbsp; 链接类型:
  85.           </td>
  86.           <td style="height: 23px">
  87.             <select name="type">
  88.               <option value="1" selected="selected">集团旗下网站</option>
  89.               <option value="2">集团合作伙伴</option>
  90.               <option value="3">友情链接</option>
  91.             </select>
  92.           </td>
  93.         </tr>
  94.         <tr bgcolor="#ffffff">
  95.           <td style="height: 25px; width: 117px;">
  96.           &nbsp; 链接地址:
  97.           </td>
  98.           <td style="height: 23px">
  99.             <input type="text" name="url" value='<c:out value="${link.lin_Url}" />' />
  100.           </td>
  101.         </tr>
  102.         <tr bgcolor="#ffffff">
  103.           <td style="height: 25px; width: 117px;">
  104.           &nbsp; 现有链接:
  105.           </td>
  106.           <td style="height: 23px">
  107.             <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  108.               <tr>
  109.                 <td height="25" width="200" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>中文名</strong></td>
  110.                 <td width="200" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>英文名</strong></td>
  111.                 <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  112.               </tr>
  113.             </table>
  114.             <div id="divList">
  115.               <c:forEach var="link" items="${linkList}" varStatus="status">
  116.                 <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  117.                   <tr>
  118.                     <td width="200" class="table_Right" height="25">
  119.                       &nbsp;<c:out value="${link.lin_CName}" />
  120.                     </td>
  121.                     <td width="200" class="table_Right">
  122.                       &nbsp;<c:out value="${link.lin_EName}" />
  123.                     </td>
  124.                     <td width="120" align="center" class="table_Right">
  125.                       <a href='<%=request.getContextPath() %>/Manage/Link.do?todo=OpenLink&Type=<c:out value="${param.Type}" />&LinkID=<c:out value="${link.lin_ID}" />'>编辑</a>
  126.                       &nbsp;|&nbsp;
  127.                       <a href='<%=request.getContextPath() %>/Manage/Link.do?todo=DeleteLink&linID=<c:out value="${link.lin_ID}" />'>删除</a>
  128.                     </td>
  129.                   </tr>
  130.                 </table>
  131.               </c:forEach>
  132.             </div>
  133.           </td>
  134.         </tr>
  135.       </table>
  136.     </td>
  137.   </tr>
  138. </table>
  139. </html:form>
  140. </body>
  141. </html>