58cbae2814daa6b8dec5237d6f8f85c80f37a119.svn-base 4.3 KB
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>我要退订</title>
	<style type="text/css">
			ul,
			li,
			dl,
			dt,
			dd,
			p,
			div {
				margin: 0;
				padding: 0;
			}
			
			ol,
			ul {
				list-style: none;
			}
			
			audio,
			canvas,
			progress,
			video {
				display: inline-block;
				vertical-align: baseline;
			}
			
			* {
				margin: 0;
				-webkit-box-sizing: border-box;
				-moz-box-sizing: border-box;
				box-sizing: border-box;
			}
			
			*:before,
			*:after {
				-webkit-box-sizing: border-box;
				-moz-box-sizing: border-box;
				box-sizing: border-box;
			}
			
			body {
				background-color: #E9E7E7;
				font-size: 14px;
			}
			
			.box {
				display: flex;
				display: -webkit-flex;
				flex-direction: row;
				justify-content: center;
			}
			
			header {
				align-items: center;
				height: 100px;
				background: #525e66;
				margin-bottom: 30px;
			}
			
			header div {
				width: 590px;
				text-align: left;
			}
			
			header span {
				padding: 0 20px;
				color: #fff;
				font-size: 30px;
				font-weight: 400;
			}
			
			.main {
				flex-direction: column;
				width: 590px;
				margin-bottom: 30px;
				border-radius: 5px;
				background-color: #fff;
				padding: 20px 20px;
				color: #000;
				font-size: 14px;
			}
			
			td {
				padding: 10px 0;
			}
			
			.td1 {
				width: 39%;
				padding-right: 20px;
				text-align: right;
				font-weight: bold;
			}
			
			.tip {
				color: red;
				font-size: 12px;
			}
			
			.button {
				height: 50px;
				border: none;
				border-radius: 5px;
				color: #fff;
				background-color: #20A0FF;
				cursor: pointer;
			}
			
			.button:hover {
				background: #4db3ff;
				border-color: #4db3ff;
				color: #fff;
			}
	</style>
	<script type="text/javascript">
		function check(){
		   if(document.getElementById("unsubscribeEmail").value==""){
		      alert("请填写退订邮箱地址!");
			  return false;
		   }
		   if(document.getElementById("unsubscribeReason").value==""){
		      alert("请填写退订理由!");
		      return false;
		   }
		   var v=document.getElementById("unsubscribeEmail").value;
		   if(v.lastIndexOf("@")==-1){
		      alert("退订邮箱地址不合法!");
			  return false;
		   }
		  return true;
		}
	</script>
	</head>
	<%
	   String unsubscribeaddress=request.getParameter("address");//退订地址
	   String userLodinID=request.getParameter("loginid");//退订用户账号
	   String userDomain=request.getParameter("domain");//退订用户域名
	   String unsubscribeMailUID=request.getParameter("mailuid");//退订邮件ID
	%>
	<body>
		<div>
			<header class="box">
				<div>
					<span>Cancel my mail subscription</span>
				</div>
			</header>
			<form  name="myform" action="unsubscribe.action" method="post" onsubmit="return check();">
			<div class="box ">
				<div class="main box">
					<input type="hidden" name="unsubscribeaddress" value="<%=unsubscribeaddress%>"/>
					<input type="hidden" name="unsubscribeUserID" value="<%=userLodinID%>"/>
					<input type="hidden" name="unsubscribeUserDomain" value="<%=userDomain%>"/>
					<input type="hidden" name="unsubscribeMailUID" value="<%=unsubscribeMailUID%>"/>
					<table class="table" cellspacing="0">
						<tbody>
							<tr>
								<td class="td1">退订邮箱地址(Your Email)</td>
								<td class="td2">
									<input type="text" id="unsubscribeEmail" readonly="readonly" style="width: 100%;height: 35px;" value="<%=unsubscribeaddress%>"  />
								</td>
							</tr>
							<tr>
								<td class="td1">退订理由(Why Subscription)</td>
								<td class="td2">
									<textarea id="unsubscribeReason" name="unsubscribeBody" style="width: 100%;height:200px;resize: none;"></textarea>
									<span class='tip'>
									*必须填写退订理由(The reasons must be filled)
								</span>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="box">
				<input type="submit" value="退订->Unsubscription" class="button" />
			</div>
			</form>
		</div>
	</body>
</html>