<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="book.aspx.cs" Inherits="web.tuan.book" %>

<!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>团购问答 － <%=config.SiteTitle%></title>
<meta name="description" content="<%=config.MetaDescription %>" />
<meta name="keywords" content="<%= config.MetaKeywords %>" />
<link href="image/cd.css" rel="stylesheet" type="text/css" />
<script src="image/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="image/jd.js"></script>

</head>
<body>
<form id="Form1" method="post" name="form" runat="server">
<div class="header clearfix">
<h1 class="lf"><a href="../default.html" target="_blank"><%=config.SiteLogo %></a></h1>	<h2 id="desc"></h2>
	
	<div class="rss rf clearfix">
		<p>输入邮箱地址，订阅每日精品团购!</p>
		<form id="validator" method="post" action="/subscribe.php">
			<div class="lf">
				<input type="text" id="email" datatype="email" require="true" value="" class="txt lf" name="email" />
			<asp:Button ID="Bem" runat="server" class="but lf" OnClick="Bem_Click" />
				</div>
				<span class="lf"></span>
		</form>

	</div>
</div>
	<div class="navWrap">
		<div class="wrap clearfix">
		<ul class="nav lf">
					<li class="on"><a href="index.aspx">首页</a></li>
					<li class="on"><a href="index.aspx?type=2">团购</a></li>
					<li class="on"><a href="index.aspx?type=4">限时抢购</a></li>
			
					<li class="on"><a href="odate.aspx">往期热卖</a></li>
					<li class="on"><a href="book.aspx">问题答疑</a></li>
					<li class="on"><a href="../HelpListInfo_1.html" target="_blank">帮助中心</a></li>
				</ul>
		<div class="member rf">
		
 <%if (user.MemberID>0){%>
		 
			<span class="username lf">欢迎你,<%=user.Name%>&nbsp;&nbsp;|</span>
<div id="menulist">
	<a class="top" href="../MemberCenter.aspx" target="_blank">我的会员中心</a>
	<div class="ml-bottom">
	<div class="menu-t"></div>
	<div class="menu-c">
	<a href="../MytgOrders.aspx" target="_blank">我的团购订单</a>
	<a href="../Mydjqrec.aspx" target="_blank">我的返利</a>
	<a href="../Mymemb.aspx" target="_blank"> 我推荐的会员</a>
	<a href="../MymembPay.aspx" target="_blank"> 我的提成</a>
	<a href="../Myget.aspx" target="_blank"> 账户余额</a>
	<a href="../IndividualInformation.aspx" target="_blank">账户设置</a>
	
	<a href="../Logout.aspx" target="_blank">退出</a>
	</div>
	<div class="menu-b"></div>
	</div>
</div>
<%}else{ %>
	<a href="login.aspx">登录</a> | <a href="reg.aspx">注册</a>
<%} %>
		</div>
		</div>
	</div>
	<div class="boxWrap m10 clearfix">

<div class="mainWrap lf">
<div class="sect bor">
<h2 class="title" style="margin-bottom:30px;"><%=config.SiteName%>特卖答疑</h2>
<ul class="asklist">
   <asp:DataList id="mypp" CellPadding="5" CellSpacing="0" GridLines="None" RepeatColumns="1"
	RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
	<ItemStyle CssClass="alignCenterTop" />
	<ItemTemplate>
<li>
<p class="t"><strong> <%#DataBinder.Eval(Container.DataItem,"UserName")%></strong><span> <%#DataBinder.Eval(Container.DataItem, "AddTime")%></span></p>
<p class="text"> <%#DataBinder.Eval(Container.DataItem, "Body")%></p>
<p class="reply c1"><strong>回复：</strong> <%#DataBinder.Eval(Container.DataItem, "Reply")%></p>
</li>
</ItemTemplate>
<SeparatorStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" />
</asp:DataList>

</ul>

 <div class="pagebar">
				     <p class="pagemenu" style="text-align: right">
                    	<span>
                    		共<asp:Literal ID="lttotal" runat="server"></asp:Literal>
                    	    个问题，第<asp:Literal ID="ltcurpage" runat="server">1</asp:Literal>页/共<asp:Literal ID="lttotalpage" runat="server"></asp:Literal>页
                     	</span>
                    	<span class="padd1">
                    		<asp:LinkButton ID="lbfirst" runat="server" OnClick="lbfirst_Click" ToolTip="第一页" ><img src="image/first-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="pre" runat="server"  ToolTip="上一页" OnClick="pre_Click" ><img src="image/left-icon.gif" id="IMG1" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lbup" runat="server" OnClick="lbup_Click" CssClass="pageA">上一页</asp:LinkButton>
                        	<asp:LinkButton ID="lbdown" runat="server" OnClick="lbdown_Click" CssClass="pageA">下一页</asp:LinkButton>
                        	<asp:LinkButton ID="next" runat="server" ToolTip="下一页" OnClick="next_Click" ><img src="image/right-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lblast" runat="server" OnClick="lblast_Click" ToolTip="最后一页"><img src="image/last-icon.gif" border="0"/></asp:LinkButton>
                        </span>
                    </p>  
  </div>


<h2 class="title" style="margin:20px auto;"><a name="ask"></a>我要提问</h2>
<div class="askform">
 										<script type="text/javascript" language="javascript">
																<!--
																function  checkRemark()
																{
																
																if (document.getElementById("body").value=="")
																{	alert("请填写内容");
																	document.all.body.focus();
																	return false;
																}
																if (document.getElementById("username").value=="")
																{	alert("请填写姓名");
																	document.all.username.focus();
																	return false;
																}
																if (document.getElementById("body").length>200)
																{	alert("评论内容不可以超过200字");
																	document.all.body.focus();
																	return false;
																}
																if (document.getElementById("username").value.length>10)
																{	alert("姓名不可以超过10个字");
																	document.all.username.focus();
																	return false;
																}
																Go();
																document.all.submit.disabled=true;
																return true;
																}
																//function showLen(obj)
																//{
																	//document.getElementById("bodyLen").value=obj.value.length;
																//}
																-->
																</script>
																   <script language="JavaScript" type="text/JavaScript">
		   function Go()
		   {

		   javascript:window.location.href="?ProductID=0&body=" + encodeURI(document.getElementById("body").value)+"&email="+encodeURI(document.getElementById("eemail").value)+"&username="+encodeURI(document.getElementById("username").value);}
	</script>
	      <a name="ask"></a>
          <table width="95%" height="148" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
																		<td width="40">内容:</td>
																		<td><textarea id="body" name="body" cols="80" rows="4" style="border:1px #DDD solid;"></textarea> *
										</td>
																	</tr>
																	<tr>
																		
                              <td height="34">Email:</td>
																		<td><input type="text" id="eemail" name="eemail" size="35" style="border:1px #DDD solid; height:20px;"><input type="checkbox" id="i_hideEmail" name="hideemail" checked style="display:none;"></td>
																	</tr>
																	<tr>
																		
                              <td height="30">网名:</td>
																		<td>
																			<input type="text" id="username" name="username" maxlength="25" size="10" value="<%=user.Name%>" style="border:1px #DDD solid; height:20px;"> *
																			<input type="button" name="submit" value="提交问题" onClick="checkRemark()" style="border:1px #DDD solid; height:23px; cursor:pointer;">
																		
																			
																			</td>
																	</tr>
																</table>

</div>
</div>
</div>
<div class="toolWrap rf">
<div class="sidemain mb10 bor">
<h3>邀请有奖</h3>
<p>每邀请一位好友首次购买，您将获<strong class="c1"><%=GetCurrency() %><%=config.Fl.ToString("0.00")%></strong>元返利<br /><a href="link.aspx">» 点击获取您的专用邀请链接</a></p>
</div>
</div>
</div>

<div class="footer">
<div class="wrap clearfix">Copyright © 2011 - 2112 <%=config.SiteUrl %> All Rights Reserved
<%=config.SiteName%> 版权所有</div>

</div>
</form>
</body>
</html>
