<%@ page language="C#" autoeventwireup="true" inherits="fclp_ask, ZKCMS" maintainscrollpositiononpostback="true" 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_time" TagPrefix="UC" Src="~/s/include/tip_bar_time.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="fclp_head" TagPrefix="UC" Src="~/fclp/head.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><%=lpName %>在线问房_<%=ZK.config("fclptitle")%></title>
    <meta name="keywords" content="<%=ZK.config("fclpkeywords") %>" />
    <meta name="description" content="<%=ZK.config("fclpdescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <link type="text/css" rel="stylesheet" href="/fclp/skin/fclp.css" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <div class="box">
            <div class="tip_bar mt5">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td><div class="path"><strong>您当前的位置：</strong><span><a href="/">网站首页</a></span><span><a href="/fclp/">房产楼盘</a></span><%=lpName %></div></td>
                        <td align="right"><UC:tip_bar_time ID="tip_bar_time1" runat="server" /></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="box">
            <form id="form1" runat="server">
            <div class="fclp_view">
                <UC:fclp_head ID="fclp_head1" runat="server" />
                <div class="c1 mt5">
                    <div class="b">
                        <div class="fl"></div>
                        <div class="con">在线问房</div>
                        <div class="fr"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="v">
                        <%@ 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;(暂无数据，欢迎留言！)</div>
                        </asp:Panel>
                        <asp:Panel ID="Panel_List" runat="server">
                            <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_OnItemDataBound">
                                <HeaderTemplate>
                                    <div class="fclp_ask_list">
                                    <script type="text/javascript">
                                    function fclp_zx_re(strID){
                                        var url="ask_re.aspx?id="+strID+"&rd="+Math.random();
                                        TINY.box.show("<iframe allowtransparency=\"true\" width=\"520\" height=\"300\" frameborder=\"0\" scrolling=\"no\" src=\""+url+"\"></iframe>",0,520,300,1,0);
                                    }
                                    </script>
                                </HeaderTemplate>
                                <ItemTemplate><%#WMcompare.IsEqual(Repeater1.Items.Count.ToString(), "0", "<div class=\"flow\" style=\"height:10px;\"></div>", "")%>
                                    <div class="item_c"<%#WMcompare.IsEqual(Repeater1.Items.Count.ToString(), "0", " style=\"margin-top:0;\"", "")%>>
                                        <div class="item_b">                                        
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td>
                                                          <%#get2( Eval("uid").ToString())%><span>留言时间：<%#WMtime.FormatDateTime(Eval("time").ToString(),"yyyy-MM-dd HH:mm")%></span>                                        
                                                          <asp:Literal ID="iid" runat="server" Visible="false" Text='<%#Eval("ID")%>'></asp:Literal>
                                                          <asp:Literal ID="CTenable" runat="server" Visible="false" Text='<%#Eval("enable")%>'></asp:Literal>
                                                          <asp:Label ID="Label_EditRe" runat="server"></asp:Label>                                        
                                                    </td>
                                                    <td><div class="ar" style="padding-right: 10px">IP：<%#WMip.SetIP("",Eval("ip").ToString(),"")%></div></td>
                                                </tr>
                                            </table>                                            
                                        </div>
                                        <div class="item_v"><%#get3(Eval("enable").ToString(), Eval("id").ToString())%><%#get1(Eval("content").ToString(), Eval("uid").ToString())%><%#get4(Eval("content_re").ToString())%>
                                        </div>
                                    </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="8" 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 class="c1 mt5">
                    <div class="b">
                        <div class="fl"></div>
                        <div class="con">我要提问</div>
                        <div class="fr"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="v">                          
                           <table border="0" cellpadding="0" cellspacing="0">
                               <tr>
                                   <td>
                                        <div class="fclp_ask_add">
                                                <script type="text/javascript">
                                                function check1(){
                                                    if(document.getElementById("fclp_TextBox1").value==""||document.getElementById("fclp_TextBox1").value=="请输入提问或留言内容..."){alert("请输入提问或留言内容...");return false;}
                                                }
                                                </script>
                                            <div><asp:TextBox ID="fclp_TextBox1" runat="server" TextMode="MultiLine" Width="600" Height="100" CssClass="inp4" Style="line-height: 20px; padding-left: 6px; font-size:12px; overflow-y:scroll" Text="请输入提问或留言内容..." onfocus="if(this.value=='请输入提问或留言内容...')this.value=''" onblur="if(this.value=='')this.value='请输入提问或留言内容...'"></asp:TextBox></div>
                                            <div style="padding-top: 6px">
                                                <table border="0" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td><asp:Button ID="Button1" runat="server" Text="提交留言" CssClass="but4" OnClick="Button1_OnClick" OnClientClick="return check1()" /></td>
                                                        <td><div style="padding-left: 10px" class="red"><asp:Literal ID="msg" runat="server"></asp:Literal></div></td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                   </td>
                                   <td>                                                
                                        <div style="line-height:26px; padding-left:30px;color:#666">
                                            <div class="str" style="color:#666">购房提醒：</div>                                               
                                            如您有购房意向，您可以<a href="/fclp/fclp_tg_do.aspx?id=<%=WM.RQ("id") %>" style="color:#f30" target="_blank">在线提交</a>购房意向单，<br />或者拨打售楼热线：<asp:Literal ID="Literal1" runat="server"></asp:Literal>
                                            <div class="flow" style="height:10px;">&nbsp;</div>
                                        </div>
                                   </td>
                               </tr>
                          </table>                        
                     </div>
                </div>
            </div>
            </form>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
