WebRoot/admin/addnews.jsp
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.Info"%>
<%
HashMap user = Info.getUser(request);
String uname = user.get("uname").toString();
String utype = user.get("utype").toString();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/newspubs/admin/commfiles/css/common.css" />
<link rel="stylesheet" type="text/css" href="/newspubs/admin/commfiles/css/style.css" />
</head>
<%
HashMap ext = new HashMap();
String tglparentid=request.getParameter("tglparentid")==null?"":request.getParameter("tglparentid");
ext.put("tglparentid",tglparentid);
ext.put("infotype","新闻");
new CommDAO().insert(request,response,"news",ext,true,false);
%>
<body>
<form name="f1" method="post" action="addnews.jsp?f=f&tglparentid=<%=tglparentid%>" onsubmit="return checkform()" >
<!-- cellspacing 是单元格之间的距离、cesspadding 是单元格中内容与边框的距离 -->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="mytab" id="table1">
<tr align="center" style="display: ">
<td colspan="2" background="/newspubs/admin/commfiles/images/bg.gif"
bgcolor="#FFFFFF" class="STYLE3">添加新闻</td>
</tr>
<tr align="center">
<td width="17%" align="center"> 标题</td>
<td width="83%" align="left">
<input type=text class='' id='title' name='title' size=65 /><label id='clabeltitle' /> </td>
</tr>
<tr align="center">
<td width="17%" align="center"> 作者</td>
<td width="83%" align="left">
<input type=text class='' id='author' name='author' size=35 /><label id='clabelauthor' /> </td>
</tr>
<tr align="center">
<td width="17%" align="center"> 来源</td>
<td width="83%" align="left">
<input type=text class='' id='source' name='source' size=35 /><label id='clabelsource' /> </td>
</tr>
<tr align="center">
<td width="17%" align="center"> 新闻类别</td>
<td width="83%" align="left">
<%=Info.getselect("newstype","newstype","typename~无名"," 1=1 ")%>
<label id='clabelnewstype' /> </td>
</tr>
<tr align="center">
<td width="17%" align="center"> 关键字</td>
<td width="83%" align="left">
<input type=text class='' id='keyword' name='keyword' size=35 /><label id='clabelkeyword' /> </td>
</tr>
<tr align="center">
后面还有 73 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。