<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('ktvList.html', 'b56d7b9e0f92b6d30106eb5b7930324a', 1362487908); ?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $siteInfo['defaultCity']; ?>KTV预定 <?php echo $siteInfo['defaultCity']; ?>KTV列表 <?php echo $siteInfo['defaultCity']; ?>KTV大全</title>
<link rel="stylesheet" type="text/css" href="<?php echo MY_THEMEDIR; ?>css/ktv/public.css">
<link rel="stylesheet" type="text/css" href="<?php echo MY_THEMEDIR; ?>css/ktv/style.css">
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/public.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/DD_belatedPNG_0.0.8a.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/sl.js"></script>
<script type="text/javascript">

	$(document).ready(function(){
	  	$.focus("#focus001");
		$.focus("#focus002");
	});
	
	var root = "<?php echo DOMAIN; echo ROOT; ?>";
</script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/tabber.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/jquery.mousewheel.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ktv/jquery.styleSelect.js"></script>
<link rel="stylesheet" href="<?php echo MY_THEMEDIR; ?>css/ktv/jquery.jscrollpane.css" type="text/css" />
<link rel="stylesheet" href="<?php echo MY_THEMEDIR; ?>css/ktv/main.css" type="text/css" />
<!--[if lte IE 6]>
	<link rel="stylesheet" href="main_ie6.css" type="text/css" />
<![endif]-->
<script type="text/javascript">
	$(document).ready(function() {

		var options = {
						styleClass: "selectDark",
						jScrollPane: 1
						}
	
		$(".mySelect").styleSelect(options);
		
	});
</script>
</head>

<body>

<form action="<?php echo DOMAIN; echo ROOT; ?>ktv/list-1.html" method="post" id="ktv_Action">

<input type="hidden" id="orderBy"  name="orderBy" value="<?php echo $_POST['orderBy']; ?>">

<div class="top_black">
  <?php include $this->tpl->getfile('inc/ktv_header'); ?>
</div>
<div class="content">
  <p class="spacing"></p>
  <div class="wherenow"><div class="bline"></div><p class="p1">当前位置：<a href="<?php echo DOMAIN; echo ROOT; ?>ktv/">首页</a> > <a href="<?php echo DOMAIN; echo ROOT; ?>ktv/list-1.html">商户列表</a> </p><div class="p2"><span>分享到：</span><!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
        <a class="bds_qzone"></a>
        <a class="bds_tsina"></a>
        <a class="bds_tqq"></a>
        <a class="bds_renren"></a>
        <span class="bds_more">更多</span>
    </div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6439236" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
	document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script>
<!-- Baidu Button END --></div></div>
  <p class="spacing"></p>
  
  <div class="contentleft">
     <div class="commitem">
     <div class="citop"></div>
     <div class="cicenter">
     <div class="cicontent">
        <p class="scontd">条件搜索</p>
        <dl class="cidlfw">
           <dt class="dtvras">场所氛围</dt>
           <dd>
             
<?php if(is_array($ktvType)) foreach($ktvType as $k => $v) { ?>
             <a href="###" onClick="search_content('ktvtype' , '<?php echo $v['id']; ?>')"><?php echo $v['name']; ?></a>
			<?php } ?>
           </dd>
        </dl>
        <p class="spacing"></p>
        
        <dl class="ciarea">
           <dt class="dtvras">区域选择</dt>           
        </dl>
        
        <div class="ciarealist">
		  
<?php if(is_array($area)) foreach($area as $k => $v) { ?>
		<!------------------------------------------------>
        <dl>
		
		
          <dt>
             <p class="mda"><a href="###" onClick="search_content('areaId' , <?php echo $v['id']; ?>)"><?php echo $v['name']; ?></a></p>
             <p class="alist">
			 <?php $count = 0; ?> 
<?php if(is_array($shoparea[$v['id']])) foreach($shoparea[$v['id']] as $shop_k => $shop_v) { ?>
				 <?php if($count < 2) { ?>
	            	 <a href="###" onClick="search_content('shopareaId' , '<?php echo $shop_v['id']; ?>')"><?php echo $shop_v['name']; ?></a>&nbsp;&nbsp;&nbsp;&nbsp;
				 	 <?php $count++; } else { ?>
					 <?php break; ?> <?php } ?>
			 <?php } ?>
             </p>
          </dt>
          <dd>
		  
          <p class="lline"></p>
            <ul>
             
			    <?php $count = 0; ?>              	 
<?php if(is_array($shoparea[$v['id']])) foreach($shoparea[$v['id']] as $shop_k => $shop_v) { ?>
			 	 <?php if($count > 2) { ?>
	            	  <li> <a href="###" onClick="search_content('shopareaId' , <?php echo $shop_v['id']; ?>)"><?php echo $shop_v['name']; ?></a>&nbsp;&nbsp;&nbsp;&nbsp; </li>
					 <?php } ?>
					  <?php $count++; ?> <?php } ?>
              
              
            </ul>
            <p class="spacing"></p>
          </dd>
        </dl>
       <!--------------------------------------->
	   <?php } ?>
	  
        </div>
     </div>   
     </div>
     <div class="cifoot"></div>
     </div>
     <p class="spacing"></p>
     
     <div class="commitem">
     <div class="citop"></div>
     <div class="cicenter">
     <div class="cicontent">
        <div class="ciad"><img src="<?php echo MY_THEMEDIR; ?>images/ktv/adv1.jpg"></div>
     </div>   
     </div>
     <div class="cifoot"></div>
     </div>
  </div>
  
  <div class="contentright">
     <p class="spacing"></p>
     <div class="scontdion">
       <div class="sconleft">
         <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;搜索条件：</span>
         <div class="scalist">
		 
<?php if(is_array($searchs)) foreach($searchs as $k => $v) { ?>
         <a href="###" onClick="delSsarch('<?php echo $k; ?>')"><?php echo $v; ?></a>
		 <?php } ?>
   
         </div>
         <span>搜索到<em> <?php echo $ktv_count['all']; ?> </em>家</span>
       </div>
      
     </div>
     <p class="spacing"></p>
     <div class="commitemv2">
     <div class="citop"></div>
     <div class="cicenter">
     <div class="cicontent">
        <div class="moreconditon">
          <p class="vnmae">更多搜索条件</p>
          <div class="mcdlist">
		  
		  
<?php if(is_array($ktv_service)) foreach($ktv_service as $k => $v) { ?>
		  		
				  
<?php if(is_array($services)) foreach($services as $k2 => $v2) { ?>
			  		<?php if($v['name'] == $v2) { $check = "checked='checked'";break; } else { $check = ""; } ?>
				 <?php } ?>
	       			   <label>&nbsp;&nbsp;&nbsp;&nbsp;<input name="ktv_service" onClick="search_content(1,1)"  <?php echo $check; ?> type="checkbox" value="<?php echo $v['name']; ?>">&nbsp;<?php echo $v['name']; ?></label>
					
		  <?php } ?>
          </div>
        </div>
        <p class="spacing"></p>
        <div class="moreconditon">
          <p class="vnmae">列表排序</p>
          <div class="mcdlist2">
		  
          <a <?php if($_POST['orderBy'] == 'book') { ?>class="anow"<?php } ?>  href="###" onClick="go_list_OrderBy('book');">预订数从高到低</a>
          <span>|</span>
          <a <?php if($_POST['orderBy'] == 'comment') { ?>class="anow"<?php } ?> href="###" onClick="go_list_OrderBy('comment');" >评论数从高到低</a>
          <span>|</span>
          <a <?php if($_POST['orderBy'] == 'environmental') { ?>class="anow"<?php } ?>  href="###" onClick="go_list_OrderBy('environmental');" >环境评分从高到低</a>
          <span>|</span>
          <a  <?php if($_POST['orderBy'] == 'service') { ?>class="anow"<?php } ?> href="###" onClick="go_list_OrderBy('service');" >服务评分从高到低</a>
          <span>|</span>
          <a <?php if($_POST['orderBy'] == 'sound') { ?>class="anow"<?php } ?>  href="###" onClick="go_list_OrderBy('sound');" >品质评分从高到低</a>
          
          </div>
        </div>
     </div>
     </div>
     <div class="cifoot"></div>
     </div>
     <p class="spacing"></p>
<script type="text/javascript">
var root = "<?php echo DOMAIN; echo ROOT; ?>";
function showmore(id,obj,t){
	$('.img_hidden_' + id).toggle();
	$('.noshowdl_' + id).toggle();
}

function search_content(key , value)
{
	var service = '';
	$('input:checkbox[name="ktv_service"]:checked').each(function(i){
		service += $(this).val() + '|';
	}); 
	service = service.substr(0,service.length-1);

	$.ajax({
		type:'POST',
		url:root + '?m=ktv.setKtvSearch&'+key + '=' + value+'&service='+encodeURI(service),
		success: function (data) {
		
		},
		cache: false
	});			
	location.reload();
}





function delSsarch(key)
{

	$.ajax({
		type:'POST',
		url:root + '?m=ktv.delKtvSearch&key=' + key,
		success: function (data) {
			return;
		},
		cache: false
	});			
	location.reload();
}
</script>
     
     
<?php if(is_array($list)) foreach($list as $k => $v) { ?>
     <div class="commitemv3">
     <p class="c3iconr"></p>
     <div class="citop"></div>
     <div class="cicenter">
     <div class="cicontent">        
        <p class="spacing"></p>
        <div class="showimg">
		
		<?php if($v['listTitle'] == '特推') { ?>
		<p class="hott"></p>
		<?php } ?>		
		<p class="img">
		<img style="cursor:pointer" onClick="location.href='info-<?php echo $v['id']; ?>.html'" src="../upload/ktv/<?php echo $v['photoname']; ?>" width="207" height="158"></p></div>
        <div class="showinfo">
          <div class="title"><span class="s1"><a href="info-<?php echo $v['id']; ?>.html"><?php echo $v['name']; ?></a></span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="s2"><?php echo $v['subtitle'] ? '[ '.$v['subtitle'].' ]' : '' ?></span></div>
          <p class="borderstyle1"></p>
          <div class="showivdesc">
             <div class="sdileft">
             <ul>
             <Li><p class="p1">分类：<a href="#"><?php echo $v['type_name']; ?></a></p><p class="p_2">&nbsp;&nbsp;&nbsp;&nbsp;已预订<span><?php echo $room_v['orderCount'] > 0 ? $room_v['orderCount']:'0'; ?> </span>次</p></Li>
             <Li title="{<?php echo $v['address']; ?>">地址：<?php echo $v['address']; ?></Li>
             <Li class="tagsli">标签： 
<?php if(is_array($v['service'])) foreach($v['service'] as $k3 => $v3) { ?>
			 <a href="#"><?php echo $v3; ?></a>&nbsp;&nbsp;
		<?php } ?>	</Li>
             </ul>
             </div>
             <div class="sdiright">
             <ul>
             <li><p class="p1">环境：<span><?php if($points[$v['id']]['environmental'] != 0 ) { echo $points[$v['id']]['environmental']; } else { ?>0<?php } ?></span></p><p class="p2"><?php echo $points[$v['id']]['environmental_img']; ?></p></li>
             <li><p class="p1">服务：<span><?php if($points[$v['id']]['service'] != 0 ) { echo $points[$v['id']]['service']; } else { ?>0<?php } ?></span></p><p class="p2"><?php echo $points[$v['id']]['service_img']; ?></p></li>
             <li><p class="p1">品质：<span><?php if($points[$v['id']]['sound'] != 0 ) { echo $points[$v['id']]['sound']; } else { ?>0<?php } ?></span></p><p class="p2"><?php echo $points[$v['id']]['sound_img']; ?></p></li>
             </ul>
             </div>
          </div>
          <p class="spacing5"></p>
        
         <?php if($room_v['discount'] != '') { ?>   <div class="ythui"><strong>优惠</strong>： <?php echo $room_v['discount']; ?><br>  </div><?php } ?>
		 
        
        
        </div>
        <p class="spacing"></p>
    
        <div class="roomlist">
        <dl class="maindl">
           <dd class="d1">房型</dd>
           <dd class="d2">适合人数</dd>
           <dd class="d3">最低消费</dd>
           <dd class="d4">优惠</dd>
           <dd class="d5">价格</dd>
           <dd class="d6">备注</dd>
           <dd class="d7">预订</dd>
        </dl><?php $count = 0; ?>  
<?php if(is_array($rooms[$v['id']])) foreach($rooms[$v['id']] as $room_k => $room_v) { ?>
		  
		  	<?php if($count < 2) { ?>
        <dl>
           <dd class="d1"><a href="#" class="vsa0"><?php echo $room_v['name']; ?></a></dd>
           <dd class="d2"><?php echo $room_v['seating']; ?>人</dd>
             <dd class="d3"><?php if($room_v['min_price'] > 0) { ?>￥<?php echo $room_v['min_price']; } else { ?>无<?php } ?></dd>
			    <dd class="d4"><?php if($room_v['discount'] != '') { ?>￥<?php echo $room_v['discount']; } else { ?>无<?php } ?></dd>
           <dd class="d5"><span class="vs1"><?php echo $room_v['minprice'] != '' ? '￥'.$room_v['minprice'].'元/小时起':'--'; ?></span></dd>
           <dd class="d6"><?php echo $room_v['remark'] != '' ? $room_v['remark']:'&nbsp'; ?></dd>
           <dd class="d7"><a href="<?php echo DOMAIN; echo ROOT; ?>order/ktvBook-<?php echo $room_v['id']; ?>.html" class="orderbtn"></a></dd>
        </dl>
		<?php } else { ?>
		
		 <div class="noshow noshowdl_<?php echo $v['id']; ?>" id="noshowdl_<?php echo $v['id']; ?>">
			<dl>
			   <dd class="d1"><a href="#" class="vsa0"><?php echo $room_v['name']; ?></a></dd>
			   <dd class="d2"><?php echo $room_v['seating']; ?>人</dd>
			   <dd class="d3"><?php if($room_v['min_price'] > 0) { ?>￥<?php echo $room_v['min_price']; ?>起<?php } else { ?>无<?php } ?></dd>
			      <dd class="d4"><?php if($room_v['discount'] != '') { echo $room_v['discount']; } else { ?>无<?php } ?></dd>
			   <dd class="d5"><span class="vs1">￥<?php echo $room_v['minprice']; ?>元/小时</span></dd>
			   <dd class="d6">此包房只享受优惠不留位</dd>
			   <dd class="d7"><a href="<?php echo DOMAIN; echo ROOT; ?>order/ktvBook-<?php echo $room_v['id']; ?>.html" class="orderbtn"></a></dd>
			</dl>
		
        </div>
		<?php } $count++; } ?>
       
       
        </div>
        
        <p class="spacing"></p>
		
        <p class="showmores"><img src="<?php echo MY_THEMEDIR; ?>images/ktv/zhankai.gif" width="104" height="28"  class="img_hidden_<?php echo $v['id']; ?>" onClick="showmore('<?php echo $v['id']; ?>','showmores<?php echo $v['id']; ?>',0)"><img class="img_hidden_<?php echo $v['id']; ?>" src="<?php echo MY_THEMEDIR; ?>images/ktv/shouhui.gif" width="104" height="28" style="display:none;" id="showmores<?php echo $v['id']; ?>" onClick="showmore('<?php echo $v['id']; ?>','showmores<?php echo $v['id']; ?>',1)"></p>
        <p class="spacing"></p>
        <p class="spacing"></p>
     </div>
     </div>
     <div class="cifoot"></div>
     </div>
     <p class="spacing"></p>
     <?php } ?>
    
     </div>
     </div>
	 
	 <div style="">
	 
     <div class="cifoot"></div>
     </div>
     <p class="spacing"></p>
     <div class="listpage">
      <a href="list-1.html">&lt;&lt;</a>
	 
	 
<?php if(is_array($pageCount)) foreach($pageCount as $k => $v) { ?>
	 <?php $all = $v; ?> <?php if($k < 3) { ?>
				<a href="list-<?php echo $v; ?>.html"><?php echo $v; ?></a>
		 <?php } ?>
	  <?php } ?>
     
     <span>...</span>
     <a href="list-<?php echo $all; ?>.html"><?php echo $all; ?></a>
     <a href="list-<?php echo $all; ?>.html">&gt;&gt;</a>
	 
	 
     </div>
	 <Div class="list_bottom">
 <?php include $this->tpl->getfile('inc/ktv_footer'); ?>
</Div>
     <p class="spacing"></p>
     
     
  </div>
  <p class="spacing"></p><p class="spacing"></p>
   
  </form>

</body>
</html>