WebContent/WEB-INF/jsp/admin/addnews.jsp
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/pub/include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理--<c:choose><c:when test="${empty newsEntity}">发布新闻</c:when><c:otherwise>编辑新闻</c:otherwise></c:choose></title>
<link href="<%=request.getContextPath() %>/css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript">
function trim(str){
return str.replace(/^\s+|\s+$/,"");
}
function check(form){
if(form.menuId.value==0){
alert("您还未选择新闻栏目");
return false;
}
if(trim(form.title.value)==""){
alert("新闻标题不能为空");
return false;
}
if(trim(form.author.value)==""){
alert("作者不能为空");
return false;
}
<c:if test="${not empty newsEntity}">
form.action="<c:url value="/admin/news/news.do?m=doedit"/>";
</c:if>
return true;
}
</script>
</head>
<body>
<div class="content">
<jsp:include page="pub/top.jsp"></jsp:include>
<!--头部结束-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left" valign="top">
<jsp:include page="pub/left_news.jsp"></jsp:include>
</td>
<td valign="top">
<div class="right">
<form action="<c:url value="/admin/news/pubnews.do?m=dopub"/>" method="post" onsubmit="return check(this)" enctype="multipart/form-data" style="margin:0">
<table width="80%" border="0" cellpadding="0" cellspacing="1" bgcolor="#d1d5d8">
<tr>
<td height="28" colspan="2" bgcolor="#c6dbf8" class="biaoti" style="padding:0;">
<c:choose>
<c:when test="${empty newsEntity}">新闻发布</c:when>
<c:otherwise>新闻编辑</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td width="15%" height="28" align="right" bgcolor="#edf1f7"><span>*</span>新闻栏目:</td>
<td height="28" bgcolor="#FFFFFF">
<select class="sheng" name="menuId" id="menuId">
<option value="0">选择新闻栏目</option>
<c:forEach items="${menuList}" var="menu">
后面还有 57 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
