<%@ page language="C#" autoeventwireup="true" inherits="fclp_dp, 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" />
    <style type="text/css"> .star_rating{list-style:none;margin:-1px 0 0 -1px;padding:0;width:70px;height:12px;position:relative;background:url(/fclp/skin/rating_stars.gif) 0 0 repeat-x;overflow:hidden;font-size:0;}.star_rating li{padding:0;margin:0;float:left;}.star_rating li a{display:block;width:14px;height:12px;text-decoration:none;text-indent:-9000px;z-index:20;position:absolute;padding:0;margin:0;}.star_rating li a:hover{background:url(/fclp/skin/rating_stars.gif) 0 12px;z-index:2;left:0;}.star_rating a.one_star{left:0;}.star_rating a.one_star:hover{width:14px;}.star_rating a.two_stars{left:14px;}.star_rating a.two_stars:hover{width:28px;}.star_rating a.three_stars{left:28px;}.star_rating a.three_stars:hover{width:42px;}.star_rating a.four_stars{left:42px;}.star_rating a.four_stars:hover{width:56px;}.star_rating a.five_stars{left:56px;}.star_rating a.five_stars:hover{width:70px;}.star_rating li.current_rating{background:url(/fclp/skin/rating_stars.gif) 0 24px;position:absolute;height:12px;display:block;text-indent:-9000px;z-index:1;left:0;}#star_rating_box{padding:0 0 0 15px;height:54px;overflow:hidden;}#star_rating_box p{padding:15px 0 0 0;}#goodbad input{display:block;float:left; border:solid 1px #fff;background:#fff;margin-top:4px;*margin-top:0;margin-right:4px;*margin-right:0;}#goodbad label{display:block;float:left;margin-right:10px;cursor:pointer;color:#f60;}.self_rating_state{padding-left:20px;padding-top:8px;}.self_rating_state td{width:70px;text-align:center;color:#666;}.self_rating_state td img{display:block;margin:0 auto;}.self_rating_goodbad{padding-top:6px;padding-left:30px;padding-bottom:10px;}.self_rating_goodbad div{border:solid 1px #c7dda6;height:28px;line-height:28px;width:100px;overflow:hidden;color:#417702;margin-right:10px;background:url(/fclp/skin/bad.gif) no-repeat 10px 6px;padding-left:30px;}.self_rating_goodbad .col1{width:88px;background:url(/fclp/skin/good.gif) no-repeat 10px 4px;}</style>
</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">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tr valign="top">
                                <td width="620">
                                    <div id="star_rating_box" star_width="14">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="200">
                                                    <div style="padding-top:18px;">
                                                        <asp:RadioButtonList ID="goodbad" runat="server" RepeatDirection="Horizontal">
                                                            <asp:ListItem Value="good" Selected="True">推荐购买</asp:ListItem>
                                                            <asp:ListItem Value="bad">不推荐购买</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </div><div class="clear"></div>
                                                </td>
                                                <td width="100">
                                                    <p>楼盘品质</p>
                                                    <ul class="star_rating">
                                                        <li style="display: none;"><asp:TextBox ID="lpquality" runat="server"></asp:TextBox></li>
                                                        <li class="current_rating">default level</li>
                                                        <li><a href="#" title="一星" class="one_star">1</a></li>
                                                        <li><a href="#" title="二星" class="two_stars">2</a></li>
                                                        <li><a href="#" title="三星" class="three_stars">3</a></li>
                                                        <li><a href="#" title="四星" class="four_stars">4</a></li>
                                                        <li><a href="#" title="五星" class="five_stars">5</a></li>
                                                    </ul>
                                                </td>
                                                <td width="100">
                                                    <p>性价比</p>
                                                    <ul class="star_rating">
                                                        <li style="display: none;"><asp:TextBox ID="costperformance" runat="server"></asp:TextBox></li>
                                                        <li class="current_rating">default level</li>
                                                        <li><a href="#" title="一星" class="one_star">1</a></li>
                                                        <li><a href="#" title="二星" class="two_stars">2</a></li>
                                                        <li><a href="#" title="三星" class="three_stars">3</a></li>
                                                        <li><a href="#" title="四星" class="four_stars">4</a></li>
                                                        <li><a href="#" title="五星" class="five_stars">5</a></li>
                                                    </ul>
                                                </td>
                                                <td width="100">
                                                    <p>周边环境</p>
                                                    <ul class="star_rating">
                                                        <li style="display: none;"><asp:TextBox ID="surroundingenvironment" runat="server"></asp:TextBox></li>
                                                        <li class="current_rating">default level</li>
                                                        <li><a href="#" title="一星" class="one_star">1</a></li>
                                                        <li><a href="#" title="二星" class="two_stars">2</a></li>
                                                        <li><a href="#" title="三星" class="three_stars">3</a></li>
                                                        <li><a href="#" title="四星" class="four_stars">4</a></li>
                                                        <li><a href="#" title="五星" class="five_stars">5</a></li>
                                                    </ul>
                                                </td>
                                                <td width="100">
                                                    <p>小区配套</p>
                                                    <ul class="star_rating">
                                                        <li style="display: none;"><asp:TextBox ID="residentialaccessory" runat="server"></asp:TextBox></li>
                                                        <li class="current_rating">default level</li>
                                                        <li><a href="#" title="一星" class="one_star">1</a></li>
                                                        <li><a href="#" title="二星" class="two_stars">2</a></li>
                                                        <li><a href="#" title="三星" class="three_stars">3</a></li>
                                                        <li><a href="#" title="四星" class="four_stars">4</a></li>
                                                        <li><a href="#" title="五星" class="five_stars">5</a></li>
                                                    </ul>
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <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;}
                                                if(document.getElementById("lpquality").value==""){alert("请给楼盘品质打分！");return false;}
                                                if(document.getElementById("costperformance").value==""){alert("请给楼盘性价比打分！");return false;}
                                                if(document.getElementById("surroundingenvironment").value==""){alert("请给楼盘周边环境打分！");return false;}
                                                if(document.getElementById("residentialaccessory").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>
                                    <asp:Literal ID="Literal1" runat="server" Visible="false"><div class="ce flow" style="line-height:140px;color:#f60;height:140px">还未评分！</div></asp:Literal>
                                    <asp:Panel ID="Panel1" runat="server" CssClass="self_rating_state">
                                        <table border="0" cellpadding="0" cellspacing="0" height="135">
                                            <tr valign="bottom">
                                                <td>
                                                    <asp:Literal ID="Literal2_A" runat="server"></asp:Literal><asp:Image ID="Image1" runat="server" ImageUrl="/fclp/skin/chart01.gif" Width="28" /></td>
                                                <td>
                                                    <asp:Literal ID="Literal2_B" runat="server"></asp:Literal><asp:Image ID="Image2" runat="server" ImageUrl="/fclp/skin/chart02.gif" Width="28" />
                                                </td>
                                                <td>
                                                    <asp:Literal ID="Literal2_C" runat="server"></asp:Literal><asp:Image ID="Image3" runat="server" ImageUrl="/fclp/skin/chart03.gif" Width="28" />
                                                </td>
                                                <td>
                                                    <asp:Literal ID="Literal2_D" runat="server"></asp:Literal><asp:Image ID="Image4" runat="server" ImageUrl="/fclp/skin/chart04.gif" Width="28" />
                                                </td>
                                            </tr>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" style="margin-top:5px">
                                            <tr>
                                                <td>楼盘品质</td>
                                                <td>性价比</td>
                                                <td>周边环境</td>
                                                <td>小区配套</td>
                                            </tr>
                                        </table>                                        
                                    </asp:Panel>
                                    <div class="self_rating_goodbad">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td><div class="col1">推荐购买：<asp:Literal ID="Literal1_good" runat="server" Text="0"></asp:Literal></div></td>
                                                <td><div>不推荐购买：<asp:Literal ID="Literal1_bad" runat="server" Text="0"></asp:Literal></div></td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </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">
                        <%@ 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"></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(), Eval("good").ToString(), Eval("bad").ToString(), Eval("lpquality").ToString(), Eval("costperformance").ToString(), Eval("surroundingenvironment").ToString(), Eval("residentialaccessory").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>
            </form>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
<script type="text/javascript">
<!--
function __start(){
 var initialize_width=0;
 if(document.getElelmentById){return false};
 if(document.getElementsByTagName==null){return false;}
 var startLevelObj=document.getElementById("star_rating_box")
 if(startLevelObj==null){return false;}
 initialize_width=parseInt(startLevelObj.getAttribute("star_width"),10);
 if(isNaN(initialize_width) || initialize_width==0){return false;}
 var ul_obj=startLevelObj.getElementsByTagName("ul");
 if(ul_obj.length<1){return false;}
 var length=ul_obj.length;
 var li_length=0;
 var a_length=0;
 var li_obj=null;
 var a_obj=null;
 var defaultInputObj=null;
 var defaultValue=null;
 for(var i=0;i<length;i++){
  li_obj=ul_obj[i].getElementsByTagName("li");
  li_length=li_obj.length;
  if(li_length<0){return false;}
  //获取默认值
  defaultInputObj=li_obj[0].getElementsByTagName("input");if(!defaultInputObj){return false;}
  defaultValue=parseInt(defaultInputObj[0].value,10);
  if(!isNaN(defaultValue) && defaultValue!=0){
   //alert("有初始值!");
   //li_obj[1].style.width=initialize_width*defaultValue+"px";
   //defaultValue=0;
  }
  for(var j=0;j<li_length;j++){
   a_obj=li_obj[j].getElementsByTagName("a");
   if(a_obj.length<1){continue;}
   if(a_obj[0].className.indexOf("star")>0){
    a_obj[0].onclick=function(){
     return give_value(this);
    }
    a_obj[0].onfocus=function(){
     this.blur();
    }
   }
  }
 }
}
function give_value(obj){
 var status=true;
 var parent_obj=obj.parentNode;
 var i=0;
 while(status){
  i++;
  if(parent_obj.nodeName=="UL"){break;}
  parent_obj=parent_obj.parentNode;
  if(i>1000){break;}//防止找不到ul发生死循环
 }
 var hidden_input=parent_obj.getElementsByTagName("input")[0];
 if(hidden_input.length<1){/*alert("sorry?\nprogram error!")*/;}
 var txt=obj.firstChild.nodeValue;//确保不能存在空格哦，因为这里用的firstChild
 if(isNaN(parseInt(txt,10))){/*alert('level error!')*/;return false;}
 hidden_input.setAttribute("value",txt.toString());
 //固定选中状态,先找到初始化颜色那个li
 var current_li=parent_obj.getElementsByTagName("li");
 var length=current_li.length;
 var ok_li_obj=null;
 for(var i=0;i<length;i++){
  if(current_li[i].className.indexOf("current_rating")>=0){
   ok_li_obj=current_li[i];break;//找到
  }
 }
 __current_width=txt*14;
 ok_li_obj.style.width=__current_width+"px";
 return false;
}
__start();
//-->
</script>

