- <%@ page contentType="text/html;charset=UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <html>
- <head>
- <title>友情链接管理</title>
- <meta http-equiv="Content-Type" content="text/html;charset=gb2312">
- <meta http-equiv="Content-Language" Content="zh-CN">
- <meta name="Keywords" Content="">
- <meta name="Description" Content="">
- <link type="text/css" rel="stylesheet" href="/yf_article/Style/Style.css">
- <Script Language="JavaScript" src="Include/Function.js"></Script>
- <Script Language="JavaScript" src="Include/PopText.js"></Script>
- <Script Language="JavaScript">
- <!--
- function Admin_WebLink_Check() {
- if(document.Admin_WebLink.li_name.value==""||document.Admin_WebLink.li_url.value==""){
- alert("链接名称和链接网址不能为空!");
- return false;
- }
- }
- function Admin_WebLink_Check2() {
- if(document.Admin_WebLink2.li_editname.value==""||document.Admin_WebLink2.liedit_url.value==""){
- alert("链接名称和链接网址不能为空!");
- return false;
- }
- }
- //-->
- </Script>
- </head>
- <body bgcolor="#FFFFFF" topmargin="10" leftmargin="10">
- <form name="Admin_WebLink" method="post" action="link.do?method=link_add" onSubmit="return Admin_WebLink_Check();">
- <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="10" bgcolor="#CEEFE7">
- <tr>
- <td width="600" height="30" background="Images/Admin_T_Bg1.gif" align="center" colspan="3"><font class="BlackS12"><b>友 情 链 接 管 理</b></font></td>
- </tr>
- <tr>
- <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接名称</font></td>
- <td width="276" height="28" bgcolor="#FFFFFF"> <input type="text" name="li_name" maxlength="50" value="" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>
- <td width="240" height="28" bgcolor="#FFFFFF"> <span id="JS_M_WL_Name" class="BlackS12">填写链接名称</span></td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接网址</font></td>
- <td width="276" height="28" bgcolor="#FFFFFF"> <input type="text" name="li_url" maxlength="200" value="" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>
- <td width="240" height="28" bgcolor="#FFFFFF"> <span id="JS_M_WL_Href" class="BlackS12">填写链接网址</span></td>
- </tr>
- <tr>
- <td width="80" height="38" bgcolor="#FFFFFF"> </td>
- <td width="518" height="38" bgcolor="#FFFFFF" colspan="2"> <input type="submit" name="Submit2" value="" class="Admin_Button_Add"> <input type="Reset" value="" name="Reset2" class="Admin_Button_Reset"></td>
- </tr>
- </table>
- </form>
- <form name="Admin_WebLink2" method="post" action="link.do?method=link_update&li_id=${link.li_id }" onSubmit="return Admin_WebLink_Check2();">
- <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="10" bgcolor="#CEEFE7">
- <tr>
- <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接名称</font></td>
- <td width="276" height="28" bgcolor="#FFFFFF"> <input type="text" name="li_editname" maxlength="50" value="${link.li_name}" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>
- <td width="240" height="28" bgcolor="#FFFFFF"> <span id="JS_M_WL_Name" class="BlackS12">修改的链接名称</span></td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">链接网址</font></td>
- <td width="276" height="28" bgcolor="#FFFFFF"> <input type="text" name="li_editurl" maxlength="200" value="${link.li_url}" class="Admin_InputText" style="width:260;background-color:#EAFBF5;" size=""></td>
- <td width="240" height="28" bgcolor="#FFFFFF"> <span id="JS_M_WL_Href" class="BlackS12">修改的链接网址</span></td>
- </tr>
- <tr>
- <td width="80" height="38" bgcolor="#FFFFFF"> </td>
- <td width="518" height="38" bgcolor="#FFFFFF" colspan="2"> <input type="submit" name="Submit2" value="" class="Admin_Button_Modify"> <input type="Reset" value="" name="Reset2" class="Admin_Button_Reset"></td>
- </tr>
- </table>
- </form>
- <br>
- <form name="Admin_WebLink_Del" method="post" action="link.do?method=link_delete">
- <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="1" bgcolor="#CEEFE7">
- <tr>
- <td width="41" height="26" bgcolor="#EAFBF5" align="center"><font class=BlackS12>编号</font></td>
- <td width="38" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">选择</font></td>
- <td width="118" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">链接名称</font></td>
- <td width="68" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">链接网址</font></td>
- <td width="76" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">整理日期</font></td>
- <td width="38" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">编辑</font></td>
- </tr>
- <c:forEach items="${link_list}" var="link">
- <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EAFBF5'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
- <td width="41" height="26" align="center"><font class="BlackS12">${link.li_id }</font></td>
- <td width="38" height="26" align="center"><input name="check_id" type="checkbox" value="${link.li_id }"></td>
- <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>
- <td width="68" height="26" align="center"><font class="BlackS12">${link.li_url }</font></td>
- <td width="76" height="26" align="center"><font class="BlackS12">${link.li_createTime }</font></td>
- <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>
- </tr>
- </c:forEach>
- <tr>
- <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"> </td>
- </tr>
- </table>
- </form>
- <br>
- </body>
- </html>