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

<%@ Register Assembly="Pager" Namespace="Wuqi.Webdiyer" TagPrefix="DataPager" %>
<%@ 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>
        <asp:Literal ID="Literal_PageTitle" runat="server">便民服务</asp:Literal>_<%=ZK.config("lifetitle")%><%=ZK.config("sitetitle") %></title><meta name="keywords" content="<%=ZK.config("lifekeywords") %>" />
    <meta name="description" content="<%=ZK.config("lifedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <style type="text/css">
        .SHlist
        {
            padding: 5px 15px 5px 15px;
        }
        .SHlist .item
        {
            border-bottom: solid 1px #eee;
        }
        .SHlist .item .td1 div
        {
            font-size: 14px;
            height: 36px;
            line-height: 36px;
            overflow: hidden;
            background:url(/index/2/skin/arr4.gif) no-repeat 0 11px;
            padding-left:16px;
        }
        .SHlist .item .td1 div a
        {
            color: #069;
        }
        .SHlist .item .td1 div a:hover
        {
            color: #f60;
        }
        .SHlist .item .td2 div
        {
            text-align: right;
            color: #999;
            font-family:Arial;
        }
    </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 pt5">
            <div class="c1">
                <div class="v" style="border-top-width: 1px"><link type="text/css" rel="stylesheet" href="/skin/public/condition_screening.css" />
                    <div class="condition_screening" id="condition_screening">
                        <div class="item">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr valign="top">
                                    <td class="td1">
                                        <strong>类别筛选：</strong>
                                    </td>
                                    <td class="td2">
                                        <asp:Literal ID="LiteralClass" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>
                        </div>
                        <asp:Panel ID="Panel1" runat="server" Visible="false" CssClass="item item_a">
                            <style>
                                .condition_screening .item_a table .td2 a
                                {
                                    filter: Alpha(Opacity=70);
                                    -moz-opacity: 0.7;
                                    opacity: 0.7;
                                }
                            </style>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr valign="top">
                                    <td class="td1">
                                        <strong>子类筛选：</strong>
                                    </td>
                                    <td class="td2">
                                        <asp:Literal ID="LiteralSubClass" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>
                        </asp:Panel>
                        <div class="item">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr valign="top">
                                    <td class="td1">
                                        <strong>区域筛选：</strong>
                                    </td>
                                    <td class="td2">
                                        <asp:Literal ID="LiteralArea" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>
                        </div>
                        <div class="item">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr valign="top">
                                    <td class="td1">
                                        <strong>有效期限：</strong>
                                    </td>
                                    <td class="td2">
                                        <a href="#" class="on"><span>全部</span><strong>0</strong></a><a href="#"><span>三天内</span><strong>3</strong></a><a href="#"><span>一周内</span><strong>7</strong></a><a href="#"><span>半月内</span><strong>15</strong></a><a href="#"><span>一月内</span><strong>31</strong></a><a href="#"><span>三月内</span><strong>92</strong></a><a href="#"><span>半年内</span><strong>183</strong></a>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>
                        </div>
                    </div>

                    <script type="text/javascript">
                        function fun_condition_screening(tablename,SerialNum){                              
                            function fun1(tableobj){
                            var arr1=tableobj.getElementsByTagName("a") 
                            for(var i=0;i<arr1.length;i++){
                                var txt=arr1[i].childNodes[1].innerHTML;
                                var url=location.href;if(url.indexOf("#")!=-1)url=url.substring(0,url.indexOf("#"));
                                txt=escape(txt);
                              
                                if(url.indexOf("?")==-1)arr1[i].href=url+"?"+tablename+"="+txt;
                                else {
                                   if(url.indexOf(tablename+"=")!=-1){
                                    var strs = location.search.substr(1).split("&");var par1="";var par2="";for(j=0;j<strs.length;j++){if([strs[j].split("=")[0]].toString()==tablename){par1=strs[j].split("=")[0];par2=strs[j].split("=")[1];}}                                    
                                    url=url.replace(par1+"="+par2,"");
                                    if(par2.toLowerCase()==txt.toLowerCase()||unescape(par2)==unescape(txt)){arr1[0].className="";arr1[i].className="on";}                          
                                    }
                                arr1[i].href=url+"&"+tablename+"="+txt;
                                }
                                arr1[i].href=arr1[i].href.replace("?&","?");arr1[i].href=arr1[i].href.replace("&&","&");
                                }
                            }
                        var arr1=document.getElementById("condition_screening").getElementsByTagName("table")                            
                        for(var i=0;i<arr1.length;i++){if(i==SerialNum)fun1(arr1[i]);}
                        }                        
                        function init_condition_screening(tablenames){var arr1=tablenames.split(",");for(var i=0;i<arr1.length;i++)fun_condition_screening(arr1[i],i);}
                        <asp:Literal ID="Literal1" runat="server">init_condition_screening("parci,parai,parvi");</asp:Literal>
                    </script>

                </div>
            </div>
        </div>
        <div class="box pt5">
            <div class="hto">
                <div class="fl flow" style="width: 747px">
                    <div class="c1">
                        <div class="b">
                            <div class="fl"></div>
                            <div class="con" style="width: 600px">
                                <asp:Literal ID="Literal_PageTitle_" runat="server">便民服务</asp:Literal></div>
                            <div class="fr"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v">
                            <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                                <div class="tip_nodata" id="tip_nodata" style="background-position: 12px 12px">No data!&nbsp;&nbsp;还没有信息</a></div>
                            </asp:Panel>
                            <asp:Panel ID="Panel_List" runat="server">
                                <asp:Repeater ID="Repeater1" runat="server">
                                    <HeaderTemplate>
                                        <div class="SHlist">
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <div class="item">
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td class="td1">
                                                        <div><a href="/life/<%#Eval("id") %>.htm" target="_blank"><%#WM.cut(Eval("title").ToString(),80,"..")%></a></div>
                                                    </td>
                                                    <td class="td2">
                                                        <div><%#WMtime.Diff(Eval("time").ToString(), "yyyy-M-d")%></div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </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="30" 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" AlwaysShow="true">
                                                </DataPager:AspNetPager>
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="clear" style="height: 10px"></div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 198px">
                    <div class="c1">
                        <div class="b">
                            <div class="fl"></div>
                            <div class="con" style="width: 120px">赞助商链接</div>
                            <div class="fr" style="width: 5px"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v"><%=ZK.config("SponsoredLinkLife") %>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
