admin_link.jsp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <html>
  4. <head>
  5. <title>友情链接管理</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=gb2312">
  7. <meta http-equiv="Content-Language" Content="zh-CN">
  8. <meta name="Keywords" Content="">
  9. <meta name="Description" Content="">
  10. <link type="text/css" rel="stylesheet" href="/yf_article/Style/Style.css">
  11. <Script Language="JavaScript" src="Include/Function.js"></Script>
  12. <Script Language="JavaScript" src="Include/PopText.js"></Script>
  13. <Script Language="JavaScript">
  14. <!--
  15. function Admin_WebLink_Check() {
  16. if(document.Admin_WebLink.li_name.value==""||document.Admin_WebLink.li_url.value==""){
  17. alert("链接名称和链接网址不能为空!");
  18. return false;
  19. }
  20. }
  21. function Admin_WebLink_Check2() {
  22. if(document.Admin_WebLink2.li_editname.value==""||document.Admin_WebLink2.liedit_url.value==""){
  23. alert("链接名称和链接网址不能为空!");
  24. return false;
  25. }
  26. }
  27. //-->
  28. </Script>
  29. </head>
  30. <body bgcolor="#FFFFFF" topmargin="10" leftmargin="10">
  31. <form name="Admin_WebLink" method="post" action="link.do?method=link_add" onSubmit="return Admin_WebLink_Check();">
  32. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="10" bgcolor="#CEEFE7">
  33.  <tr>
  34.   <td width="600" height="30" background="Images/Admin_T_Bg1.gif" align="center" colspan="3"><font class="BlackS12"><b>友 情 链 接 管 理</b></font></td>
  35.  </tr>
  36.  <tr>
  37.   <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
  38.  </tr>
  39.  <tr>
  40.   <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接名称</font></td>
  41.   <td width="276" height="28" bgcolor="#FFFFFF">&nbsp;<input type="text" name="li_name" maxlength="50" value="" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>
  42.   <td width="240" height="28" bgcolor="#FFFFFF">&nbsp;<span id="JS_M_WL_Name" class="BlackS12">填写链接名称</span></td>
  43.  </tr>
  44.  <tr>
  45.   <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接网址</font></td>
  46.   <td width="276" height="28" bgcolor="#FFFFFF">&nbsp;<input type="text" name="li_url" maxlength="200" value="" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>                
  47.   <td width="240" height="28" bgcolor="#FFFFFF">&nbsp;<span id="JS_M_WL_Href" class="BlackS12">填写链接网址</span></td>                
  48.  </tr>
  49.  <tr>
  50.   <td width="80" height="38" bgcolor="#FFFFFF">&nbsp</td>
  51.   <td width="518" height="38" bgcolor="#FFFFFF" colspan="2">&nbsp;<input type="submit" name="Submit2" value="" class="Admin_Button_Add">&nbsp;<input type="Reset" value="" name="Reset2" class="Admin_Button_Reset"></td>
  52.  </tr>
  53. </table>
  54. </form>
  55. <form name="Admin_WebLink2" method="post" action="link.do?method=link_update&li_id=${link.li_id }" onSubmit="return Admin_WebLink_Check2();">
  56. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="10" bgcolor="#CEEFE7">
  57.  <tr>
  58.   <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
  59.  </tr>
  60.  <tr>
  61.   <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接名称</font></td>
  62.   <td width="276" height="28" bgcolor="#FFFFFF">&nbsp;<input type="text" name="li_editname" maxlength="50" value="${link.li_name}" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>
  63.   <td width="240" height="28" bgcolor="#FFFFFF">&nbsp;<span id="JS_M_WL_Name" class="BlackS12">修改的链接名称</span></td>
  64.  </tr>
  65.  <tr>
  66.   <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接网址</font></td>
  67.   <td width="276" height="28" bgcolor="#FFFFFF">&nbsp;<input type="text" name="li_editurl" maxlength="200" value="${link.li_url}" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>                
  68.   <td width="240" height="28" bgcolor="#FFFFFF">&nbsp;<span id="JS_M_WL_Href" class="BlackS12">修改的链接网址</span></td>                
  69.  </tr>
  70.  <tr>
  71.   <td width="80" height="38" bgcolor="#FFFFFF">&nbsp</td>
  72.   <td width="518" height="38" bgcolor="#FFFFFF" colspan="2">&nbsp;<input type="submit" name="Submit2" value="" class="Admin_Button_Modify">&nbsp;<input type="Reset" value="" name="Reset2" class="Admin_Button_Reset"></td>
  73.  </tr>
  74. </table>
  75. </form>
  76. <br>
  77. <form name="Admin_WebLink_Del" method="post" action="link.do?method=link_delete">
  78. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="1" bgcolor="#CEEFE7">
  79.  <tr>
  80.   <td width="41" height="26" bgcolor="#EAFBF5" align="center"><font class=BlackS12>编号</font></td>
  81.   <td width="38" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">选择</font></td>
  82.   <td width="118" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">链接名称</font></td>
  83.   <td width="68" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">链接网址</font></td>
  84.   <td width="76" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">整理日期</font></td>
  85.   <td width="38" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">编辑</font></td>
  86.  </tr>
  87. <c:forEach items="${link_list}" var="link">
  88.  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EAFBF5'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
  89.   <td width="41" height="26" align="center"><font class="BlackS12">${link.li_id }</font></td>
  90.   <td width="38" height="26" align="center"><input name="check_id" type="checkbox" value="${link.li_id }"></td>
  91.   <td width="118" height="26" align="center"><a href="${link.li_url }" class="BlackS12" target="_blank" title="${link.li_name }">${link.li_name }</a></td>
  92.   <td width="68" height="26" align="center"><font class="BlackS12">${link.li_url }</font></td>
  93.   <td width="76" height="26" align="center"><font class="BlackS12">${link.li_createTime }</font></td>
  94.   <td width="38" height="26" align="center"><a href="link.do?method=toUpdate_link&li_id=${link.li_id }"><img src="Images/Admin_Modify.gif" border="0" width="16" height="16" title="编辑"></a></td>
  95.   </tr>
  96. </c:forEach>
  97.  <tr>
  98.   <td width="600" height="38" bgcolor="#FFFFFF" colspan="8" align="right"><input type="hidden" name="GuComm" value="De"><input type="submit" value="" name="Admin_WebLink_Delete" class="Admin_Button_Delete">&nbsp;</td>
  99.  </tr>
  100. </table>
  101. </form>
  102. <br>
  103.   
  104. </body>
  105. </html>