<%@ page language="C#" autoeventwireup="true" inherits="tuan_2_view, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="~/tuan/2/head.ascx" TagName="head" TagPrefix="UC" %>
<%@ Register Src="~/tuan/2/side.ascx" TagName="side" TagPrefix="UC" %>
<%@ Register Src="~/tuan/2/foot.ascx" TagName="foot" TagPrefix="UC" %>
<!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=utf-8" />
    <title><%=WMread.GetBy("shorttitle","tuan","id",WM.RQ("id")) %>_<%=ZK.config("title","tuan") %></title>
    <meta name="keywords" content=" <%=WMread.GetBy("shorttitle","tuan","id",WM.RQ("id")) %>——<%=ZK.config("keywords","tuan") %>" />
    <meta name="description" content=" <%=WMread.GetBy("fulltitle","tuan","id",WM.RQ("id")) %>" />
    <link href="/tuan/<%=ZK.config("tuantemplate", "tuan")  %>/skin/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/s/skin/base.js"></script>
    <script type="text/javascript" src="/tuan/<%=ZK.config("tuantemplate", "tuan")  %>/skin/public.js"></script>
</head>
<body>
    <div class="wrap">
    <UC:head ID="head1" runat="server" />
        <div class="box">            
            <script type="text/javascript">document.getElementById("homemenu").className="";</script>
            <div class="mainside">
                <div class="mainbox">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                            <div class="c1">
                                <div class="share_bg">
                                     <div style="padding-top: 12px; padding-left:15px; color: #666">
                                        <div id="ckepop">
                                            <span class="jiathis_txt">分享到：</span>
                                            <a class="jiathis_button_tools_1"></a>
                                            <a class="jiathis_button_tools_2"></a>
                                            <a class="jiathis_button_tools_3"></a><a class="jiathis_button_tools_4"></a>
                                            <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank">更多</a>
                                            <a class="jiathis_counter_style"></a>
                                        </div>                                        
                                        <div class="clear"></div>
                                     </div>                            
                                </div>
                                <div class="m1"></div>
                                <div class="v1">
                                    <div class="x1">
                                        <div class="con1"><span><%#Eval("slogan1")%></span><a href="<%#Eval("id")%>.htm"><%#Eval("fulltitle")%></a></div>
                                        <div class="con2">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr valign="top">
                                                    <td>
                                                        <div class="son2">
                                                            <div class="buyhref"><a href="buy.aspx?id=<%#Eval("id")%>" id="buybtn<%#Eval("id")%>"><img alt="" src="/tuan/2/skin/none.gif" /></a></div>
                                                            <div class="PriceBar">
                                                                <div class="hto">
                                                                    <div class="fl">¥<%#Convert.ToDouble(Eval("tuanprice").ToString()).ToString("#.##")%></div>
                                                                    <div class="fr"></div>
                                                                    <div class="clear"></div>
                                                                </div>
                                                            </div>
                                                            <div class="PriceRatio">
                                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                        <th>原价</th>
                                                                        <th>折扣</th>
                                                                        <th>节省</th>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>¥<%#Convert.ToDouble(Eval("oldprice").ToString()).ToString("#.##")%></td>
                                                                        <td><%#WMcompare.IsEqual((ZK.DoubleDiscount(Eval("tuanprice").ToString(), Eval("oldprice").ToString()) * 10).ToString("#.#"),".1","-")%></td>
                                                                        <td>¥<%#ZK.DoubleSubtract(Eval("oldprice").ToString(), Eval("tuanprice").ToString()).ToString()%></td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                            <div class="countdown">   
                                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr valign="top">
                                                                        <td>
                                                                            <strong id="surplustime<%#Eval("id")%>">剩余时间：</strong><br />
                                                                            <span><strong id="d<%#Eval("id")%>">0</strong> 天 <strong id="h<%#Eval("id")%>">0</strong> 时 <strong id="m<%#Eval("id")%>">0</strong> 分 <strong id="s<%#Eval("id")%>">0</strong> 秒</span>
                                                                            <script type="text/javascript">tms[tms.length] = "<%#(Convert.ToInt64(WMtime.DateDiff(DateTime.Now, Convert.ToDateTime(get2(Eval("starttime").ToString(),Eval("endtime").ToString()))).TotalSeconds) * 1000).ToString()%>";day[day.length] = "d<%#Eval("id")%>";hour[hour.length] = "h<%#Eval("id")%>";minute[minute.length] = "m<%#Eval("id")%>";second[second.length] = "s<%#Eval("id")%>";</script>
                                                                        </td>
                                                                        <td width="45"><div></div></td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                            <div class="buytotal">
                                                                <table border="0" cellspacing="0" cellpadding="0" class="wto">
                                                                    <tr>
                                                                        <td><strong id="id<%#Eval("id")%>_buy"><%#WM.DoCount("tuan_buy", "where fid=" + Eval("id").ToString() + " and (state='已付款' or state='已消费')")%></strong></td>
                                                                        <td><div style="padding: 2px 0 0 5px">人已购买</div></td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                            <div class="tgslogan"><%#Eval("slogan2")%></div>
                                                            <div class="tgstate">
                                                                <div class="chil1" id="id<%#Eval("id")%>_tgstate1">团购已成功</div>
                                                                <div class="chil2" id="id<%#Eval("id")%>_tgstate2">还可以继续购买…</div>
                                                                <div class="chil3"><%#WMcompare.IsEqual(Eval("lowesttime").ToString(), "", "还未",  WMtime.FormatDateTime_(Eval("lowesttime").ToString(), "MM-dd HH:mm") + "&nbsp;")%>达到最低团购人数<span id="id<%#Eval("id")%>_lowestbuy"><%#Eval("lowestbuy")%></span>人</div>
                                                                <script type="text/javascript">TgState("<%#Eval("id")%>");</script>
                                                                <%#get1(Eval("id").ToString(),Eval("starttime").ToString(), Eval("endtime").ToString())%>
                                                            </div>
                                                        </div>
                                                    </td>
                                                    <td width="450">
                                                        <div class="son1"><a href="<%#Eval("id")%>.htm"><img alt="" src="<%#ZK.getProportionImage(WMcompare.IsEmpty(Eval("thumbnail").ToString(),"/skin/public/gg/tuan_temp_0.jpg"),"",446,"",396)%>" /></a></div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <%#WMcompare.IsEqual(Eval("tuannote").ToString().Trim(), "", "", "<div class=\"con3\"><div>" + WM.cut(Eval("tuannote").ToString().Trim(), 162, "…") + "</div></div>")%>
                                    </div>
                                </div>
                                <div class="n1"></div>
                            </div>                            
                            <div class="c1">
                                <div class="m1"></div>
                                <div class="v1">
                                    <div class="view_title">本单详情：<a id="EditHref" class="none" href="/e/tuan_do.aspx?act=mod&id=<%#Eval("id") %>" target="_blank">[编辑此单]</a></div>
                                    <div class="view_content"><%#Eval("content")%></div>
                                    <div class="ce" id="view_bottom_buy_btn">                                    
                                        <a href="buy.aspx?id=<%#Eval("id") %>"><img alt="" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" class="block wto" src="/tuan/2/skin/buy_big_btn.gif" /></a>
                                    </div>
                                </div>
                                <div class="n1"></div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                    <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                    <asp:Panel ID="Panel1" runat="server" CssClass="c1">
                        <div class="m1"></div>
                        <div class="v1">
                            <div class="view_title">已参加团购的会员：</div>
                            <div class="HaveBoughtMember"><ul><%=已参加团购()%></ul><div class="clear"></div></div>                                 
                        </div>
                        <div class="n1"></div>
                    </asp:Panel>
                </div>
                <UC:side ID="side1" runat="server" />
                <div class="clear"></div>
            </div>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>