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