www.pudn.com > restrant.zip > beginCluster.jsp, change:2014-03-11,size:6742b


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<% 
	String path = request.getContextPath(); 
	String basePath = request.getScheme() + "://" 
			+ request.getServerName() + ":" + request.getServerPort() 
			+ path + "/"; 
%> 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
<title>发布聚活动</title> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<link type="text/css" rel="stylesheet" href="CSS/calendar.css" > 
<script type="text/javascript" src="js/calendar.js" ></script>   
<script type="text/javascript" src="js/calendar-zh.js" ></script> 
<script type="text/javascript" src="js/calendar-setup.js"></script> 
<link rel="StyleSheet" href="editor/base.css"> 
<script type="text/javascript" src="editor/editor.js"></script> 
<style> 
body { 
	background: #b5e026 url(cluster/bg.png) repeat-x top left; 
	font-family: '微软雅黑';	 
	padding: 0px; 
	margin: 0px; 
} 
 
.header { 
	position: absolute; 
	top: 0px; 
	left: 0px; 
	background: #555 url(cluster/header.png) no-repeat top left; 
	width: 100%; 
	height: 90px; 
	border-top: 2px solid #000; 
	border-bottom: 2px solid #ccc; 
} 
 
a img { 
	border: none; 
	outline: none; 
} 
 
.content { 
	margin-top: 100px; 
	padding: 0px; 
	bottom: 0px; 
} 
 
 
 
.about .text h1 { 
	border-bottom: 1px dashed #ccc; 
	color: #fff; 
} 
 
.demo { 
	width: 800px; 
	height: 50px; 
	padding-top: 10px; 
	margin: 0 auto; 
	border-bottom: 3px solid #ABDC28; 
} 
 
.demo font{ 
	font-size:17px; 
	font-family:'微软雅黑''; 
	font-weight:bold; 
} 
 
.demo h1 { 
	color: #fff; 
	float: left; 
	margin: 5px 30px 0px 0px; 
} 
</style> 
	<script type="text/javascript"> 
		function check(){ 
			if(nameCheck()&&timeCheck()&&placeCheck()&&contentCheck()){ 
				return true; 
			} 
			return false; 
		} 
		function nameCheck(){					 
			if(document.frm.title.value.length==0){ 
				document.getElementById("namediv").innerHTML="<font color='red'>活动名称不能为空!</font>"; 
				document.frm.title.focus(); 
				return false; 
			} 
			else{ 
				document.getElementById("namediv").innerHTML=" "; 
			} 
			return true; 
		} 
		function timeCheck(){ 
			if(document.frm.activityTime.value.length==0){ 
				document.getElementById("timediv").innerHTML="<font color='red'>活动时间不能为空!</font>"; 
				document.frm.activityTime.focus(); 
				return false; 
			} 
			else{ 
				document.getElementById("timediv").innerHTML=" "; 
			} 
			return true; 
		} 
		function placeCheck(){ 
			if(document.frm.clusterPlace.value.length==0){ 
				document.getElementById("placediv").innerHTML="<font color='red'>活动地点不能为空!</font>"; 
				document.frm.clusterPlace.focus(); 
				return false; 
			} 
			else{ 
				document.getElementById("placediv").innerHTML=" "; 
			} 
			return true; 
		} 
		function contentCheck(){ 
			if(document.frm.content.value.length==0){ 
				document.getElementById("contentdiv").innerHTML="<font color='red'>活动内容不能为空!</font>"; 
				document.frm.content.focus(); 
				return false; 
			} 
			else{ 
				document.getElementById("contentdiv").innerHTML=" "; 
			} 
			return true; 
		} 
	</script> 
</head> 
<body style="background:url('./cluster/bg.png')"> 
	<jsp:include page="clusterHead.jsp" /> 
	  <div class="content"> 
		<form action="${pageContext.request.contextPath}/ClusterServlet?type=add" method="post" name="frm" onsubmit="return check()"> 
			<!-- enctype="multipart/form-data" --> 
			<div class="demo"> 
				<font color="white">活动类型</font> 
				<select name="category"> 
					<option value="游玩">组队游玩</option> 
					<option value="回家">组队回家</option> 
					<option value="购物">组队购物</option> 
					<option value="表演">组队表演</option> 
					<option value="调查">组队调查</option> 
					<option value="运动">组队运动</option> 
					<option value="打工">组队打工</option> 
					<option value="学习">组队学习</option> 
					<option value="研发">组队研发</option> 
					<option value="其它">其它</option> 
				</select> 
			</div> 
			<div class="demo"> 
				<font color="white">活动名称</font> 
				<input type="text" name="title" style="width:300px">  
				<div id="namediv" style="display:inline;color:red;"></div> 
			</div> 
			<div class="demo"> 
				<font color="white">活动时间</font> 
				<input style="color:grey" type="text" id="EntTime" name="activityTime" onclick="return showCalendar('EntTime', 'y-mm-dd');"  value="点击显示日历"/> 
				<div id="timediv" style="display:inline;color:red;"></div> 
			</div> 
			<div class="demo"> 
				<font color="white">活动首页海报【950*500】</font> 
				<input type="file" name="mainPoster" style="color:white;font-family:'微软雅黑'" >  
			</div> 
			<div class="demo"> 
				<font color="white">活动宣传图片【500*500】</font> 
				<input type="file" name="publicityPoster" style="color:white;font-family:'微软雅黑'" >  
			</div> 
			<div class="demo" style="height:30px"> 
				<font color="white">活动地点</font> 
				<input type="text"  name="clusterPlace" style="width:350px">  
				<div id="placediv" style="display:inline;color:red;"></div> 
			</div> 
			<div class="demo" style="height:25px;"> 
				<font color="white">活动内容</font>  
				<div id="contentdiv" style="display:inline;color:red;"></div> 
			</div> 
			<div class="demo" style="height:310px"> 
				<textarea rows="20" cols="100" name="content"></textarea> 
			</div> 
			<div class="demo" > 
				<input type="submit" style="width:300px;height:50px;font-size:30px;font-family:微软雅黑;color:green" value="点 我 发 布">  
			</div> 
		</form> 
	</div> 
	<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"无忧网生活馆,大学生的乐园!","bdMini":"2","bdMiniList":false,"bdPic":"http://image.baidu.com/i?ct=503316480&z=&tn=baiduimagedetail&ipn=d&word=%E5%BF%AB%E4%B9%90&step_word=&ie=utf-8&in=25419&cl=2&lm=-1&st=-1&pn=14&rn=1&di=110684429790&ln=2000&fr=&&fmq=1388324475861_R&ic=0&s=&se=1&sme=0&tab=&width=&height=&face=0&is=&istype=2&ist=&jit=&objurl=http%3A%2F%2Fpic12.nipic.com%2F20110112%2F5243161_105041550399_2.jpg","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"6","bdPos":"left","bdTop":"169"},"image":{"viewList":["qzone","tsina","tqq","renren","t163"],"viewText":"无忧分享","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","t163"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=86835285.js?cdnversion='+~(-new Date()/36e5)];</script> 
	 
</body> 
</html>