📄 publish_buttom.jsp
字号:
<%@ include file = "../../config.jsp" %>
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="ManagerNews" scope="page" class="myshop.news_sys.ManagerNews"/>
<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>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>新闻操作 -> 发布新闻</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="999999">
<form name="newsform" method="post" action="dealwithcenter.jsp?action=add" onsubmit="return CheckForm(this)">
<tr bgcolor="f1f1f1">
<td width="19%">主题:</td>
<td width="81%"><input name="topic" type="text" id="topic" maxlength="20" size="60"></td>
</tr>
<tr bgcolor="f1f1f1">
<td>内容:</td>
<td><textarea name="content" cols="80" rows="25" id="content"></textarea></td>
</tr>
<tr bgcolor="f1f1f1">
<td>所属栏目:</td>
<td><select name="type_id" id="type_id">
<%=ManagerNews.ListNewsType(tb_news_type)%> </select></td>
</tr>
<tr bgcolor="f1f1f1">
<td>新闻格式:</td>
<td valign="middle"> <input type="radio" name="content_type" value="0" checked>
纯文本
<input type="radio" name="content_type" value="1">
HTML</td>
</tr>
<tr bgcolor="f1f1f1">
<td>是否分页:</td>
<td valign="middle"> <input type="radio" name="pagination" value="0" checked>
否
<input type="radio" name="pagination" value="1">
是</td>
</tr>
<tr bgcolor="f1f1f1">
<td>关键字:</td>
<td><input name="keywords" type="text" id="keywords2">
(个数不限,用<font color="#FF0000">,</font>隔开)</td>
</tr>
<tr bgcolor="f1f1f1">
<td>来源:</td>
<td><input name="source" type="text" id="source"></td>
</tr>
<tr valign="middle" bgcolor="f1f1f1">
<td colspan="2" align="center"><input name="Submit" type="submit" value="发布">
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -