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

📄 modifynews.jsp

📁 用jsp实现的大型商城源代码
💻 JSP
字号:
<%@ include file = "../../config.jsp" %>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="ManagerNews" scope="page" class="myshop.news_sys.ManagerNews"/>
<%
Hashtable HashResult = new Hashtable();
HashResult = ManagerNews.DetailNews(tb_news_info,request,response);
%>
<html>
<head>
<title>CWC大型购物商城</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../style" rel="stylesheet" type="text/css">
<script language="javascript" src=../check.js></script>
<script language="javascript">
	function CheckForm(TheForm) {
		trimform(TheForm);

		if (TheForm.topic.value == "") {
			alert ("请填写新闻主题!");
			TheForm.topic.focus();
			return(false);
		}

		if (TheForm.content.value == "") {
			alert ("请填写新闻内容!");
			TheForm.content.focus();
			return(false);
		}

		if (TheForm.keywords.value == "") {
			alert ("请填写关键字!");
			TheForm.keywords.focus();
			return(false);
		}

		if (TheForm.source.value == "") {
			alert ("请填写来源!");
			TheForm.source.focus();
			return(false);
		}

	return(true);
	}
</script>
</head>

<body>
<form action="DealWithCenter.jsp?action=mod" method="post" name="form1" onSubmit="return CheckForm(this)">
<input type="hidden" name="Nid" value="<%=request.getParameter("Nid")%>">
  <table width="100%" border="0" cellspacing="0" cellpadding="3">
    <tr>
      <td>新闻操作 -&gt; 修改新闻</td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#999999">
    <tr bgcolor="f1f1f1"> 
      <td width="19%">主题:</td>
      <td width="81%"><input name="topic" type="text" size="60" value="<%=HashResult.get("topic")%>"></td>
    </tr>
    <tr bgcolor="f1f1f1"> 
      <td>内容:</td>
      <td><textarea name="content" cols="80" rows="25" id="content"><%=HashResult.get("original_content")%></textarea></td>
    </tr>
    <tr bgcolor="f1f1f1"> 
      <td>所属栏目:</td>
      <td><select name="type_id" id="type_id">
          <%=ManagerNews.ListNewsType(tb_news_type,HashResult.get("type_id")+"")%> 
        </select></td>
    </tr>
    <tr bgcolor="f1f1f1"> 
      <td>新闻格式:</td>
      <td valign="middle"> 
        <%
if ("0".equals(HashResult.get("content_type")+"")) {
	out.print("<input type=radio name=content_type value=0 checked> 纯文本 ");
	out.print("<input type=radio name=content_type value=1> HTML</td>");
}
else {
	out.print("<input type=radio name=content_type value=0> 纯文本 ");
	out.print("<input type=radio name=content_type value=1 checked> HTML</td>");
}
%>
    </tr>
    <tr bgcolor="f1f1f1"> 
      <td>关键字:</td>
      <td><input name="keywords" type="text" id="keywords2" value="<%=HashResult.get("keywords")%>">
        (个数不限,用<font color="#FF0000">,</font>隔开)</td>
    </tr>
    <tr bgcolor="f1f1f1"> 
      <td>来源:</td>
      <td><input name="source" type="text" id="source" value="<%=HashResult.get("source")%>"></td>
    </tr>
    <tr valign="middle" bgcolor="f1f1f1"> 
      <td colspan="2" align="center"><input name="Submit" type="submit" value="修改"> 
      </td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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