⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insertnews.jsp

📁 新闻系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.List"%>
<%@ page import="com.actionForm.NewsForm"%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<jsp:useBean id="chinese" scope="request" class="com.tool.Chinese"/>
<jsp:useBean id="sortDao" scope="request" class="com.dao.SortDao"/>
<%@ page import="com.actionForm.SortForm"%>
<jsp:useBean id="time" scope="request" class="com.tool.TimeShow"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>宇晨网络新闻中心后台</title>

</head>
<%
String bigSort=chinese.toChinese(request.getParameter("bigSort"));

%>
<body><div align="center">
<jsp:include page="../bTop.jsp"/>
<table width="800" height="465" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="196" rowspan="2" valign="top"><jsp:include page="../bleft.jsp"/></td>
    <td width="604" height="57" background="bImage/place.jpg" >
      <table width="600" height="56" cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;当前位置提示&nbsp;&gt;&gt;&nbsp;<%=bigSort%>&nbsp;&gt;&gt;&nbsp;添加新闻</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td height="400" align="center" valign="top" background="bImage/big.jpg"><table width="601" border="0" cellpadding="0" cellspacing="0" background="bImage/placeNext.jpg">
      <tr>
        <td height="21" >&nbsp;</td>
        <td>添加新闻信息</td>
      </tr>
    </table> <br> <html:form action="newsAction.do?method=insertNewsAction" onsubmit="return checkEmpty(newsForm)">
	  <table width="415" border="1" cellpadding="0" cellspacing="0">
        <tr>
          <td width="75" height="30" align="center">新闻标题</td>
          <td width="334">&nbsp;&nbsp;<html:text property="title" size="50"></html:text></td>
        </tr>
        <tr>
          <td height="30" align="center">详细类别</td>
          <td>&nbsp;&nbsp;<html:select property="sortId"> <html:option value="">请选择</html:option>
                <%
        List list=sortDao.selectSort(bigSort);
        for(int i=0;i<list.size();i++){
          SortForm form=(SortForm)list.get(i);
        %>
                <html:option value="<%=String.valueOf(form.getId())%>" style="background:#00FFFF"><%=form.getSmallSort()%></html:option>
                <%}%>
          </html:select> </td>
        </tr>
        <tr>
          <td height="200" align="center" valign="top"><br>
      新闻内容</td>
          <td>&nbsp; <html:textarea property="content" cols="42" rows="13"></html:textarea></td>
        </tr>
        <tr>
          <td height="20" align="center">创建时间</td>
          <td>&nbsp;&nbsp;<%=time.cuttentMonthDate()%><html:hidden property="createTime" value="<%=time.cuttentMonthDate()%>"/> <html:hidden property="bigSort" value="<%=bigSort%>"/> </td>
        </tr>
      </table>
	  <br>
      <html:submit>添加 </html:submit>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <html:reset>清除 </html:reset>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <html:button property="back" onclick="javascript:history.go(-1);">返回</html:button>
	  
	  </html:form></td>
  </tr>
</table>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -