<%@ Page Language="C#" AutoEventWireup="true" CodeFile="email.aspx.cs" Inherits="user_function_email" %>
<% switch(i_sel)
{
	case 11: //邮件订阅提交后的页面
	{
		%>
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html class="html" xmlns="http://www.w3.org/1999/xhtml" style="height:100%;background-color:#fff;">
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="zh-CN" />
		<!--#include file="../../inc/css.inc" -->
		</head>
		<body class="email"  style="height:100%;background-color:#fff;">
		<div id="divemail" dstyle="border:solid 1px red;" >
		<div id="divemltip">
		<%if(s_ret=="1"){%>
		订阅确认信已经发送到“<%=Para("email")%>”，请点击信中链接完成订阅；
		<%}else{%>
		邮件“<%=Para("email")%>”已经完成订阅；
		<%}%>
		退订请点击<a href="email.aspx?sel=17" target="_top" style="color:blue;">这里</a>。
		</div>
		</div>
		</body>
		</html>
		<%
		break;
	}
	case 12: //确认订阅   Email 
	case 13: //确认订阅   Email
	{
		%>
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html class="html" xmlns="http://www.w3.org/1999/xhtml" >
		<head>
		<title>确认邮件订阅-<%=WebName()%></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="zh-CN" />
		<!--#include file="../../inc/css.inc" -->
		<link rel="stylesheet" rev="stylesheet" href="/common/print.css"	media="print" />
		
		</head>
		<body >
		
		<script type="text/javascript" src="/template/js/top.js" charset="utf-8"></script>
		<div id="divmain">
		<div id="divnoemail" style="height:200px;">
			<h2 style="text-align:center;margin-top:100px;">
			<%if(s_ret==""){%>
				<%if(i_sel==12){%>
					您的确认码不正确，确认不成功！是不是您把确认信里的链接搞错啦？！检查一下，再来试试吧。
				<%}else{%>
					邮箱“<%=Para("email")%>”从未申请过订阅，是不是您输错地址了？点击<a style="color:blue;" href="email.aspx?sel=17">这里</a>重新操作。 
				<%}%>
				
			<%}else{%>
				<%if(i_sel==12){%>
					邮箱“<%=s_ret%>”订阅成功！退订请点击<a href="email.aspx?sel=17" target="_top" style="color:blue;">这里</a>。
				<%}else{%>
					邮箱“<%=s_ret%>”已经取消订阅！谢谢您的使用。
				<%}%>
			<%}%>
			</h2>
		</div>
		<!--#include file="../../inc/js.inc" -->
		<!--#include file="../../inc/last.inc" -->

		<script type="text/javascript" src="/template/js/bottom.js" charset="utf-8"></script>
		</body>
		</html>
		<%
		break;
	}
	case 16://邮件订阅输入框
	{
		%>
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html class="html" style="height:100%;background-color:#fff;" xmlns="http://www.w3.org/1999/xhtml" >
		<head >
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="zh-CN" />
		<!--#include file="../../inc/css.inc" -->
		<script type="text/javascript" src="/common/client.js" charset="utf-8"></script>
		<script type="text/javascript">
		function CheckData()
		{
			if(validEmail($('email').value)=="1")
			{
				//没有问题
				$('tabeml').style.display="none";
				$('divemltip').style.display="";
				return true;
			}
			else
			{
				$('email').style.backgroundColor="#ffff00";
				$('spnerr').style.display="";
				return false;
			}
		}
		</script>
		</head>
		<body style="height:100%;background-color:#fff;">
		<div id="divemail" style="width:500px;margin:0px auto;">
		<form action="email.aspx?sel=11"	method="post" onsubmit="return CheckData();" style="margin:0 auto;">
			
			<table border="0" id="tabeml">
			<tr><td id="tdemail">电子邮件：</td><td>
			<input type="text" name="email" id="email" class="inputbox" /> <input type="submit" class="button" value=" 订阅 " />
			</td>
			</tr><tr>
			<td>
			<span id="spnerr" style="display:none;margin:6px 0px 0px -25px;color:red;">电子邮件格式不正确。</span>
			</td></tr>
			</table>
			
			<div id="divemltip" class="email" style="display:none;">
			正在提交，请稍候......
			</div>
		</form>
		</div>
		</body>
		</html>
		<%
		break;
	}
	case 17://取消订阅输入框
	{
		%>
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html class="html" xmlns="http://www.w3.org/1999/xhtml" >
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="zh-CN" />
		<title>取消邮件订阅-<%=WebName()%></title>
		<!--#include file="../../inc/css.inc" -->
		<script type="text/javascript" src="/common/client.js" charset="utf-8"></script>
		<script type="text/javascript">
		function CheckData()
		{
			if(validEmail($('email').value)=="1")
			{
				return true;
			}
			else
			{
				$('email').style.backgroundColor="#ffff00";
				$('spnerr').style.display="";
				return false;
			}
		}
		</script>
		</head>
		<body>
		
		<script type="text/javascript" src="/template/js/top.js" charset="utf-8"></script>
		<div id="divmain" >
		<div style="width:400px;margin:0px auto;height:200px;margin-top:100px;" >
		<div >
			<form action="email.aspx?sel=13"	method="post"  onsubmit="return CheckData();" >
			<table border="0">
			<tr><td id="tdemail">电子邮件：</td><td>
			<input type="text" name="email" id="email" class="inputbox" /> <input type="submit" class="button" value=" 取消订阅 " />
			</td>
			</tr><tr>
			<td>
			<span id="spnerr" style="display:none;margin:6px 0px 0px -25px;color:red;">电子邮件格式不正确。</span>
			</td></tr>
			</table>
			</form>
		</div>
		</div>
		<script type="text/javascript" src="/template/js/bottom.js" charset="utf-8"></script>
		<!--#include file="../../inc/js.inc" -->
		<!--#include file="../../inc/last.inc" -->
		</body>
		</html>
		<%
		break;
	}
}
%>