基于JSP+SERVLET的新闻发布系统(三)

5 篇文章 0 订阅
2 篇文章 0 订阅

拖了这么久。。今天把栏目管理还有新闻管理模块的也挂出来。。

栏目管理跟用户管理一样。

这里重点讲解新闻管理。

效果图如上:

1,可选择栏目类别,且栏目类别是动态生成的。

默认生成的文章是未审核状态的。

   						栏目类别:
				<select name="typeId" id="typeId" style="width: 100">
					<option value="">
						请选择
					</option>
					<%
							NewsType type = new NewsType();
							NewsTypeService typeService = new NewsTypeService();
							List<NewsType> typeList = typeService.findAll(type);
								if(typeList!=null&&typeList.size()>0){
									for(int i=0;i<typeList.size();i++){
										type = typeList.get(i);%>
					<option value="<%=type.getTypeId() %>">
						<%=type.getTypeName() %>
					</option>
					<%}
					}%>
				</select>


,2,文本编辑器使用的是百度开发的ueditor,很好用,方便简单,具体使用方法可上官网查找。

	<script  id="editor" type="text/plain" name="content">初始化</script>	

 

	<script  id="editor" type="text/plain" name="content">${news.content }</script>

3,全选操作。

	function ChkAllClick(sonName, cbAllId) {
		var arrSon = document.getElementsByName(sonName);
		var cbAll = document.getElementById(cbAllId);
		var tempState = cbAll.checked;
		for (i = 0; i < arrSon.length; i++) {
			if (arrSon[i].checked != tempState)
				arrSon[i].click();
		}
	}


猛搓下载源码-》》》http://download.csdn.net/detail/a331251021/5783043

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值