<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="allPl.aspx.cs" Inherits="web.allPl" %>

<!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>评论列表-<%=pds.CompanyName%>-<%=config.SiteTitle %>
</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta HTTP-EQUIV="pragma" CONTENT="no-cache" /> 

<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate" /> 

<meta HTTP-EQUIV="expires" CONTENT="0" /> 
<meta http-equiv="content-type" content='text/html;charset=utf-8'/>	

<meta name="description" content="<%= config.MetaDescription %>"/> 
<meta name="keywords" content=<%= config.MetaKeywords %>"/>
<link href="img/css/base.css" rel="stylesheet" type="text/css" media="all" />
<link href="img/css/v7.css" rel="stylesheet" type="text/css" media="all" />
<link href="img/css/index.css" rel="stylesheet" type="text/css" media="all" />
<link href="img/css/style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="img/js/hpcommon.v3.js"  charset="utf-8"></script>
<script src="img/js/notice.js" type="text/javascript"></script>
<script src="img/js/comment.js" type="text/javascript"></script>


	
 <script type="text/javascript">
 function SetCwinHeight(cs){
  var bobo=document.getElementById(cs); //iframe id
  if (bobo){
   if (bobo && !window.opera){
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
     bobo.height = bobo.contentDocument.body.offsetHeight;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){ bobo.height = bobo.Document.body.scrollHeight-0;
         }
   }
    else
    {
        if(bobo.contentWindow.document && bobo.contentWindow.document.body.scrollHeight)
            bobo.height = bobo.contentWindow.document.body.scrollHeight;//Opera
    }
  }
 }
</script>
<script type="text/javascript">
function getAlbumNum()
{
    return <%=base.Request.QueryString["pid"].ToString() %>;
}

</script>
 <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3&services=true"></script>
</head>
<body>
     
      	<iframe id=head src="modHtml/header.html" onload="Javascript:SetCwinHeight('head')" width=100% height="180" frameborder=no border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>


   <div class="news_dt">
    <ul>
    <li class="dt_left"></li>
      <li class="dt_bg">
        <div align="left" style="font-weight: normal;"> <%=dh %></div>
      </li>
      <li class="dt_right"></li>
    </ul>
    </div>
                 <div id='smw' style="display: none; position: absolute; right:0px; border:1px #FFFFFF solid; width:552px;  z-index:10000; height:7px; margin-right:1px;"> 
                 <div align="right" style="padding-bottom:3px;background-color:#FFFFFF;"><img src="Img/advclose.gif" border=0  onClick="cal('smw')" style="cursor:hand;"/></div>
                 <div id="scc" style="border:1px #DADADA solid;"></div>
        
                 </div>
													
 
<div class="hpMiddle hpWarp">
    <div class="topSpan"></div>
    <div class="hpMiddleWarp">
        <div class="hpBody">

                     <!-- 地图标注 -->
                 
            <div class="hpContainer">
                <!-- vip餐厅左部介绍 -->
                <div class="hpLeftBar">
                    
        
                    <!-- 星级评分 -->
                
                   <div class="mapMark">
    <div class="top"></div>
    <div class="body">
    
        <div class="mapbody">
          
        <div id="map-cnt" style="width: 288px; height: 283px">
            </div>
        </div>
   
    </div>
    <div class="bottom"></div>
</div>  
<script type='text/javascript'> 
var shopname = '<%=pds.CompanyName%>';var shopaddress = '<%= pds.Companyaddress %>';var shopphone = '';var shopimg = '';var shop_longitude = <%=pds.Longtitude %>;var shop_latitude = <%=pds.Latitude %>;var shop_city = '<%=config.Cityname %>';
var map = new BMap.Map("map-cnt");  
 
/*****设置标尺等*******/
map.addControl(new BMap.NavigationControl());             // 添加平移缩放控件
map.addControl(new BMap.ScaleControl());                    // 添加比例尺控件
map.addControl(new BMap.OverviewMapControl());              //添加缩略地图控件
 
/*****设置卫星地图等***************/
var point = new BMap.Point(shop_longitude,shop_latitude);    // 创建点坐标
map.centerAndZoom(point,16);                     // 初始化地图,设置中心点坐标和地图级别。
      
map.addControl(new BMap.MapTypeControl());          //添加地图类型控件
map.setCurrentCity(shop_city);          // 设置地图显示的城市 此项是必须设置的
 
/************设置窗口详细信息(点击)************************/
var sContent =
"<h4 style='margin:0 0 5px 0;padding:0.2em 0'>"+shopname+"</h4>" + 
"<div style='width:325px;'><div style='float:left;width:220px;'><div style='margin-bottom:3px;'>地址："+shopaddress+"</div>"+
"<div style='margin-bottom:3px;width:220px;'>联系电话：\n"+shopphone+"</div></div>"+
"<img style='float:left;width:100px;height:70px;' id='imgDemo' src='"+shopimg+"'  title='"+shopname+"'/></div>"
 +"";
 
//设置图标
var myIcon = new BMap.Icon("http://api.map.baidu.com/img/markers.png", new BMap.Size(23,25), {    //图标
    imageOffset: new BMap.Size(0,0)    //图片的偏移量。为了是图片底部中心对准坐标点。
});
 
var marker = new BMap.Marker(point,{icon:myIcon});
var infoWindow = new BMap.InfoWindow(sContent);  // 创建信息窗口对象
 
map.addOverlay(marker);
 
map.enableKeyboard();                         // 启用键盘操作。
 
 //marker.addEventListener("click", function(){          
  // this.openInfoWindow(infoWindow);
   //图片加载完毕重绘infowindow
  // document.getElementById('imgDemo').onload = function (){
     //  infoWindow.redraw();
   //}
//});
//map.openInfoWindow(infoWindow, map.getCenter());      // 打开信息窗口
</script>
<script type="text/javascript" src="img/js/zh.js"  charset="utf-8"></script>
<script type="text/javascript" src="img/js/core.js"  charset="utf-8"></script>

 
            <div class="starScore" id="starScore1"> 
              <div class="top"></div>
              <div class="body"> 
                <div class="labelTip"> <span class="wangyou">网友评分</span> 
                  <span class="chengdu">程度</span> </div>
                <%=zl %>
            
              </div>
              <div class="bottom"></div>
            </div>
     
                    
                     <!-- 五五折优惠 -->
                   
                    
                    <!-- 促销信息 -->
                    
                    <div class="promotions" id="promotions">
                        <div class="promotionsTop" id="promotionsTop"></div>
                        <div class="promotionsBody" id="promotionsBody">
                            
                            <div class="text1">
                                <h3>店铺特色：</h3>
                                
                                <p><%=tsxx %></p>
                                
                            </div>
                            <span class="blank20"></span>
                
                            
                        </div>
                        <div class="promotionsBottom" id="promotionsBottom"></div>
                    </div>
                    
                    <!-- 餐厅更多信息 -->
      

            <div class="moreInfo"> 
         <%=morezl %>
      
            </div>

        
                  
                    
                </div>
                <div class="hpMainBody">
                
                          <!-- 评论简介 -->


                    <div class="commentWarp" id="cmt">
                      
                 
              <div class='mframe'> 
			                  
          
                <table width="628" cellspacing="0" cellpadding="0">
          <tr> 
            <td class="tl"> <div class="tt"><font color="#6699CC">（<a href="?pid=<%=base.Request.QueryString["pid"] %>&cs=hp">好评</a>( 
                        <%=Gethp()%>
                        )）（<a href="?pid=<%=base.Request.QueryString["pid"] %>&cs=zp">中评</a>( 
                        <%=Getzp()%>
                        )） （<a href="?pid=<%=base.Request.QueryString["pid"] %>&cs=cp">差评</a>( 
                        <%=Getcp()%>
                        )） <a href="AllNewPl.aspx"><font color="#FF0000">全部店铺最新评价&gt;&gt;</font></a></font></div></td>
    
          </tr>
        </table> 
     </div>
                
                        <ul class="cmtList">
                        	  <asp:DataList id="mypp" CellPadding="5" CellSpacing="0" GridLines="None" RepeatColumns="1"
													RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
													<ItemStyle CssClass="alignCenterTop" />
													<ItemTemplate>
                            <li id="CommentItem<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>">
                                <p class="text3">
                                    <span class="left">
                                    <span class="cmtbtn"></span>
                                    <em> <%#GetRatingg(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "Score").ToString()))%></em>&nbsp;&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem,"UserName")%></span>
                                    <span class="right">  <%#DataBinder.Eval(Container.DataItem,"AddTime")%></span>
                                </p>
                                <div class="cmtBody">
                                    <div class="left">
                                      <img src='<%#Gethead(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "MemberID").ToString()))%>' border=0 />
                                    </div>
                                    <div class="right">
                                        <p class="text4">
                                             <font color="6699cc">  <%#Getmname(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "MemberID").ToString()))%>
                                                </font> >&nbsp;&nbsp; 会员等级： 
                                                <%#Getgname(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "MemberID").ToString()))%>&nbsp;&nbsp;<%#getserver(DataBinder.Eval(Container.DataItem, "Reply").ToString())%>
                                               
                                            
                                
                                    
                                        </p>
                                
                                        
                                        
                                        <p class="gray" id="cc_<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>"><%#DataBinder.Eval(Container.DataItem,"body")%></p>
                                        
                                        
                                        
                                        
                                        
                                        
                                        
                                        <p class="text5"><a class="replayCmtBtn" onclick="GetReply(<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>);">回复(<span id="RC_<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>"><%#Gethfn(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ReviewID"))) %></span>)</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                                       <a class="replayCmtBtn" onclick="yy(<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>);">有用(<span id="yy_<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>"><%#Getzcn(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ReviewID")))%></span>)</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a class="replayCmtBtn" onclick="my(<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>);">没用(<span id="my_<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>"><%#Getfdn(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ReviewID")))%></span>)</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                                        <span id="Report_167083" ><a class="replayCmtBtn"  onclick="Getjb(<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>);">举报</a></span>&nbsp;&nbsp;|&nbsp;&nbsp;
                                        <a class="replayCmtBtn" onclick="sc(<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>);">收藏该评论</a>
                                
                                        
                                        </p>
                                      <div id="jb_<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>" style="display:none;"></div>
                                       <div id="Reply_<%#DataBinder.Eval(Container.DataItem,"ReviewID")%>" style="display:none;"></div>

                                    </div>
                                </div>
                            </li>

                        
													</ItemTemplate>
                                                  <SeparatorStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" />
											  </asp:DataList>
                                           
                        </ul>
                        <p class="text2">
                          <form id="Form1" method="post" runat="server">
                            <p class="pagemenu" style="text-align: center"> <span> 
                              <br/>
                              <br/>
                              共 
                              <asp:Literal ID="lttotal" runat="server"></asp:Literal>
                              条，第 
                              <asp:Literal ID="ltcurpage" runat="server">1</asp:Literal>
                              页/共 
                              <asp:Literal ID="lttotalpage" runat="server"></asp:Literal>
                              页 </span> <span class="padd1"> 
                              <asp:LinkButton ID="lbfirst" runat="server" OnClick="lbfirst_Click" ToolTip="第一页" ><img src="images/first-icon.gif" alt="第一页"/></asp:LinkButton>
                              <asp:LinkButton ID="pre" runat="server"  ToolTip="上一页" OnClick="pre_Click" ><img src="images/left-icon.gif" id="IMG1" alt="上一页"/></asp:LinkButton>
                              <asp:LinkButton ID="lbup" runat="server" OnClick="lbup_Click" CssClass="pageA">上一页</asp:LinkButton>
                              <asp:LinkButton ID="lbdown" runat="server" OnClick="lbdown_Click" CssClass="pageA">下一页</asp:LinkButton>
                              <asp:LinkButton ID="next" runat="server" ToolTip="下一页" OnClick="next_Click" ><img src="images/right-icon.gif"  alt="下一页"/></asp:LinkButton>
                              <asp:LinkButton ID="lblast" runat="server" OnClick="lblast_Click" ToolTip="最后一页"><img src="images/last-icon.gif"  alt="最后一页"/></asp:LinkButton>
                              </span> <br/>
                              <br/>
                              <br/>
                            </p></form>
									<form id="reviewForm" action='Review.aspx?ProductID=<%=base.Request.QueryString["pid"].ToString() %>&cz=pl' method="post" onsubmit="return checkRemark();">	
    <script type="text/javascript" language="javascript">
 	function checkRemark()	
	{
		var form=document.getElementById("reviewForm");	
		if (form.username.value=="")	
			{	alert("标题必须填写");	
			form.username.focus();		
			return false;	
			}	
			if (form.body.value=="")
			{	
			alert("点评内容必须填写");		
			form.body.focus();		
			return false;	
			}
		if (form.body.value.length>500)
			{	
			alert("点评内容不能大于500个字符!");		
			form.body.focus();		
			return false;	
			}
			
		
            
			
			
	}


	function showLen1(obj)	
	{		
	document.getElementById("emaillen").value=obj.value.length;	
	}	  

     </script>
              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" >
                <tr> 
                  <td height="29" bgcolor="#FFFF99" style="border:1px #CCCCCC solid;"> 
                 
                      <font color="#000000"><div align="center">&nbsp;&nbsp;提示：1、填写内容均不能超过500个字节!!!&nbsp; 2、带*号的必须填写！</div></font>
                    </td>
                </tr>
                <tr> 
                  <td height="38" >
      
                   1、服务： 
                    <select name="ddlPublisher2" id="ddlPublisher2">
                      <option value="5">5分</option>
                      <option value="4">4分</option>
                      <option value="3">3分</option>
                      <option value="2">2分</option>
                      <option value="1">1分</option>
                    </select>
                    
                    </td>
                </tr>
                <tr> 
                  <td height="26" >2、标题：</td>
                </tr>
                <tr> 
                  <td height="28"> <input type="text" id="username" name="username" value="" maxlength="90" size="65"/>
                      <span style="color: #ff0033">*</span></td>
                </tr>
                <tr> 
                  <td height="27" >3、点评内容</td>
                </tr>
                <tr> 
                  <td > <textarea name="body" cols="60" rows="4" id="body" onkeydown="showLen1(this)" onkeyup="showLen1(this)"></textarea> 
                      <span style="color: #ff0033">*</span><input name="text2" type="text" id="emaillen" style="border-width:0;background:transparent;" size="4"/> 
                  </td>
                </tr>
      
                <tr> 
                  <td height="28"> 4、你的评价：好评
                    <input id="pj" type="radio" name="pj" checked="CHECKED" value="1" /> &nbsp; 中评 
                    <input id="Radio1" type="radio" name="pj" value="2" />
                    &nbsp; 差评 
                    <input id="Radio2" type="radio" name="pj" value="3" /></td>
                </tr>
       
                <tr> 
                  <td height="26"> 5、验 证 码： 
                    <input type="text" id="Text1" name="CheckNum" value="" maxlength="90" size="10"/> 
                    &nbsp; <img id="safecode" width="100px" height="25px" src="Handler.ashx" onClick="this.src='Handler.ashx?t='+Math.random()" title="点击更换验证码" style="cursor:pointer;" ></td>
                </tr>
                <tr> 
                  <td><div > <br />
                      <input type="image" src="img/submit_1.gif"/>
                      <br />
                      <br />
                    </div></td>
                </tr>
              </table>
  </form>			
                        </p>
                      
                    </div>
  
                
                </div>
            </div>
        </div>
    </div>
    <div class="bottomSpan"></div>
</div>
<!--底部-->
<div class="hpBottomTopSpan"></div>

 
 
 
 
<script type="text/javascript"> 
packUp1("profileText","profileBtn","120","pickUp1","pickDown1");

showSwitch("starScore","starScore1","starScoreMore","starScoreMore1");

 

</script>

	    <iframe id="help" src="modHtml/helper.html"  onload="Javascript:SetCwinHeight('help')" width=100% frameborder=no  MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>

    <script language="JavaScript" src="stat.aspx" type="text/JavaScript"></script>

 
 

</body>
</html>

