<%@ page language="C#" autoeventwireup="true" inherits="company_phone, 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="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("sitetitle") %></title><meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <style type="text/css">
        .self_list
        {
            padding: 3px 15px;
        }
        .self_list table
        {
            background-color: #b9d8ed;
            -moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;
        }
        .self_list th
        {
            text-align: left;
            color: #666;
            background-color: #d8ecfa;
            padding-top: 6px;
            padding-bottom: 5px;
            font-size: 14px;
            background: url(/skin/public/gradualBG1.gif) repeat-x 0 0;
        }
        .self_list td
        {
            height: 36px;
            line-height: 36px;
            background-color: #fff;
        }
        .self_list .self_td1
        {
            width: 345px;
        }
        .self_list .self_td1 div
        {
            height: 36px;
            overflow: hidden;
            padding-left: 10px;
            font-size: 14px;
        }
        .self_list .self_td1 div a
        {
            color: #2c6780;
        }
        .self_list .self_td1 div a:hover
        {
            color: #f60;
        }
        .self_list .self_td2
        {
            font-size: 20px;
            color: #f60;
            text-align: right;
            font-family:Arial;
        }
        .self_list .self_td2 div
        {
            padding-right: 10px;
        }
        .self_list .self_td2 div font
        {
            background-color: #ff0;
            font-size: 20px;
        }
        .self_list .self_td1 div a font
        {
            color: #f00;
            background-color: #ff0;
            font-size: 14px;
        }
    </style>    
</head>
<body>
    <div class="wrap"><a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <div class="box">
            <div class="mt5"><!--#include file="~/s/gg/AD_company_banner1.html"-->
            </div>
        </div>
        <div class="box">
            <div class="c1 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con">电话搜</div>
                    <div class="fr"><a href="/company/class.htm">黄页大全</a></div>
                    <div class="clear"></div>
                </div>
                <div class="v" style="padding-top: 2px; padding-bottom: 10px">
                    <div id="self_search_box" style="padding: 10px">
                        <table border="0" cellpadding="0" cellspacing="0" class="wto">
                            <tr>
                                <td>
                                    <div class="str s14" style="color: #666; padding-top: 2px">输入企业商家名称或电话号码：</div>
                                </td>
                                <td style="padding-left: 5px">
                                    <input type="text" id="phone_wordkey" class="inp4" style="width: 300px" value="" onkeyup="self_ajaxsearch()" maxlength="100" title="请输入名称或电话号码，系统会自动检索！" autocomplete="off" />
                                </td>
                                <td style="padding-left: 10px">
                                    <input type="button" value="清空重置" id="self_btn1" class="but4" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" onclick="document.getElementById('phone_wordkey').value='';document.getElementById('Panel_List').style.display='';document.getElementById('ajaxdata').style.display='none';if(document.getElementById('Panel_Turn'))document.getElementById('Panel_Turn').style.display='';" />
                                </td>
                                <td><div style="padding-left:20px;"><a href="/user/company_store.aspx" rel="nofollow" target="_blank"><img alt="我要加入" src="/skin/public/joinphone.gif" /></a></div></td>
                            </tr>
                        </table>
                    </div>
                    <script type="text/javascript" src="/skin/public/jquery-1.8.3.min.js"></script>
                    <script type="text/javascript">
                    function self_ajaxsearch(){                    
                        function self_fun1(str1){
                            if(str1!="")document.getElementById("ajaxdata").innerHTML=str1;else document.getElementById("ajaxdata").innerHTML="<div class=\"ce\" style=\"padding:30px 0;color:#999;\">没有检索到数据！</div>";
                        }                    
                        var k=document.getElementById("phone_wordkey").value;  
                        if(k.length>1){
                            document.getElementById("Panel_List").style.display="none";if(document.getElementById("Panel_Turn"))document.getElementById("Panel_Turn").style.display="none";document.getElementById("ajaxdata").style.display="";document.getElementById("ajaxdata").innerHTML=document.getElementById("ajaxdata_").innerHTML;
                            
                             $.ajax({url:"phone.aspx?act=ajax&k="+base64en(k)+"&rd="+Math.random(),async:true,cache:false,context:document.body,success:function(XMLHttpRequest){
        self_fun1(XMLHttpRequest);
    }});
                            //ajax("post","phone.aspx?act=ajax&k="+base64en(k)+"&rd="+Math.random(),"",function OnHandler(){if(xmlHttp.readyState == 4){self_fun1(xmlHttp.responseText);}});
                  
                        }
                    }                    
                    </script>

                    <div id="ajaxdata" class="self_list" style="display: none">
                        <div style="background: url(/s/skin/loading.gif) no-repeat 50% 50%; height: 100px"></div>
                    </div>
                    <div id="ajaxdata_" style="display: none">
                        <div style="background: url(/s/skin/loading.gif) no-repeat 50% 50%; height: 100px"></div>
                    </div>
                    <form id="form1" runat="server">
                    <%@ 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 12px">No data!&nbsp;&nbsp;没有显示信息</div>
                    </asp:Panel>
                    <asp:Panel ID="Panel_List" runat="server" CssClass="self_list">
                        <asp:Repeater ID="Repeater1" runat="server">
                            <HeaderTemplate>
                                <table border="0" cellpadding="0" cellspacing="1" width="100%">
                                    <tr>
                                        <th>
                                            <div style="padding-left: 10px">商家名称</div>
                                        </th>
                                        <th>
                                            <div style="padding-left: 10px">商家地址</div>
                                        </th>
                                        <th>
                                            <div style="text-align: right; padding-right: 10px">电话号码</div>
                                        </th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td class="self_td1">
                                        <div><a href="/company/<%#Eval("id") %>.htm" target="_blank"><%#WM.cut(Eval("companyname").ToString().Trim(),40,"..")%></a></div>
                                    </td>
                                    <td class="self_td1">
                                        <div><a href="/company/<%#Eval("id") %>.htm" target="_blank"><%#WM.cut(Eval("address").ToString().Trim(),40,"..")%></a></div>
                                    </td>
                                    <td class="self_td2">
                                        <div><%#Eval("phone").ToString().Trim() %></div>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table></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" AlwaysShow="true">
                                        </DataPager:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>
                        </div>
                    </asp:Panel>
                    </form>
                </div>
            </div>
        </div>
        <%--<div class="box">
            <div class="mt5"><!--#include file="~/s/gg/AD_index_banner2.html"-->
            </div>
        </div>--%>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
