<!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" class="loading">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="keywords" content="" />
<meta name="description" content="">
<meta name="author" content="" />
<link rel="stylesheet" type="text/css" href="public/style/style.css" />
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link rel="apple-touch-icon-precomposed" href="http://www.lede.cc/images/favicon.ico">
<title><?=encode_output($seo['title'])?></title>
<!--script src="public/js/nopc.js"></script-->
<script src="../js/jquery1.9.1.js"></script>
<script src="../js/jquery.raty.js"></script>
</head>
 
<body>

	<div id="header" class="head">
		<div class="wrap">
			<i class="menu_back"><a href="com.php?act=view&id=<?=$comid?>"></a></i>
			<div class="title">
				<span class="title_d"><p><?=$comname?> - 点评</p></span>
				<div class="clear"></div>
			</div>
		</div>
	</div>
	
	<div id="container">
		<div id="content">
    
		<div id="comment">
				<div class="comment_other">
					<h4><div class="ll f14" style="width:55%;">
					<img src="../images/star/b<? echo floor($all_stars)?>.png" /> <?=$all_stars?>分
					</div>
					<div class="rr f99 f14 t_r" style="width:40%;padding-right:10px;">
					<?=$stars['pf1']?>个评价
					</div></h4>
				</div>
				<ul>
				<?php
                  foreach((array)$comment as $comment){
                ?>	
                    <li>
						<div class="pd5">
							<div class="avt fl"><img src="../<?=$comment[face]?>" width="60px" height="60px" /></div>
							<div class="comment_content">
								<h5>
									<div class="f12 f6b"><?=$comment[username]?><span><?=$comment[postdate]?></span></div>
									<div class="clear"></div>
								</h5>
								<div class="comment_p">
                                  <p class="f99">价格 <img src="../images/star/s<?=$comment[cm_pz]?>.png" width="50px" /> 服务 <img src="../images/star/s<?=$comment[cm_fw]?>.png" width="50px" /> 环境 <img src="../images/star/s<?=$comment[cm_hj]?>.png" width="50px" /></p>
                                  <div class="clear"></div>
								  <p class="comment_text f14"><?=$comment[content]?></p>
								</div>
							</div>
							<div class="clear"></div>
							<div class="comment_reply"></div>
						</div>
					</li>
                   <?}?>
                   </ul>
				   <? if ($count>$pagesizes){?>
				   <div class="clear h_30"></div>
				   <?}?>
				 <?include tpl("page");?>
			</div>
		</div>

	</div>
	
	
	
	<div id="us_panel_menu">
		<div class="us_panel_msk"></div>
		<div class="us_panel_menu_t">
			<table width="100%" cellspacing="0">
				<tr>
                   <td valign="top" class="us_panel_menu_0">
						<a href="index.php"><i></i><span>首页</span></a>
					</td>
<?php
foreach((array)$nav as $key=>$nav){
?>
                    <td valign="top" class="us_panel_menu_<?=$key+1?>">
						<a href="<?=$nav[url]?>"><i></i><span><?=$nav[navname]?></span></a>
					</td>
<? } ?>
				</tr>
			</table>
		</div>
	</div>
	
	<div id="us_panel2" <? if ($count>$pagesizes){?>style="margin-bottom:50px;"<?}?>>
		<table width="100%" height="100%" cellspacing="0" border="0">
			<tr>
				<td class="us_panel_like"><a href="com.php?act=comment&comid=<?=$comid?>" class="f33" style="display:block;"><i></i><span>全部点评</span></a></td>
				<td class="us_panel_menu"><div class="arrow_top"></div><i></i><div class="us_panel_menu_left"></div><div class="us_panel_menu_right"></div></td>
				<td class="us_panel_post"><a href="member.php?act=exchange&comid=<?=$comid?>" class="f33" style="display:block;"><i></i><span>我要点评</span></a></td>
			</tr>
		</table>
	</div>

	<div id="add_newpost">
    <form name="comment" action="member.php?act=post_comment" method="post">
		<div class="add_newpost">
            <table width="100%" height="100%" cellspacing="5">
				<tr>
					<td class="add_newpost_cancel">取消</td>
					<td class="add_newpost_post"><input name="submit" type="submit" value="提交点评" class="btn" id="submit" /></td>
				</tr>
			</table>
		</div>
		<div class="newpost_w">
			<div class="pd10">
				<div class="newpost_w_t">
					<ul>
          <li><h3>价格</h3>
          <span id="star_pz" class="target-demo ll" style="margin-top:3px;"></span><span id="star_pzs" class="f43 f14"></span></li>
          <li><h3>服务</h3><span id="star_fw" class="target-demo ll" style="margin-top:3px;"></span><span id="star_fws" class="f43 f14"></span></li>
          <li><h3>环境</h3><span id="star_hj" class="target-demo ll" style="margin-top:3px;"></span><span id="star_hjs" class="f43 f14"></span></li>
          <li><h3>说点什么</h3>
          <textarea name="content" id="content" cols="45" rows="5" class="texts"></textarea>
          <input type=hidden name=cid value=<?=$comid?>>
          </li>
          <p class="pd5 f99 f12">* 仅消费过的会员才可点评</p>
        </ul>
				</div>
			</div>
		</div>
      </form>
	</div>
	
	
  <script>
  $(function() {
      var averscore=0;
	  $.fn.raty.defaults.path = '../images/star';
      $.fn.raty.defaults.number = 5;
      $.fn.raty.defaults.score = 0;
      $.fn.raty.defaults.targetType = 'number';
      $.fn.raty.defaults.starHalf = 'star-half-big.png';
      $.fn.raty.defaults.starOff = 'star-off-big.png';
      $.fn.raty.defaults.starOn = 'star-on-big.png';
      $.fn.raty.defaults.size = 24;
      $.fn.raty.defaults.cancel = false;
      $.fn.raty.defaults.targetKeep = true;
      $.fn.raty.defaults.precision = false;//是否包含小数
	  $('#star_pz').raty({
        target    : '#star_pzs',
		score     : undefined,
        scoreName : 'star_pz',
      });
	  $('#star_fw').raty({
        target    : '#star_fws',
		score     : undefined,
        scoreName : 'star_fw',
      });  
	  $('#star_hj').raty({
        target    : '#star_hjs',
		score     : undefined,
        scoreName : 'star_hj',
      });  	 
    });
   </script>
	<?include tpl("plus_share");?>

</body>
</html>