<%@ page language="C#" autoeventwireup="true" inherits="coupons_index, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<!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 runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title><%=ZK.config("couponstitle")%><%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("couponskeywords") %>" />
    <meta name="description" content="<%=ZK.config("couponsdescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <style type="text/css"> .self_x1{padding-left:4px;padding-bottom:8px;}.self_x1 li{text-align:center;float:left;width:230px;padding-top:10px;}.self_x1 li .con1{height:160px;overflow:hidden;}.self_x1 li .con1 img{border:solid 1px #eee;padding:4px;display:block;margin-left:auto;margin-right:auto;-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius: 10px;}.self_x1 li .con1 a:hover img{border:solid 1px #ddd;}.self_x1 li .con2{height:20px;overflow:hidden;}.self_x1 li .con2 a{color:#06c;}.self_x1 li .con2 a:hover{color:#06c;}.self_x1 li .con3{height:20px;overflow:hidden;color:#999;font-weight:bold;}.self_list{padding:0 5px 3px 4px;}.self_list th{padding-top:5px;padding-bottom:5px;text-align:left;border-bottom:solid 1px #d3f0f8;color:#666;}.self_list td{font-size:14px;text-align:left;border-bottom:solid 1px #d3f0f8;color:#333;}.self_list td span{}.self_list td div{height:40px;overflow:hidden;line-height:40px;}.self_list td div font{font-size:14px;}.self_list td div a{color:#069;}.self_list td div a font{font-weight:bold;}.self_list td div a:hover,.self_list td div a:hover font{color:#f60;font-weight:bold;}</style>
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <div class="box"><div class="mt5"><!--#include file="~/s/gg/AD_coupons_banner1.html"--></div></div>
        <div class="box">
            <div class="hto">
                <div class="fl" style="width: 700px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl"></div>
                            <div class="con">最新推荐优惠券</div>
                            <div class="fr" style="width: 130px"><a href="/user/coupons_do.aspx" target="_blank" rel="nofollow">我要发布优惠券</a></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v">
                            <asp:Panel ID="Panel_Nodata_Copy" runat="server" Visible="false">
                                <div class="tip_nodata" id="tip_nodata_Copy" style="background-position: 12px 13px">No data!&nbsp;<a href="/user/coupons_do.aspx" target="_blank" rel="nofollow">(还没有优惠券)</a></div>
                                <style type="text/css">.self_x1{padding-bottom: 0;}</style>
                            </asp:Panel>
                            <div class="self_x1">
                                <asp:Repeater ID="Repeater2" runat="server">
                                    <HeaderTemplate><ul></HeaderTemplate>
                                    <ItemTemplate>
                                        <li>
                                            <div class="con1">
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%" height="160">
                                                    <tr>
                                                        <td><a href="/coupons/<%#Eval("id")%>.htm" target="_blank"><img alt="<%#Server.HtmlEncode(Eval("title").ToString())%>" src="<%#ZK.getThumbnailZoom(Eval("thumbnail").ToString(),"200","150") %>" onload="ResizePic(this,200,150)" /></a></td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div class="con2"><a href="/coupons/<%#Eval("id")%>.htm" target="_blank"><%#WM.E(Eval("title"),30,true) %></a></div>
                                            <div class="con3">截至<%#WMtime.FormatDateTime(Eval("endtime").ToString(),"yyyy年MM月dd日") %></div>
                                        </li>
                                    </ItemTemplate>
                                    <FooterTemplate></ul><div class="clear"></div></FooterTemplate>
                                </asp:Repeater>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="fr" style="width: 245px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl"></div>
                            <div class="con" style="width: 140px">优惠券相关问题</div>
                            <div class="fr"><a href="/news/list1.htm?classid=<%=ZK.config("couponsfaqid")%>" target="_blank">更多</a></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v"><div class="s1"><asp:Literal ID="Literal1" runat="server"></asp:Literal></div></div>
                    </div>
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl"></div>
                            <div class="con" style="width: 140px">客服中心</div>
                            <div class="fr"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v"><div style="line-height: 27px; padding: 5px 0 7px 12px; color: #666"><ul><%=ZK.config("couponsfaqcon")%></ul></div></div>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="c1 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con">所有优惠券</div>
                    <div class="fr" style="width: 130px"><a href="/user/coupons_do.aspx" target="_blank" rel="nofollow">我要发布优惠券</a></div>
                    <div class="clear"></div>
                </div>
                <div class="v">
                    <div class="v1">
                        <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                        <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                            <div class="tip_nodata" id="tip_nodata" style="background-position: 12px 13px">No data!&nbsp;<a href="/user/coupons_do.aspx" target="_blank" rel="nofollow">(还没有优惠券)</a></div>
                        </asp:Panel>
                        <asp:Panel ID="Panel_List" runat="server">
                            <asp:Repeater ID="Repeater1"
                                runat="server">
                                <HeaderTemplate><div class="self_list"><table border="0" cellspacing="1" cellpadding="0" width="100%"><tr><th width="170"><div class="al" style="padding-left: 10px">有效使用期</div></th><th>优惠券名称</th><th width="110">&nbsp;</th></tr></HeaderTemplate>
                                <ItemTemplate>
                                    <tr onmouseover="this.style.backgroundColor='#f9f2c9'" onmouseout="this.style.backgroundColor='#fff'">
                                        <td>
                                            <div class="al" style="padding-left: 10px">截至<span><%#WMtime.FormatDateTime(Eval("endtime").ToString(),"yyyy年MM月dd日")%></span></div>
                                        </td>
                                        <td>
                                            <div class="al"><%#get1(Eval("id").ToString(), WM.E(Eval("title"), 60, true), Eval("isred").ToString())%></div>
                                        </td>
                                        <td>
                                            <a href="/coupons/<%#Eval("id")%>.htm" target="_blank"><img alt="" src="/skin/public/preview.gif" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate></table></div></FooterTemplate>
                            </asp:Repeater>
                        </asp:Panel>
                        <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                            <div id="DataPager">
                                <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                                    <tr>
                                        <td>
                                            <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                                UrlPagingTarget="_self" PageSize="20" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                                NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                                CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                                SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                                NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                            </DataPager:AspNetPager>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear" style="height: 8px"></div>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
