<!--#include file="../p_inc/Include_func.asp"-->
<!--#include file="../p_inc/openconn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="upublic.asp"-->
<!--#include file="function_u.asp"-->

<!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="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta content="<%=G_WEBNAME%>用户中心，只要您注册了<%=G_WEBNAME%>账号，就可以享受<%=G_WEBNAME%>为您提供的所有个性化服务，只要您有一号在手，就可一站通行。" name="description">
<meta content="<%=G_WEBNAME%>用户中心,<%=G_WEBURL_2%>,用户中心,一站通" name="keywords">
<link rel="stylesheet" type="text/css" href="Ucss/reset.css" />
<link rel="stylesheet" type="text/css" href="Ucss/common.css" />
<link rel="stylesheet" type="text/css" href="Ucss/layout.css" />
<script type="text/javascript" src="Ujs/checkUser.js"></script>
<script type="text/javascript" src="Ujs/FormCity.js"></script>
<script type="text/javascript" src="Ujs/FormScript.js"></script>
<title>任务详细信息 - 用户中心 - <%=G_WEBNAME%></title>
</head>
<body>

<div class="wrap">
	<!--#include file="head.asp"-->
	<div class="main-content">
		<div class="leftbar">
			
			<div class="pv10">
				<div class="title">
					<h3 class="font-14 fl">任务详细信息</h3>
					<p><a href="Task_all.asp">返回任务列表</a></p>
					<div class="hr"></div>
				</div>	
				<%
					zid=Bint(Request("id"))
					Set oRs_detail=Server.CreateObject(G_RS)
					oRs_detail.open "Select * From qingtiandy_renwu Where id="&zid,conn,1,1
					IF Not oRs_detail.Eof Then 
						zm_id=oRs_detail("id")
						zm_title=oRs_detail("m_title")
						zm_content=oRs_detail("m_content")
						zm_zhouqi=Bint(oRs_detail("m_zhouqi"))
						zm_yuanbao1=Bint(oRs_detail("m_yuanbao1"))
						zm_yuanbao2=Bint(oRs_detail("m_yuanbao2"))
						zm_numb=Bint(oRs_detail("m_numb"))					
						zm_pic=oRs_detail("m_pic")
						zm_pic=zm_pic
						zm_type2=oRs_detail("m_type2")
						IF zm_type2="0" Then
							zm_type2_txt="自动任务"
						Else
							zm_type2_txt="手动任务"
						End IF
						zm_txt=GetRp(oRs_detail("m_txt"))
						zm_starttime=ForMatDate(oRs_detail("m_starttime"),5)
						zm_endtime=ForMatDate(oRs_detail("m_endtime"),5)
						zm_youxiao=False
						IF DateDiff("s",zm_starttime,Now())>=0 Then '任务开始
							IF DateDiff("s",zm_endtime,Now())>=0 Then '任务结束
								zm_starttime_txt="任务已结束"
							Else
								zm_starttime_txt="任务进行中"
								zm_youxiao=True
							End IF
						Else
							zm_starttime_txt="任务未开始"
						End IF
						IF Clng(zm_zhouqi)<=1 Then
							zm_zhouqi_text="当天认证"
						Else
							zm_zhouqi_text=zm_zhouqi&"天"
						End IF
						IF zm_numb=0 Then
							zm_numb_text="无限制"
						Else
							zm_numb_text=zm_numb&"次"
						End IF
						IF zm_yuanbao2=0 Then
							zm_yuanbao1_text=zm_yuanbao1
						Else
							zm_yuanbao1_text=zm_yuanbao2&" +"&zm_yuanbao1
						End IF
						zEndTime_1=Bint(DateDiff("d",Now(),zm_endtime))
						IF zEndTime_1<=0 Then zEndTime_1=0
						IF zm_txt="" Then 
							zm_txt_1="做任务的时间(格式:X月X日X时X分):"
						Else
							zm_txt_1=zm_txt&":"
						End IF
				%>	

				<%Else
					Response.End()
				%>
				<%End IF%>
				<style type="text/css">
					.content685{ background:url(Uimg/task/600bg.png) repeat-y; color:#A9431B}
					.content685 .top{ height:10px; background:url(Uimg/task/600top.png) left bottom no-repeat; font-size:0px}
					.content685 .bt{ height:10px; background:url(Uimg/task/600bt.png) left bottom no-repeat; font-size:0px}
					.content685 .content{ padding:0 30px; line-height:20px;}
					.content685 th{ font-weight:normal}
					.title2{ height:45px; background:url(Uimg/task/title_bt_bg.png) left bottom repeat-x; text-align:center; padding-top:5px}
					.title2 h2{ font-size:16px; font-weight: bold}
					.title2 p{ color:#F78F08}
					.content685 .content .article{min-height:600px; height:auto !important; height:600px; overflow:visible; padding:10px 0}				
					.activities{ padding-left:20px; padding-top:10px; }
					.title3{ clear:both; height:25px; width:588px; background:url(Uimg/task/title3_558.png) left  top no-repeat; text-align:right; line-height:24px;; padding-right:10px}
					.title3 h2{ float:left; color:#FFF; padding-left:35px; font-size:12px}	
					.rwxx{ background:url(Uimg/task/xxbg2_558_2.png) no-repeat; height:199px; width:558px; margin-bottom:20px}
					.rwxx .rwxx2{ width:305px; margin-left:26px; margin-top:26px; display:inline;}
					.rwxx .rwxx2 table{ line-height:20px}
					.rwxx .rwxx3{ width:130px; margin-right:33px; _margin-right:19px;margin-top:20px;}	
					.left{ float:left}
					.right{ float:right}
					.clear{ clear:both}													
				</style>
				<div class="content685">
					<div class="top"></div>  
					<div class="activities">
					<dl>
						<!--活动参数-->
						<dt class="title3"><h2>体验广告信息</h2></dt>
						<dd >
						  <div class="rwxx">
							<div class="left rwxx2">
							  <table  border="0" cellspacing="0" cellpadding="0">
								<tr>
								  <td style="font-size:14px; font-weight:bold; line-height:35px" colspan="4"><%=zm_title%></td>
								</tr>
								<tr>
								  <td width="70">活动ID：</th>
								  <td width="78"><%=zm_id%></td>
								  <td width="76">&nbsp;</th>
								  <td width="81">&nbsp;</td>
								</tr>
								<tr>
								  <th>活动类型：</th>
								  <td><%=zm_type2_txt%></td>
								  <th>&nbsp;</th>
								  <td>&nbsp;</td>
								</tr>
								<tr>
								  <th>活动状态：</th>
								  <td><%=zm_starttime_txt%></td>
								  <th>活动奖励：</th>
								  <td><%=zm_yuanbao1_text%> <%=G_jifen_jifen_name%></td>
								</tr>
								<tr>
								  <th>认证周期：</th>
								  <td><%=zm_zhouqi_text%></td>
								  <th>可做次数：</th>
								  <td><%=zm_numb_text%></td>
								</tr>
								<tr>
								  <th>开始时间：</th>
								  <td><%=zm_starttime%></td>
								  <th>结束时间：</th>
								  <td><%=zm_endtime%></td>
								</tr>
							  </table>
							</div>
							<div class="right rwxx3">
							  <p class="p1">
								<%IF zm_youxiao Then%>	
								 <a href="./Task_in.asp?id=<%=zm_id%>" target="_blank"><img height="55" alt="点击参与此活动" src="Uimg/task/btn1_160.png" width="160" border="0" /></a>
								<%Else%>
								 <img height="55" alt="此活动已结束" src="Uimg/task/submit_btn1_160.png" width="160" border="0" />
								<%End IF%>
							  <div style=" line-height:20px; text-align:center; margin-top:20px; padding-left:10px">
								  <p>所有用户可以参加</p>
								  <p class="p3">剩余时间：<%=zEndTime_1%>天</p>
							  </div>
							</div>
						  </div>
						  <%IF zm_type2<>0 Then%>
						  <div style="width:545px; background:#FAF2DF; border:1px solid #F0DBC0;  padding:5px">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
							  <tr>
								<td>
								<form action="Task_in.asp" method="post" target="_blank">
								  <input type="hidden" value="<%=zm_id%>" name="id" />
								  <input type="hidden" value="1" name="a" />
								  <table border="0" cellspacing="0" cellpadding="0" class="addtask" style=" font-weight:bold;line-height:20px">
									<tr>
									  <td colspan="2" >『手动任务提交窗口』</td>
									<tr>
									  <td colspan="2" > 参与此任务必须填写注册此任务的以下信息:</td>
									</tr>
									<tr>
									   <td style="width:280px; padding:0 10px"><font color="#0000FF"><%=zm_txt_1%></font></td>
									  <td style="width:280px; padding:0 10px"><input name="m_txt" type="text" id="m_txt" />
										
											<input type="submit" value="提交" />
										
									  </td>
									  </tr>
								  </table></form>
								 </td>
							  </tr>
							</table>
						  </div><br></br>
						  <%End IF%>
						</dd>
						
						<!--活动内容-->
						<dt class="title3"><h2>活动详细内容</h2></dt>
						<style>
						.zw img{ max-width:500px}
						</style>
						<dd style=" margin:10px 0; padding-right:30px; line-height:20px" class="zw">
						<%=zm_content%>
						</dd>
					</dl>
					</div>
					<div class="bt"></div> 
				</div>				
				

			</div>
		</div>
		<!--#include file="uright.asp"-->
	</div>		
	<!--#include file="ubottom.asp"-->
</div>

</body>
</html>