<%@ page language="C#" autoeventwireup="true" inherits="ShopCoupon, LebiMall" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
        <title><%=model_t.Title %>-优惠券</title>
    <meta name="description" content=<%=model_t.Description %> />
    <meta name="keywords" content=<%=model_t.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css">
    <link href="images/css/css2.css" rel="stylesheet" type="text/css">
    <link href="images/css/couponyl.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript" src="images/js/js_s.js"></script>
    <script>
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
         function search1(){
            var texts2=document.getElementById("ser1").value;
            var select_v2=document.getElementById("Select1").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>
</head>
<body>
<form id="form" runat="server">
<div id="top-menu02">
        <div id="top-menu">
            <div class="right">
                <script type="text/javascript">indexhead();</script>
            </div>
        </div>
    </div>
    <div id="top">
        <div id="logo">
            <a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">
                <img src="Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
       <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
        <p>
            <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
    </div>
<div id="contenter2">
    <div id="contenter">
         <div id="Div1">
                <div id="Div2">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser1" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select1" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search1()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div3"></div>
                        </div>
                    </div>
                </div>
            </div>
        <div class="sp-left-k">
            <div class="sp-left-k">
                <div class="sp-left-sreach">
                    <div class="ang-list01"></div>
                    <div class="ang-list02"></div>
                    <div class="ang-topheight">搜索条件</div>
                    <div class="left-list">
                        <div class="left-list-title">类别</div>
                        <div class="left-list-contenter" id="typec" runat="server"></div>
                    </div>
                    <div class="ang-bottomheight"></div>
                    <div class="ang-list02"></div>
                    <div class="ang-list01"></div>
                </div>
                <div class="sp-left-History">
                    <div class="ang-xlist01"></div>
                    <div class="ang-xlist02"></div>
                    <div class="his_div">
                        <div class="his_div_title">历史浏览：[&nbsp;<a href="javascript:ClearHistoryView();">清空</a>&nbsp;]</div>
                        <div class="his_div_content">
                            <ul id="h_ul"></ul>
                            <script type="text/javascript">GetHistoryView();</script>
                            <div class="both"></div>
                        </div>
                    </div>
                    <div class="ang-xlist02"></div>
                    <div class="ang-xlist01"></div>
                </div>
            </div>
        </div>
        <div class="sp-right-k">
            <div class="navigate">
                您现在的位置：<a href="Default.aspx">首页</a>>乐彼优惠券
            </div>
            <div class="couponlist">
                <table cellpadding=0 cellspacing=0 style="border:1px solid #ccc;">
                    <tr>
                        <td class="co-td1">优惠券名称</td>
                        <td class="co-td2">店铺名称</td>
                        <td class="co-td3">优惠券说明</td>
                        <td class="co-td4">有效期</td>
                        <td class="co-td5">发布日期</td>
                    </tr>
                    <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++){%>
                     <tr>
                        <td class="co-td1c"><a href="CouponPrint.aspx?id=<%=ds.Tables[0].Rows[i]["id"] %>&sid=<%=ds.Tables[0].Rows[i]["sid"] %>" target="_blank"><%=ds.Tables[0].Rows[i]["cname"] %></a></td>
                        <td class="co-td2c"><a href="<%=getYm(ds.Tables[0].Rows[i]["sid"].ToString(),ds.Tables[0].Rows[i]["syuming"].ToString()) %>" target="_blank"><%=ds.Tables[0].Rows[i]["sname"] %></a></td>
                        <td class="co-td3c"><%=getExplain(ds.Tables[0].Rows[i]["Cexplain"].ToString())%></td>
                        <td class="co-td4c"><%=ds.Tables[0].Rows[i]["Cexpires"] %></td>
                        <td class="co-td5c"><%=ds.Tables[0].Rows[i]["submittime"].ToString().Substring(0,10) %></td>
                    </tr>
                    <%} %>
                </table>
            </div>
            <div class="leaf">
                <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                    runat="server" RecordCount="228" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                    PrevPageText="上一页" PageSize="20" UrlPaging="True" ShowMoreButtons="False" CustomInfoClass="pages1"
                    ShowDisabledButtons="False" CurrentPageButtonPosition="Center" ShowBoxThreshold="50"
                    ShowFirstLast="False">
                </webdiyer:AspNetPager>
            </div>
        </div>
        <div class="both"></div>
       <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
        <div class="copyright" runat="server" id="copr"></div>
    </div>
</div>
</form>
</body>
</html>

