LinkManage.jsp~40~
上传用户: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='<%=request.getContextPath() %>/Manage/Link.do?todo=EditLink&Type=<c:out value="${param.Type}" />'>
  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.         <c:if test="${}">
  68.         <tr bgcolor="#ffffff">
  69.           <td style="height: 25px; width: 117px;">
  70.           &nbsp; 链接图片:
  71.           </td>
  72.           <td style="height: 23px">
  73.             <a href=""><c:out value="${pro.image.filename}" /></a>
  74.             <html:file property="linkImg" size="30"></html:file>
  75.             <input type="hidden" name="imageID" value='<c:out value="${pro.image.id}" />' />
  76.           </td>
  77.         </tr>
  78.         </c:if>
  79.         <tr bgcolor="#ffffff">
  80.           <td style="height: 25px; width: 117px;">
  81.           &nbsp; 链接类型:
  82.           </td>
  83.           <td style="height: 23px">
  84.             <select name="type">
  85.               <option value="1" selected="selected">集团旗下网站</option>
  86.               <option value="2">集团合作伙伴</option>
  87.               <option value="3">友情链接</option>
  88.             </select>
  89.           </td>
  90.         </tr>
  91.         <tr bgcolor="#ffffff">
  92.           <td style="height: 25px; width: 117px;">
  93.           &nbsp; 链接地址:
  94.           </td>
  95.           <td style="height: 23px">
  96.             <input type="text" name="url" value='<c:out value="${link.lin_Url}" />' />
  97.           </td>
  98.         </tr>
  99.         <tr bgcolor="#ffffff">
  100.           <td style="height: 25px; width: 117px;">
  101.           &nbsp; 现有链接:
  102.           </td>
  103.           <td style="height: 23px">
  104.             <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  105.               <tr>
  106.                 <td height="25" width="200" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>中文名</strong></td>
  107.                 <td width="200" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>英文名</strong></td>
  108.                 <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  109.               </tr>
  110.             </table>
  111.             <div id="divList">
  112.               <c:forEach var="link" items="${linkList}" varStatus="status">
  113.                 <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  114.                   <tr>
  115.                     <td width="200" class="table_Right" height="25">
  116.                       &nbsp;<c:out value="${link.lin_CName}" />
  117.                     </td>
  118.                     <td width="200" class="table_Right">
  119.                       &nbsp;<c:out value="${link.lin_EName}" />
  120.                     </td>
  121.                     <td width="120" align="center" class="table_Right">
  122.                       <a href='<%=request.getContextPath() %>/Manage/Link.do?todo=OpenLink&Type=<c:out value="${param.Type}" />&LinkID=<c:out value="${link.lin_ID}" />'>编辑</a>
  123.                       &nbsp;|&nbsp;
  124.                       <a href='<%=request.getContextPath() %>/Manage/Link.do?todo=DeleteLink&linID=<c:out value="${link.lin_ID}" />'>删除</a>
  125.                     </td>
  126.                   </tr>
  127.                 </table>
  128.               </c:forEach>
  129.             </div>
  130.           </td>
  131.         </tr>
  132.       </table>
  133.     </td>
  134.   </tr>
  135. </table>
  136. </html:form>
  137. </body>
  138. </html>