WebRoot/jsp/news/edit.jsp
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.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>
<title></title>
<%@ include file="/common/meta.jsp"%>
<SCRIPT LANGUAGE=javascript>
function valid(tform){
var title = tform.title;
var content = tform.content;
if(title.value.length==0){
alert("标题不能为空");
title.focus();
return false;
}else if(content.value.length==0){
alert("内容不能为空");
content.focus();
return false;
}else{
tform.submit();
}
}
</script>
</head>
<body>
<div class="f6Page" id="f6Page" style="float:left;width:99%;">
<div class="FP_toolBar" id="FP_toolBar" uic="toolbar">
<div class="pageTitle" id="pageTitle">新闻维护</div>
<div class="buttonBar" style="margin-top: 15px;">
<a href="#" onclick="valid(document.forms.gz1);"><button><span class="icon_save">保存</span></button></a>
<a href="#" onclick="window.history.go(-1);"><button><span class="icon_back">返回</span></button></a>
</div>
</div>
<div class="FP_pagecontent">
<form id="gz1" name="gz1" action="<%=request.getContextPath()%>/news.do?method=save" method="post" >
<span style="color: red">${mess }</span>
<table cellspacing="0" cellpadding="0" class="FP_containerDetailM1">
<input type="hidden" name="id" id="id" value = "${obj.id }"/>
<tr>
<td class="FP_th"><label>新闻标题:</label></td>
<td class="FP_content">
<input type="text" name="title" id="title" value="${obj.title }"/>
</tr>
<tr>
<td class="FP_th"><label>新闻类型:</label></td>
<td class="FP_content">
<select id="newsType" name="newsType">
<option value="制度法规" ${obj.newsType eq '制度法规'?'selected':'' }>制度法规</option>
<option value="景点介绍" ${obj.newsType eq '景点介绍'?'selected':'' }>景点介绍</option>
<option value="旅游推荐" ${obj.newsType eq '旅游推荐'?'selected':'' }>旅游推荐</option>
<option value="小吃推荐" ${obj.newsType eq '小吃推荐'?'selected':'' }>小吃推荐</option>
</select>
</td>
</tr>
<tr >
<td class="FP_th" ><label>新闻内容:</label></td>
<td class="FP_content" >
后面还有 11 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
