<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('ktvSearch.html', 'd115da429466e3e37494fa3dc903fa17', 1362487904); ?>
<!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">
<meta name="Keywords" content="<?php echo $siteInfo['keywords']; ?>" />
<meta name="Description" content="<?php echo $siteInfo['description']; ?>" />
<title><?php echo $siteInfo['title']; ?></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" src="<?php echo MY_THEMEDIR; ?>js/datePicker/WdatePicker.js"></script>
<script type="text/javascript">

	$(document).ready(function(){
	  	$.focus("#focus001");
		$.focus("#focus002");
	});
</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/jscrollpane/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);
		
	});
	

	
	
$(function() {	
var root = "<?php echo DOMAIN; echo ROOT; ?>";
var my_search = '';

	$('.address_select').each(function(){
		
		$(this).click(function(){
			$('#MyDiv').hide(500);
			$('#shop_id').attr('value' , $(this).attr('addressid'));
			$('#btn_area').html($(this).html()); //($(this).html());
		})
		
	});
	
	$('#my_sreach').click(function(){
		var value = $('#shop_id').attr('value');
		var key = 'shopareaId';
		
		var btn_number = $('#btn_number').html();
		

		var time_select = $('#time_select').attr('value');
		var begin = $('.activeSelect')[0].innerHTML;
		var end = $('.activeSelect')[1].innerHTML;
		
	
		
		var url = root + '?m=ktv.setKtvSearch&'+key + '=' + value + '&number=' + btn_number + '&time=' + time_select + '&begin=' + begin + '&end=' + end;
		
	
		if(my_search != '')
		{
			url += '&search=' + my_search;
		}
		
		$.ajax({
			type:'POST',
			url:url,
			success: function (data) {
			
				location.href=root + "ktv/list-1.html";
			},
			cache: false
		});		
		
		my_search = '';	
		
		
	});
	
	
	$('#address_select_btn').click(function(){
		$('#MyDiv').hide(500);
		//$('#shop_id').attr('value' , $(this).attr('addressid'));
		var selects = $('#address_select_txt').attr('value');
		my_search = selects;
		$('#btn_area').html(selects); //($(this).html());
	});
	

	
	$('#myBegin_Select').change(function(){
		begin = $(this).attr('value');
		//alert(begin);
	});
	
	$('#myEnd_Select').change(function(){
		end = $(this).attr('value');
	});
	

	
});
	
var root = "<?php echo DOMAIN; echo ROOT; ?>";
function search_content(key , value)
{
	
	$.ajax({
		type:'POST',
		url:root + '?m=ktv.setKtvSearch&'+key + '=' + value,
		success: function (data) {
			
		},
		cache: false
	});	
	location.href= root + "ktv/list-1.html";
}

</script>
</head>
<body>
<div class="top_black" >
  <?php include $this->tpl->getfile('inc/ktv_header'); ?>
</div>
<div class="content index">
  <div class="quyu">
    <p><span class="title">行政区域</span><span>
	
	
<?php if(is_array($area)) foreach($area as $k => $v) { ?>
	
		<a href="###" onClick="search_content('areaId' , '<?php echo $v['id']; ?>');"><?php echo $v['name']; ?>(<em><?php echo $v['areaCount']; ?></em>)</a>

	<?php } ?>
	</span>
	
	</p>
    <p style="border-bottom:none;"><span class="title">热门商业街</span><span>
	
<?php if(is_array($shoparea)) foreach($shoparea as $k => $v) { ?>
		<a href="###" onClick="search_content('shopareaId' , '<?php echo $v['id']; ?>');"><?php echo $v['name']; ?>(<em><?php echo $v['shopCount']; ?></em>)</a>
	<?php } ?>
	</span></p>
  </div>
  <div class="kuaisuyd">
    <h1>KTV预订从此简单...</h1>
    <div class="xuanzenr">
      <p><em class="em_title">地点选择：</em><span><a href="javascript:void(0);" class="quy" id="btn_area" onclick="ShowDiv('MyDiv');"  >--区域--</a></span>
      </p>
      <p><em class="em_title">参加人数：</em><span><a href="javascript:void(0);" class="renshu" id="btn_number" onclick="ShowDiv('Mys')">2</a></span>
        <em>人</em></p>
      <p><em class="em_title">时间选择：</em> <span style="background:url(<?php echo MY_THEMEDIR; ?>images/ktv/xiala_bg.jpg) no-repeat;"><input id="time_select" name=""  value="<?php echo date('Y-m-d'); ?>" type="text"  style="cursor:pointer;"></span>
        <em>日</em>
		
	
		<select name="" class="mySelect" id="myBegin_Select">
				
<?php if(is_array($times)) foreach($times as $k => $v) { ?>
				<option value="<?php echo $v; ?>"><?php echo $v; ?>:00</option>
				<?php } ?>
				<option value="24">24:00后</option>
		</select>
        <em>至</em><select name="" class="mySelect" id="myEnd_Select" >
			
<?php if(is_array($times)) foreach($times as $k => $v) { ?>
				<option value="<?php echo $v; ?>"><?php echo $v; ?>:00</option>
				<?php } ?>
				<option value="24">24:00后</option>
		</select>
      </p>
   <div id="MyDiv">
  <div class="mudiv_left"></div>
  <div class="mudiv_middle" style="width:359px;">
    <div class="div_title">
      <h2>地点选择</h2>
      <span class="close" onClick="CloseDiv('MyDiv','fade')"></span>
	</div>
      <div class="diqu">
<p>

		
<?php if(is_array($shoparea)) foreach($shoparea as $k => $v) { ?>
		<a class="address_select" addressid="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></a>
	<?php } ?>
	
</p>

<div class="svformp"><input name="" type="text" class="vsearch"><input name="" type="submit" value="" class="vsbtn"></div>
      </div>
  </div>
  <div class="mudiv_right"></div>
</div>
<div id="Mys">
  <div class="mudiv_left"></div>
  <div class="mudiv_middle">
    <div class="div_title">
      <h2>参加人数</h2>
      <span class="close" onClick="CloseDiv('Mys')"></span> </div>
      <div class="diqu">
         <a class="number_select">1</a>
         <a class="number_select">2</a>
         <a class="number_select">3</a>
         <a class="number_select">4</a>
         <a class="number_select">5</a>
         <a class="number_select">6</a>
         <a class="number_select">7</a>
         <a class="number_select">8</a>
         <a href="#" class="number_select ten">10人以上</a>
      </div>
  </div>
  <div class="mudiv_right"></div>
</div>
<div id="MyTime">
  <div class="mudiv_left"></div>
  <div class="mudiv_middle">
    <div class="div_title">
      <h2>时间选择</h2>
      <span class="close" onClick="CloseDiv('MyTime','fade')"></span> </div>
      <div class="diqu">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr align="center" valign="middle">
    <td width="5%"><a href="#" class="sn"></a></td>
    <td width="5%"><a href="#" class="sy"></a></td>
    <td width="15%">九月</td>
    <td width="25%">2012</td>    
    <td width="5%"><a href="#" class="xy"></a></td>
    <td width="5%"><a href="#" class="xn"></a></td>
  </tr>
  <tr>
    <td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr align="center" valign="middle" bgcolor="#bdebee">
        <td>周</td>
        <td>日</td>
        <td>一</td>
        <td>二</td>
        <td>三</td>
        <td>四 </td>
        <td>五</td>
        <td>六</td>
      </tr>
      <tr align="center" valign="middle">
        <td bgcolor="#daf3f5">35</td>
        <td>&nbsp;</td>
        <td><a href="#">1</a></td>
        <td><a href="#">2</a></td>
        <td><a href="#">3</a></td>
        <td><a href="#">4</a></td>
        <td><a href="#">5</a></td>
        <td><a href="#">6</a></td>
      </tr>
      <tr align="center" valign="middle">
        <td bgcolor="#daf3f5">36</td>
        <td><a href="#">7</a></td>
        <td><a href="#">8</a></td>
        <td><a href="#">9</a></td>
        <td><a href="#">10</a></td>
        <td><a href="#">11</a></td>
        <td><a href="#">12</a></td>
        <td><a href="#">13</a></td>
      </tr>
      <tr align="center" valign="middle">
        <td bgcolor="#daf3f5">37</td>
        <td><a href="#">14</a></td>
        <td><a href="#">15</a></td>
        <td><a href="#">16</a></td>
        <td><a href="#">17</a></td>
        <td><a href="#">18</a></td>
        <td><a href="#">19</a></td>
        <td><a href="#">20</a></td>
      </tr>
      <tr align="center" valign="middle">
        <td bgcolor="#daf3f5">38</td>
        <td><a href="#">21</a></td>
        <td><a href="#">22</a></td>
        <td><a href="#">23</a></td>
        <td><a href="#">24</a></td>
        <td><a href="#">25</a></td>
        <td><a href="#">26</a></td>
        <td><a href="#">27</a></td>
      </tr>
      <tr align="center" valign="middle">
        <td bgcolor="#daf3f5">39</td>
        <td><a href="#">28</a></td>
        <td><a href="#">29</a></td>
        <td><a href="#">30</a></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#daf3f5"></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>    
  </tr>
</table>
<p><a href="#">确定</a><a href="#">今天</a><a href="#">清空</a></p>
      </div>
  </div>
  <div class="mudiv_right"></div>
</div>
    </div>
    <div class="chazhao"> <a href="#" class="cz_anniu" id="my_sreach"></a>
	
	<div class="share">
		<div  class="t_share">分享到：</div>
			<div class="baidu_p2" ><!-- 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" style="width:25px;">更多</span>
		</div>
	</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>
  </div>
  <div id="focus">
    <div class="focus" id="focus001">
      <ul>
	  
        <li><a href="<?php echo $photo['1']['url']; ?>" target="_blank"><img src="<?php echo DOMAIN; echo ROOT; ?>upload/logo/1.jpg" width=533 height=370 onerror="this.src = '<?php echo MY_THEMEDIR; ?>images/ktv/img.jpg'" alt=""></a></li>
        <li><a href="<?php echo $photo['2']['url']; ?>" target="_blank"><img src="<?php echo DOMAIN; echo ROOT; ?>upload/logo/2.jpg" width=533 height=370onerror="this.src = '<?php echo MY_THEMEDIR; ?>images/ktv/img.jpg'" alt=""></a></li>
		<li><a href="<?php echo $photo['3']['url']; ?>" target="_blank"><img src="<?php echo DOMAIN; echo ROOT; ?>upload/logo/3.jpg" width=533 height=370onerror="this.src = '<?php echo MY_THEMEDIR; ?>images/ktv/img.jpg'" alt=""></a></li>
        <li><a href="<?php echo $photo['4']['url']; ?>" target="_blank"><img src="<?php echo DOMAIN; echo ROOT; ?>upload/logo/4.jpg" width=533 height=370onerror="this.src = '<?php echo MY_THEMEDIR; ?>images/ktv/img.jpg'" alt=""></a></li>
        <li><a href="<?php echo $photo['5']['url']; ?>" target="_blank"><img src="<?php echo DOMAIN; echo ROOT; ?>upload/logo/5.jpg" width=533 height=370onerror="this.src = '<?php echo MY_THEMEDIR; ?>images/ktv/img.jpg'" alt=""></a></li>
      </ul>
    </div>
  </div>
  <?php include $this->tpl->getfile('inc/ktv_footer'); ?>
</body>
</html>
