admin_add_article.jsp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:7k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ 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" src="Include/jquery.js"></Script>
- <Script Language="JavaScript" src="Include/verify.js"></Script>
- <Script Language="JavaScript">
- function addar(){
- if(document.Admin_Article.ar_name.value==""){
- alert("文章标题不能为空!");
- return false;
- }
- }
- </script>
- </head>
- <body bgcolor="#FFFFFF" leftMargin="10" topmargin="10">
- <form name="Admin_Article" method="post"
- action="article.do?method=admin_add_article&ar_id=${article.ar_id }"
- onSubmit="return addar();">
- <table align="center" border="0" cellpadding="0" cellspacing="1" width="600"
- height="100" bgcolor="#CEEFE7">
- <tr>
- <td width="600" height="28" background="Images/Admin_T_Bg1.gif"
- align="center" colspan="4">
- <font class="BlackS12"><b>文 章 详 细 信 息</b> </font>
- </td>
- </tr>
- <tr>
- <td width="600" height="10" bgcolor="#FFFFFF" colspan="4"></td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">文章标题</font>
- </td>
- <td width="518" height="28" bgcolor="#FFFFFF" colspan="3">
-
- <input type="text" name="ar_name" onFocus=""
- value="${article.ar_name }" Maxlength="100"
- style="width: 383; background-color: #EAFBF5; color: ;"
- class="Admin_Select">
-
- </td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">文章分类</font>
- </td>
- <td width="218" height="28" bgcolor="#FFFFFF">
-
- <span id="Admin_List_Sort" style=""> <select
- id="SortID_Select" name="ar_sort_id" onChange="Sort_Select()"
- size="1" class="Admin_Select" style="background-color: #FFFFFF;">
- <c:forEach items="${ar_so_list}" var="sort">
- <c:choose>
- <c:when test="${sort.so_id==article.ar_sort_id}">
- <option value="${sort.so_id }" selected>
- ${sort.so_name }
- </option>
- </c:when>
- <c:otherwise>
- <option value="${sort.so_id }">
- ${sort.so_name }
- </option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select> </span>
- <span id="Admin_List_AsSort" style=""> <select
- name="AsSortID_Select" size="1" class="Admin_Select"
- style="background-color: #FFFFFF;">
- <option value="">
- 分类...
- </option>
- <c:forEach items="${ar_as_list}" var="assort">
- <c:choose>
- <c:when test="${assort.as_id==article.ar_assort_id}">
- <option value="${assort.as_id }" selected>
- ${assort.as_name }
- </option>
- </c:when>
- <c:otherwise>
- <option value="${assort.as_id }">
- ${assort.as_name }
- </option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select> </span>
- </td>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12"> </font>
- </td>
- <td width="218" height="28" bgcolor="#FFFFFF">
-
- </td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">设置显示</font>
- </td>
- <td width="218" height="28" bgcolor="#FFFFFF">
-
- <select name="ar_commend" size="1" class="Admin_Select"
- style="background-color: #FFFFFF;">
- <c:choose>
- <c:when test="${article.ar_commend==1}">
- <option value="1" selected>
- 在列表中显示
- </option>
- <option value="0">
- 在列表中隐藏
- </option>
- </c:when>
- <c:otherwise>
- <option value="1">
- 在列表中显示
- </option>
- <option value="0" selected>
- 在列表中隐藏
- </option>
- </c:otherwise>
- </c:choose>
- </select>
- </td>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">设置推荐</font>
- </td>
- <td width="218" height="28" bgcolor="#FFFFFF">
- <font class="BlackS10"> </font><font class="BlackS12">
- <c:choose>
- <c:when test="${article.ar_show==1}">
- <input type="checkbox" name="ar_show" id="Ar_CommendB"
- value="1" checked>
- </c:when>
- <c:otherwise>
- <input type="checkbox" name="ar_show" id="Ar_CommendB"
- value="1">
- </c:otherwise>
- </c:choose> <label for="Ar_CommendB" title="设置在首页推荐栏目显示">
- 首页推荐
- </label> </font>
- </td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">文章作者</font>
- </td>
- <td width="218" height="28" bgcolor="#FFFFFF">
-
- <input type="text" name="ar_author" onFocus="Ar_Author.select();"
- Maxlength="50" class="Admin_InputText"
- style="width: 173; background-color: #FFFFFF;"
- value="${article.ar_author }">
-
- </td>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">作者邮箱</font>
- </td>
- <td width="218" height="28" bgcolor="#FFFFFF">
-
- <input type="text" name="ar_email" Maxlength="100"
- class="" style="width: 173; background-color: #FFFFFF;"
- value="${article.ar_email}">
-
- </td>
- </tr>
- <tr>
- <td width="80" height="163" bgcolor="#FFFFFF" valign="top">
- <table border="0" width="100%" height="10" cellspacing="0"
- cellpadding="0">
- <tr>
- <td height="28" align="center">
- <font class="BlackS12">文章内容</font>
- </td>
- </tr>
- </table>
- </td>
- <td bgcolor="#FFFFFF" colspan="3">
- <textarea name="ar_content" cols="60" rows="10">${article.ar_content }</textarea>
- </td>
- </tr>
- <tr>
- <td width="80" height="38" bgcolor="#FFFFFF">
- <input type="hidden" name="GuComm" value="ArAdSa">
- </td>
- <td width="518" height="38" bgcolor="#FFFFFF" colspan="3">
- <input type="hidden" name="type" value="${type }">
-
- <c:choose>
- <c:when test="${type==1}">
- <input type="submit" value="" class="Admin_Button_Add">
-
- </c:when>
- <c:otherwise>
- <input type="submit" value="" class="Admin_Button_Modify">
-
- </c:otherwise>
- </c:choose>
- <input type="reset" value="" name="Admin_Button_Reset"
- class="Admin_Button_Reset">
-
- </td>
- </tr>
- </table>
- </form>
- <br>
- </body>
- </html>